[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3caedd41-669e-94be-9214-e93eed5ae073@gmail.com>
Date: Fri, 4 Dec 2020 10:50:45 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Sieng Piaw Liew <liew.s.piaw@...il.com>,
Florian Fainelli <f.fainelli@...il.com>
Cc: bcm-kernel-feedback-list@...adcom.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] bcm63xx_enet: batch process rx path
On 12/4/20 6:46 AM, Sieng Piaw Liew wrote:
> Use netif_receive_skb_list to batch process rx skb.
> Tested on BCM6328 320 MHz using iperf3 -M 512, increasing performance
> by 12.5%.
>
Well, the real question is why you do not simply use GRO,
to get 100% performance gain or more for TCP flows.
netif_receive_skb_list() is no longer needed,
GRO layer already uses batching for non TCP packets.
We probably should mark is deprecated.
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 916824cca3fda194c42fefec7f514ced1a060043..6fdbe231b7c1b27f523889bda8a20ab7eaab65a6 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -391,7 +391,7 @@ static int bcm_enet_receive_queue(struct net_device *dev, int budget)
skb->protocol = eth_type_trans(skb, dev);
dev->stats.rx_packets++;
dev->stats.rx_bytes += len;
- netif_receive_skb(skb);
+ napi_gro_receive_skb(&priv->napi, skb);
} while (--budget > 0);
Powered by blists - more mailing lists