public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v8 0/3] Use enum to represent the NAPI threaded state
@ 2025-07-23  1:30 Samiullah Khawaja
  2025-07-23  1:30 ` [PATCH net-next v8 1/3] net: Create separate gro_flush_normal function Samiullah Khawaja
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Samiullah Khawaja @ 2025-07-23  1:30 UTC (permalink / raw)
  To: Jakub Kicinski, David S . Miller , Eric Dumazet, Paolo Abeni,
	almasrymina, willemb
  Cc: netdev, skhawaja

Instead of using 0/1 to represent the NAPI threaded states use enum
(disabled/enabled) to represent the NAPI threaded states.

This patch series is a subset of patches from the following patch
series:
https://lore.kernel.org/all/20250718232052.1266188-1-skhawaja@google.com/

The first 3 patches are being sent separately as per the feedback to
replace the usage of 0/1 as NAPI threaded states with enum. See:
https://lore.kernel.org/all/20250721164856.1d2208e4@kernel.org/

v8:
 - Add a kdoc for netif_threaded_enable
 - Renamed netif_set_threaded_hint to netif_threaded_enable.
 - Added cover letter.
 - Return type of netif_threaded_enable is changed to void

Samiullah Khawaja (3):
  net: Create separate gro_flush_normal function
  net: Use netif_threaded_enable instead of netif_set_threaded in
    drivers
  net: define an enum for the napi threaded state

 Documentation/netlink/specs/netdev.yaml       | 13 ++++---
 .../networking/net_cachelines/net_device.rst  |  2 +-
 .../net/ethernet/atheros/atl1c/atl1c_main.c   |  2 +-
 drivers/net/ethernet/mellanox/mlxsw/pci.c     |  2 +-
 drivers/net/ethernet/renesas/ravb_main.c      |  2 +-
 drivers/net/wireguard/device.c                |  2 +-
 drivers/net/wireless/ath/ath10k/snoc.c        |  2 +-
 include/linux/netdevice.h                     | 12 +++---
 include/net/gro.h                             |  6 +++
 include/uapi/linux/netdev.h                   |  5 +++
 kernel/bpf/cpumap.c                           |  3 +-
 net/core/dev.c                                | 37 +++++++++++++------
 net/core/dev.h                                | 13 +++++--
 net/core/dev_api.c                            |  3 +-
 net/core/netdev-genl-gen.c                    |  2 +-
 net/core/netdev-genl.c                        |  2 +-
 tools/include/uapi/linux/netdev.h             |  5 +++
 tools/testing/selftests/net/nl_netdev.py      | 36 +++++++++---------
 18 files changed, 95 insertions(+), 54 deletions(-)


base-commit: fbd47be098b542dd8ad7beb42c88e7726d14cfb6
-- 
2.50.0.727.gbf7dc18ff4-goog


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

end of thread, other threads:[~2025-07-25  2:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23  1:30 [PATCH net-next v8 0/3] Use enum to represent the NAPI threaded state Samiullah Khawaja
2025-07-23  1:30 ` [PATCH net-next v8 1/3] net: Create separate gro_flush_normal function Samiullah Khawaja
2025-07-23  1:30 ` [PATCH net-next v8 2/3] net: Use netif_threaded_enable instead of netif_set_threaded in drivers Samiullah Khawaja
2025-07-23  1:30 ` [PATCH net-next v8 3/3] net: define an enum for the napi threaded state Samiullah Khawaja
2025-07-25  2:00 ` [PATCH net-next v8 0/3] Use enum to represent the NAPI " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox