macvlan: Add netlink attribute for broadcast cutoff
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 28 Mar 2023 02:57:59 +0000 (10:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2023 08:03:32 +0000 (09:03 +0100)
commit954d1fa1ac93aa8a66f7d9a9ba545cf7f020d348
treebea8507cb6952108f9fba4decbc3ecd19cdcf6eb
parentd45276e75e90f1b67eb689fb3b4c556963796351
macvlan: Add netlink attribute for broadcast cutoff

Make the broadcast cutoff configurable through netlink.  Note
that macvlan is weird because there is no central device for
us to configure (the lowerdev could be anything).  So all the
options are duplicated over what could be thousands of child
devices.

IFLA_MACVLAN_BC_QUEUE_LEN took the approach of taking the maximum
of all child device settings.  This is unnecessary as we could
simply store the option in the port device and take the last
child device that gets updated as the value to use.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
include/uapi/linux/if_link.h
tools/include/uapi/linux/if_link.h