linux/drivers/net/ethernet/intel
Haiyue Wang a6379db818 iavf: Enable flex-bytes support
Flex-bytes allows for packet matching based on an offset and value. This
is supported via the ethtool user-def option.

The user-def 0xAAAABBBBCCCCDDDD: BBBB is the 2 byte pattern while AAAA
corresponds to its offset in the packet. Similarly DDDD is the 2 byte
pattern with CCCC being the corresponding offset. The offset ranges from
0x0 to 0x1F7 (up to 504 bytes into the packet). The offset starts from
the beginning of the packet.

This feature can be used to allow customers to set flow director rules
for protocols headers that are beyond standard ones supported by ethtool
(e.g. PFCP or GTP-U).

Like for matching GTP-U's TEID value 0x10203040:
ethtool -N ens787f0v0 flow-type udp4 dst-port 2152 \
user-def 0x002e102000303040 action 13

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Tested-by: Chen Bo <BoX.C.Chen@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-03-22 11:32:12 -07:00
..
e1000 e1000: drop unneeded assignment in e1000_set_itr() 2021-02-03 16:32:18 -08:00
e1000e e1000e: Mark e1000e_pm_prepare() as __maybe_unused 2021-03-19 13:53:49 -07:00
fm10k net: use the new dev_page_is_reusable() instead of private versions 2021-02-04 18:20:14 -08:00
i40e intel: Update drivers to use ethtool_sprintf 2021-03-17 11:42:30 -07:00
iavf iavf: Enable flex-bytes support 2021-03-22 11:32:12 -07:00
ice ice: Check FDIR program status for AVF 2021-03-22 11:32:12 -07:00
igb intel: Update drivers to use ethtool_sprintf 2021-03-17 11:42:30 -07:00
igbvf net: igbvf: use skb_csum_is_sctp instead of protocol check 2021-01-19 14:31:25 -08:00
igc igc: Assign boolean values to a bool variable 2021-03-19 13:53:49 -07:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe intel: Update drivers to use ethtool_sprintf 2021-03-17 11:42:30 -07:00
ixgbevf ixgbe: fail to create xfrm offload of IPsec tunnel mode SA 2021-03-04 11:05:05 -08:00
e100.c e100: switch from 'pci_' to 'dma_' API 2021-01-28 18:31:18 -08:00
Kconfig
Makefile