]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Check if port is vPort using its VID
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:04:16 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:50 +0000 (05:02 -0400)
commit558bd38d770ad9b51980437459693f56bc64719e
tree79dd8947d37919c052b120b7b6f93148d8618c80
parentef8f708e55594c5cff5e149b72217999f3c9f7ad
mlxsw: spectrum: Check if port is vPort using its VID

When L3 interfaces will be introduced a vPort won't necessarily have a
FID assigned to it. This can happen if it's not member in a bridge (in
which case it's assigned a vFID) or doesn't have an IP address (in which
case it's assigned an rFID).

Therefore, instead check the VID parameter to test whether a port is a
vPort or not.

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.h