Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp363694lqb; Tue, 4 Jun 2024 13:47:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWtROXQdzPdDfjE7ZVsUri1ozOMcPhJdO2xXx3eRq+LxqOxtQBdx7PlqzVTHOE/Mrwn4DY8rLn8bC4KqeZx1MMX21t3e6yOTa7e+AUIg== X-Google-Smtp-Source: AGHT+IEkMdoHuvozi1CIE5caLryMRVL0opCzI8+lqiYjeQ85ntRHil03oFDQb/Lm4E7l77tEp10/ X-Received: by 2002:a17:90b:896:b0:2c2:5774:d52b with SMTP id 98e67ed59e1d1-2c27db119aamr628129a91.20.1717534073374; Tue, 04 Jun 2024 13:47:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717534073; cv=pass; d=google.com; s=arc-20160816; b=jgDjaGS1PYx27BDG9m9+X89EpJXb56bGoCeWNyTvXKzoeVy4FJtFkRCyPuNcpWngaw Ss6Gmcy5SEwHCZO63vZa0EUc4hGk3i87ket0syxomfE4F/Gfnofo0JMoIlCrckj4oEHh tKRkxZ85I2QSvVTXBx78uBfd76903s3CIv9YqU2VaDxlbjMeijnExwz9Vf8FEC0jdLmc LGqNLKwK8oTszwKjcdK2GzhhWoAz8zd2pNBKU3XZQgwpV95mUUWZtb3cF/10fMxYK02d rkZjZ7jiRZTl3a0epVlaVrV5XJxYnBBlIjWNO+GfyZ05FJeP43nzEXiWB3dUp2U+IcL+ yRmw== 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=ZSGcih3CT3jrNGtUH43DXaDq7XCkcu+ZNLw6kKVibhU=; fh=7y2qK2D0UF9HW5ZEnsWpaGNSjl/SvSoZKehC2SEzJgU=; b=jA/jYApXHqYjTpykiK9ouoz7Yk7F++MgfF4hpyHKPZm19W1M1FFgUsc364BhgQ3Imh UnphevoRV2jnavaa/xECSHg+qMb27JHhlRG684w3WU3gtigTljECVKKDOsamSE+B0wsK FPUdSlri8fleeWFh82qm4WKU+048CdmzrUTIynojCTLOFUbTQkB7MdsBlRfPmtP9pBe3 goPs+1gdxOMoQJccGqRe0CIM+9rLvkpDLnymzkjjqN+mMPdx8/tG6o67tK5o7UCTVOUq R7w+uYiokvmBlu3HpJZ2pC8Y3vYliOmrPUba7MsA9/aTD6Znpw8JIdZey0iSe4w5sjC3 aLfA==; 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-201360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201360-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 98e67ed59e1d1-2c1c282a596si8670457a91.91.2024.06.04.13.47.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:47:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201360-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-201360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201360-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 03C5C2840A1 for ; Tue, 4 Jun 2024 20:47:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4378F14BF8F; Tue, 4 Jun 2024 20:47:46 +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 E190214A627; Tue, 4 Jun 2024 20:47:39 +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=1717534065; cv=none; b=MQiv/CZ9Rb4orR7ei7AwaBPfgwmPnIbOclxvo+ceEaWYT2SAu6nc4vcqedpCHZGQBMXSCdjwtshsBRjkAnKUQacLRyBRRE7a9VegyFB7DYpKe73iXC5Ud3F+fRB3OSHJ0sgCniCOMEnoXiHoRizvU3Dy7FrTFeeFnSkcKJX7Akg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717534065; c=relaxed/simple; bh=T8ArkHAWEsoLdQdAfF8cZxmF56dM4QXiFunMu84Sspg=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=l2GHEJVlPDgvQ6w9gbaEp2IO4BsDPR7buYafYEjbYQrVdk/+K74ep2i/wI5jc59qkfJcEzQyI1rLnBGKfAxSrkNEKXaXow6eoEKJvmCy5UNS6WGCwqypepdiH6fT1CFwFYG2xyxZkeHKVa+CvEGijznqz2nTiCLNJMpcO7DkZ5E= 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.78.182) 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; Tue, 4 Jun 2024 23:47:26 +0300 Subject: Re: [net-next PATCH v5 2/7] net: ravb: Align poll function with NAPI docs To: Paul Barker , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Simon Horman CC: Biju Das , Claudiu Beznea , Yoshihiro Shimoda , , , References: <20240604072825.7490-1-paul.barker.ct@bp.renesas.com> <20240604072825.7490-3-paul.barker.ct@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <4958f946-3c95-9280-9da8-3670a3187cc5@omp.ru> Date: Tue, 4 Jun 2024 23:47:26 +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: <20240604072825.7490-3-paul.barker.ct@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: 06/04/2024 20:26:27 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 185716 [Jun 04 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.78.182 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.78.182 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: 178.176.78.182:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.78.182 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: 06/04/2024 20:29:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 6/4/2024 4:23:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 6/4/24 10:28 AM, Paul Barker wrote: > Align ravb_poll() with the documentation in > `Documentation/networking/kapi.rst` and > `Documentation/networking/napi.rst`. > > The documentation says that we should prefer napi_complete_done() over > napi_complete(), and using the former allows us to properly support busy > polling. We should ensure that napi_complete_done() is only called if > the work budget has not been exhausted, and we should only re-arm > interrupts if it returns true. > > Signed-off-by: Paul Barker [...] Reviewed-by: Sergey Shtylyov MBR, Sergey