[dpdk-dev] [PATCH v2] net/mlx5: fix matcher field usage for metadata entities

Ferruh Yigit ferruh.yigit at intel.com
Fri Jan 17 18:18:53 CET 2020


On 1/17/2020 11:16 AM, Viacheslav Ovsiienko wrote:
> Matcher is flow table related structure providing the flow pattern
> to be translated directly in hardware controlling data. This structure
> includes the metadata register c0 field, that might be engaged to
> support META and MARK related flow items and actions. Also, this
> register might be used by kernel to specify the source vport index.
> In this case (if kernel uses the field) the register c0 is split
> into two 16-bit subfields - one for META/MARK items and another
> to handle vport.
> 
> The actual configuration is queried by PMD from kernel in runtime
> and depending on the mask returned by kernel the PMD can use upper
> or lower half of register c0 field. This patch adds the missing
> support for upper half. This missed support caused the non-operational
> META/MARK items on some kernel configurations.
> 
> Fixes: e554b672aa05 ("net/mlx5: support flow tag")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>
> ---
> v1: http://patches.dpdk.org/patch/64069/
> v2: - update log message
>     - update headline from:
>       "net/mlx5: fix register c0 usage for metadata entities"

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list