• Saeed Mahameed's avatar
    net/mlx5e: Optimize XDP frame xmit · 2239185c
    Saeed Mahameed authored
    XDP SQ has a fixed size WQE (MLX5E_XDP_TX_WQEBBS = 1) and only posts
    one kind of WQE (MLX5_OPCODE_SEND),
    
    Also we initialize SQ descriptors static fields once on open_xdpsq,
    rather than every time on critical path.
    
    Optimize the code in light of those facts and add a prefetch of the TX
    descriptor first thing in the xdp xmit function.
    
    Performance improvement:
    System: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
    
    Test case              Before     Now        improvement
    ---------------------------------------------------------------
    XDP TX   (1 core)      13Mpps    13.7Mpps       5%
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    Reviewed-by: default avatarTariq Toukan <tariqt@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2239185c
en_rx.c 27.1 KB