OSDN Git Service

net/mlx5e: Small enhancements for RX MPWQE allocation and free
authorTariq Toukan <tariqt@mellanox.com>
Sun, 25 Jun 2017 13:28:46 +0000 (16:28 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 3 Sep 2017 03:34:08 +0000 (06:34 +0300)
commit4c2af5cc2bee32685883b55328d8b5ec80e1781f
tree08330bfcecf89b40897d67819bfd60538221d550
parent9bafe2adabd16e74e28920956680b15bf529c2eb
net/mlx5e: Small enhancements for RX MPWQE allocation and free

The dma offset of a MPWQE (Multi-Packet WQE) in memory region
is fixed for all rounds. Calculate it once on creation time,
instead of in runtime. This also obsoletes the wqe argument in
the function.

In addition, optimize dma_info iterator calculation.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c