]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use napi_alloc_skb for RX SKB allocations
authorTariq Toukan <tariqt@mellanox.com>
Wed, 20 Apr 2016 19:02:16 +0000 (22:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 19:09:05 +0000 (15:09 -0400)
commit259339956807065a9b240a83816d145028aeedb4
tree4490cf2350bb15f561fe1509cc58712ed06c4681
parent3019ec65878342acda39b578955abd72dd17f321
net/mlx5e: Use napi_alloc_skb for RX SKB allocations

Instead of netdev_alloc_skb, we use the napi_alloc_skb function
which is designated to allocate skbuff's for RX in a
channel-specific NAPI instance, and implies the IP packet alignment.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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