Skip to content

net: drop netif_attrmask_next*()

Yury Norov lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: move setup code out of mutex in __netif_set_xps_queue()net/core/dev.c+4 -30 replies
2/4net: merge XPS_CPU_DEV_MAPS_SIZE and XPS_RXQ_DEV_MAPS_SIZE macrosinclude/linux/netdevice.h net/core/dev.c+3 -70 replies
3/4net: initialize online_mask unconditionally in __netif_set_xps_queue()net/core/dev.c+13 -90 replies
4/4net: fix opencoded for_each_and_bit() in __netif_set_xps_queue()include/linux/netdevice.h net/core/dev.c+1 -481 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] net: drop netif_attrmask_next*()

netif_attrmask_next_and() generates warnings if CONFIG_DEBUG_PER_CPU_MAPS is enabled. It is used in a single place. netif_attrmask_next() is not used at all. With some rework of __netif_set_xps_queue(), we can drop both functions, switch the code to well-tested bitmap API and fix the warning.

v1: https://lore.kernel.org/netdev/[email protected]/T/
v2: Fix missed bitmap initialization in patch #3.

Yury Norov (4):
net: move setup code out of mutex in __netif_set_xps_queue()
net: merge XPS_CPU_DEV_MAPS_SIZE and XPS_RXQ_DEV_MAPS_SIZE macros
net: initialize online_mask unconditionally in __netif_set_xps_queue()
net: fix opencoded for_each_and_bit() in __netif_set_xps_queue()

 include/linux/netdevice.h | 53 ++-------------------------------------
 net/core/dev.c            | 35 ++++++++++++++------------
 2 files changed, 21 insertions(+), 67 deletions(-)
Signature · 1 line
2.34.1