net/mlx5e: Use the full tunnel key info for encapsulation offload house-keeping
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 5 Jan 2017 14:43:29 +0000 (16:43 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Jan 2017 19:14:00 +0000 (21:14 +0200)
commit76f7444dd5a4349af40e4c67e4b995d4ae3c5c92
tree5c634356668a0b7a82225cdb6927ae43fed4eee8
parent75c33da827365afa6f3d708ad1f7abe18e0ba4a3
net/mlx5e: Use the full tunnel key info for encapsulation offload house-keeping

Currently we use subset of the input tunnel key fields (id, ip daddr,
dst port) which are provided by upper layers to indentify flows that should
go through the same encapsulation and maintain the HW encapsulation table.

This is redundant and can get us wrong.

Instead, keep a copy of the ip tunnel info provided by the user
through TC and have the tunnel key part as the key to our internal hash.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h