]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 02:07:37 +0000 (19:07 -0700)
commit4589078b3a352e76d49faac6801862d5c851eadb
tree4857bc0a0eb41dee7e99380157f2522dc94d8357
parentedf2a99a3296dd82f09efd0209370f59706d056a
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: 0d7c7c00b52d ('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