]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mlxsw: spectrum: Add FID get / set functions
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:04:17 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:50 +0000 (05:02 -0400)
commit41b996cc94c7e7f8567585d05ea1d52a3a181146
tree738ee0580c06efb58778a6995cf8405294889135
parent6381b3a85feba85bba671a2f1299550e43a7abb1
mlxsw: spectrum: Add FID get / set functions

As previously explained, not all vPorts will be assigned FIDs, so instead
of returning the FID index of a vPort, return a pointer to its FID
struct. This will allow us to know whether it's legal to access the
vPort's FID parameters such as index and device.

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