net/mlx5: Consider encapsulation properties when comparing destinations
authorEli Britstein <elibr@mellanox.com>
Sun, 18 Nov 2018 06:25:17 +0000 (08:25 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 11 Dec 2018 22:52:19 +0000 (14:52 -0800)
commit1228e912c9343d35b21663af82dea39dd8a575b8
tree2467bb1455f8262bd5845223c7d43206ce345501
parent0bd72117fba2dd51a65eaa7b480adc0eea9a4409
net/mlx5: Consider encapsulation properties when comparing destinations

Currently the driver identifies identical vport destinations by
comparing the vport ID. The FW extended destination feature enables the
driver to forward the packet to the same vport with multiple
encapsulation properties.

Change the vport destination comparison logic to compare
the encapsulation properties in addition to the vport ID.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c