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)
commit19d04a947db53e0d99e60aeb914d2148f61ab5f9
tree0eac437b805838a5d14cc61f96d2fed8f7d53586
parent9ab000d9ac546f08485f11c033542e74f6202dee
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: 211225428d65 ("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