Skip to contentSkip to conversation

working example commands for ethertype/flow_director_filter ?

DISCUSSION Navneet Rao 2 participants 3 messages Aug 21, 2015 – Aug 25, 2015

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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)

testpmd> ethertype_filter 0 add mac_ignr ethertype 0x0806 fwd queue 1

Bad arguments

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: [email protected]
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

#2 lore raw

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.

Quoted 10 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Navneet Rao
Sent: Tuesday, August 25, 2015 2:56 AM
To: [email protected]
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

Quoted 8 lines

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.

Quoted 6 lines

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.

Quoted 58 lines

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: [email protected]
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