• Jiri Pirko's avatar
    devlink: add a command to set notification filter and use it for multicasts · 13b127d2
    Jiri Pirko authored
    Currently the user listening on a socket for devlink notifications
    gets always all messages for all existing instances, even if he is
    interested only in one of those. That may cause unnecessary overhead
    on setups with thousands of instances present.
    
    User is currently able to narrow down the devlink objects replies
    to dump commands by specifying select attributes.
    
    Allow similar approach for notifications. Introduce a new devlink
    NOTIFY_FILTER_SET which the user passes the select attributes. Store
    these per-socket and use them for filtering messages
    during multicast send.
    Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    13b127d2
netlink.c 9.21 KB