]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix port tunnel GRE entropy control
authorEli Britstein <elibr@mellanox.com>
Sun, 2 Jun 2019 06:19:03 +0000 (06:19 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Jul 2019 18:45:03 +0000 (11:45 -0700)
commit7a3779fd8bb65678282d963964f74b695748c303
tree7dfb1d9120e684a7329cff88c82e78e21e18bc40
parent46e722fe23907b1fc7446d4529717b1ab6541c6a
net/mlx5e: Fix port tunnel GRE entropy control

GRE entropy calculation is a single bit per card, and not per port.
Force disable GRE entropy calculation upon the first GRE encap rule,
and release the force at the last GRE encap rule removal. This is done
per port.

Fixes: c6af0dcd29ac ("net/mlx5e: Fix GRE key by controlling port tunnel entropy calculation")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c