Commit 5d6d67c4 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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/20250531224853.1339-1-zakkemble@gmail.com
====================

Link: https://patch.msgid.link/20250610220403.935-1-zakkemble@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents 5e84d5b3 078bb22c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2472,10 +2472,8 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)

	work_done = bcmgenet_desc_rx(ring, budget);

	if (work_done < budget) {
		napi_complete_done(napi, work_done);
	if (work_done < budget && napi_complete_done(napi, work_done))
		bcmgenet_rx_ring_int_enable(ring);
	}

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

	netdev_sw_irq_coalesce_default_on(dev);

	/* Request the WOL interrupt and advertise suspend if available */
	priv->wol_irq_disabled = true;
	if (priv->wol_irq > 0) {