Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp488933ybl; Mon, 12 Aug 2019 20:46:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjOWYpxTs75NZeGJ2Peq+l/zxYLpuloOCqxoQAJEhy8S/4HxIySksIQWQ7OkLaSF5jQv42 X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr275517pjq.143.1565667980014; Mon, 12 Aug 2019 20:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565667980; cv=none; d=google.com; s=arc-20160816; b=BwV4EZCwb6Xl6WfaJmY7OOwvUyW7TO6zZYMWUja/kUu4xw/KQwCv8F2nLi3/VpcFHC eeUMHps9JDWUPIcE+i7SLr16eVnyoPSO5hK6XB9DZnZxrgiMg9Bpsc05Klu3zh7EFT7Z d4nxOwq2bd2eYDsp2CxIQwNxP+6vvps7Rew63s/5SYtfIh++/4FlqS0gZi+EVjt9ATgg u9sI6i1+6kjKzUlzYx+5Ce20KcbBXWs10MDHUOS+lW0Usxtk7EYwySCUcCgYa1LdtTru BF0qcBEi7K34OawSM/dv184DGy0CMA7rylV3SSY8dAVa/p1KquSs9XR3MihxvWqGTj6T piiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=0M2fZR4P/quWSPD3PXQXVIS4+MmAUNn/B5nXlQfTYEk=; b=WgfRqI2ACxVPQ6WzSTDk9hLl+mUPa/dtObMzmzqhjbGxQIZQODsYyN0G0NiqNkvmBh Vqux89s7iIuIJ71uQGckymGeUL8b69lv+dYeWxLJU5Pm7StyBBemSPp9N5KLN6AVEfzE 0i41Dxwue1KHhkwdtPYSBfoL8mIjrfPgmiqxu1wWgmzobAIq1Ub12HWnIyaBfIXfCjSn P/U9As/r6T4AnvIkNtXu157X2IHgzTwhzNik43EwAVSzWxGSi+3I9uVZ5ZlUiic/6Loc YLTOSJHxnthDUNGbHBEdskJ4VcTMCwBjmJCAcRIwYKnmim+e/otna/SloldorOMnJ4Gb qZ9A== 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 g2si72438024pfq.160.2019.08.12.20.46.04; Mon, 12 Aug 2019 20:46:20 -0700 (PDT) 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 S1726852AbfHMDmi (ORCPT + 99 others); Mon, 12 Aug 2019 23:42:38 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:39389 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbfHMDmh (ORCPT ); Mon, 12 Aug 2019 23:42:37 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x7D3gYlt011959, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x7D3gYlt011959 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Aug 2019 11:42:34 +0800 Received: from fc30.localdomain (172.21.177.138) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Tue, 13 Aug 2019 11:42:33 +0800 From: Hayes Wang To: CC: , , , Hayes Wang Subject: [PATCH net-next v2 0/5] r8152: RX improve Date: Tue, 13 Aug 2019 11:42:04 +0800 Message-ID: <1394712342-15778-295-albertk@realtek.com> X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1394712342-15778-289-Taiwan-albertk@realtek.com> References: <1394712342-15778-289-Taiwan-albertk@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.177.138] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: For patch #2, replace list_for_each_safe with list_for_each_entry_safe. Remove unlikely in WARN_ON. Adjust the coding style. For patch #4, replace list_for_each_safe with list_for_each_entry_safe. Remove "else" after "continue". For patch #5. replace sysfs with ethtool to modify rx_copybreak and rx_pending. v1: The different chips use different rx buffer size. Use skb_add_rx_frag() to reduce memory copy for RX. Hayes Wang (5): r8152: separate the rx buffer size r8152: replace array with linking list for rx information r8152: use alloc_pages for rx buffer r8152: support skb_add_rx_frag r8152: change rx_copybreak and rx_pending through ethtool drivers/net/usb/r8152.c | 374 ++++++++++++++++++++++++++++++++-------- 1 file changed, 304 insertions(+), 70 deletions(-) -- 2.21.0