]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedc99cd62f05f52d8c8d18460733b02472eb60d1
tree384635d4495a5b0a571b822c269f25a9d9e01ded
parent5112ff75c9e3294f1950ddda5e121dd9701a9a00
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