Hi, > -----Original Message----- > From: Viacheslav Ovsiienko <[email protected]> > Sent: Sunday, March 7, 2021 1:46 PM > To: [email protected] > Cc: Raslan Darawsheh <[email protected]>; Matan Azrad > <[email protected]>; Ori Kam <[email protected]>; [email protected] > Subject: [PATCH] net/mlx5: fix Rx metadata leftovers > > The Rx metadata might use the metadata register C0 to keep the > values. The same register C0 might be used by kernel for source > vport value handling, kernel uses upper half of the register, > leaving the lower half for application usage. > > In the extended metadata mode 1 (dv_xmeta_en devarg is > assigned with value 1) the metadata width is 16 bits only, > the Rx datapath code fetched the entire 32-bit value of the > metadata register and presented one to application. The patch > provides data masking depending on the chosen metadata mode. > > Fixes: 6c55b622a956 ("net/mlx5: set dynamic flow metadata in Rx queues") > Cc: [email protected] > > Signed-off-by: Viacheslav Ovsiienko <[email protected]>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

