Skip to content

Commit a60caf0

Browse files
shimodaykuba-moo
authored andcommitted
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: 3590918 ("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>
1 parent 3c27f3d commit a60caf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/renesas/rswitch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ static netdev_tx_t rswitch_start_xmit(struct sk_buff *skb, struct net_device *nd
14851485

14861486
if (rswitch_get_num_cur_queues(gq) >= gq->ring_size - 1) {
14871487
netif_stop_subqueue(ndev, 0);
1488-
return ret;
1488+
return NETDEV_TX_BUSY;
14891489
}
14901490

14911491
if (skb_put_padto(skb, ETH_ZLEN))

0 commit comments

Comments
 (0)