Previously we rang XDP SQ doorbell on every forwarded XDP packet.
Here we introduce a xmit more like mechanism that will queue up more
than one packet into SQ (up to RX napi budget) w/o notifying the hardware.
Once RX napi budget is consumed and we exit napi RX loop, we will
flush (doorbell) all
On Wed, Sep 7, 2016 at 4:44 PM, John Fastabend via iovisor-dev
wrote:
> On 16-09-07 05:42 AM, Saeed Mahameed wrote:
>> Previously we rang XDP SQ doorbell on every forwarded XDP packet.
>>
>> Here we introduce a xmit more like mechanism that will queue up more
>>
Adding support for XDP_TX forwarding from xdp program.
Using XDP, now user can loop packets out of the same port.
We create a dedicated TX SQ for each channel that will serve
XDP programs that return XDP_TX action to loop packets back to
the wire directly from the channel RQ RX path.
For that RX
For non-striding RQ configuration before this patch we had a ring
with pre-allocated SKBs and mapped the SKB->data buffers for
device.
For robustness and better RX data buffers management, we allocate a
page per packet and build_skb around it.
This patch (which is a prerequisite for XDP) will
From: Tariq Toukan
Manage the allocation and deallocation of mapped RX pages only
through dedicated API functions.
Signed-off-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 46
On Wed, Sep 7, 2016 at 7:48 AM, Saeed Mahameed
wrote:
> On Wed, Sep 7, 2016 at 4:32 PM, Or Gerlitz wrote:
>> On Wed, Sep 7, 2016 at 3:42 PM, Saeed Mahameed wrote:
>>
>>> Packet rate performance testing was done with pktgen
On Wed, 7 Sep 2016 15:42:24 +0300 Saeed Mahameed wrote:
> From: Tariq Toukan
>
> Instead of reallocating and mapping pages for RX data-path,
> recycle already used pages in a per ring cache.
>
> We ran pktgen single-stream benchmarks, with
On Wed, 7 Sep 2016 19:57:19 +0300 Saeed Mahameed
wrote:
> On Wed, Sep 7, 2016 at 6:32 PM, Eric Dumazet wrote:
> > On Wed, 2016-09-07 at 18:08 +0300, Saeed Mahameed wrote:
> >> On Wed, Sep 7, 2016 at 5:41 PM, Eric Dumazet