[dpdk-dev] [PATCH v2] net/mlx5: skip table zero to improve insertion rate

Raslan Darawsheh rasland at mellanox.com
Wed Sep 11 16:32:09 CEST 2019


Hi,

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Dekel Peled
> Sent: Wednesday, September 11, 2019 2:04 PM
> To: Matan Azrad <matan at mellanox.com>; Slava Ovsiienko
> <viacheslavo at mellanox.com>; Shahaf Shuler <shahafs at mellanox.com>
> Cc: Ori Kam <orika at mellanox.com>; dev at dpdk.org
> Subject: [dpdk-dev] [PATCH v2] net/mlx5: skip table zero to improve
> insertion rate
> 
> E-switch tables one and above provide higher insertion rate
> than table zero, as well as enhanced functionality.
> 
> This patch adds a mechanism to utilize these advantages, by creating
> a default rule on port start, which directs all packets from e-switch
> table zero to table one.
> Other flow rules, requested for group n, will be created in
> e-switch table n+1.
> Jump action to e-switch group n will be created to group n+1.
> 
> Utility function mlx5_flow_group_to_table() is added to translate the
> rte_flow group value to HW table value, and is called by PMD flow
> engine on flow rule validation and creation.
> 
> Signed-off-by: Dekel Peled <dekelp at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> ---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list