* [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing
@ 2025-06-10 22:04 Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 1/2] net: bcmgenet: use napi_complete_done return value Zak Kemble
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Zak Kemble @ 2025-06-10 22:04 UTC (permalink / raw)
To: Doug Berger, Florian Fainelli,
Broadcom internal kernel review list, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
netdev, linux-kernel
Cc: Zak Kemble
Reposting as requested here https://lore.kernel.org/all/20250531224853.1339-1-zakkemble@gmail.com
Hey, these patches enable support for software IRQ coalescing and GRO
aggregation and applies conservative defaults which can help improve
system and network performance by reducing the number of hardware
interrupts and improving GRO aggregation ratio.
Zak Kemble (2):
net: bcmgenet: use napi_complete_done return value
net: bcmgenet: enable GRO software interrupt coalescing by default
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.39.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net-next 1/2] net: bcmgenet: use napi_complete_done return value
2025-06-10 22:04 [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing Zak Kemble
@ 2025-06-10 22:04 ` Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 2/2] net: bcmgenet: enable GRO software interrupt coalescing by default Zak Kemble
2025-06-12 0:50 ` [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Zak Kemble @ 2025-06-10 22:04 UTC (permalink / raw)
To: Doug Berger, Florian Fainelli,
Broadcom internal kernel review list, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
netdev, linux-kernel
Cc: Zak Kemble
Make use of the return value from napi_complete_done(). This allows users to
use the gro_flush_timeout and napi_defer_hard_irqs sysfs attributes for
configuring software interrupt coalescing.
Signed-off-by: Zak Kemble <zakkemble@gmail.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index fa0077bc6..cc9bdd244 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -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,
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next 2/2] net: bcmgenet: enable GRO software interrupt coalescing by default
2025-06-10 22:04 [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 1/2] net: bcmgenet: use napi_complete_done return value Zak Kemble
@ 2025-06-10 22:04 ` Zak Kemble
2025-06-12 0:50 ` [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Zak Kemble @ 2025-06-10 22:04 UTC (permalink / raw)
To: Doug Berger, Florian Fainelli,
Broadcom internal kernel review list, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
netdev, linux-kernel
Cc: Zak Kemble
Apply conservative defaults.
Signed-off-by: Zak Kemble <zakkemble@gmail.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index cc9bdd244..4f40f6afe 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -3986,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) {
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing
2025-06-10 22:04 [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 1/2] net: bcmgenet: use napi_complete_done return value Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 2/2] net: bcmgenet: enable GRO software interrupt coalescing by default Zak Kemble
@ 2025-06-12 0:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-12 0:50 UTC (permalink / raw)
To: Zak Kemble
Cc: opendmb, florian.fainelli, bcm-kernel-feedback-list,
andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 10 Jun 2025 23:04:01 +0100 you wrote:
> Reposting as requested here https://lore.kernel.org/all/20250531224853.1339-1-zakkemble@gmail.com
>
> Hey, these patches enable support for software IRQ coalescing and GRO
> aggregation and applies conservative defaults which can help improve
> system and network performance by reducing the number of hardware
> interrupts and improving GRO aggregation ratio.
>
> [...]
Here is the summary with links:
- [net-next,1/2] net: bcmgenet: use napi_complete_done return value
https://git.kernel.org/netdev/net-next/c/28ed9bed5fb2
- [net-next,2/2] net: bcmgenet: enable GRO software interrupt coalescing by default
https://git.kernel.org/netdev/net-next/c/078bb22cfc65
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-12 0:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 22:04 [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 1/2] net: bcmgenet: use napi_complete_done return value Zak Kemble
2025-06-10 22:04 ` [PATCH net-next 2/2] net: bcmgenet: enable GRO software interrupt coalescing by default Zak Kemble
2025-06-12 0:50 ` [PATCH net-next 0/2] net: bcmgenet: add support for GRO software interrupt coalescing patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).