All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] Revert "r8169: use netif_receive_skb_list batching"
@ 2019-04-03 17:54 Heiner Kallweit
  2019-04-05  0:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2019-04-03 17:54 UTC (permalink / raw)
  To: David Miller, Realtek linux nic maintainers; +Cc: netdev, Eric Dumazet

This reverts commit 6578229d4efb7ea6287861bfc2bd306140458e07.
netif_receive_skb_list() doesn't support GRO, therefore we may have
scenarios with decreased performance. See discussion here [0].

[0] https://marc.info/?t=155403847400001&r=1&w=2

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/ethernet/realtek/r8169.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 8a8a4f70db1e..88eb9e05d2a1 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -6426,7 +6426,6 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
 {
 	unsigned int cur_rx, rx_left;
 	unsigned int count;
-	LIST_HEAD(rx_list);
 
 	cur_rx = tp->cur_rx;
 
@@ -6502,7 +6501,7 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
 			if (skb->pkt_type == PACKET_MULTICAST)
 				dev->stats.multicast++;
 
-			list_add_tail(&skb->list, &rx_list);
+			napi_gro_receive(&tp->napi, skb);
 
 			u64_stats_update_begin(&tp->rx_stats.syncp);
 			tp->rx_stats.packets++;
@@ -6517,8 +6516,6 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
 	count = cur_rx - tp->cur_rx;
 	tp->cur_rx = cur_rx;
 
-	netif_receive_skb_list(&rx_list);
-
 	return count;
 }
 
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] Revert "r8169: use netif_receive_skb_list batching"
  2019-04-03 17:54 [PATCH net-next] Revert "r8169: use netif_receive_skb_list batching" Heiner Kallweit
@ 2019-04-05  0:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-04-05  0:47 UTC (permalink / raw)
  To: hkallweit1; +Cc: nic_swsd, netdev, eric.dumazet

From: Heiner Kallweit <hkallweit1@gmail.com>
Date: Wed, 3 Apr 2019 19:54:12 +0200

> This reverts commit 6578229d4efb7ea6287861bfc2bd306140458e07.
> netif_receive_skb_list() doesn't support GRO, therefore we may have
> scenarios with decreased performance. See discussion here [0].
> 
> [0] https://marc.info/?t=155403847400001&r=1&w=2
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Applied, thanks for following up.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-05  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03 17:54 [PATCH net-next] Revert "r8169: use netif_receive_skb_list batching" Heiner Kallweit
2019-04-05  0:47 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.