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
89bool br_vlan_enabled(const struct net_device *dev);89bool br_vlan_enabled(const struct net_device *dev);
90int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid);90int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid);
91int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid);91int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid);
92int br_vlan_get_proto(const struct net_device *dev, u16 *p_proto);
92int br_vlan_get_info(const struct net_device *dev, u16 vid,93int br_vlan_get_info(const struct net_device *dev, u16 vid,
93 struct bridge_vlan_info *p_vinfo);94 struct bridge_vlan_info *p_vinfo);
94#else95#else
@@ -102,6 +103,11 @@ static inline int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid) · 7 unmodified lines
102 return -EINVAL;103 return -EINVAL;
103}104}
104 105
106static inline int br_vlan_get_proto(const struct net_device *dev, u16 *p_proto)
107{
108 return -EINVAL;
109}
110
105static inline int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid)111static inline int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid)
106{112{
107 return -EINVAL;113 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