netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] eth: fbnic: update fbnic_poll return value
@ 2025-01-04  1:53 Mohsin Bashir
  2025-01-05  0:59 ` Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mohsin Bashir @ 2025-01-04  1:53 UTC (permalink / raw)
  To: netdev
  Cc: alexanderduyck, kuba, andrew, andrew+netdev, davem, edumazet,
	pabeni, vadim.fedorenko, damato, brett.creeley, kernel-team,
	mohsin.bashr

In cases where the work done is less than the budget, `fbnic_poll` is
returning 0. This affects the tracing of `napi_poll`. Following is a
snippet of before and after result from `napi_poll` tracepoint. Instead,
returning the work done improves the manual tracing.

Before:
@[10]: 1
...
@[64]: 208175
@[0]: 2128008

After:
@[56]: 86
@[48]: 222
...
@[5]: 1885756
@[6]: 1933841

Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
---
 drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
index bb54ce5f5787..d4d7027df9a0 100644
--- a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
+++ b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
@@ -1033,7 +1033,7 @@ static int fbnic_poll(struct napi_struct *napi, int budget)
 	if (likely(napi_complete_done(napi, work_done)))
 		fbnic_nv_irq_rearm(nv);
 
-	return 0;
+	return work_done;
 }
 
 irqreturn_t fbnic_msix_clean_rings(int __always_unused irq, void *data)
-- 
2.43.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] eth: fbnic: update fbnic_poll return value
  2025-01-04  1:53 [PATCH net-next] eth: fbnic: update fbnic_poll return value Mohsin Bashir
@ 2025-01-05  0:59 ` Jakub Kicinski
  2025-01-05  6:39 ` Kalesh Anakkur Purayil
  2025-01-07 12:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Jakub Kicinski @ 2025-01-05  0:59 UTC (permalink / raw)
  To: Mohsin Bashir
  Cc: netdev, alexanderduyck, andrew, andrew+netdev, davem, edumazet,
	pabeni, vadim.fedorenko, damato, brett.creeley, kernel-team

On Fri,  3 Jan 2025 17:53:16 -0800 Mohsin Bashir wrote:
> In cases where the work done is less than the budget, `fbnic_poll` is
> returning 0. This affects the tracing of `napi_poll`. Following is a
> snippet of before and after result from `napi_poll` tracepoint. Instead,
> returning the work done improves the manual tracing.

Reviewed-by: Jakub Kicinski <kuba@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] eth: fbnic: update fbnic_poll return value
  2025-01-04  1:53 [PATCH net-next] eth: fbnic: update fbnic_poll return value Mohsin Bashir
  2025-01-05  0:59 ` Jakub Kicinski
@ 2025-01-05  6:39 ` Kalesh Anakkur Purayil
  2025-01-07 12:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Kalesh Anakkur Purayil @ 2025-01-05  6:39 UTC (permalink / raw)
  To: Mohsin Bashir
  Cc: netdev, alexanderduyck, kuba, andrew, andrew+netdev, davem,
	edumazet, pabeni, vadim.fedorenko, damato, brett.creeley,
	kernel-team

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

On Sat, Jan 4, 2025 at 7:23 AM Mohsin Bashir <mohsin.bashr@gmail.com> wrote:
>
> In cases where the work done is less than the budget, `fbnic_poll` is
> returning 0. This affects the tracing of `napi_poll`. Following is a
> snippet of before and after result from `napi_poll` tracepoint. Instead,
> returning the work done improves the manual tracing.
>
> Before:
> @[10]: 1
> ...
> @[64]: 208175
> @[0]: 2128008
>
> After:
> @[56]: 86
> @[48]: 222
> ...
> @[5]: 1885756
> @[6]: 1933841
>
> Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
LGTM,
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>

-- 
Regards,
Kalesh AP

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4239 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] eth: fbnic: update fbnic_poll return value
  2025-01-04  1:53 [PATCH net-next] eth: fbnic: update fbnic_poll return value Mohsin Bashir
  2025-01-05  0:59 ` Jakub Kicinski
  2025-01-05  6:39 ` Kalesh Anakkur Purayil
@ 2025-01-07 12:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-01-07 12:30 UTC (permalink / raw)
  To: Mohsin Bashir
  Cc: netdev, alexanderduyck, kuba, andrew, andrew+netdev, davem,
	edumazet, pabeni, vadim.fedorenko, damato, brett.creeley,
	kernel-team

Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Fri,  3 Jan 2025 17:53:16 -0800 you wrote:
> In cases where the work done is less than the budget, `fbnic_poll` is
> returning 0. This affects the tracing of `napi_poll`. Following is a
> snippet of before and after result from `napi_poll` tracepoint. Instead,
> returning the work done improves the manual tracing.
> 
> Before:
> @[10]: 1
> ...
> @[64]: 208175
> @[0]: 2128008
> 
> [...]

Here is the summary with links:
  - [net-next] eth: fbnic: update fbnic_poll return value
    https://git.kernel.org/netdev/net-next/c/2f4f8893e07a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-07 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-04  1:53 [PATCH net-next] eth: fbnic: update fbnic_poll return value Mohsin Bashir
2025-01-05  0:59 ` Jakub Kicinski
2025-01-05  6:39 ` Kalesh Anakkur Purayil
2025-01-07 12:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).