]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove unnecessary fields in ICO SQ
authorTariq Toukan <tariqt@mellanox.com>
Mon, 17 Jul 2017 11:31:39 +0000 (14:31 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 3 Sep 2017 03:34:09 +0000 (06:34 +0300)
commitd42c4d133f4da71c5501ff9303db42c71f6a0857
treef46cc1429827a1bf7e99965a8e3722af1dfe682c
parent9cdc076de05736bbbf543adaaa53ffa823cef308
net/mlx5e: Remove unnecessary fields in ICO SQ

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: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c