diff options
author | Ido Schimmel <idosch@mellanox.com> | 2016-01-04 10:42:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-04 22:07:58 -0500 |
commit | 7b31abe70b29edb3005a6466f51b7a10f8413a01 (patch) | |
tree | fc313e8f794df5c86a02c9bcd67a1e5e44a0a644 /drivers | |
parent | 46f85a9215d7352d886626e29c3fc3095bc5bec7 (diff) | |
download | lwn-7b31abe70b29edb3005a6466f51b7a10f8413a01.tar.gz lwn-7b31abe70b29edb3005a6466f51b7a10f8413a01.zip |
mlxsw: spectrum: Initialize PVID only once
We set PVID to 1 in mlxsw_sp_port_vlan_init(), so we can remove this
statement.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index c588c65e91f5..6cc1125030df 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -1367,7 +1367,6 @@ static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port) mlxsw_sp_port->learning = 1; mlxsw_sp_port->learning_sync = 1; mlxsw_sp_port->uc_flood = 1; - mlxsw_sp_port->pvid = 1; bytes = DIV_ROUND_UP(VLAN_N_VID, BITS_PER_BYTE); mlxsw_sp_port->active_vlans = kzalloc(bytes, GFP_KERNEL); if (!mlxsw_sp_port->active_vlans) { |