]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Slave representors sharing unique metadata for match
authorVu Pham <vuhuong@mellanox.com>
Mon, 2 Mar 2020 18:33:49 +0000 (10:33 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 01:13:49 +0000 (18:13 -0700)
commitb8a2a76ff73f5d7a11b62a859563f2dd15411677
tree40af64bc8361cd845f2187fc3958bb4214268279
parent6128fe745be13540487fdcaa27faf6bc54169449
net/mlx5e: Slave representors sharing unique metadata for match

Bonded slave representors' vports must share a unique metadata
for match.

On enslaving event of slave representor to lag device, allocate
new unique "bond_metadata" for match if this is the first slave.
The subsequent enslaved representors will share the same unique
"bond_metadata".

On unslaving event of slave representor, reset the slave
representor's vport to use its own default metadata.

Replace ingress acl and rx rules of the slave representors' vports
using new vport->bond_metadata.

Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h