File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
drivers/net/ethernet/realtek Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -4349,7 +4349,8 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
4349
4349
if (unlikely (!rtl_tx_slots_avail (tp ))) {
4350
4350
if (net_ratelimit ())
4351
4351
netdev_err (dev , "BUG! Tx Ring full when queue awake!\n" );
4352
- goto err_stop_0 ;
4352
+ netif_stop_queue (dev );
4353
+ return NETDEV_TX_BUSY ;
4353
4354
}
4354
4355
4355
4356
opts [1 ] = rtl8169_tx_vlan_tag (skb );
@@ -4405,11 +4406,6 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
4405
4406
dev_kfree_skb_any (skb );
4406
4407
dev -> stats .tx_dropped ++ ;
4407
4408
return NETDEV_TX_OK ;
4408
-
4409
- err_stop_0 :
4410
- netif_stop_queue (dev );
4411
- dev -> stats .tx_dropped ++ ;
4412
- return NETDEV_TX_BUSY ;
4413
4409
}
4414
4410
4415
4411
static unsigned int rtl_last_frag_len (struct sk_buff * skb )
You can’t perform that action at this time.
0 commit comments