net/mlx5: convert port id action to indexed
authorSuanming Mou <suanmingm@mellanox.com>
Thu, 16 Apr 2020 02:42:05 +0000 (10:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commitf3faf9ea1185c8683d5ce00ec3b708d2e6769b23
treef4654cece4c04fc1f5629f8aacdd286cbb82d155
parent5f1142692a33bcc436829d2a862f5cdacd76906b
net/mlx5: convert port id action to indexed

This commit converts port id action to indexed.

Using the uint32_t index instead of pointer saves 4 bytes memory for the
flow handle. For millions flows, it will save several MBytes of memory.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c