Skip to content

Commit

Permalink
iavf: Support IPv4 Flow Director filters
Browse files Browse the repository at this point in the history
Support the addition and deletion of IPv4 filters.

Supported fields are: src-ip, dst-ip, src-port, dst-port and l4proto
Supported flow-types are: tcp4, udp4, sctp4, ip4, ah4, esp4

Example usage:
ethtool -N ens787f0v0 flow-type tcp4 src-ip 192.168.0.20 \
  dst-ip 192.168.0.21 tos 4 src-port 22 dst-port 23 action 8

L2TPv3 over IP with 'Session ID' 17:
ethtool -N ens787f0v0 flow-type ip4 l4proto 115 l4data 17 action 3

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
  • Loading branch information
haiyuewa authored and intel-lab-lkp committed Feb 19, 2021
1 parent 932f2d2 commit e65b05c
Show file tree
Hide file tree
Showing 5 changed files with 881 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/iavf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ subdir-ccflags-y += -I$(src)

obj-$(CONFIG_IAVF) += iavf.o

iavf-objs := iavf_main.o iavf_ethtool.o iavf_virtchnl.o \
iavf-objs := iavf_main.o iavf_ethtool.o iavf_virtchnl.o iavf_fdir.o \
iavf_txrx.o iavf_common.o iavf_adminq.o iavf_client.o

0 comments on commit e65b05c

Please sign in to comment.