]> 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)
commit80e40073b98cb30e4cd8993b79a0a62eef3a9e29
treef46cc1429827a1bf7e99965a8e3722af1dfe682c
parent1727a1cf33c90fd42d2c60ff2fed6ad77ded87d7
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