Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'net-bcmasp-add-support-for-gro'

Florian Fainelli says:

====================
net: bcmasp: add support for GRO

These two patches add support for GRO software interrupt coalescing,
kudos to Zak for doing this on bcmgenet first.

before:

00:03:31 CPU %usr %nice %sys %iowait %irq %soft %steal
%guest %idle
00:03:32 all 0.00 0.00 1.51 0.00 0.50 7.29 0.00 0.00 90.70

after:

00:02:35 CPU %usr %nice %sys %iowait %irq %soft %steal
%guest %idle
00:02:36 all 0.25 0.00 1.26 0.00 0.50 7.29 0.00 0.00 90.70
====================

Link: https://patch.msgid.link/20250611212730.252342-1-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+3 -3
+3 -3
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
··· 605 605 606 606 bcmasp_intf_rx_desc_write(intf, intf->rx_edpkt_dma_read); 607 607 608 - if (processed < budget) { 609 - napi_complete_done(&intf->rx_napi, processed); 608 + if (processed < budget && napi_complete_done(&intf->rx_napi, processed)) 610 609 bcmasp_enable_rx_irq(intf, 1); 611 - } 612 610 613 611 return processed; 614 612 } ··· 1278 1280 NETIF_F_RXCSUM; 1279 1281 ndev->hw_features |= ndev->features; 1280 1282 ndev->needed_headroom += sizeof(struct bcmasp_pkt_offload); 1283 + 1284 + netdev_sw_irq_coalesce_default_on(ndev); 1281 1285 1282 1286 return intf; 1283 1287