netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] reorganize the code of the enum skb_drop_reason
@ 2022-05-30  8:11 menglong8.dong
  2022-05-30  8:11 ` [PATCH net-next v2 1/3] net: skb: move enum skb_drop_reason to standalone header file menglong8.dong
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: menglong8.dong @ 2022-05-30  8:11 UTC (permalink / raw)
  To: kuba
  Cc: rostedt, mingo, davem, edumazet, pabeni, nhorman, ast, daniel,
	andrii, kafai, songliubraving, yhs, john.fastabend, kpsingh,
	imagedong, dsahern, talalahmad, keescook, linux-kernel, netdev,
	bpf

From: Menglong Dong <imagedong@tencent.com>

The code of skb_drop_reason is a little wild, let's reorganize them.
Three things and three patches:

1) Move the enum 'skb_drop_reason' and related function to the standalone
   header 'dropreason.h', as Jakub Kicinski suggested, as the skb drop
   reasons are getting more and more.

2) use auto-generation to generate the source file that convert enum
   skb_drop_reason to string.

3) make the comment of skb drop reasons kernel-doc style.

Changes since v1:
1/3: move dropreason.h from include/linux/ to include/net/ (Jakub Kicinski)
2/3: generate source file instead of header file for drop reasons string
     array (Jakub Kicinski)
3/3: use inline comment (Jakub Kicinski)

Menglong Dong (3):
  net: skb: move enum skb_drop_reason to standalone header file
  net: skb: use auto-generation to convert skb drop reason to string
  net: dropreason: reformat the comment fo skb drop reasons

 include/linux/skbuff.h     | 179 +------------------------
 include/net/dropreason.h   | 259 +++++++++++++++++++++++++++++++++++++
 include/trace/events/skb.h |  89 +------------
 net/core/.gitignore        |   1 +
 net/core/Makefile          |  23 +++-
 net/core/drop_monitor.c    |  13 --
 6 files changed, 284 insertions(+), 280 deletions(-)
 create mode 100644 include/net/dropreason.h
 create mode 100644 net/core/.gitignore

-- 
2.36.1


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

end of thread, other threads:[~2022-06-01  3:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30  8:11 [PATCH net-next v2 0/3] reorganize the code of the enum skb_drop_reason menglong8.dong
2022-05-30  8:11 ` [PATCH net-next v2 1/3] net: skb: move enum skb_drop_reason to standalone header file menglong8.dong
2022-05-30  8:12 ` [PATCH net-next v2 2/3] net: skb: use auto-generation to convert skb drop reason to string menglong8.dong
2022-05-30 10:01   ` kernel test robot
2022-05-30 14:23     ` Philip Li
2022-05-30 15:25   ` kernel test robot
2022-05-30 20:13   ` Jakub Kicinski
2022-06-01  3:27     ` Menglong Dong
2022-06-01  3:43       ` Jakub Kicinski
2022-05-30  8:12 ` [PATCH net-next v2 3/3] net: dropreason: reformat the comment fo skb drop reasons menglong8.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).