diff options
author | Ido Schimmel | 2018-12-20 20:42:33 +0100 |
---|---|---|
committer | David S. Miller | 2018-12-21 00:48:54 +0100 |
commit | 0417d25e7dad2ab61a42afb07bb0b9512fd0e6df (patch) | |
tree | a84666cd610edeb5ff4450a54fd72c4a2dc1f483 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | mlxsw: spectrum: Add an helper function to cleanup VLAN entries (diff) | |
download | kernel-qcow2-linux-0417d25e7dad2ab61a42afb07bb0b9512fd0e6df.tar.gz kernel-qcow2-linux-0417d25e7dad2ab61a42afb07bb0b9512fd0e6df.tar.xz kernel-qcow2-linux-0417d25e7dad2ab61a42afb07bb0b9512fd0e6df.zip |
mlxsw: spectrum: Switch to VID 4095 as default VID
There is no need to abuse VID 1 anymore and we can instead use VID 4095
as the default VLAN, which will be configured on the port throughout its
lifetime.
The OVS join / leave functions are changed to enable VIDs 1-4094
(inclusive) instead of 2-4095. This because VID 4095 is now the default
VLAN instead of 1.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index 4e11915d676a..a1c32a81b011 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -25,7 +25,7 @@ #include "core_acl_flex_actions.h" #include "reg.h" -#define MLXSW_SP_DEFAULT_VID 1 +#define MLXSW_SP_DEFAULT_VID (VLAN_N_VID - 1) #define MLXSW_SP_FID_8021D_MAX 1024 |