[PATCH] net/mlx5: fix flow mark reading after reconfigure

Raslan Darawsheh rasland at nvidia.com
Tue Feb 24 12:40:00 CET 2026


Hi,


On 11/02/2026 10:12 AM, Dariusz Sosnowski wrote:
> mlx5 PMD supports flow mark action which attaches additional
> metadata to received packets. This metadata is stored
> in the rte_mbuf in hash.fdir.hi field and applications
> are notified about it with RTE_MBUF_F_RX_FDIR mbuf flag.
> 
> When working with HW Steering flow engine,
> mlx5 PMD reads the HW completion entry field with flow mark value
> if and only if at least one template table with flow mark action
> was created.
> Whenever table was created mlx5 PMD updated the private
> data of each Rx queue to inform
> Rx burst function to read HW field.
> 
> Whenever application reconfigures any of the Rx queues
> through additional call to rte_eth_rx_queue_setup(),
> this private Rx queue data is reset, but information
> about existence of flow mark was not restored by PMD.
> As a result, reconfiguration caused applications
> to not receive flow mark metadata.
> 
> This patch fixes that behavior. Whenever port is started,
> PMD will check if flow mark action is used and update
> relevant private Rx queue data struct.
> 
> Fixes: 1deadfd709f5 ("net/mlx5: add HW mark action")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Acked-by: Bing Zhao <bingz at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh



More information about the stable mailing list