DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wu, Jingjing" <jingjing.wu@intel.com>
To: Navneet Rao <navneet.rao@oracle.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] working example commands for ethertype/flow_director_filter ?
Date: Tue, 25 Aug 2015 13:45:23 +0000	[thread overview]
Message-ID: <9BB6961774997848B5B42BEC655768F8CC2A85@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <8c30153a-e4f8-4afb-bc6d-b4e6d40a591c@default>

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) ethertype (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_director_filter ?
> 
> testpmd>  mac_addr add 0 00:10:E0:3B:3B:50
> 
> testpmd> set promisc all on
> 
> testpmd>  ethertype_filter 0 add mac_addr 00:10:E0:3B:3B:50  ethertype 0x0806 fwd queue
> 1
> 
> ethertype filter programming error: (Invalid argument)
> 
> testpmd>  ethertype_filter 0 add mac_addr 00:10:E0:3B:3B:50 ethertype 0x0806 fwd queue 1
> 
> ethertype filter programming error: (Invalid argument)

[Wu, Jingjing] above error raised may because the NIC you using does not support ethertype_filter with mac.
> 
> testpmd>  ethertype_filter 0 add mac_ignr ethertype 0x0806 fwd queue 1
> 
> Bad arguments
> 
> 
[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.
> 
> 
> 
> Has anyone been able to get this to work!!!
> 
> All I want to is steer the traffic on port0 to go to some other queue (instead of default 0)
> 
> 
> 
> And I want to filter on the mac_address.so using the ethertype_filter.
> 
> 
> 
> Thanks
> 
> -Navneet
> 
> 
> 
> 
> 
> -----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 ?
> 
> 
> 
> Hello:
> 
> 
> 
> 
> 
> If anybody has any working example commands for ethertype or flow_director_filter,  can
> you please send it across..
> 
> 
> 
> I am using the testpmd app, and it is constantly reporting "bad-arguments" even for the legal
> commands in the doc!!!
> 
> 
> 
> 
> 
> Thanks
> 
> 
> 
> -Navneet
> 
> 
> 
> 
> 
> 

      reply	other threads:[~2015-08-25 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 21:54 Navneet Rao
2015-08-24 18:56 ` Navneet Rao
2015-08-25 13:45   ` Wu, Jingjing [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9BB6961774997848B5B42BEC655768F8CC2A85@SHSMSX104.ccr.corp.intel.com \
    --to=jingjing.wu@intel.com \
    --cc=dev@dpdk.org \
    --cc=navneet.rao@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).