mlxsw: spectrum: Handle VLAN devices linking / unlinking
authorIdo Schimmel <idosch@mellanox.com>
Tue, 15 Dec 2015 15:03:43 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 16:58:23 +0000 (11:58 -0500)
commit9589a7b5d7d9172b7849031377e0bd581ee055c2
tree7adce702359a185bec874123607d52103842fcb6
parentaac78a44088728f0712eaea74fbb2493e12080dd
mlxsw: spectrum: Handle VLAN devices linking / unlinking

When a VLAN interface is configured on top of a physical port we should
associate the VLAN device with the matching vPort. Likewise, when it's
removed, we should revert back to the underlying port netdev.

While not a must, this is consistent with port netdevs and also provides
a more accurate error printing via netdev_err() and friends.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c