Skip to content

net: drop_monitor: support drop reason

[email protected] lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 0 repliesNew

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: skb: introduce SKB_DR_MAX_LENinclude/trace/events/skb.h+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: drop_monitor: support drop reason

From: Menglong Dong <[email protected]>

This series patches is to make drop monitor supporting drop reason and report it to user space.

In the first patch, we define the macro 'SKB_DR_MAX_LEN', which is the max string length of drop reasons. We introduce this macro as drop_monitor need to know the memory allocated for NET_DM_ATTR_REASON in the second patch.

In the second patch, we report drop reasons as string to user space in drop_monitor.

Menglong Dong (2):
net: skb: introduce SKB_DR_MAX_LEN
net: drop_monitor: support drop reason

 include/trace/events/skb.h       |  5 +++++
 include/uapi/linux/net_dropmon.h |  1 +
 net/core/drop_monitor.c          | 34 ++++++++++++++++++++++++++++----
 3 files changed, 36 insertions(+), 4 deletions(-)
Signature · 1 line
2.27.0