net/mlx5e: Slightly reduce hardware LRO size
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Sep 2016 09:19:44 +0000 (12:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 06:51:40 +0000 (02:51 -0400)
commite4b85508072b32682ba84df32cac5cf6a4f6178e
tree8fadcf552730390a4e1f2afd4e2bfbd9dfb8a911
parent21c59685dd176dd6b2c4fc5e18dc65730cfd546a
net/mlx5e: Slightly reduce hardware LRO size

Before this patch LRO size was 64K, now with build_skb requires
extra room, headroom + sizeof(skb_shared_info) added to the data
buffer will make  wqe size or page_frag_size slightly larger than
64K which will demand order 5 page instead of order 4 in 4K page systems.

We take those extra bytes from hardware LRO data size in order to not
increase the required page order for when hardware LRO is enabled.

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