]> git.baikalelectronics.ru Git - kernel.git/commit
net: netlink: add NLM_F_BULK delete request modifier
authorNikolay Aleksandrov <razor@blackwall.org>
Wed, 13 Apr 2022 10:51:54 +0000 (13:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 11:46:26 +0000 (12:46 +0100)
commit33c4642b72e87a432019a0a1a07a79d2585f660f
tree427438f40b05646cf19890c2c08f8c84a5e9d041
parent6b8a1e595915d10b51da72684b11dcf15467cffa
net: netlink: add NLM_F_BULK delete request modifier

Add a new delete request modifier called NLM_F_BULK which, when
supported, would cause the request to delete multiple objects. The flag
is a convenient way to signal that a multiple delete operation is
requested which can be gradually added to different delete requests. In
order to make sure older kernels will error out if the operation is not
supported instead of doing something unintended we have to break a
required condition when implementing support for this flag, f.e. for
neighbors we will omit the mandatory mac address attribute.
Initially it will be used to add flush with filtering support for bridge
fdbs, but it also opens the door to add similar support to others.

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netlink.h