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>
This commit is contained in:
commit
b549faa950
|
|
@ -605,10 +605,8 @@ next:
|
|||
|
||||
bcmasp_intf_rx_desc_write(intf, intf->rx_edpkt_dma_read);
|
||||
|
||||
if (processed < budget) {
|
||||
napi_complete_done(&intf->rx_napi, processed);
|
||||
if (processed < budget && napi_complete_done(&intf->rx_napi, processed))
|
||||
bcmasp_enable_rx_irq(intf, 1);
|
||||
}
|
||||
|
||||
return processed;
|
||||
}
|
||||
|
|
@ -1281,6 +1279,8 @@ struct bcmasp_intf *bcmasp_interface_create(struct bcmasp_priv *priv,
|
|||
ndev->hw_features |= ndev->features;
|
||||
ndev->needed_headroom += sizeof(struct bcmasp_pkt_offload);
|
||||
|
||||
netdev_sw_irq_coalesce_default_on(ndev);
|
||||
|
||||
return intf;
|
||||
|
||||
err_free_netdev:
|
||||
|
|
|
|||
Loading…
Reference in New Issue