]> git.baikalelectronics.ru Git - kernel.git/commit
qed*: Support drop action classification
authorManish Chopra <manish.chopra@cavium.com>
Thu, 24 May 2018 16:54:53 +0000 (09:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 20:10:42 +0000 (16:10 -0400)
commit34d40f211fdb2c26daf8b8fbbf99038733a20734
tree8bcd124b8ae3a1291dccdce055c738144a14c9e4
parent2b461716219dbfbf1fbd72bf2999fa2e0865067b
qed*: Support drop action classification

With this patch, User can configure for the supported
flows to be dropped. Added a stat "gft_filter_drop"
as well to be populated in ethtool for the dropped flows.

For example -

ethtool -N p5p1 flow-type udp4 dst-port 8000 action -1
ethtool -N p5p1 flow-type tcp4 scr-ip 192.168.8.1 action -1

Signed-off-by: Manish Chopra <manish.chopra@cavium.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
drivers/net/ethernet/qlogic/qede/qede_filter.c
drivers/net/ethernet/qlogic/qede/qede_main.c
include/linux/qed/qed_eth_if.h
include/linux/qed/qed_if.h