Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp48485lqh; Thu, 30 May 2024 13:37:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUzc1I87ipgeLiZiZ1wa12pw0x59heE9eGiGU/+WqkHE/kldriaeIjksqsglxbELMMTFUyaDt9XkQ4/p+8BILeCmB3EVz53Y/DZtudNw== X-Google-Smtp-Source: AGHT+IFqW4a6yr+AtP2GwcNTZFAC59wnEZRciPlDV+/gRoPsfrrT/EUPQW/SArcumSkdBcrfaPda X-Received: by 2002:a17:903:228d:b0:1f4:bcef:e96e with SMTP id d9443c01a7336-1f61be1393emr48551875ad.10.1717101469116; Thu, 30 May 2024 13:37:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717101469; cv=pass; d=google.com; s=arc-20160816; b=S18td0ymrx1plATAtkKbrb6XpAbjA3/H8x8EpV/hggHD3V/nvTZjga7ms92IZPdVZX QzhFH7qYKIZngPDFZ8YsKpgRiehy+7H9hVnWK7hO8TPS/f6GEhqgO7B0Z/snSTPjMyfB Gbb5LuBZSGx3IMTV8P1uvi3suz0ncTxdCqy3ofaRstQbIEN75+hi7egKEkDfTjPQyimk HhAdwIeBidI0sJVCpnS4iIx95YF/rcugRdIB4SxzTsRzukO3nj4EJfCYwabbwGpeEply AFxyC3a1JpAtHcbN72Rs3kNPaVwLbFo/C9SHVpXD1QmvFFj/yNY7yAessRhSo9YVqWrK E4Lw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=y0qZWuXEWfLWOjTHHINzJfe1YA26fXlHNvTipQftQRw=; fh=6J0mQSvL1R6IrgTiGMaCDMm/gQZugI0exFAhUzhS1Vg=; b=YRpxDd3FEw+AOH8PmyAJjFwsYNOFotYbnRG/szqI4yEQQbc5RZIwjdkgBDHOhLA5nv 9ZlF0FlmKSFkDeGBgz43AHmsb6tHyhoaal/D+JdMhMvfcPqHq0mZcbJL+ugUYVFKdpwo sOXPRpjOMJZc1ZZELCBCBcjXDzYGliwkmNYca1IfyQJxt4IenTDPgmuYIo3JyI3gT7aA ZYSGUWvFI103IGQjPwXUV4425MClC8YTxggtu+YUHw7HXtLoURAQ/UTNn+VSJ6DSJSxF OgwglkZkDO5/jAvSQerd0oV6m1Rs7D5hiWkvSmucaVRwBjOJuz5wDZdPlallVsBQ4pNx jVsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-195891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195891-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323dd6aasi2718415ad.258.2024.05.30.13.37.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 13:37:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-195891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195891-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 58DE22840F4 for ; Thu, 30 May 2024 20:37:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CA2884FC3; Thu, 30 May 2024 20:37:38 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39B4B25634; Thu, 30 May 2024 20:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717101458; cv=none; b=VCKvaC/+ir8DncrSgzSRILBJF9nS0Lvt2xGd1x85NcdE6hzsf5qtKEV1gmbnv3EFKXEctvC+9CczTHRUmmUrrFm70l9UNy5vX0LZMi2LqEIU/g715yk0ec6A49LKuAuB30uh0nRMZXUgCxzzRN4icpI0YoImyjhn69Ty6Byfncc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717101458; c=relaxed/simple; bh=buOi9I1vq2LMwZO2pL29m6PkOg20BaspyX4JF9qDuhU=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=oLN0kTC8prH6BpXJkiQjlKVjU/78rmpQFbWS5j5IKAD0Ux6GhLvRjuVR13MX+TWipX46I+aZAUqV18fA8JAK/JZINjsPCe+BR4YlBBL02E3/wkd3Kc8jOI83s33/xSeyjYD29PRElo8Z6MdC0Skm07MUnD3u+xoGaSyxIcytr80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (178.176.75.211) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Thu, 30 May 2024 23:37:14 +0300 Subject: Re: [net-next PATCH v4 4/7] net: ravb: Refactor GbEth RX code path To: Paul Barker , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?UTF-8?Q?Niklas_S=c3=b6derlund?= CC: Biju Das , Claudiu Beznea , Yoshihiro Shimoda , , , References: <20240528150339.6791-1-paul.barker.ct@bp.renesas.com> <20240528150339.6791-5-paul.barker.ct@bp.renesas.com> <611a49b8-ecdb-6b91-9d3e-262bf3851f5b@omp.ru> <908c525b-10e2-464f-ad66-df431d48ca03@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <82f623bc-b8ef-a2b4-2e61-67769e4ce091@omp.ru> Date: Thu, 30 May 2024 23:37:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <908c525b-10e2-464f-ad66-df431d48ca03@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 05/30/2024 20:21:02 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 185622 [May 30 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.4 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 20 0.3.20 743589a8af6ec90b529f2124c2bbfc3ce1d2f20f X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.75.211 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.75.211 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 05/30/2024 20:25:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 5/30/2024 7:29:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 5/29/24 10:07 PM, Paul Barker wrote: [...] >>> We can reduce code duplication in ravb_rx_gbeth(). >>> >>> Signed-off-by: Paul Barker >> [...] >> >>> diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c >>> index 7df7d2e93a3a..c9c5cc641589 100644 >>> --- a/drivers/net/ethernet/renesas/ravb_main.c >>> +++ b/drivers/net/ethernet/renesas/ravb_main.c >>> @@ -817,47 +817,54 @@ static int ravb_rx_gbeth(struct net_device *ndev, int budget, int q) >>> stats->rx_missed_errors++; >>> } else { >>> die_dt = desc->die_dt & 0xF0; >>> + skb = ravb_get_skb_gbeth(ndev, entry, desc); >>> switch (die_dt) { >> >> Why not do instead (as I've asked you alraedy): Already. :-) >> >> case DT_FSTART: >> priv->rx_1st_skb = skb; >> fallthrough; > > I've avoided that change to keep patch 7/7 simpler (as we have to move > the assignment of skb later in that patch). I can change this if you > want though. Oh, then please keep it as is! :-) [...] > Thanks for the review! MBR, Sergey