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 <>
Reported-by: Alaa Hleihel <>
Tested-by: Alaa Hleihel <>
Signed-off-by: Saeed Mahameed <>
Signed-off-by: David S. Miller <>
1 file changed