From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 50E205A30 for ; Tue, 25 Aug 2015 15:45:41 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 25 Aug 2015 06:45:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,746,1432623600"; d="scan'208";a="548203180" Received: from kmsmsx153.gar.corp.intel.com ([172.21.73.88]) by FMSMGA003.fm.intel.com with ESMTP; 25 Aug 2015 06:45:27 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by KMSMSX153.gar.corp.intel.com (172.21.73.88) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 25 Aug 2015 21:45:25 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.210]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.182]) with mapi id 14.03.0224.002; Tue, 25 Aug 2015 21:45:24 +0800 From: "Wu, Jingjing" To: Navneet Rao , "dev@dpdk.org" Thread-Topic: [dpdk-dev] working example commands for ethertype/flow_director_filter ? Thread-Index: AQHQ3p6iBtNkzPGh4kiobr36zcSXwJ4cuQdQ Date: Tue, 25 Aug 2015 13:45:23 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F8CC2A85@SHSMSX104.ccr.corp.intel.com> References: <8c30153a-e4f8-4afb-bc6d-b4e6d40a591c@default> In-Reply-To: <8c30153a-e4f8-4afb-bc6d-b4e6d40a591c@default> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] working example commands for ethertype/flow_director_filter ? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2015 13:45:41 -0000 Hi, If you use "help filters", you can probably get the command format like: ethertype_filter (port_id) (add|del) (mac_addr|mac_ignr) (mac_address) ethe= rtype (ether_type) (drop|fwd) queue (queue_id) Add/Del an ethertype filter. > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Navneet Rao > Sent: Tuesday, August 25, 2015 2:56 AM > To: dev@dpdk.org > Subject: Re: [dpdk-dev] working example commands for ethertype/flow_direc= tor_filter ? >=20 > testpmd> mac_addr add 0 00:10:E0:3B:3B:50 >=20 > testpmd> set promisc all on >=20 > testpmd> ethertype_filter 0 add mac_addr 00:10:E0:3B:3B:50 ethertype 0x= 0806 fwd queue > 1 >=20 > ethertype filter programming error: (Invalid argument) >=20 > testpmd> ethertype_filter 0 add mac_addr 00:10:E0:3B:3B:50 ethertype 0x0= 806 fwd queue 1 >=20 > ethertype filter programming error: (Invalid argument) [Wu, Jingjing] above error raised may because the NIC you using does not su= pport ethertype_filter with mac. >=20 > testpmd> ethertype_filter 0 add mac_ignr ethertype 0x0806 fwd queue 1 >=20 > Bad arguments >=20 >=20 [Wu, Jingjing] I think command like "ethertype_filter 0 add mac_ignr 00:10:= E0:3B:3B:50 ethertype 0x0806 fwd queue 1" may work. >=20 >=20 >=20 > Has anyone been able to get this to work!!! >=20 > All I want to is steer the traffic on port0 to go to some other queue (in= stead of default 0) >=20 >=20 >=20 > And I want to filter on the mac_address.so using the ethertype_filter. >=20 >=20 >=20 > Thanks >=20 > -Navneet >=20 >=20 >=20 >=20 >=20 > -----Original Message----- > From: Navneet Rao > Sent: Friday, August 21, 2015 2:55 PM > To: dev@dpdk.org > Subject: [dpdk-dev] working example commands for ethertype/flow_director_= filter ? >=20 >=20 >=20 > Hello: >=20 >=20 >=20 >=20 >=20 > If anybody has any working example commands for ethertype or flow_directo= r_filter, can > you please send it across.. >=20 >=20 >=20 > I am using the testpmd app, and it is constantly reporting "bad-arguments= " even for the legal > commands in the doc!!! >=20 >=20 >=20 >=20 >=20 > Thanks >=20 >=20 >=20 > -Navneet >=20 >=20 >=20 >=20 >=20 >=20