From patchwork Wed Aug 29 08:25:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10579661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 750D25A4 for ; Wed, 29 Aug 2018 08:29:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63DB62A5EE for ; Wed, 29 Aug 2018 08:29:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 583192A5F9; Wed, 29 Aug 2018 08:29:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F6A12A5EE for ; Wed, 29 Aug 2018 08:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=o+rTqD4zEs24lYnjt3TQSQosQ6QiM4GHlMnVpCWNX0o=; b=B2aMT5rDwnKF8M u+GEuWi0i7ZtQ+rF0rmT867ISLfAbJj3iFtjh8jun4c3NFOp/V6hJ3SWB5BIC3Ftb35i/5MBEJ1Qo cFQmF/PAiftD0UQwjav3dC6W+zf1c+dSCm+3ukAez8ddVo68pw3F2MZU4Vsspl7QboRSevJ/ZBFqC MASr2MWTalEIRPqZiUZaYzsfljcMO+i7XOEqhgDNjVhhVeMsf7yt7+FU19aZ6rVBkelCfX+CkwBKN l1P1eHoIi4L3gSTcfO3krUlAsXq7MFlTMMKGCZwKEyoGgelCBFUwdsEz8zfWIcBb7+llnZj3Hg9k8 YnZkPoOBYYP0/iF3Tfmw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuvrC-0002lz-8N; Wed, 29 Aug 2018 08:29:42 +0000 Received: from mail-sn1nam01on062b.outbound.protection.outlook.com ([2a01:111:f400:fe40::62b] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuvqm-0002XL-3H for linux-arm-kernel@lists.infradead.org; Wed, 29 Aug 2018 08:29:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xARPM8KW+YYsM3+FkXpHcATpObHryFfJvFRN5A15nfg=; b=FWeJctdBjR1bgaroWpL/qGqa85l9n0OlKjbMq4fPXzdT3voK152BWDL0ehbfKFFHKe9AK+5MUyLvi8/awERlbZFj5DV1i1WXp1GQHcD01s6V0PIFSFM3im0DxHKoel4e0HQzSNtNJQ4GgIiDrpP1HBF1zJ4Xg2+i8SVCi5ohT3g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by SN1PR0301MB1581.namprd03.prod.outlook.com (2a01:111:e400:5232::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 08:29:00 +0000 Date: Wed, 29 Aug 2018 16:25:57 +0800 From: Jisheng Zhang To: , "David S. Miller" Subject: [PATCH 0/5] net: mvneta: some bug fix and trivial improvement Message-ID: <20180829162456.2bd69796@xhacker.debian> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TY2PR01CA0021.jpnprd01.prod.outlook.com (2603:1096:404:a::33) To SN1PR0301MB1581.namprd03.prod.outlook.com (2a01:111:e400:5232::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 27e4b8d3-ea8e-4ff9-81ff-08d60d897a14 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN1PR0301MB1581; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1581; 3:KoNPy0/4ixXcWoaomqX3DLM6NZQhwyTxqF6mOd4sLFMxAl2vsAnY2hW8is2+4LLC9pwtWS0d6BXCRei4B35Sq4VLRGLGbmRgOO33gIaTZQOsGd17wHRZotf55SA8X5BgyMfzp8T35Z2DP2EjwQyaTyMkC4usOfSyL9X9id7GUlttpIHmz/+cXM35fqaSymFAel/IPAzPekwEE5hM5xVP92Jfz+h9+BldmwBgZ1rHV8pHTfY0Erb9Tc3YsH4mrl+6; 25:9umRwUCk7Vy/SAnpZ64bmde88APMOgjm5GuX85pGWc7eYpGOQ+S1ycCR6qMIK57/2VTtg1H08uSJE5mRUS/g9X/4tVouNRvr16h6KvIHLKxCBxQARmCm8rtrnafqUcx/jglcxcRfXPuEyPLhusF+cltvWSWh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HujBOpqs1Gn3z8DuEKXXc7tvDbdypgIeCvn5VsXut7pnQjmA3NE7vR+gcUfcLOQdByg9vOWaQUOXnnWMTiBZBnw8VV+1hvzGI8yxyc8Gav733Sbv1BefTfFGUyKGHFbjZhGtprsizFKX44KWAw3DqRd+U6RF6+bA9eZ3ZKCZQJhrp5LvfApNUHhGrGXI18zowmRPVtUpv7RvOSotUGQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699016); SRVR:SN1PR0301MB1581; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1581; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39850400004)(136003)(346002)(376002)(189003)(199004)(47776003)(1076002)(97736004)(72206003)(50466002)(81166006)(486006)(66066001)(110136005)(7736002)(16526019)(81156014)(6666003)(8676002)(2906002)(186003)(68736007)(33896004)(9686003)(25786009)(478600001)(52116002)(54906003)(55016002)(7696005)(5660300001)(305945005)(956004)(86362001)(106356001)(316002)(230700001)(476003)(105586002)(386003)(8936002)(6506007)(26005)(53936002)(6116002)(50226002)(3846002)(23726003)(4326008)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1581; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1581; 23:/ba5OIQEuRYUHmAgciddCi9Hat4wj7RQnoyRBu6?= E155dFY4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yfcuFjp791yNgnfnnnT6zSdeVfAmcd/t0u7PNMD5VlXdrnj0Uqzm5/JD3+R8=; 7:jSqTv8yGSNGKRXsL8D4PuNcXqeULQ5qySZHt7WsdhBDjved5wm21l1dypQU3DBlC4tzMgKO/DBxzPCHIed/dcvUxFPJpfMwdy6jrp2xxrUremRgexspOCIpi0wZvP1qVk62/XBMVBevpvj+OQ9ad0pM+GVhj45Y0i1/1JDM45dSIYXiH7Hky7ipaxvMr6Dwl4X1zL2TOEGUw7ptIkHxpZnYXGdmuOHSA3jpCblTwDFqFYnONRnmC5iBSSdgT+/Ez SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 08:29:00.3367 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 27e4b8d3-ea8e-4ff9-81ff-08d60d897a14 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1581 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180829_012916_306955_065C4FCA X-CRM114-Status: UNSURE ( 5.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Gregory CLEMENT , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andrew Lunn Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP patch1 fixes rx_offset_correction set and usage. Because the rx_offset_correction is RX packet offset correction for platforms, it's not related with SW BM, instead, it's only related with the platform's NET_SKB_PAD. patch2 fixes the wrong function to unmap rx buf patch3 removes the NETIF_F_GRO check ourself, because the net subsystem will handle it for us. patch4 enables NETIF_F_RXCSUM by default, since the driver and HW supports the feature. patch5 is a trivial optimization, to reduce smp_processor_id() calling in mvneta_tx_done_gbe. Jisheng Zhang (5): net: mvneta: fix rx_offset_correction set and usage net: mvneta: fix the wrong function to unmap rx buf net: mvneta: Don't check NETIF_F_GRO ourself net: mvneta: enable NETIF_F_RXCSUM by default net: mvneta: reduce smp_processor_id() calling in mvneta_tx_done_gbe drivers/net/ethernet/marvell/mvneta.c | 49 ++++++++++++--------------- 1 file changed, 22 insertions(+), 27 deletions(-)