]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6f847c16dd336c4eafd5775f91c1f0189323314
tree95e45fc474760fccb8ff4736589c04181f27cd48
parent1ec6d0dca87298f7b636cccf19d5d95da800162e
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