Files
linux-stable-mirror/include/linux
Yajun Deng 5247dbf16c net/core: Introduce netdev_core_stats_inc()
Although there is a kfree_skb_reason() helper function that can be used to
find the reason why this skb is dropped, but most callers didn't increase
one of rx_dropped, tx_dropped, rx_nohandler and rx_otherhost_dropped.

For the users, people are more concerned about why the dropped in ip
is increasing.

Introduce netdev_core_stats_inc() for trace the caller of
dev_core_stats_*_inc().

Also, add __code to netdev_core_stats_alloc(), as it's called with small
probability. And add noinline make sure netdev_core_stats_inc was never
inlined.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Suggested-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-10-11 10:07:40 +01:00
..
2023-10-05 09:13:42 -07:00
2023-09-18 09:28:22 +01:00
2023-09-11 15:24:16 -07:00
2023-09-01 00:29:34 +02:00
2023-10-03 07:34:51 -07:00
2023-09-13 10:48:48 +02:00
2023-09-29 17:20:46 -07:00
2023-09-02 15:17:33 -07:00
2023-09-18 11:37:08 +01:00
2023-09-16 13:42:34 +01:00
2023-09-14 16:16:36 +02:00