]> 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)
commitdd05c8158981271bd616ae326cae487cb02114e1
tree4490cf2350bb15f561fe1509cc58712ed06c4681
parent2cda7f9675b3313c0e650dcb9d60a8636ae495ed
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