[dpdk-dev] [PATCH v2 00/10] net/mlx5: optimize flow resource allocation
Raslan Darawsheh
rasland at mellanox.com
Thu Apr 16 17:08:58 CEST 2020
Hi,
> -----Original Message-----
> From: Suanming Mou <suanmingm at mellanox.com>
> Sent: Thursday, April 16, 2020 5:42 AM
> To: Slava Ovsiienko <viacheslavo at mellanox.com>; Matan Azrad
> <matan at mellanox.com>
> Cc: Raslan Darawsheh <rasland at mellanox.com>; dev at dpdk.org
> Subject: [PATCH v2 00/10] net/mlx5: optimize flow resource allocation
>
> Currently, flow may allocate several action resources during creation.
> Both allocate the individual resources and save the object handles have
> big memory overhead for the flow.
>
> Indexed memory pool is introduced to optimize the memory overhead. The
> resources can be allocated from the resource's own individual memory pool
> and only the 32-bits index is saved to the flow.
>
> In this case, it saves MALLOC_ELEM_OVERHEAD and 4 bytes for every flow
> resources.
>
> This patch series depends on the path which has been acked as below:
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatch
> es.dpdk.org%2Fpatch%2F68143%2F&data=02%7C01%7Crasland%40mell
> anox.com%7C59e0bbb209a74266645008d7e1afc7ea%7Ca652971c7d2e4d9ba6
> a4d149256f461b%7C0%7C0%7C637226017419678693&sdata=HlgoYtV3%
> 2BaC2XQn8TvEA9fskBqw4j8S8aawqizbJq5E%3D&reserved=0
>
> v2:
> - rebase to the lastet version.
> - add the missing 10th patch.
>
> Suanming Mou (10):
> net/mlx5: add indexed memory pool
> net/mlx5: add trunk dynamic grow for indexed pool
> net/mlx5: add trunk release for indexed pool
> net/mlx5: convert encap/decap resource to indexed
> net/mlx5: convert push VLAN resource to indexed
> net/mlx5: convert tag resource to indexed
> net/mlx5: convert port id action to indexed
> net/mlx5: convert jump resource to indexed
> net/mlx5: convert hrxq to indexed
> net/mlx5: convert flow dev handle to indexed
>
> drivers/net/mlx5/mlx5.c | 148 ++++++++++++++-
> drivers/net/mlx5/mlx5.h | 26 ++-
> drivers/net/mlx5/mlx5_flow.c | 23 ++-
> drivers/net/mlx5/mlx5_flow.h | 47 +++--
> drivers/net/mlx5/mlx5_flow_dv.c | 271 +++++++++++++++++++---------
> drivers/net/mlx5/mlx5_flow_verbs.c | 53 ++++--
> drivers/net/mlx5/mlx5_rxq.c | 47 +++--
> drivers/net/mlx5/mlx5_rxtx.h | 22 +--
> drivers/net/mlx5/mlx5_utils.c | 361
> +++++++++++++++++++++++++++++++++++++
> drivers/net/mlx5/mlx5_utils.h | 247 +++++++++++++++++++++++++
> 10 files changed, 1071 insertions(+), 174 deletions(-)
>
> --
> 1.8.3.1
Series applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list