diff options
author | Jian Shen | 2018-10-01 13:46:43 +0200 |
---|---|---|
committer | David S. Miller | 2018-10-02 07:57:45 +0200 |
commit | dd74f815dd41bdb6a979e36b4d35ba7d364281ae (patch) | |
tree | 91ea3736befc8f8a15925bf7e9dba331d293a784 /drivers/net/ethernet/hisilicon/hns3/hnae3.h | |
parent | net: hns3: Add input key and action config support for flow director (diff) | |
download | kernel-qcow2-linux-dd74f815dd41bdb6a979e36b4d35ba7d364281ae.tar.gz kernel-qcow2-linux-dd74f815dd41bdb6a979e36b4d35ba7d364281ae.tar.xz kernel-qcow2-linux-dd74f815dd41bdb6a979e36b4d35ba7d364281ae.zip |
net: hns3: Add support for rule add/delete for flow director
This patch adds support for add and delete rule by ethtool commands.
HNS3 driver supports several flow types, include ETHER_FLOW,
IP_USER_FLOW, TCP_V4_FLOW, UDP_V4_FLOW, SCTP_V4_FLOW, IPV6_USER_FLOW,
TCP_V6_FLOW, UDP_V6_FLOW and SCTP_V6_FLOW.
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hnae3.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index d3e5190ce701..262bb736a486 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -416,6 +416,10 @@ struct hnae3_ae_ops { void (*get_link_mode)(struct hnae3_handle *handle, unsigned long *supported, unsigned long *advertising); + int (*add_fd_entry)(struct hnae3_handle *handle, + struct ethtool_rxnfc *cmd); + int (*del_fd_entry)(struct hnae3_handle *handle, + struct ethtool_rxnfc *cmd); }; struct hnae3_dcb_ops { |