aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>2010-02-10 23:03:05 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-10 23:03:05 -0500
commit15682bc488d4af8c9bb998844a94281025e0a333 (patch)
tree2534589c00cbf695e6c2906f5c228a0006174904 /include/linux/netdevice.h
parent375c568844e49d292885c7485d4a255f71680e56 (diff)
ethtool: Introduce n-tuple filter programming support
This patchset enables the ethtool layer to program n-tuple filters to an underlying device. The idea is to allow capable hardware to have static rules applied that can assist steering flows into appropriate queues. Hardware that is known to support these types of filters today are ixgbe and niu. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e535700a3b72..cdf53a8d9ff5 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -746,6 +746,7 @@ struct net_device {
746#define NETIF_F_FCOE_CRC (1 << 24) /* FCoE CRC32 */ 746#define NETIF_F_FCOE_CRC (1 << 24) /* FCoE CRC32 */
747#define NETIF_F_SCTP_CSUM (1 << 25) /* SCTP checksum offload */ 747#define NETIF_F_SCTP_CSUM (1 << 25) /* SCTP checksum offload */
748#define NETIF_F_FCOE_MTU (1 << 26) /* Supports max FCoE MTU, 2158 bytes*/ 748#define NETIF_F_FCOE_MTU (1 << 26) /* Supports max FCoE MTU, 2158 bytes*/
749#define NETIF_F_NTUPLE (1 << 27) /* N-tuple filters supported */
749 750
750 /* Segmentation offload features */ 751 /* Segmentation offload features */
751#define NETIF_F_GSO_SHIFT 16 752#define NETIF_F_GSO_SHIFT 16
@@ -954,6 +955,8 @@ struct net_device {
954 /* max exchange id for FCoE LRO by ddp */ 955 /* max exchange id for FCoE LRO by ddp */
955 unsigned int fcoe_ddp_xid; 956 unsigned int fcoe_ddp_xid;
956#endif 957#endif
958 /* n-tuple filter list attached to this device */
959 struct ethtool_rx_ntuple_list ethtool_ntuple_list;
957}; 960};
958#define to_net_dev(d) container_of(d, struct net_device, dev) 961#define to_net_dev(d) container_of(d, struct net_device, dev)
959 962