]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0985990d95f359116b806e12d6a42b4ec0f95dc
tree08330bfcecf89b40897d67819bfd60538221d550
parent99524bfbb36127fa53be09535f450052b45e6681
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