Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1808285rdh; Tue, 26 Sep 2023 04:24:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4XPMcrchaAHuu0fp0135+i2b1qDPHAL4FS0QeNidVpkZ/W2bjPPY+90HdFpQbERD10qZ5 X-Received: by 2002:a05:6a20:1049:b0:157:eb44:fd2e with SMTP id gt9-20020a056a20104900b00157eb44fd2emr7122178pzc.19.1695727451711; Tue, 26 Sep 2023 04:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695727451; cv=none; d=google.com; s=arc-20160816; b=THV63PNm0cGSu4mcoQ0awWL7duJdGNPxjOuxfIPZBfaES/CpvbRX+lIVIArec5X4R6 xefYRBVN8w88wiO7dOUtCL6hKxL42yB4ffozrYPB8R3p7ZznDFkc/TxMW7T/QmJDzS/1 JlSUeqes7UgKqVrrjuo/1bIuRJbOrgh2cJNYEFSnGh8MTDs9dxftFjK7XiNV4zzsNfrf 94Q3W5oCYBy1e0WXh3nYChowJ/fCApK5AwNGdnMD8wJHiWOJe9PzYNA/Nb+36B/b05D8 AO0v+90PAdBGsUa4Y4o5j4awkyR8ORd53zXMc/2YWugprORisqBK39sgCWx/FueNdWO6 6Kuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TgaA10o07Y0DvVpEG1QIMeJurjFO1o0pcqBH/hnlKmU=; fh=ihIYiilCZXBu9x8WrnA4PYm4Oe+ipaGNn90/3600c/4=; b=qR39yvnYusFObhxUQrGfhz+OM7wl656kNsrnRG9l4DhlVUJ6Odf48kna+32qFOixEn gKenf/BtyNPIUjWPqbjEu426BMiKqla7yWD1KIyyUgmSz1uX4J5YrONlPXvqEk79QGZC wVTQ+EQ/HflKkEbuakE/0pPLz3ShXUAtS7pMreJTVunuUkpHH850kZtAiqU4CNtefq+n tk4G6GAEuJqbFY/i6a/mVZw0p5rdS/SUJfZyoWh2f3UhLvlen3Smbawti9XPSerB8a/a iE7B9nT52xtymvz7D4B5q4T2xB1vxy5bpXHV2QRA4WRqzMSjQ461QGomdpjFm7vnmhxF fk9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x22-20020a17090aca1600b002743b58483asi4948735pjt.66.2023.09.26.04.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:24:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9BA4581DDE6F; Tue, 26 Sep 2023 04:18:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230231AbjIZLSj (ORCPT + 99 others); Tue, 26 Sep 2023 07:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbjIZLSj (ORCPT ); Tue, 26 Sep 2023 07:18:39 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D209116; Tue, 26 Sep 2023 04:18:31 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 38QBHiQpA857841, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 38QBHiQpA857841 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Sep 2023 19:17:44 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Tue, 26 Sep 2023 19:17:44 +0800 Received: from fc38.localdomain (172.22.228.98) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 26 Sep 2023 19:17:43 +0800 From: Hayes Wang To: , CC: , , , , , , , Hayes Wang Subject: [PATCH net-next v3 0/2] r8152: modify rx_bottom Date: Tue, 26 Sep 2023 19:17:12 +0800 Message-ID: <20230926111714.9448-432-nic_swsd@realtek.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.22.228.98] X-ClientProxiedBy: RTEXH36506.realtek.com.tw (172.21.6.27) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 04:18:37 -0700 (PDT) v3: For patch #1, this patch is replaced. The new patch only break the loop, and keep that the driver would queue the rx packets. For patch #2, modify the code depends on patch #1. For work_down < budget, napi_get_frags() and napi_gro_frags() would be used. For the others, nothing is changed. v2: For patch #1, add comment, update commit message, and add Fixes tag. v1: These patches are used to improve rx_bottom(). Hayes Wang (2): r8152: break the loop when the budget is exhausted r8152: use napi_gro_frags drivers/net/usb/r8152.c | 85 ++++++++++++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 22 deletions(-) -- 2.41.0