]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
atl1c: switch to napi_gro_receive
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Fri, 19 Mar 2021 03:59:22 +0000 (11:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 18:37:19 +0000 (11:37 -0700)
Changing to napi_gro_receive() improves efficiency significantly. Tested
on Intel Core2-based motherboards and iperf3.

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

index 3f65f2b370c57d2f0dffed3abf2f9e3148f0c1d3..3e440c2dc68abac6bc4367ee9faf3646e5f60345 100644 (file)
@@ -1851,7 +1851,7 @@ rrs_checked:
                        vlan = le16_to_cpu(vlan);
                        __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan);
                }
-               netif_receive_skb(skb);
+               napi_gro_receive(&adapter->napi, skb);
 
                (*work_done)++;
                count++;