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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 02:07:37 +0000 (19:07 -0700)
commit816f670623692b5da2787f278cbfdb331ed29b8a
tree4857bc0a0eb41dee7e99380157f2522dc94d8357
parentb13f9c6364373a1b9f71e9846dc4fb199296f926
net/mlx5e: Properly check if hairpin is possible between two functions

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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c