This new function allows you to fetch the bridge port vlan protocol.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -89,6 +89,7 @@ static inline bool br_multicast_router(const struct net_device *dev) · 88 unmodified lines | ||
| 89 | 89 | bool br_vlan_enabled(const struct net_device *dev); |
| 90 | 90 | int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid); |
| 91 | 91 | 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); | |
| 92 | 93 | int br_vlan_get_info(const struct net_device *dev, u16 vid, |
| 93 | 94 | struct bridge_vlan_info *p_vinfo); |
| 94 | 95 | #else |
| @@ -102,6 +103,11 @@ static inline int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid) · 7 unmodified lines | ||
| 102 | 103 | return -EINVAL; |
| 103 | 104 | } |
| 104 | 105 | |
| 106 | +static inline int br_vlan_get_proto(const struct net_device *dev, u16 *p_proto) | |
| 107 | +{ | |
| 108 | + return -EINVAL; | |
| 109 | +} | |
| 110 | + | |
| 105 | 111 | static inline int br_vlan_get_pvid_rcu(const struct net_device *dev, u16 *p_pvid) |
| 106 | 112 | { |
| 107 | 113 | return -EINVAL; |