|
@@ -643,11 +643,8 @@ static inline int br_vlan_get_tag(const struct sk_buff *skb, u16 *vid)
|
|
|
|
|
|
static inline u16 br_get_pvid(const struct net_port_vlans *v)
|
|
static inline u16 br_get_pvid(const struct net_port_vlans *v)
|
|
{
|
|
{
|
|
- /* Return just the VID if it is set, or VLAN_N_VID (invalid vid) if
|
|
|
|
- * vid wasn't set
|
|
|
|
- */
|
|
|
|
smp_rmb();
|
|
smp_rmb();
|
|
- return v->pvid ?: VLAN_N_VID;
|
|
|
|
|
|
+ return v->pvid;
|
|
}
|
|
}
|
|
|
|
|
|
static inline int br_vlan_enabled(struct net_bridge *br)
|
|
static inline int br_vlan_enabled(struct net_bridge *br)
|
|
@@ -746,7 +743,7 @@ static inline u16 br_vlan_get_tag(const struct sk_buff *skb, u16 *tag)
|
|
}
|
|
}
|
|
static inline u16 br_get_pvid(const struct net_port_vlans *v)
|
|
static inline u16 br_get_pvid(const struct net_port_vlans *v)
|
|
{
|
|
{
|
|
- return VLAN_N_VID; /* Returns invalid vid */
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static inline int br_vlan_enabled(struct net_bridge *br)
|
|
static inline int br_vlan_enabled(struct net_bridge *br)
|