]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: MPFS, Allow adding the same MAC more than once
authorGavi Teitz <gavi@mellanox.com>
Tue, 11 Jun 2019 09:29:41 +0000 (12:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Jun 2019 23:03:58 +0000 (16:03 -0700)
commit81ad8acea3face39a28c2bbb9e1a23effd1fc28f
treec8ad9660de02ffc6fc4144ce274bcb4b7a84feeb
parentfde1ba6d05a74ac345c0f9ad66d5314234781666
net/mlx5: MPFS, Allow adding the same MAC more than once

Remove the limitation preventing adding a vport's MAC address to the
Multi-Physical Function Switch (MPFS) more than once per E-switch, as
there is no difference in the MPFS if an address is being used by an
E-switch more than once.

This allows the E-switch to have multiple vports with the same MAC
address, allowing vports to be classified by VLAN id instead of by MAC
if desired.

Signed-off-by: Gavi Teitz <gavi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c