1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 08:35:19 -05:00
linux/net/core
Kuniyuki Iwashima 07cc7b0b94 rtnetlink: Add bulk registration helpers for rtnetlink message handlers.
Before commit addf9b90de ("net: rtnetlink: use rcu to free rtnl message
handlers"), once rtnl_msg_handlers[protocol] was allocated, the following
rtnl_register_module() for the same protocol never failed.

However, after the commit, rtnl_msg_handler[protocol][msgtype] needs to
be allocated in each rtnl_register_module(), so each call could fail.

Many callers of rtnl_register_module() do not handle the returned error,
and we need to add many error handlings.

To handle that easily, let's add wrapper functions for bulk registration
of rtnetlink message handlers.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-10 15:39:35 +02:00
..
bpf_sk_storage.c
datagram.c
dev.c net: add more sanity checks to qdisc_pkt_len_init() 2024-10-01 11:47:05 +02:00
dev.h
dev_addr_lists.c
dev_addr_lists_test.c
dev_ioctl.c
devmem.c
devmem.h
drop_monitor.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dst.c net: do not delay dst_entries_add() in dst_release() 2024-10-10 11:28:17 +02:00
dst_cache.c
failover.c
fib_notifier.c
fib_rules.c
filter.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
flow_dissector.c
flow_offload.c
gen_estimator.c
gen_stats.c
gro.c net: Add netif_get_gro_max_size helper for GRO 2024-10-01 10:48:51 +02:00
gro_cells.c
gso.c
hotdata.c
hwbm.c
ieee8021q_helpers.c
link_watch.c
lwt_bpf.c
lwtunnel.c
Makefile
mp_dmabuf_devmem.h
neighbour.c
net-procfs.c
net-sysfs.c
net-sysfs.h
net-traces.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
net_namespace.c
net_test.c
netclassid_cgroup.c
netdev-genl-gen.c
netdev-genl-gen.h
netdev-genl.c
netdev_rx_queue.c
netevent.c
netmem_priv.h
netpoll.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
netprio_cgroup.c
of_net.c
page_pool.c
page_pool_priv.h
page_pool_user.c
pktgen.c
ptp_classifier.c
request_sock.c
rtnetlink.c rtnetlink: Add bulk registration helpers for rtnetlink message handlers. 2024-10-10 15:39:35 +02:00
scm.c
secure_seq.c
selftests.c
skbuff.c
skmsg.c
sock.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
sock_destructor.h
sock_diag.c
sock_map.c bpf-next-6.12-struct-fd 2024-09-24 14:54:26 -07:00
sock_reuseport.c
stream.c
sysctl_net_core.c
timestamping.c
tso.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
utils.c
xdp.c