dpaa2-eth: fix return codes used in ndo_setup_tc
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 23 Apr 2020 14:57:50 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:44:54 +0000 (16:44 -0700)
commitb89c1e6bdc73f5775e118eb2ab778e75b262b30c
tree7f1350e7a0f69d89c3506217c4bd32e4f6f8dfd9
parentb70ba69ef1f72e58c8e43b5689a37a66a7b31d11
dpaa2-eth: fix return codes used in ndo_setup_tc

Drivers ndo_setup_tc call should return -EOPNOTSUPP, when it cannot
support the qdisc type. Other return values will result in failing the
qdisc setup.  This lead to qdisc noop getting assigned, which will
drop all TX packets on the interface.

Fixes: ab1e6de2bd49 ("dpaa2-eth: Add mqprio support")
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>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c