From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f68.google.com ([209.85.160.68]:36213 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbeCWBTi (ORCPT ); Thu, 22 Mar 2018 21:19:38 -0400 Received: by mail-pl0-f68.google.com with SMTP id 61-v6so6496375plf.3 for ; Thu, 22 Mar 2018 18:19:38 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , davem@davemloft.net, jaedon.shin@gmail.com, pgynther@google.com, opendmb@gmail.com, michal.chan@broadcom.com, gospo@broadcom.com, talgi@mellanox.com, saeedm@mellanox.com Subject: [PATCH net-next 0/2] net: broadcom: Adaptive interrupt coalescing Date: Thu, 22 Mar 2018 18:19:31 -0700 Message-Id: <20180323011933.29748-1-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Hi all, This patch series adds adaptive interrupt coalescing for the Gigabit Ethernet drivers SYSTEMPORT and GENET. This really helps lower the interrupt count and system load, as measured by vmstat for a Gigabit TCP RX session: SYSTEMPORT: without: 1 0 0 192188 0 25472 0 0 0 0 122100 38870 1 42 57 0 0 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 1.03 GBytes 884 Mbits/sec with: 1 0 0 192288 0 25468 0 0 0 0 58806 44401 0 100 0 0 0 [ 5] 0.0-10.0 sec 1.04 GBytes 888 Mbits/sec GENET: without: 1 0 0 1170404 0 25420 0 0 0 0 130785 63402 2 85 12 0 0 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 1.04 GBytes 888 Mbits/sec with: 1 0 0 1170560 0 25420 0 0 0 0 50610 48477 0 100 0 0 0 [ 5] 0.0-10.0 sec 1.05 GBytes 899 Mbits/sec Please look at the implementation and let me know if you see any problems, this was largely inspired by bnxt_en. Thank you! Florian Fainelli (2): net: systemport: Implement adaptive interrupt coalescing net: bcmgenet: Add support for adaptive RX coalescing drivers/net/ethernet/broadcom/bcmsysport.c | 141 ++++++++++++++++++++++--- drivers/net/ethernet/broadcom/bcmsysport.h | 14 +++ drivers/net/ethernet/broadcom/genet/bcmgenet.c | 109 +++++++++++++++---- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 12 +++ 4 files changed, 243 insertions(+), 33 deletions(-) -- 2.14.1