public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: dlink: count tx_dropped when dropping skb on link down
@ 2026-01-06 12:23 Yeounsu Moon
  2026-01-06 13:44 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Yeounsu Moon @ 2026-01-06 12:23 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni
  Cc: netdev, linux-kernel, Yeounsu Moon

Increment tx_dropped when dropping the skb due to link down.

Tested-on: D-Link DGE-550T Rev-A3
Signed-off-by: Yeounsu Moon <yyyynoom@gmail.com>
---
 drivers/net/ethernet/dlink/dl2k.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c
index 846d58c769ea..edc6cd64ac56 100644
--- a/drivers/net/ethernet/dlink/dl2k.c
+++ b/drivers/net/ethernet/dlink/dl2k.c
@@ -733,6 +733,7 @@ start_xmit (struct sk_buff *skb, struct net_device *dev)
 	u64 tfc_vlan_tag = 0;
 
 	if (np->link_status == 0) {	/* Link Down */
+		dev->stats.tx_dropped++;
 		dev_kfree_skb_any(skb);
 		return NETDEV_TX_OK;
 	}
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-13 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 12:23 [PATCH net-next] net: dlink: count tx_dropped when dropping skb on link down Yeounsu Moon
2026-01-06 13:44 ` Andrew Lunn
2026-01-13 11:30   ` Yeounsu Moon
2026-01-13 22:01     ` Andrew Lunn
2026-01-13 11:46   ` Moon Yeounsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox