From patchwork Tue Sep 26 11:17:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hayes Wang X-Patchwork-Id: 14529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1836392vqu; Tue, 26 Sep 2023 04:24:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEE6gV7LVcEwOmIBh4Zb2KCOraeenU05huaEKlMJT9MJme2khkfm60TFL39Il/ma9ZC6EFT X-Received: by 2002:a17:902:b192:b0:1c6:2b5e:824e with SMTP id s18-20020a170902b19200b001c62b5e824emr2261318plr.28.1695727455563; Tue, 26 Sep 2023 04:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695727455; cv=none; d=google.com; s=arc-20160816; b=aBqWSVrn2s0vgQF/9VrOLdjsxzfvwPb96SPFFWoGBkKKYRuGLPVWHZ7zeYwxbU7CwL Vjt208ayNtrgYLTpzl1zKtM+O2I2J4Ty/Nj/VFer/kN/JKXD1NyvLe8YskUTHtNPZmUn Uea54QU2QVhBbY5Po0mNx07+scVXvQlIUWbyiqNg138eOoNBDOznkd9+j8PNg9M+VZNO KgJ6+PBZ2xoZEFWT9S/orryv9QGie/HPBkETfXzk6eZBd1T25b6huPgz2vefJEemQg+0 MQB63N8wKgzIDoWyg1e8qjHcCIDpsyvHtyFEX3mqSEnC0dDocGtCSLgEWUOzOBv4rOWe 55fw== 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 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x12-20020a170902ec8c00b001c43ff69d93si13296526plg.324.2023.09.26.04.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:24:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 E6D5F81DDE77; Tue, 26 Sep 2023 04:18:53 -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 S229507AbjIZLSk (ORCPT + 27 others); Tue, 26 Sep 2023 07:18:40 -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 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:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778099112172719093 X-GMAIL-MSGID: 1778099112172719093 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(-)