mlxsw: spectrum: Don't count on FID being present
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:04:18 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:50 +0000 (05:02 -0400)
commit56918b6b0a66e449b3e11adb3e1c93849964d429
tree3c1757e69013d63dfa2fb14e1bed0128b78b7cf4
parent41b996cc94c7e7f8567585d05ea1d52a3a181146
mlxsw: spectrum: Don't count on FID being present

Not all vPorts will have FIDs assigned to them, so make sure functions
first test for FID presence.

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
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
This page took 0.06407 seconds and 5 git commands to generate.