Re: [PATCH net-next v3 1/3] switchdev: fix: erasing too much of vlan obj when handling multiple vlan specs

2015-10-23 Thread David Miller
From: sfel...@gmail.com Date: Thu, 22 Oct 2015 20:25:15 -0700 > From: Scott Feldman > > When adding vlans with multiple IFLA_BRIDGE_VLAN_INFO attrs set in AFSPEC, > we would wipe the vlan obj struct after the first IFLA_BRIDGE_VLAN_INFO. > Fix this by only clearing what's

[PATCH net-next v3 1/3] switchdev: fix: erasing too much of vlan obj when handling multiple vlan specs

2015-10-22 Thread sfeldma
From: Scott Feldman When adding vlans with multiple IFLA_BRIDGE_VLAN_INFO attrs set in AFSPEC, we would wipe the vlan obj struct after the first IFLA_BRIDGE_VLAN_INFO. Fix this by only clearing what's necessary on each IFLA_BRIDGE_VLAN_INFO iteration. Fixes: 9e8f4a54