From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: Re: [patch net-next 2/2] sched: introduce vlan action Date: Wed, 12 Nov 2014 08:06:41 -0500 Message-ID: <54635B61.8020403@mojatatu.com> References: <1415700789-9171-1-git-send-email-jiri@resnulli.us> <1415700789-9171-2-git-send-email-jiri@resnulli.us> <20141112123445.GE1882@nanopsycho.orion> <54635AAC.3080600@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev , David Miller , Pravin B Shelar , Tom Herbert , Eric Dumazet , willemb@google.com, Daniel Borkmann , mst@redhat.com, Florian Westphal , Paul.Durrant@citrix.com, Thomas Graf To: Jiri Pirko , Cong Wang Return-path: Received: from mail-ie0-f180.google.com ([209.85.223.180]:56050 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752455AbaKLNGs (ORCPT ); Wed, 12 Nov 2014 08:06:48 -0500 Received: by mail-ie0-f180.google.com with SMTP id y20so13531658ier.39 for ; Wed, 12 Nov 2014 05:06:47 -0800 (PST) In-Reply-To: <54635AAC.3080600@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On 11/12/14 08:03, Jamal Hadi Salim wrote: > On 11/12/14 07:34, Jiri Pirko wrote: > It just happens that user space passes it to you in BE already. > So this works out because skb_vlan_push expects that to be in BE > as in: > int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) > Sorry, meant proto is in BE but vlan is in host order.. (grr.. need to test). cheers, jamal