sfc: optional logging of TC offload errors
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 26 Sep 2022 18:57:33 +0000 (19:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Sep 2022 08:43:22 +0000 (09:43 +0100)
commit7c9d266d8faffab935fb7b30056a476289c2a4a3
tree95e45fc474760fccb8ff4736589c04181f27cd48
parent5b2e12d51bd8efaf0be8309d5b2c716ad848cb37
sfc: optional logging of TC offload errors

TC offload support will involve complex limitations on what matches and
 actions a rule can do, in some cases potentially depending on rules
 already offloaded.  So add an ethtool private flag "log-tc-errors" which
 controls reporting the reasons for un-offloadable TC rules at NETIF_INFO.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef100_ethtool.c
drivers/net/ethernet/sfc/ethtool_common.c
drivers/net/ethernet/sfc/ethtool_common.h
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tc.h