mlxsw: spectrum_switchdev: Do not set field when it is reserved
authorIdo Schimmel <idosch@mellanox.com>
Sun, 25 Nov 2018 09:43:54 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 23:27:07 +0000 (15:27 -0800)
commit6502be9f04da2df88095e9ff7c964c2d5915bb3a
treef6f106964644840b048ee2bcfee53df20c85d9b4
parent4e3c7c00bba0636b97eb23d582c20b0f5d95ce20
mlxsw: spectrum_switchdev: Do not set field when it is reserved

When configuring an FDB entry pointing to a LAG netdev (or its upper),
the driver should only set the 'lag_vid' field when the FID (filtering
identifier) is of 802.1D type.

Extend the 802.1D FID family with an attribute indicating whether this
field should be set and based on its value set the field or leave it
blank.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c