History

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.

Herbert Xu committed 3 years ago

Commit 954d1fa1 parent d45276e3 files · +31 −2Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -635,6 +635,7 @@ enum { · 634 unmodified lines
635 IFLA_MACVLAN_MACADDR_COUNT,635 IFLA_MACVLAN_MACADDR_COUNT,
636 IFLA_MACVLAN_BC_QUEUE_LEN,636 IFLA_MACVLAN_BC_QUEUE_LEN,
637 IFLA_MACVLAN_BC_QUEUE_LEN_USED,637 IFLA_MACVLAN_BC_QUEUE_LEN_USED,
638 IFLA_MACVLAN_BC_CUTOFF,
638 __IFLA_MACVLAN_MAX,639 __IFLA_MACVLAN_MAX,
639};640};
640 641

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t