[dpdk-stable] [PATCH] net/mlx5: fix eCPRI item value with mask
Raslan Darawsheh
rasland at nvidia.com
Thu Nov 19 11:52:29 CET 2020
Hi,
> -----Original Message-----
> From: Bing Zhao <bingz at nvidia.com>
> Sent: Thursday, November 19, 2020 4:42 AM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>
> Cc: dev at dpdk.org; Ori Kam <orika at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix eCPRI item value with mask
>
> When creating a flow with eCPRI item, the mask and the value are both
> needed in order to build the matching criteria.
>
> In the current implementation, the unused value bits clear operation
> was missed when filling the mask and value fields. For the value, the
> bits not required were not masked with the mask provided. Indeed,
> this action is not mandatory. But when creating a flow in the root
> table, the kernel driver got involved and a check would prevent this
> flow from being created. The same flow could be created successfully
> with the userspace rdma-core on the non-root tables.
>
> An AND operation needs to be added to clear the unused bits in the
> value when building the matching criteria. Then the same flow can be
> created successfully no matter with kernel driver or with rdma-core.
>
> Fixes: daa38a8924a0 ("net/mlx5: add flow translation of eCPRI header")
> Cc: stable at dpdk.org
>
> Signed-off-by: Bing Zhao <bingz at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> ---
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the stable
mailing list