History

bridge: Add netlink interface to configure vlans on bridge ports

Add a netlink interface to add and remove vlan configuration on bridge port. The interface uses the RTM_SETLINK message and encodes the vlan configuration inside the IFLA_AF_SPEC. It is possble to include multiple vlans to either add or remove in a single message.

Vlad Yasevich committed 13 years ago

Commit 407af321 parent 85f46c67 files · +207 −18Browse files

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

Unified · Split

include/uapi/linux/if_bridge.h+9−0
@@ -108,15 +108,24 @@ struct __fdb_entry { · 107 unmodified lines
108108 * [IFLA_AF_SPEC] = {
109109 * [IFLA_BRIDGE_FLAGS]
110110 * [IFLA_BRIDGE_MODE]
111+ * [IFLA_BRIDGE_VLAN_INFO]
111112 * }
112113 */
113114 enum {
114115 IFLA_BRIDGE_FLAGS,
115116 IFLA_BRIDGE_MODE,
117+ IFLA_BRIDGE_VLAN_INFO,
116118 __IFLA_BRIDGE_MAX,
117119 };
118120 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)
119121
122+#define BRIDGE_VLAN_INFO_MASTER (1<<0) /* Operate on Bridge device as well */
123+
124+struct bridge_vlan_info {
125+ u16 flags;
126+ u16 vid;
127+};
128+
120129 /* Bridge multicast database attributes
121130 * [MDBA_MDB] = {
122131 * [MDBA_MDB_ENTRY] = {

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