Skip to content

Commit 5d6d67c

Browse files
committed
Merge branch 'net-bcmgenet-add-support-for-gro-software-interrupt-coalescing'
Zak Kemble says: ==================== net: bcmgenet: add support for GRO software interrupt coalescing Enable support for software IRQ coalescing and GRO aggregation and apply conservative defaults which can help improve system and network performance by reducing the number of hardware interrupts and improving GRO aggregation ratio. v1: https://lore.kernel.org/[email protected] ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 5e84d5b + 078bb22 commit 5d6d67c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,10 +2472,8 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
24722472

24732473
work_done = bcmgenet_desc_rx(ring, budget);
24742474

2475-
if (work_done < budget) {
2476-
napi_complete_done(napi, work_done);
2475+
if (work_done < budget && napi_complete_done(napi, work_done))
24772476
bcmgenet_rx_ring_int_enable(ring);
2478-
}
24792477

24802478
if (ring->dim.use_dim) {
24812479
dim_update_sample(ring->dim.event_ctr, ring->dim.packets,
@@ -3988,6 +3986,8 @@ static int bcmgenet_probe(struct platform_device *pdev)
39883986
dev->hw_features |= dev->features;
39893987
dev->vlan_features |= dev->features;
39903988

3989+
netdev_sw_irq_coalesce_default_on(dev);
3990+
39913991
/* Request the WOL interrupt and advertise suspend if available */
39923992
priv->wol_irq_disabled = true;
39933993
if (priv->wol_irq > 0) {

0 commit comments

Comments
 (0)