]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:35 +0000 (08:28 +0200)
commit8c1dd131d9f818672d74e8a532e2fc5b01013b9a
treec5fa9c4146955da68c5d5f8f0059d57da5dc7479
parent06ff90ba3c8c4ddd4d411ce5bea3a0fe3a34e0a3
net/mlx5e: Fix port tunnel GRE entropy control

[ Upstream commit 914adbb1bcf89478ac138318d28b302704564d59 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c