• Tariq Toukan's avatar
    net/mlx5e: Remove unnecessary fields in ICO SQ · 3b56f7b2
    Tariq Toukan authored
    As of current design, in each NAPI, only a single UMR WQE
    completion could be available in the completion queue of the
    the internal control operations (ICO) send queue, in addition
    to nop operations that require no actions upon completion.
    This renders the consume index obsolete, as the wqe_counter
    field in CQE is sufficient.
    
    This helps removing a memory barrier, and obsoletes the need
    for tracking the num_wqebbs to update the consumer counter.
    
    In addition, remove other unused fields in icosq struct:
    pdev, dma_fifo_pc, and prev_cc.
    Signed-off-by: default avatarTariq Toukan <tariqt@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    3b56f7b2
en_main.c 114 KB