linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/7] netpoll: Untangle netconsole and netpoll
@ 2025-06-11 14:18 Breno Leitao
  2025-06-11 14:18 ` [PATCH net-next v2 1/7] netpoll: remove __netpoll_cleanup from exported API Breno Leitao
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Breno Leitao @ 2025-06-11 14:18 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Andrew Lunn, Shuah Khan
  Cc: netdev, linux-kernel, linux-kselftest, Breno Leitao, kernel-team

Initially netpoll and netconsole were created together, and some
functions are in the wrong file. Seperate netconsole-only functions
in netconsole, avoiding exports.

1. Expose netpoll logging macros in the public header to enable consistent
   log formatting across netpoll consumers.

2. Relocate netconsole-specific functions from netpoll to the netconsole
   module where they are actually used, reducing unnecessary coupling.

3. Remove unnecessary function exports

4. Rename netpoll parsing functions in netconsole to better reflect their
   specific usage.

5. Create a test to check that cmdline works fine. This was in my todo
   list since [1], this was a good time to add it here to make sure this
   patchset doesn't regress.

PS: The code was split in a way that it is easy to review. When copying
the functions from netpoll to netconsole, I do not change than other
than adding `static`. This will make checkpatch unhappy, but, further
patches will address the issues. It is done this way to make it easy for
reviewers.

Link: https://lore.kernel.org/netdev/Z36TlACdNMwFD7wv@dev-ushankar.dev.purestorage.com/ [1]
Signed-off-by: Breno Leitao <leitao@debian.org>
---
Changes in v2:
- No change in the code. Just rebased the patches onto netnext/main
- Link to v1: https://lore.kernel.org/r/20250610-rework-v1-0-7cfde283f246@debian.org

---
Breno Leitao (7):
      netpoll: remove __netpoll_cleanup from exported API
      netpoll: expose netpoll logging macros in public header
      netpoll: relocate netconsole-specific functions to netconsole module
      netpoll: move netpoll_print_options to netconsole
      netconsole: rename functions to better reflect their purpose
      netconsole: improve code style in parser function
      selftest: netconsole: add test for cmdline configuration

 drivers/net/netconsole.c                           | 137 ++++++++++++++++++++-
 include/linux/netpoll.h                            |  10 +-
 net/core/netpoll.c                                 | 136 +-------------------
 tools/testing/selftests/drivers/net/Makefile       |   1 +
 .../selftests/drivers/net/lib/sh/lib_netcons.sh    |  39 +++++-
 .../selftests/drivers/net/netcons_cmdline.sh       |  52 ++++++++
 6 files changed, 228 insertions(+), 147 deletions(-)
---
base-commit: 0097c4195b1d0ca57d15979626c769c74747b5a0
change-id: 20250603-rework-c175cad8d22e

Best regards,
-- 
Breno Leitao <leitao@debian.org>


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

end of thread, other threads:[~2025-06-13 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 14:18 [PATCH net-next v2 0/7] netpoll: Untangle netconsole and netpoll Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 1/7] netpoll: remove __netpoll_cleanup from exported API Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 2/7] netpoll: expose netpoll logging macros in public header Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 3/7] netpoll: relocate netconsole-specific functions to netconsole module Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 4/7] netpoll: move netpoll_print_options to netconsole Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 5/7] netconsole: rename functions to better reflect their purpose Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 6/7] netconsole: improve code style in parser function Breno Leitao
2025-06-11 14:18 ` [PATCH net-next v2 7/7] selftest: netconsole: add test for cmdline configuration Breno Leitao
2025-06-12 22:05   ` Jakub Kicinski
2025-06-13 11:22     ` Breno Leitao

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