]> git.baikalelectronics.ru Git - kernel.git/commit
net: microchip: sparx5: Fix return value in sparx5_tc_setup_qdisc_ets()
authorLu Wei <luwei32@huawei.com>
Thu, 17 Nov 2022 15:07:22 +0000 (23:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2022 11:02:33 +0000 (11:02 +0000)
commit3040ce366dda5fa45f7f764acd96145bd1ff326c
tree0eac437b805838a5d14cc61f96d2fed8f7d53586
parentc7fd73127daf7250e60247e48307d2c4e2eb0769
net: microchip: sparx5: Fix return value in sparx5_tc_setup_qdisc_ets()

Function sparx5_tc_setup_qdisc_ets() always returns negative value
because it return -EOPNOTSUPP in the end. This patch returns the
rersult of sparx5_tc_ets_add() and sparx5_tc_ets_del() directly.

Fixes: 83bcd3c108b9 ("net: microchip: sparx5: add support for offloading ets qdisc")
Signed-off-by: Lu Wei <luwei32@huawei.com>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_tc.c