net/mlx5e: Build SKB with exact frag_size
authorTariq Toukan <tariqt@mellanox.com>
Wed, 18 Jan 2017 12:28:53 +0000 (14:28 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 22 Jun 2017 11:30:13 +0000 (14:30 +0300)
commit78aedd327982ddd3cbb6ffc58f6fe0179cb6238b
tree88568429baf9707a7c503814c2f0ecd5580cefcf
parent3d09198243b89457649241fb63f809a96a22a8ce
net/mlx5e: Build SKB with exact frag_size

Build the SKB over the receive packet instead of the
whole page. Getting the SKB's linear data and shared_info
closer improves locality.
In addition, this opens up the possibility to make use of
other parts of the page in the downstream page-reuse patch.

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
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c