Skip to contentSkip to conversation

net/mlx5: fix MPRQ stride size to accommodate the headroom

PATCH Slava Ovsiienko 2 participants 2 messages Jul 18, 2023 2 messages not in the archive

lore
Share & tools
lore

Slava Ovsiienko

author Acked-by
#2 lore raw
In reply to a message not in the archive
Quoted 17 lines

-----Original Message-----
From: Alexander Kozyrev <[email protected]>
Sent: Wednesday, May 31, 2023 10:00 PM
To: [email protected]
Cc: [email protected]; Raslan Darawsheh <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Michael Baum <[email protected]>
Subject: [PATCH v2] net/mlx5: fix MPRQ stride size to accommodate the headroom

The space for the headroom is reserved at the end of every MPRQ stride for the next packet. The Rx burst logic is to copy any overlapping packet data if there is an overlap with this reserved headroom space.
But it is not possible if the headroom size is bigger than the whole stride. Adjust the stride size to make sure the stride size is greater than the headroom size.

Quoted 3 lines
Fixes 34776af600df ("net/mlx5: fix MPRQ stride devargs adjustment")
#3 lore raw
In reply to a message not in the archive

Hi,

Quoted 17 lines

-----Original Message-----
From: Alexander Kozyrev <[email protected]>
Sent: Wednesday, May 31, 2023 10:00 PM
To: [email protected]
Cc: [email protected]; Raslan Darawsheh <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Michael Baum <[email protected]>
Subject: [PATCH v2] net/mlx5: fix MPRQ stride size to accommodate the headroom

The space for the headroom is reserved at the end of every MPRQ stride for the next packet. The Rx burst logic is to copy any overlapping packet data if there is an overlap with this reserved headroom space.
But it is not possible if the headroom size is bigger than the whole stride. Adjust the stride size to make sure the stride size is greater than the headroom size.

Quoted 4 lines
Fixes 34776af600df ("net/mlx5: fix MPRQ stride devargs adjustment")

---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh