Skip to contentSkip to conversation

atl1c: switch to napi_gro_receive

PATCH Applied Sieng Piaw Liew 2 participants 2 messages Mar 19, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atl1c: switch to napi_gro_receive

Changing to napi_gro_receive() improves efficiency significantly. Tested on Intel Core2-based motherboards and iperf3.

---
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +1 -1
index 3f65f2b370c5..3e440c2dc68a 100644
@@ -1851,7 +1851,7 @@ static void atl1c_clean_rx_irq(struct atl1c_adapter *adapter,
 			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++;
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 7 lines · On Fri, 19 Mar 2021 11:59:22 +0800 you wrote:

Changing to napi_gro_receive() improves efficiency significantly. Tested on Intel Core2-based motherboards and iperf3.

---
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] atl1c: switch to napi_gro_receive

    https://git.kernel.org/netdev/net-next/c/e75a2e02ec99

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html