mlxsw: spectrum: Sanitize port netdev upper devices
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:04:00 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:48 +0000 (05:02 -0400)
commit59fe9b3f842751688d9ee180f673314190813be1
tree93b02c54ba21c674aa9774bf6f776b51b3d33dd7
parent80bedf1a62d65fb79eaaf030e75174886f1a794c
mlxsw: spectrum: Sanitize port netdev upper devices

We currently only support the following upper devices for port netdevs:
1) Bridge
2) LAG (bond / team)
3) VLAN

Any other device is forbidden, so return an error.

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