From patchwork Thu Nov 29 08:08:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 152372 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2088423ljp; Thu, 29 Nov 2018 00:08:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/WEOoOkoT5qkeLRVWqplMSlT08KYZRRoa2I6epOfT1AzU0LO7d+U40CaQhfye0TrdRCbReu X-Received: by 2002:a17:902:a6:: with SMTP id a35mr479827pla.201.1543478927990; Thu, 29 Nov 2018 00:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543478927; cv=none; d=google.com; s=arc-20160816; b=ljEUqanZBP6iZVj3Z63Fmeynb6I4a3RZJkP+bTWxDvnzm31O7Yq8bzH2wwZ8sEvVFX qrQdgLdyeDnu/+PuuRmg3eAed+N0Tv2dyk0uLzjcCFHmpTTrwqu5kruWY21dHdX1LrtW cmGbCujJ6dIJh+VdYqdbWJBu1NEaFikw1OCfGjWiPFpSPk8W1ahSHo4wRaHyV3AblFRR EDsgzv6o1057lsv1GPECQLuj1AtplCf2ubnjwo3pi2wKoz2zlLoA7r834g6MOI+miezO t1XFK3xDUB15QBEg5j/TTagjkpzWY8yaI5qmxuukEDTDjSYuRDEiaaH6C1Y018VyDaPb ysyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=vsYvpOSVLZJmorybimrin8emv5mt7GIT5+BwrP8vhcM=; b=GND0E2NUctn80w6TUHk13ZLmrX1elvBVrs+mQt2caOBBvH8jsURyI+C1JjHxQChGOz gVhsAq9NyV2NdgkZQJpyfVYsmAYQdGQ1WGLhF6fNoSHpKRT+nD6d/n83PctN9Vk4Jm0j yk0TDBycg4l/RZFjq1bv8dFhQIEJ8sbVSbUIGdRjtDYwB1GtD/aAXZVyKcopAKN4wUWN p7l6asyqYHHrbRbr6eMCPXxecKvHYlLYPpR96lrIliPxN4H+s8r+fSbSpqAQDvH2Yui5 rkx/tHOYPLdjCKZsHvWTanZC93wYlzaeQp1IGCSs51M+Tkls09xwEQLJW8B9Hax576Vr F6jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si1320288pgj.77.2018.11.29.00.08.47; Thu, 29 Nov 2018 00:08:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728004AbeK2TNQ (ORCPT + 32 others); Thu, 29 Nov 2018 14:13:16 -0500 Received: from mx.socionext.com ([202.248.49.38]:4132 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727944AbeK2TNQ (ORCPT ); Thu, 29 Nov 2018 14:13:16 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 29 Nov 2018 17:08:44 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id D6491180BCB; Thu, 29 Nov 2018 17:08:44 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 29 Nov 2018 17:08:44 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 38EC81A03A2; Thu, 29 Nov 2018 17:08:44 +0900 (JST) From: Kunihiko Hayashi To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH net 1/3] net: ethernet: ave: Increase descriptors to improve performance Date: Thu, 29 Nov 2018 17:08:36 +0900 Message-Id: <1543478918-13883-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543478918-13883-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1543478918-13883-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To improve performance, this increases Rx descriptor to 256, Tx descriptor to 64, and adjusts NAPI weight to NAPI_POLL_WEIGHT. Signed-off-by: Kunihiko Hayashi --- drivers/net/ethernet/socionext/sni_ave.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/net/ethernet/socionext/sni_ave.c b/drivers/net/ethernet/socionext/sni_ave.c index 8c1e120..598b963 100644 --- a/drivers/net/ethernet/socionext/sni_ave.c +++ b/drivers/net/ethernet/socionext/sni_ave.c @@ -185,8 +185,8 @@ NETIF_MSG_TX_ERR) /* Parameter for descriptor */ -#define AVE_NR_TXDESC 32 /* Tx descriptor */ -#define AVE_NR_RXDESC 64 /* Rx descriptor */ +#define AVE_NR_TXDESC 64 /* Tx descriptor */ +#define AVE_NR_RXDESC 256 /* Rx descriptor */ #define AVE_DESC_OFS_CMDSTS 0 #define AVE_DESC_OFS_ADDRL 4 @@ -1694,9 +1694,10 @@ static int ave_probe(struct platform_device *pdev) pdev->name, pdev->id); /* Register as a NAPI supported driver */ - netif_napi_add(ndev, &priv->napi_rx, ave_napi_poll_rx, priv->rx.ndesc); + netif_napi_add(ndev, &priv->napi_rx, ave_napi_poll_rx, + NAPI_POLL_WEIGHT); netif_tx_napi_add(ndev, &priv->napi_tx, ave_napi_poll_tx, - priv->tx.ndesc); + NAPI_POLL_WEIGHT); platform_set_drvdata(pdev, ndev);