• Tariq Toukan's avatar
    net/mlx5e: Support XDP over Striding RQ · 22f45398
    Tariq Toukan authored
    Add XDP support over Striding RQ.
    Now that linear SKB is supported over Striding RQ,
    we can support XDP by setting stride size to PAGE_SIZE
    and headroom to XDP_PACKET_HEADROOM.
    
    Upon a MPWQE free, do not release pages that are being
    XDP xmit, they will be released upon completions.
    
    Striding RQ is capable of a higher packet-rate than
    conventional RQ.
    A performance gain is expected for all cases that had
    a HW packet-rate bottleneck. This is the case whenever
    using many flows that distribute to many cores.
    
    Performance testing:
    ConnectX-5, 24 rings, default MTU.
    CQE compression ON (to reduce completions BW in PCI).
    
    XDP_DROP packet rate:
    --------------------------------------------------
    | pkt size | XDP rate   | 100GbE linerate | pct% |
    --------------------------------------------------
    |   64byte | 126.2 Mpps |      148.0 Mpps |  85% |
    |  128byte |  80.0 Mpps |       84.8 Mpps |  94% |
    |  256byte |  42.7 Mpps |       42.7 Mpps | 100% |
    |  512byte |  23.4 Mpps |       23.4 Mpps | 100% |
    --------------------------------------------------
    Signed-off-by: default avatarTariq Toukan <tariqt@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    22f45398
en.h 33.6 KB