Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1971150lqo; Sun, 19 May 2024 07:13:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhAoo0Qkzw4iw/JzofTn9sbVn266AJ+UqPQcSTL6yfMc9eOYNyWgiSBRIcvUaFF3H1Xhn63lbfX2jhlGonON8oQo8rAfBuzLwL4XLCjQ== X-Google-Smtp-Source: AGHT+IG2SoIHF/+gvsJFRu5Ps8Vx8RxNVDRJsC8y++R2AXlyQaOcWOQsgWrI3FQ1IBWXqVxHjg4L X-Received: by 2002:a05:6a20:430e:b0:1aa:7097:49e2 with SMTP id adf61e73a8af0-1afde196759mr41442025637.50.1716127997672; Sun, 19 May 2024 07:13:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716127997; cv=pass; d=google.com; s=arc-20160816; b=EMS/DIVGUK9G5GKEhei6s1I4dEjUIRtndWuwQAhJQoPqhg0szP4FGqE2DC5DANg0DE jEOlnZ9v0ksfvlekE3W40M+QqdDYTV8o8q8I1LZSwc884tsIc4gce4KmROPkdXv49wug F+eG4Qm41OYq+0kJzNU6dF0+fLiwZQpIfyQEGSe2fFMaYR521D7Xil2Hemz+aeO4vsy5 8EnLYzxzr1fxokea5Uf+iI2ZwXi3Oy7zPGxTHmS7lQ3bssvCQOEoLPE8/+1gn3DDY8jw nY1AaxO9w7s93uoD53KiDGtQV/3bayoIDDl21q41d+wRbrwVf901f/F4J6EzsdRluVrK sjkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=dAeAJYtoA3G4hdbrQG7B7Q7VA51ccBWxx6sLjghi+pU=; fh=ldNIP587JwKMAZoI5mP4+MnaHfvpXlsqxPf/09hb/Dk=; b=L3Na2AnzxEMvFrGwaX9Ts+8iLkoRi/qeu6H/S0fw4Jt6fjhffyFePV6qyCH0gXKayM 1+REQpXxaP8BHXbudPjdSucvkAO8b/VPBlyBKEHZ8fGrKT7M7g9bT99oXmkwV1kAbupc 2Tw6nw3hl9eF5RkniVPMcJOL7Oic8OWD0jNc2bR08ckMoK1eB9y+g0Sf72//w3sAW4Hp C6KMcyWE6L1u3S/aA2zhsQqFsMoPDqDANYwggfYcncOoWuQkSW2Cw2i2l7wWCSanJay6 g2OVhCCOathHHKxTIXAPzivxdwUOfz4KqeReXFDoEELUGyTpTqsh5B07SelBXuYZHZjn sf2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=icFD95q1; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-183121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6578a558a48si7826922a12.258.2024.05.19.07.13.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 07:13:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183121-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; dkim=pass header.i=@web.de header.s=s29768273 header.b=icFD95q1; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-183121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de 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 45B98281F8B for ; Sun, 19 May 2024 14:13:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB1DF4BA94; Sun, 19 May 2024 14:13:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="icFD95q1" Received: from mout.web.de (mout.web.de [217.72.192.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 661291A2C10; Sun, 19 May 2024 14:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.72.192.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716127985; cv=none; b=eRO/mIz9gB+fMn0IOLbkRggatFxG2HSv03d5X6LXHcalKRMAOgDtxq0lEimDWSrXjXLT9KcobRLA4V2yhu0MImHP5NyeuIbLY07HTA/cyK3zjTEgu9sDAxnhkikY++sTIhGByFOrYOxvwUlxLZUyTxCQI5qHsfyTvEVWhJMo42M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716127985; c=relaxed/simple; bh=sqrJgiov1S8OV8gwoeyirPsm3GKX/ZNG47C/+9hLNLg=; h=Message-ID:Date:MIME-Version:To:Cc:References:Subject:From: In-Reply-To:Content-Type; b=U1hThjh2qL1GUvV4p7KDgnRtqPPWgFLX/iWHQ7/Tp1K2wIEpzZPzB7wvBH5oB2x3YyLBp74FoTdewdTQQMWZMkb6uS+BBfgSv2WN33PWOw/gRtMgkWesFbkq564YFHDJEmuHWLiWl57xpNyFlw/NI54A4bNwq+4CLx9h6D4ZUZk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=icFD95q1; arc=none smtp.client-ip=217.72.192.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1716127949; x=1716732749; i=markus.elfring@web.de; bh=dAeAJYtoA3G4hdbrQG7B7Q7VA51ccBWxx6sLjghi+pU=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:References: Subject:From:In-Reply-To:Content-Type:Content-Transfer-Encoding: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=icFD95q1djTXs/44EJrOyEkwrlRbc44WYWRfYH/8VheFfdpxzEyS75PEFbGwGPo7 nYHl0wHewewtyn4bxtBYTlmsJidR6iRB314KMFEI2Y5mO4ywr6bsrxP86SQI8V2V3 ihLxxJ0psofg6ibA408OHFGdeqSk5MHgyhZvAbQjOqGTvPo5WDjK5OsgMMmKVhduM 0+rIhM3UoSWAlyb6bOf79OZ+WjHKS2frT57eLxXN/3V8BNJSts6AxtJTUoidiGX9L rkhiaonbJw+utTXdB0CTVWy7HJOG/2OlMCaDClwUXIqYceNjMBtmvQopYWzyJy4VG B4Kke7ouP2euEjNLdQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.82.95]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M7ux6-1sCZA72QNe-004wwn; Sun, 19 May 2024 16:12:29 +0200 Message-ID: <2d7edd9b-f11c-4b8d-a63c-cecb104aa91c@web.de> Date: Sun, 19 May 2024 16:12:27 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Siddharth Vadapalli , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jonathan Corbet , MD Danish Anwar , Paolo Abeni , Roger Quadros , Vladimir Oltean Cc: LKML , linux-doc@vger.kernel.org, Misael Lopez Cruz , Sriramakrishnan , Vignesh Raghavendra References: <20240518124234.2671651-24-s-vadapalli@ti.com> Subject: Re: [RFC PATCH net-next 23/28] net: ethernet: ti: cpsw-proxy-client: add sw tx/rx irq coalescing Content-Language: en-GB From: Markus Elfring In-Reply-To: <20240518124234.2671651-24-s-vadapalli@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:gQ/I3jsXIWIpJOWU7j9MO1tyEW0hzfE/+mC7fOg3nJAg0yi+H0d F7q3CJzVJTvvb4u87peGhcLmQAemkoWX6UM0eGOKFTKJpX2DkDKxs+vk5sqkpKwU4QiB2du SaWaZUeD+PxmCgDtiZUx09lS6fHTsMCOnugmnCGiJ26I9hefBVQ67+BEE+bLT/xtsqAWtRA 7dI2Py1WRiPDvzbP7XDGQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:tJ/qgRkzrIo=;jjTDvIgRZp/mIogqIqJa3Eu+L6x G+MT1/nmT0G7Vwx+01dEjtjSL67XhgzGod6vrXX9+C3+sKbuQIa7y/7YJQW8Cay/rO1g6/cQ6 vUjj7Izgds1H3rWRVSDX7y5wCpaZibYntk67v2TlQSVrbs94b+qkUP3o96zUVQKfU0UkVCMR/ wmBmM/cKJksBFvr3YWNi5G8yEnGdW5Pg5NRLxGJaimrWP37duxIvbSPi967MuCNovY60Z8Tdt /xjRVFjUMIT+nCcfh707SWYga+u3le988OlgY4bQ9vLrqPBSYl2XpS169nUWl005FGDv+NQC2 FE01fwbbXoLt2Vgyad+R/tN6oGMmnsJez8zW3UEWD8x90R8c7DXW/QwKfb6yr7UiB1b3yleGx tM6xtgQIxoxnJuCBETJnMIIDSwUftjyD8JupQiVljDfLDwvYxwza946qoWYInpEqEh7SqZ6i/ WZWJZSxYWKnSPmGqx3n0r/zpRG3JZz2VtRmOLel+iT/sJa7qgTkQV2L2dF9VvIxHXdOjm1NgF tfu/JI5CeGYTDW+64fCfnosdsREfVHTDiWFeepr10CqWdXPpqyeH3USNLamUvAjvFSErtv57R 5KhLWQezfTaPiHgqxf4zmHKhEwj3iaC9CRAPFTftoYpFymopCxEAaP2JA4nV9nebjgidwBth2 cCJQiebpHJ5h7ZSBiATWTZLXzPCJXSCNqjtjYOB8FOGeoYxAIBUUGE0frFUeN1QMAxdTEKc/7 po4uxPTKkHm+NnRvhQXzrQ9QomYZiDxN6YUshE7nHwuCi/jTVBWPWMYL8Axr4tRsbkg2Y9DXV yXqqJT7l3jGLdSqxUM23SXvHGGVRDa7wpAc7s7VymyvMI= =E2=80=A6 > +++ b/drivers/net/ethernet/ti/cpsw-proxy-client.c =E2=80=A6 > @@ -996,8 +1001,15 @@ static int vport_tx_poll(struct napi_struct *napi_= tx, int budget) =E2=80=A6 > + if (unlikely(tx_chn->tx_pace_timeout && !tdown)) { > + hrtimer_start(&tx_chn->tx_hrtimer, > + ns_to_ktime(tx_chn->tx_pace_timeout), > + HRTIMER_MODE_REL_PINNED); > + } else { > + enable_irq(tx_chn->irq); > + } =E2=80=A6 > @@ -1179,12 +1191,38 @@ static int vport_rx_poll(struct napi_struct *nap= i_rx, int budget) =E2=80=A6 > + if (unlikely(rx_chn->rx_pace_timeout)) { > + hrtimer_start(&rx_chn->rx_hrtimer, > + ns_to_ktime(rx_chn->rx_pace_timeout), > + HRTIMER_MODE_REL_PINNED); > + } else { > + enable_irq(rx_chn->irq); > + } =E2=80=A6 Would you like to omit curly brackets at a few source code places? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Do= cumentation/process/coding-style.rst?h=3Dv6.9#n197 Regards, Markus