From patchwork Fri Jul 15 07:50:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sieng-Piaw Liew X-Patchwork-Id: 12918891 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84271C433EF for ; Fri, 15 Jul 2022 07:52:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231480AbiGOHwA (ORCPT ); Fri, 15 Jul 2022 03:52:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbiGOHv7 (ORCPT ); Fri, 15 Jul 2022 03:51:59 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8797968E; Fri, 15 Jul 2022 00:51:58 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id r186so3753933pgr.2; Fri, 15 Jul 2022 00:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vbSHf48BhvIJZr2j+0ZNh16mnf1g2t5iGQ0q6TIKadA=; b=LIulgRG5+wx0QlFFLVE1qIgtt5bLPhvnyQ0PpipnL2GEFAEU5/2gLdCPgus1QKbWAg u5c2BC4K6dn8T1vD/qkeWs/1B/P7BKNZKPB67jg31kGS9fclsqHp4tt+K6g3UkpvMIwl Y0cAUmCTzSJLInyrn3Ag8i4BxuZYwihi/DBXr6ZPUELW4qZPa8AdDPkCjD44cXTSAudN sDw6iP6l3bK7in6bwjqH7NAk8UvnVLLBKoJUTC0yNy+8Nv9UDAJGPyfIqYLbgJT6OiHo aJdPprkthHXh7M3H0akMn070LfKeGU5aCojpN9D4kM1/q2QdbdUL/T8CK+M+Y36DudWJ 4hMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vbSHf48BhvIJZr2j+0ZNh16mnf1g2t5iGQ0q6TIKadA=; b=WN1hDeq5THLYjUi0y6CVzZ2v1VlJ3rM4ZGcxdQjbsxNT0ZfKNq3yXdCI1zFuz9aFJD mq0+pWXGghK2DCoC8jZgs4NErkPhBr5pd3i9GWNUtcRqJL+/1zwwFlQ8v250Ddn5Pv01 le4eTKrmMGBRXic1Q5FB4N/is8CI/BVULiSaeK19F3d27SkKSsvf8+eFzsNRIZcV85H6 fjJOUfnfBs3dYbYaU4psRs5jjw0uprsSfECcxxLdae9xHlEKD0jN4L/o1BYBl4ZipjTK o794Zzv3ti5Pq2Vz/XXvbQh26d3F3jukA8re42Aju75BRds0YOjTOSJu/+f9T+syIV/l Cpbw== X-Gm-Message-State: AJIora+GKlBCDoNoPS7CwIrMplf6OT/75KTw6xmGbiHbISRfQOn58Rsq G2qs2BYjORybXrEFNIyXqAoH0V2hF68= X-Google-Smtp-Source: AGRyM1t5iJZPd+PQC4s912t84T0RzZV47+mgse88grBeiIfBm/oGYJQvLUvQPTiT91BkrB2VFIFzhA== X-Received: by 2002:a63:f952:0:b0:412:8852:80fe with SMTP id q18-20020a63f952000000b00412885280femr11196836pgk.194.1657871517892; Fri, 15 Jul 2022 00:51:57 -0700 (PDT) Received: from DESKTOP-8REGVGF.localdomain ([211.25.125.254]) by smtp.gmail.com with ESMTPSA id h10-20020aa79f4a000000b00528d880a32fsm3037147pfr.78.2022.07.15.00.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 00:51:57 -0700 (PDT) From: Sieng-Piaw Liew To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sieng-Piaw Liew Subject: [PATCH net-next v2] atl1c: use netif_napi_add_tx() for Tx NAPI Date: Fri, 15 Jul 2022 15:50:43 +0800 Message-Id: <20220715075043.912-1-liew.s.piaw@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220714213857.45d4bf3e@kernel.org> References: <20220714213857.45d4bf3e@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Use netif_napi_add_tx() for NAPI in Tx direction instead of the regular netif_napi_add() function. Signed-off-by: Sieng-Piaw Liew --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 948584761e66..a6d55f452e2f 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -2734,8 +2734,8 @@ static int atl1c_probe(struct pci_dev *pdev, const struct pci_device_id *ent) netif_napi_add(netdev, &adapter->rrd_ring[i].napi, atl1c_clean_rx, 64); for (i = 0; i < adapter->tx_queue_count; ++i) - netif_napi_add(netdev, &adapter->tpd_ring[i].napi, - atl1c_clean_tx, 64); + netif_napi_add_tx(netdev, &adapter->tpd_ring[i].napi, + atl1c_clean_tx); timer_setup(&adapter->phy_config_timer, atl1c_phy_config, 0); /* setup the private structure */ err = atl1c_sw_init(adapter);