net: renesas: rswitch: Fix return value in error path of xmit
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 29 May 2023 07:38:17 +0000 (16:38 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Jun 2023 16:57:08 +0000 (09:57 -0700)
commita60caf039e96d806b1ced893242bae82ba3ccf0d
tree1c67bae6b9e39572e03e55aa6d96a289551ffe54
parent3c27f3d53d588618d81d30d6712459a3cc9489b8
net: renesas: rswitch: Fix return value in error path of xmit

Fix return value in the error path of rswitch_start_xmit(). If TX
queues are full, this function should return NETDEV_TX_BUSY.

Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20230529073817.1145208-1-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/renesas/rswitch.c