mbox series

[net-next,0/3] inet: implement lockless RTM_GETNETCONF ops

Message ID 20240227092411.2315725-1-edumazet@google.com (mailing list archive)
Headers show
Series inet: implement lockless RTM_GETNETCONF ops | expand

Message

Eric Dumazet Feb. 27, 2024, 9:24 a.m. UTC
This series removes RTNL use for RTM_GETNETCONF operations on AF_INET.

- Annotate data-races to avoid possible KCSAN splats.

- "ip -4 netconf show dev XXX" can be implemented without RTNL [1]

- "ip -4 netconf" dumps can be implemented using RCU instead of RTNL [1]

[1] This only refers to RTM_GETNETCONF operation, "ip" command
    also uses RTM_GETLINK dumps which are using RTNL at this moment.

Eric Dumazet (3):
  inet: annotate devconf data-races
  inet: do not use RTNL in inet_netconf_get_devconf()
  inet: use xa_array iterator to implement inet_netconf_dump_devconf()

 include/linux/inetdevice.h |  14 ++--
 net/ipv4/devinet.c         | 147 +++++++++++++++++--------------------
 net/ipv4/igmp.c            |   4 +-
 net/ipv4/proc.c            |   2 +-
 net/ipv4/route.c           |   4 +-
 5 files changed, 81 insertions(+), 90 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 29, 2024, 3:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 27 Feb 2024 09:24:08 +0000 you wrote:
> This series removes RTNL use for RTM_GETNETCONF operations on AF_INET.
> 
> - Annotate data-races to avoid possible KCSAN splats.
> 
> - "ip -4 netconf show dev XXX" can be implemented without RTNL [1]
> 
> - "ip -4 netconf" dumps can be implemented using RCU instead of RTNL [1]
> 
> [...]

Here is the summary with links:
  - [net-next,1/3] inet: annotate devconf data-races
    https://git.kernel.org/netdev/net-next/c/0598f8f3bb77
  - [net-next,2/3] inet: do not use RTNL in inet_netconf_get_devconf()
    https://git.kernel.org/netdev/net-next/c/bbcf91053bb6
  - [net-next,3/3] inet: use xa_array iterator to implement inet_netconf_dump_devconf()
    https://git.kernel.org/netdev/net-next/c/167487070d64

You are awesome, thank you!