netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATH net 0/2] add drop reason when do fragment
@ 2025-10-24  6:23 Yonglong Li
  2025-10-24  6:23 ` [PATH net 1/2] net: ip: add drop reasons when handling ip fragments Yonglong Li
  2025-10-24  6:23 ` [PATH net 2/2] net: ipv6: use drop reasons in ip6_fragment Yonglong Li
  0 siblings, 2 replies; 7+ messages in thread
From: Yonglong Li @ 2025-10-24  6:23 UTC (permalink / raw)
  To: netdev; +Cc: davem, dsahern, edumazet, pabeni, kuba, horms, liyonglong

Add a new drop reason FRAG_FAILED to trace do fragment failed.
And use drop reasons PKT_TOO_BIG when pkt too big.

Reasons show up as:

perf record -e skb:kfree_skb -a; perf script

  swapper 0 [005] 154.086537: skb:kfree_skb: ... location=ip6_fragment reason: PKT_TOO_BIG
  swapper 0 [005] 154.086540: skb:kfree_skb: ... location=ip6_fragment reason: PKT_TOO_BIG
  swapper 0 [005] 154.086544: skb:kfree_skb: ... location=ip6_fragment reason: PKT_TOO_BIG

Yonglong Li (2):
  net: ip: add drop reasons when handling ip fragments
  net: ipv6: use drop reasons in ip6_fragment

 include/net/dropreason-core.h | 3 +++
 net/ipv4/ip_output.c          | 6 +++---
 net/ipv6/ip6_output.c         | 6 ++++--
 3 files changed, 10 insertions(+), 5 deletions(-)

-- 
1.8.3.1


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

end of thread, other threads:[~2025-10-24 15:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24  6:23 [PATH net 0/2] add drop reason when do fragment Yonglong Li
2025-10-24  6:23 ` [PATH net 1/2] net: ip: add drop reasons when handling ip fragments Yonglong Li
2025-10-24  6:43   ` Eric Dumazet
2025-10-24  9:56     ` YonglongLi
2025-10-24 15:57     ` Simon Horman
2025-10-24  6:23 ` [PATH net 2/2] net: ipv6: use drop reasons in ip6_fragment Yonglong Li
2025-10-24  6:45   ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).