net/mlx5: convert mark copy resource to indexed
authorSuanming Mou <suanmingm@mellanox.com>
Thu, 16 Apr 2020 08:34:27 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commit90e6053a1924a178a64c995bc5d3f5655919232b
tree5bf546ba0beea5210d2540072ba8dc3a8bedf748
parent8638e2b076e0a91affe28eac472eb629c1dbf25e
net/mlx5: convert mark copy resource to indexed

Allocate mark copy resource from indexed pool helps rte flow saves the 4
bytes index instead of 8 bytes pointer. For mark copy resource itself,
it helps save MALLOC_ELEM_OVERHEAD bytes from rte_malloc().

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.c
drivers/net/mlx5/mlx5_flow.h