Re: [PATCH net-next 2/6] net: bridge: Populate the pvid flag in br_vlan_get_info

2019-08-19 Thread Nikolay Aleksandrov
On 8/20/19 2:59 AM, Vladimir Oltean wrote: > Currently this simplified code snippet fails: > > br_vlan_get_pvid(netdev, &pvid); > br_vlan_get_info(netdev, pvid, &vinfo); > ASSERT(!(vinfo.flags & BRIDGE_VLAN_INFO_PVID)); > > It is intuitive that the pvid of a netdevice should hav

[PATCH net-next 2/6] net: bridge: Populate the pvid flag in br_vlan_get_info

2019-08-19 Thread Vladimir Oltean
Currently this simplified code snippet fails: br_vlan_get_pvid(netdev, &pvid); br_vlan_get_info(netdev, pvid, &vinfo); ASSERT(!(vinfo.flags & BRIDGE_VLAN_INFO_PVID)); It is intuitive that the pvid of a netdevice should have the BRIDGE_VLAN_INFO_PVID flag set. However I ca