net/mlx5e: Enhance RX SKB headroom logic
authorTariq Toukan <tariqt@mellanox.com>
Tue, 31 Jan 2017 14:48:59 +0000 (16:48 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 22 Jun 2017 11:30:13 +0000 (14:30 +0300)
commitbce2b2bf66825a56f66229980a30884704cba3d2
treec217140b0780839eeb6de976114b509a30d00adb
parent78aedd327982ddd3cbb6ffc58f6fe0179cb6238b
net/mlx5e: Enhance RX SKB headroom logic

In the RX memory scheme of non Striding RQ, we use linear SKBs.
Keeping NET_IP_ALIGN in headroom can improve performance on some archs.
In addition, take this headroom into account when calculating the
LRO WQE size.

These are not needed in Striding RQ as they're done implicitly
within the non-linear SKB allocation.

Fixes: 1bfecfca565c ("net/mlx5e: Build RX SKB on demand")
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