OSDN Git Service

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)
commite7e0bee8c5e8aefa03bdcf782b80b42c60353edb
treec8ad9660de02ffc6fc4144ce274bcb4b7a84feeb
parent6311f308849e9dfc0ff058fcc332246541030c24
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