[Intel-wired-lan] [net-next v6 2/4] igb: support RX flow classification by ethertype

Brown, Aaron F aaron.f.brown at intel.com
Fri Jul 15 23:25:29 UTC 2016


> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Gangfeng
> Sent: Tuesday, July 5, 2016 10:23 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Gangfeng Huang <gangfeng.huang at ni.com>; Ruhao Gao
> <ruhao.gao at ni.com>
> Subject: [Intel-wired-lan] [net-next v6 2/4] igb: support RX flow classification
> by ethertype
> 
> From: Gangfeng Huang <gangfeng.huang at ni.com>
> 
> This patch is meant to allow for RX network flow classification to insert
> and remove ethertype filter by ethtool
> 
> Example:
> Add an ethertype filter:
> $ ethtool -N eth0 flow-type ether proto 0x88F8 action 2
> 
> Show all filters:
> $ ethtool -n eth0
> 4 RX rings available
> Total 1 rules
> 
> Filter: 15
> 	Flow Type: Raw Ethernet
> 	Src MAC addr: 00:00:00:00:00:00 mask: FF:FF:FF:FF:FF:FF
> 	Dest MAC addr: 00:00:00:00:00:00 mask: FF:FF:FF:FF:FF:FF
> 	Ethertype: 0x88F8 mask: 0x0
> 	Action: Direct to queue 2
> 
> Delete the filter by location:
> $ ethtool -N delete 15
> 
> Signed-off-by: Ruhao Gao <ruhao.gao at ni.com>
> Signed-off-by: Gangfeng Huang <gangfeng.huang at ni.com>
> ---
>  drivers/net/ethernet/intel/igb/e1000_82575.h |  5 ++
>  drivers/net/ethernet/intel/igb/igb.h         | 20 +++++++-
>  drivers/net/ethernet/intel/igb/igb_ethtool.c | 77
> +++++++++++++++++++++++++++-
>  drivers/net/ethernet/intel/igb/igb_ptp.c     |  4 +-
>  4 files changed, 102 insertions(+), 4 deletions(-)
> 

Tested-by: Aaron Brown <aaron.f.brown at intel.com>


More information about the Intel-wired-lan mailing list