All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brown, Aaron F <aaron.f.brown@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [net-next v6 3/4] igb: support RX flow classification by VLAN priority
Date: Fri, 15 Jul 2016 23:26:08 +0000	[thread overview]
Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B81F30D06@ORSMSX101.amr.corp.intel.com> (raw)

> 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@ni.com>; Ruhao Gao
> <ruhao.gao@ni.com>
> Subject: [Intel-wired-lan] [net-next v6 3/4] igb: support RX flow classification
> by VLAN priority
> 
> From: Gangfeng Huang <gangfeng.huang@ni.com>
> 
> This patch is meant to allow for RX network flow classification to insert
> and remove VLAN priority filter by ethtool
> 
> Example:
> Add an VLAN priority filter:
> $ ethtool -N eth0 flow-type ether vlan 0x6000 vlan-mask 0x1FFF action 2 loc 1
> 
> Show all filters:
> $ ethtool -n eth0
> 4 RX rings available
> Total 1 rules
> 
> Filter: 1
> 	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: 0x0 mask: 0xFFFF
> 	VLAN EtherType: 0x0 mask: 0xffff
> 	VLAN: 0x6000 mask: 0x1fff
> 	User-defined: 0x0 mask: 0xffffffffffffffff
> 	Action: Direct to queue 2
> 
> Delete the filter by location:
> $ ethtool -N delete 1
> 
> Signed-off-by: Ruhao Gao <ruhao.gao@ni.com>
> Signed-off-by: Gangfeng Huang <gangfeng.huang@ni.com>
> ---
>  drivers/net/ethernet/intel/igb/e1000_defines.h |  4 ++
>  drivers/net/ethernet/intel/igb/e1000_regs.h    |  1 +
>  drivers/net/ethernet/intel/igb/igb.h           |  3 +
>  drivers/net/ethernet/intel/igb/igb_ethtool.c   | 91
> ++++++++++++++++++++++++--
>  4 files changed, 92 insertions(+), 7 deletions(-)
>

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

             reply	other threads:[~2016-07-15 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-15 23:26 Brown, Aaron F [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-06  5:22 [Intel-wired-lan] [net-next v6 0/4] igb: enable RX network flow classification Gangfeng
2016-07-06  5:22 ` [Intel-wired-lan] [net-next v6 3/4] igb: support RX flow classification by VLAN priority Gangfeng

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=309B89C4C689E141A5FF6A0C5FB2118B81F30D06@ORSMSX101.amr.corp.intel.com \
    --to=aaron.f.brown@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.