diff options
author | Nikolay Aleksandrov <razor@blackwall.org> | 2022-04-13 13:51:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-13 12:46:26 +0100 |
commit | 9e83425993f38bb89e0ea07849ba0039a748e85b (patch) | |
tree | 9d83db4b543569218adbff98cd730dcf2369dfa3 /net/dcb | |
parent | 1306d5362a591493a2d07f685ed2cc480dcda320 (diff) | |
download | linux-stable-9e83425993f38bb89e0ea07849ba0039a748e85b.tar.gz linux-stable-9e83425993f38bb89e0ea07849ba0039a748e85b.tar.bz2 linux-stable-9e83425993f38bb89e0ea07849ba0039a748e85b.zip |
net: rtnetlink: add NLM_F_BULK support to rtnl_fdb_del
When NLM_F_BULK is specified in a fdb del message we need to handle it
differently. First since this is a new call we can strictly validate the
passed attributes, at first only ifindex and vlan are allowed as these
will be the initially supported filter attributes, any other attribute
is rejected. The mac address is no longer mandatory, but we use it
to error out in older kernels because it cannot be specified with bulk
request (the attribute is not allowed) and then we have to dispatch
the call to ndo_fdb_del_bulk if the device supports it. The del bulk
callback can do further validation of the attributes if necessary.
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
0 files changed, 0 insertions, 0 deletions