]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94233da5b3086b8fd4bc9bbef0feadaaad63a87e
tree5c634356668a0b7a82225cdb6927ae43fed4eee8
parent1f7f1ed648190a4d5dbca3496fa0fbd7ded5ba6f
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