net/mlx5: reuse flow id as hairpin id
authorXueming Li <xuemingl@nvidia.com>
Wed, 28 Oct 2020 09:33:22 +0000 (17:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:04 +0000 (23:35 +0100)
commit94b6d88438525e9cec7c373b8ab99f82db6531d8
tree2a0248a793cb5f8804adafd546097c0842ad8457
parent8bb81f2649b1a17978357822c7f49b75c40109ac
net/mlx5: reuse flow id as hairpin id

Hairpin flow matching required a unique flow ID for matching.
This patch reuses flow ID as hairpin flow ID, this will save some code
to generate a separate hairpin ID, also saves flow memory by removing
hairpin ID.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h