[RFC v2 3/7] ethdev: introduce Rx queue based limit watermark

Stephen Hemminger stephen at networkplumber.org
Sun May 22 17:24:57 CEST 2022


On Sun, 22 May 2022 08:58:56 +0300
Spike Du <spiked at nvidia.com> wrote:

> LWM(limit watermark) describes the fullness of a Rx queue. If the Rx
> queue fullness is above LWM, the device will trigger the event
> RTE_ETH_EVENT_RX_LWM.
> LWM is defined as a percentage of Rx queue size with valid value of
> [0,99].
> Setting LWM to 0 means disable it, which is the default.
> When translate the percentage to queue descriptor number, the numbe
> should be bigger than 0 and less than queue size.
> Add LWM's configuration and query driver callbacks in eth_dev_ops.
> 
> Signed-off-by: Spike Du <spiked at nvidia.com>

One other objection, please don't invent yet another event channel
for this. It should be part of existing Rx interrupt logic.


More information about the dev mailing list