]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commit914adbb1bcf89478ac138318d28b302704564d59
tree7dfb1d9120e684a7329cff88c82e78e21e18bc40
parent9a64144d683a4395f57562d90247c61a0bf5105f
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: 97417f6182f8 ("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