From patchwork Wed Nov 30 09:44:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yang X-Patchwork-Id: 27711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp838844wrr; Wed, 30 Nov 2022 02:20:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QrfJ02Xt6U5WaUaiLF/9eJtXY/GG1AJ5LWkmr5HoR761+3jXfr7dyJSxwF+LdjmU/jzNU X-Received: by 2002:aa7:ce86:0:b0:46b:1872:4194 with SMTP id y6-20020aa7ce86000000b0046b18724194mr13726251edv.362.1669803600202; Wed, 30 Nov 2022 02:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669803600; cv=none; d=google.com; s=arc-20160816; b=LWP8QYczz7k6DONh+Uhej/vTAYRFNUmXYQfjLjkv9eVL+ds4SVUugl+7b9deiG7mO7 spbFfXc0qZ6wo3N+CJgtgrPf90qKLk7oW/C+MP/wnmFDWT5NkDpZCi2XOepJRlZuKck3 kRxRr3wUmQuHPVcCBtFd30ZkU99csfrgX6ycQ6joWhDhK+sAZ4pW8T46btbi4kiRjY6W FVX867ZK4YAmWffJap/iy9xCrtqBCB1Ak1vETaKhaaAPsVYgp6PbF7BDf8RnMKAB2SPo IxwL7ryO8+nvnbPKZVnLcjw4Ajl8tOJ3HNQ+TqnSW0hkl+IOsg5jHib2Gw7lneSCzxuR qsMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=PevljlaoTAxMu0qwQV2dGS4daV5vb2kUABYIcFdkkSU=; b=ZfMfpV7HZnLRIVsfxvvom4igwgcF+6uZxRDTKeh0ux69M0esA3qcZbIn+prfSFe/kC wPWEiv/J3p+zGaXJ0QGYYJz5SlK2ME7Q6TQXAP4Yck9J2VZHTZz/3SgDzuP5CY6zRj0n x7W2j/UDcWoiFiYbH6rYDfVgZ28U0jImRw1L7KYyWo+GvxCaZXRPV5z0YliRpg5PSFEN PDor8xtG84N5mkRI2wciZ+0Yhj0tvUL96MwHezCw4++QsimH21/cz3S/vqpXSg2ifcQ4 6/Y8SwWXjDLJUuu3O3+0HI7WvqJHxKDrBH+LljJKWgvpMDLoJ+dnL4L70uLKumxX5hxO AMFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a170906059100b007ae74740fa4si723219ejn.275.2022.11.30.02.19.36; Wed, 30 Nov 2022 02:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231928AbiK3Joz (ORCPT + 99 others); Wed, 30 Nov 2022 04:44:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233439AbiK3Joq (ORCPT ); Wed, 30 Nov 2022 04:44:46 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAC7B1FCD6; Wed, 30 Nov 2022 01:44:44 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NMZ6y70qNz4xVnf; Wed, 30 Nov 2022 17:44:42 +0800 (CST) Received: from szxlzmapp06.zte.com.cn ([10.5.230.252]) by mse-fl2.zte.com.cn with SMTP id 2AU9iZEi061201; Wed, 30 Nov 2022 17:44:35 +0800 (+08) (envelope-from yang.yang29@zte.com.cn) Received: from mapi (szxlzmapp02[null]) by mapi (Zmail) with MAPI id mid14; Wed, 30 Nov 2022 17:44:37 +0800 (CST) Date: Wed, 30 Nov 2022 17:44:37 +0800 (CST) X-Zmail-TransId: 2b04638726050486114f X-Mailer: Zmail v1.0 Message-ID: <202211301744378304494@zte.com.cn> Mime-Version: 1.0 From: To: , , Cc: , , Subject: =?utf-8?q?=5BPATCH=5D_IB/hfi1=3A_switch_to_netif=5Fnapi=5Fadd=28=29?= X-MAIL: mse-fl2.zte.com.cn 2AU9iZEi061201 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.138.novalocal with ID 6387260A.001 by FangMail milter! X-FangMail-Envelope: 1669801483/4NMZ6y70qNz4xVnf/6387260A.001/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6387260A.001/4NMZ6y70qNz4xVnf X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750915979904522747?= X-GMAIL-MSGID: =?utf-8?q?1750915979904522747?= From: Yang Yang There is no need to use netif_napi_add_weight() when the weight argument is 64. See "net: drop the weight argument from netif_napi_add". Signed-off-by: Yang Yang Reviewed-by: xu xin Reviewed-by: Zhang Yunkai --- drivers/infiniband/hw/hfi1/netdev_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/netdev_rx.c b/drivers/infiniband/hw/hfi1/netdev_rx.c index 3dfa5aff2512..08080ca6cb2d 100644 --- a/drivers/infiniband/hw/hfi1/netdev_rx.c +++ b/drivers/infiniband/hw/hfi1/netdev_rx.c @@ -216,7 +216,7 @@ static int hfi1_netdev_rxq_init(struct hfi1_netdev_rx *rx) * right now. */ set_bit(NAPI_STATE_NO_BUSY_POLL, &rxq->napi.state); - netif_napi_add_weight(dev, &rxq->napi, hfi1_netdev_rx_napi, 64); + netif_napi_add(dev, &rxq->napi, hfi1_netdev_rx_napi); rc = msix_netdev_request_rcd_irq(rxq->rcd); if (rc) goto bail_context_irq_failure;