genetlink: introduce helpers to do filtered multicast
authorJiri Pirko <jiri@nvidia.com>
Sat, 16 Dec 2023 12:29:59 +0000 (13:29 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Dec 2023 14:31:40 +0000 (15:31 +0100)
commit971b4ad88293bef00160e1d38659077fe3a93af6
treeb7a311c9a7b2d6b4b0aa694185eb46069ddabaad
parent403863e985e8eba608d53b2907caaf37b6176290
genetlink: introduce helpers to do filtered multicast

Currently it is possible for netlink kernel user to pass custom
filter function to broadcast send function netlink_broadcast_filtered().
However, this is not exposed to multicast send and to generic
netlink users.

Extend the api and introduce a netlink helper nlmsg_multicast_filtered()
and a generic netlink helper genlmsg_multicast_netns_filtered()
to allow generic netlink families to specify filter function
while sending multicast messages.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/genetlink.h
include/net/netlink.h