]> 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:27:19 +0000 (08:27 +0200)
commit5f9ea2cb7f0e97d2b17ed66fe935c2ae99322003
treefa83c37eac39f3ed34fd8524aac0df89f4d8b90b
parentac7f011be7cd1806c769db61dceed61f6ec86edc
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