History

bridge: add br_vlan_get_proto()

This new function allows you to fetch the bridge port vlan protocol.

wenxu committed 7 years ago

Commit 31aed461 parent c54c7c62 files · +16 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/if_bridge.h+6−0
@@ -89,6 +89,7 @@ static inline bool br_multicast_router(const struct net_device *dev) · 88 unmodified lines
8989 bool br_vlan_enabled(const struct net_device *dev);
9090 int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid);
9191 int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid);
92+int br_vlan_get_proto(const struct net_device *dev, u16 *p_proto);
9293 int br_vlan_get_info(const struct net_device *dev, u16 vid,
9394 struct bridge_vlan_info *p_vinfo);
9495 #else
@@ -102,6 +103,11 @@ static inline int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid) · 7 unmodified lines
102103 return -EINVAL;
103104 }
104105
106+static inline int br_vlan_get_proto(const struct net_device *dev, u16 *p_proto)
107+{
108+ return -EINVAL;
109+}
110+
105111 static inline int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid)
106112 {
107113 return -EINVAL;

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