Skip to content

net: remove some rcu_bh cruft

Eric Dumazet netdev 1 version 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

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ipv6: flowlabel: do not disable BH where not needednet/ipv6/ip6_flowlabel.c+27 -240 repliesApplied
2/3neighbour: switch to standard rcu, instead of rcu_bhinclude/net/arp.h include/net/ndisc.h include/net/neighbour.h +10 more+87 -830 repliesApplied
3/3net: remove rcu_dereference_bh_rtnl()include/linux/rtnetlink.h+0 -100 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/3] net: remove some rcu_bh cruft

There is no point using rcu_bh variant hoping to free objects faster, especially hen using call_rcu() or kfree_rcu().

Disabling/enabling BH has a non-zero cost, and adds distracting hot spots in kernel profilesm eg in ip6_xmit().

Eric Dumazet (3):
ipv6: flowlabel: do not disable BH where not needed
neighbour: switch to standard rcu, instead of rcu_bh
net: remove rcu_dereference_bh_rtnl()

 include/linux/rtnetlink.h | 10 ------
 include/net/arp.h         |  8 ++---
 include/net/ndisc.h       | 12 ++++----
 include/net/neighbour.h   |  6 ++--
 include/net/nexthop.h     |  6 ++--
 net/core/filter.c         | 16 ++++++----
 net/core/neighbour.c      | 64 +++++++++++++++++++--------------------
 net/ipv4/fib_semantics.c  |  4 +--
 net/ipv4/ip_output.c      |  6 ++--
 net/ipv4/nexthop.c        |  8 ++---
 net/ipv4/route.c          |  4 +--
 net/ipv6/addrconf.c       | 14 ++++-----
 net/ipv6/ip6_flowlabel.c  | 51 ++++++++++++++++---------------
 net/ipv6/ip6_output.c     | 10 +++---
 net/ipv6/route.c          | 12 ++++----
 15 files changed, 114 insertions(+), 117 deletions(-)
Signature · 1 line
2.40.0.rc2.332.ga46443480c-goog