]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit9de6a80e061238d0c1765e0b8d71bd22116edd9d
tree59d1f9678c9f7a8a2c6ab5ccd5975b09a450ca75
parent19ae61241485981aa4fae5d494923a27e4d00fba
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