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)
commitc5adb96f6c4a22aceff2e8220612c5b9239ffeb2
tree4490cf2350bb15f561fe1509cc58712ed06c4681
parentbc77b240b3c57236cdcc08d64ca390655d3a16ff
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