Thread (22 messages) flat view 22 messages, 3 authors, 2025-09-18

Re: [PATCH net-next V2 05/10] net/mlx5e: Prepare for using multiple TX doorbells

From: Simon Horman <horms@kernel.org>
Date: 2025-09-17 12:54:30
Also in: bpf, linux-doc, linux-rdma, lkml

On Tue, Sep 16, 2025 at 05:11:39PM +0300, Tariq Toukan wrote:
From: Cosmin Ratiu <redacted>

The driver allocates a single doorbell per device and uses
it for all Send Queues (SQs). This can become a bottleneck due to the
high number of concurrent MMIO accesses when ringing the same doorbell
from many channels.

This patch makes the doorbells used by channel queues configurable.

mlx5e_channel_pick_doorbell() is added to select the doorbell to be used
for a given channel, picking the default for now.

When opening a channel, the selected doorbell is saved to the channel
struct and used whenever channel-related queues are created.

Finally, 'uar_page' is added to 'struct mlx5e_create_sq_param' to
control which doorbell to use when allocating an SQ, since that can
happen outside channel context (e.g. for PTP).

Signed-off-by: Cosmin Ratiu <redacted>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help