netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: drop_monitor: support drop reason
@ 2022-02-08  7:28 menglong8.dong
  2022-02-08  7:28 ` [PATCH net-next 1/2] net: skb: introduce SKB_DR_MAX_LEN menglong8.dong
  2022-02-08  7:28 ` [PATCH v7 net-next 2/2] net: drop_monitor: support drop reason menglong8.dong
  0 siblings, 2 replies; 5+ messages in thread
From: menglong8.dong @ 2022-02-08  7:28 UTC (permalink / raw)
  To: rostedt, idosch
  Cc: mingo, nhorman, davem, kuba, imagedong, dsahern, linux-kernel,
	netdev

From: Menglong Dong <imagedong@tencent.com>

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(-)

-- 
2.27.0


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

end of thread, other threads:[~2022-02-09  3:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-08  7:28 [PATCH net-next 0/2] net: drop_monitor: support drop reason menglong8.dong
2022-02-08  7:28 ` [PATCH net-next 1/2] net: skb: introduce SKB_DR_MAX_LEN menglong8.dong
2022-02-08  7:28 ` [PATCH v7 net-next 2/2] net: drop_monitor: support drop reason menglong8.dong
2022-02-08 14:58   ` Ido Schimmel
2022-02-09  2:49     ` Menglong Dong

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).