X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=net%2Fbridge%2Fbr_vlan.c;h=bb98984cd27d0edb68243f8ee6a027dfddc0861d;hb=02dc96ef6c25f990452c114c59d75c368a1f4c8f;hp=f5b2aeebbfe98d82a084c78be2747a14ebcbc938;hpb=98656d503dd62258bfa8aaf2cd702ad3491e0713;p=linux.git diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index f5b2aeebbfe9..bb98984cd27d 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c @@ -1281,6 +1281,8 @@ int br_vlan_get_info(const struct net_device *dev, u16 vid, p_vinfo->vid = vid; p_vinfo->flags = v->flags; + if (vid == br_get_pvid(vg)) + p_vinfo->flags |= BRIDGE_VLAN_INFO_PVID; return 0; } EXPORT_SYMBOL_GPL(br_vlan_get_info);