]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23cb12178b9694f42b3442407e7f8f00158224eb
tree88568429baf9707a7c503814c2f0ecd5580cefcf
parent55c1b991de34c4c06d1598d6b4b5e9db22cb2f2c
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: 82a34336b384 ("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