Skip to content

Commit 6578229

Browse files
hkallweitdavem330
authored andcommitted
r8169: use netif_receive_skb_list batching
Use netif_receive_skb_list() instead of napi_gro_receive() to benefit from batched skb processing. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e660755 commit 6578229

File tree

1 file changed

+4
-1
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+4
-1
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6426,6 +6426,7 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
64266426
{
64276427
unsigned int cur_rx, rx_left;
64286428
unsigned int count;
6429+
LIST_HEAD(rx_list);
64296430

64306431
cur_rx = tp->cur_rx;
64316432

@@ -6501,7 +6502,7 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
65016502
if (skb->pkt_type == PACKET_MULTICAST)
65026503
dev->stats.multicast++;
65036504

6504-
napi_gro_receive(&tp->napi, skb);
6505+
list_add_tail(&skb->list, &rx_list);
65056506

65066507
u64_stats_update_begin(&tp->rx_stats.syncp);
65076508
tp->rx_stats.packets++;
@@ -6516,6 +6517,8 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
65166517
count = cur_rx - tp->cur_rx;
65176518
tp->cur_rx = cur_rx;
65186519

6520+
netif_receive_skb_list(&rx_list);
6521+
65196522
return count;
65206523
}
65216524

0 commit comments

Comments
 (0)