]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Properly check if hairpin is possible between two functions
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 8 Aug 2018 22:48:07 +0000 (15:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Aug 2018 05:44:52 +0000 (07:44 +0200)
commit64cfdbc4e18161aa86b930fb83ad0b749703c9d3
treeb37a1979d598494658e6d66678de85f4dd40e147
parentea0c9925c114b6d035b69ccfd165641f1a0eb813
net/mlx5e: Properly check if hairpin is possible between two functions

[ Upstream commit 816f670623692b5da2787f278cbfdb331ed29b8a ]

The current check relies on function BDF addresses and can get
us wrong e.g when two VFs are assigned into a VM and the PCI
v-address is set by the hypervisor.

Fixes: 5c65c564c962 ('net/mlx5e: Support offloading TC NIC hairpin flows')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Alaa Hleihel <alaa@mellanox.com>
Tested-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c