diff options
| author | Eric Dumazet <[email protected]> | 2024-02-27 09:24:11 +0000 | 
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-02-28 19:36:40 -0800 | 
| commit | 167487070d644a285ed863516c80b3c35ec929d6 (patch) | |
| tree | df97cdf2c48cada009cc49dbb434c923a202f068 /scripts/gcc-plugins/structleak_plugin.c | |
| parent | bbcf91053bb622c4c26a9bfc998d3b0c59227f10 (diff) | |
inet: use xa_array iterator to implement inet_netconf_dump_devconf()
1) inet_netconf_dump_devconf() can run under RCU protection
   instead of RTNL.
2) properly return 0 at the end of a dump, avoiding an
   an extra recvmsg() system call.
3) Do not use inet_base_seq() anymore, for_each_netdev_dump()
   has nice properties. Restarting a GETDEVCONF dump if a device has
   been added/removed or if net->ipv4.dev_addr_genid has changed is moot.
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions