Skip to contentSkip to conversation

Patch "ravb: Group descriptor types used in Rx ring" has been added to the 6.8-stable tree

DISCUSSION Sergey Shtylyov 1 participant 1 message Apr 20, 2024 1 message not in the archive Stable branch

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 39 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

ravb: Group descriptor types used in Rx ring

to the 6.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
ravb-group-descriptor-types-used-in-rx-ring.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit fb17fd565be203e2aa62544a586a72430c457751

Author: Niklas Söderlund <[email protected]>
Date:   Mon Mar 4 12:08:53 2024 +0100

ravb: Group descriptor types used in Rx ring

[ Upstream commit 4123c3fbf8632e5c553222bf1c10b3a3e0a8dc06 ]

The Rx ring can either be made up of normal or extended descriptors, not a mix of the two at the same time. Make this explicit by grouping the two variables in a rx_ring union.

The extension of the storage for more than one queue of normal descriptors from a single to NUM_RX_QUEUE queues have no practical effect. But aids in making the code readable as the code that uses it already piggyback on other members of struct ravb_private that are arrays of max length NUM_RX_QUEUE, e.g. rx_desc_dma. This will also make further refactoring easier.

While at it, rename the normal descriptor Rx ring to make it clear it's not strictly related to the GbEthernet E-MAC IP found in RZ/G2L, normal descriptors could be used on R-Car SoCs too.

Quoted 5 lines

Stable-dep-of: def52db470df ("net: ravb: Count packets instead of descriptors in R-Car RX path")

Hm, I doubt this patch is actually necessary here...

Quoted 1 line

[...]

MBR, Sergey