atl1c: use napi_alloc_skb
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Fri, 19 Mar 2021 04:13:22 +0000 (12:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 18:45:07 +0000 (11:45 -0700)
commita9d6df642dc8301ee7c3f414ec08548d5c4078ff
tree384635d4495a5b0a571b822c269f25a9d9e01ded
parente75a2e02ec998a808dcd19885275f5444b146d44
atl1c: use napi_alloc_skb

Using napi_alloc_skb in NAPI context avoids enable/disable IRQs, which
increases iperf3 result by a few Mbps. Since napi_alloc_skb() uses
NET_IP_ALIGN, convert other alloc methods to the same padding. Tested
on Intel Core2 and AMD K10 platforms.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c