]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use FID instead of VID when accessing FDB
authorIdo Schimmel <idosch@mellanox.com>
Tue, 15 Dec 2015 15:03:40 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 16:58:22 +0000 (11:58 -0500)
commitd6451d2ced63936cf6e1ddae2c3256f040cae4df
tree59d1f9678c9f7a8a2c6ab5ccd5975b09a450ca75
parent6a60e5a374ffdf851374102223d29c4756717c00
mlxsw: spectrum: Use FID instead of VID when accessing FDB

In the Spectrum ASIC - unlike SwitchX-2 - FDB access is done by
specifying FID as parameter and not VID.

Change the relevant variables and parameters names to reflect that.

Note that this was OK up until now, since FID was always equal to VID,
but with the introduction of VLAN interfaces this is no longer the case.

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/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c