Skip to content

rfs: use high-order allocations for hash tables

Eric Dumazet netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 7 repliesApplied 7/7
  2. v27 patches 1 replySuperseded
  3. v17 patches 0 repliesSuperseded

Patches in v3 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net: add rps_tag_ptr type and helpersinclude/net/rps-types.h+24 -01 replyApplied
2/7net-sysfs: remove rcu field from 'struct rps_sock_flow_table'include/net/rps.h net/core/sysctl_net_core.c+3 -21 replyApplied
3/7net-sysfs: add rps_sock_flow_table_mask() helperinclude/net/rps.h net/core/dev.c net/core/sysctl_net_core.c+21 -131 replyApplied
4/7net-sysfs: use rps_tag_ptr and remove metadata from rps_sock_flow_tableDocumentation/networking/scaling.rst include/net/hotdata.h include/net/rps.h +2 more+86 -751 replyApplied
5/7net-sysfs: get rid of rps_dev_flow_locknet/core/net-sysfs.c+6 -121 replyApplied
6/7net-sysfs: remove rcu field from 'struct rps_dev_flow_table'include/net/rps.h net/core/net-sysfs.c+2 -101 replyApplied
7/7net-sysfs: use rps_tag_ptr and remove metadata from rps_dev_flow_tableinclude/net/netdev_rx_queue.h include/net/rps.h net/core/dev.c +1 more+67 -691 replyApplied

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchKuniyuki Iwashima
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 net-next 0/7] rfs: use high-order allocations for hash tables

This series adds rps_tag_ptr which encodes both a pointer and a size of a power-of-two hash table in a single long word.

RFS hash tables (global and per rx-queue) are converted to rps_tag_ptr.

This removes a cache line miss, and allows high-order allocations.

The global hash table can benefit from huge pages.

v2 and v3: address various kernel bots reports.

Eric Dumazet (7):
net: add rps_tag_ptr type and helpers
net-sysfs: remove rcu field from 'struct rps_sock_flow_table'
net-sysfs: add rps_sock_flow_table_mask() helper
net-sysfs: use rps_tag_ptr and remove metadata from
rps_sock_flow_table
net-sysfs: get rid of rps_dev_flow_lock
net-sysfs: remove rcu field from 'struct rps_dev_flow_table'
net-sysfs: use rps_tag_ptr and remove metadata from rps_dev_flow_table

 Documentation/networking/scaling.rst | 13 ++--
 include/net/hotdata.h                |  5 +-
 include/net/netdev_rx_queue.h        |  3 +-
 include/net/rps-types.h              | 24 +++++++
 include/net/rps.h                    | 49 ++++++---------
 net/core/dev.c                       | 61 +++++++++++-------
 net/core/net-sysfs.c                 | 83 ++++++++++--------------
 net/core/sysctl_net_core.c           | 94 +++++++++++++++-------------
 8 files changed, 180 insertions(+), 152 deletions(-)
 create mode 100644 include/net/rps-types.h
Signature · 1 line
2.53.0.473.g4a7958ca14-goog