]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: report ndo_setup_tc failures via extack
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 23 Apr 2020 14:57:45 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:44:54 +0000 (16:44 -0700)
commit78956c2298a26565cfd6e32decf53ffe8673c45c
tree87d2bb2fa5672004244bc7d6032a861eeebd566d
parente2f0586332fd4e6490731390476f4f008677dabb
net: sched: report ndo_setup_tc failures via extack

Help end-users of the 'tc' command to see if the drivers ndo_setup_tc
function call fails. Troubleshooting when this happens is non-trivial
(see full process here[1]), and results in net_device getting assigned
the 'qdisc noop', which will drop all TX packets on the interface.

[1]: https://github.com/xdp-project/xdp-project/blob/master/areas/arm64/board_nxp_ls1088/nxp-board04-troubleshoot-qdisc.org

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c