[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240227092411.2315725-1-edumazet@google.com>
Date: Tue, 27 Feb 2024 09:24:08 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: David Ahern <dsahern@...nel.org>, Jiri Pirko <jiri@...dia.com>, netdev@...r.kernel.org,
eric.dumazet@...il.com, Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH net-next 0/3] inet: implement lockless RTM_GETNETCONF ops
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(-)
--
2.44.0.rc1.240.g4c46232300-goog
Powered by blists - more mailing lists