From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next 2/3] net: mpls: Fixups for GSO Date: Tue, 27 Sep 2016 10:38:41 -0600 Message-ID: References: <1471626542-13335-1-git-send-email-dsa@cumulusnetworks.com> <1471626542-13335-3-git-send-email-dsa@cumulusnetworks.com> <20160822122122.GA8689@penelope.isobedori.kobe.vergenet.net> <20160822145134.GA26491@penelope.isobedori.kobe.vergenet.net> <3297517c-2889-19fe-5aa4-89e1d14eadca@cumulusnetworks.com> <20160824072002.GA27254@penelope.isobedori.kobe.vergenet.net> <586321df-72c6-0dee-4ce6-22ca2a0860fb@cumulusnetworks.com> <20160926175622.3b00d478@griffin> <20160926190259.3b878aa5@griffin> <363ba109-1951-1018-060f-25df33c717e0@cumulusnetworks.com> <20160927094536.392c5045@griffin> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: pravin shelar , Simon Horman , Pravin B Shelar , Linux Kernel Network Developers , "David S. Miller" , buytenh@wantstofly.org, "Eric W. Biederman" , rshearma@brocade.com, tom@herbertland.com, Thomas Graf , olivier.dugeon@orange.com, Alexander Duyck , roopa@cumulusnetworks.com To: Jiri Benc Return-path: Received: from mail-pa0-f45.google.com ([209.85.220.45]:34772 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934342AbcI0Qip (ORCPT ); Tue, 27 Sep 2016 12:38:45 -0400 Received: by mail-pa0-f45.google.com with SMTP id gp7so7246056pac.1 for ; Tue, 27 Sep 2016 09:38:44 -0700 (PDT) In-Reply-To: <20160927094536.392c5045@griffin> Sender: netdev-owner@vger.kernel.org List-ID: On 9/27/16 1:45 AM, Jiri Benc wrote: > On Mon, 26 Sep 2016 20:04:06 -0600, David Ahern wrote: >> you know this code better than me, but key_extract pulls the eth >> header and then sets network header. If MPLS labels are present then >> it is the labels that the network_header now points to. How did come >> to the conclusion it is after the labels? > > Look ~100 lines below that, to "if (eth_p_mpls(key->eth.type))". > There's a while loop advancing network header. got it, thanks. so that block can drop the while loop and just set mpls.top_lse