From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tal Gilboa Subject: [PATCH net-next V1 0/4] Introduce adaptive TX interrupt moderation to net DIM Date: Sun, 1 Apr 2018 23:28:13 +0300 Message-ID: <1522614497-64957-1-git-send-email-talgi@mellanox.com> Cc: netdev@vger.kernel.org, Tariq Toukan , Tal Gilboa , Saeed Mahameed , Florian Fainelli To: "David S. Miller" Return-path: Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:53651 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753901AbeDAU20 (ORCPT ); Sun, 1 Apr 2018 16:28:26 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Net DIM is a library designed for dynamic interrupt moderation. It was implemented and optimized with receive side interrupts in mind, since these are usually the CPU expensive ones. This patch-set introduces adaptive transmit interrupt moderation to net DIM, complete with a usage in the mlx5e driver. Using adaptive TX behavior would reduce interrupt rate for multiple scenarios. Furthermore, it is essential for increasing bandwidth on cases where payload aggregation is required. In order to avoid conflicts, this patch-set is rebased over Florian Fainelli's "[PATCH net-next v2 3/3] net: bcmgenet: Fix coalescing settings handling" patch. v1: Fix compilation issues due to missed function renaming. Tal Gilboa (4): net/dim: Rename *_get_profile() functions to *_get_rx_moderation() net/dim: Add "enabled" field to net_dim struct net/dim: Support adaptive TX moderation net/mlx5e: Enable adaptive-TX moderation drivers/net/ethernet/broadcom/bcmsysport.c | 6 +- drivers/net/ethernet/broadcom/bnxt/bnxt_dim.c | 8 +-- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 6 +- drivers/net/ethernet/mellanox/mlx5/core/en.h | 5 +- drivers/net/ethernet/mellanox/mlx5/core/en_dim.c | 28 ++++++--- .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 35 +++++++---- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 34 ++++++++-- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 37 ++++++++--- include/linux/net_dim.h | 72 +++++++++++++++++----- 10 files changed, 173 insertions(+), 60 deletions(-) -- 1.8.3.1