netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] gve: Remove the code of clearing PBA bit
@ 2023-05-09 22:51 Ziwei Xiao
  2023-05-10  9:17 ` Simon Horman
  2023-05-10  9:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Ziwei Xiao @ 2023-05-09 22:51 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, Ziwei Xiao, Bailey Forrest

Clearing the PBA bit from the driver is race prone and it may lead to
dropped interrupt events. This could potentially lead to the traffic
being completely halted.

Fixes: 5e8c5adf95f8 ("gve: DQO: Add core netdev features")
Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
Signed-off-by: Bailey Forrest <bcf@google.com>
---
 drivers/net/ethernet/google/gve/gve_main.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/net/ethernet/google/gve/gve_main.c b/drivers/net/ethernet/google/gve/gve_main.c
index 57ce74315eba..caa00c72aeeb 100644
--- a/drivers/net/ethernet/google/gve/gve_main.c
+++ b/drivers/net/ethernet/google/gve/gve_main.c
@@ -294,19 +294,6 @@ static int gve_napi_poll_dqo(struct napi_struct *napi, int budget)
 	bool reschedule = false;
 	int work_done = 0;
 
-	/* Clear PCI MSI-X Pending Bit Array (PBA)
-	 *
-	 * This bit is set if an interrupt event occurs while the vector is
-	 * masked. If this bit is set and we reenable the interrupt, it will
-	 * fire again. Since we're just about to poll the queue state, we don't
-	 * need it to fire again.
-	 *
-	 * Under high softirq load, it's possible that the interrupt condition
-	 * is triggered twice before we got the chance to process it.
-	 */
-	gve_write_irq_doorbell_dqo(priv, block,
-				   GVE_ITR_NO_UPDATE_DQO | GVE_ITR_CLEAR_PBA_BIT_DQO);
-
 	if (block->tx)
 		reschedule |= gve_tx_poll_dqo(block, /*do_clean=*/true);
 
-- 
2.40.1.521.gf1e218fcd8-goog


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

* Re: [PATCH net] gve: Remove the code of clearing PBA bit
  2023-05-09 22:51 [PATCH net] gve: Remove the code of clearing PBA bit Ziwei Xiao
@ 2023-05-10  9:17 ` Simon Horman
  2023-05-10  9:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2023-05-10  9:17 UTC (permalink / raw)
  To: Ziwei Xiao; +Cc: netdev, davem, kuba, Bailey Forrest

On Tue, May 09, 2023 at 03:51:23PM -0700, Ziwei Xiao wrote:
> Clearing the PBA bit from the driver is race prone and it may lead to
> dropped interrupt events. This could potentially lead to the traffic
> being completely halted.
> 
> Fixes: 5e8c5adf95f8 ("gve: DQO: Add core netdev features")
> Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
> Signed-off-by: Bailey Forrest <bcf@google.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>


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

* Re: [PATCH net] gve: Remove the code of clearing PBA bit
  2023-05-09 22:51 [PATCH net] gve: Remove the code of clearing PBA bit Ziwei Xiao
  2023-05-10  9:17 ` Simon Horman
@ 2023-05-10  9:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-05-10  9:40 UTC (permalink / raw)
  To: Ziwei Xiao; +Cc: netdev, davem, kuba, bcf

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Tue,  9 May 2023 15:51:23 -0700 you wrote:
> Clearing the PBA bit from the driver is race prone and it may lead to
> dropped interrupt events. This could potentially lead to the traffic
> being completely halted.
> 
> Fixes: 5e8c5adf95f8 ("gve: DQO: Add core netdev features")
> Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
> Signed-off-by: Bailey Forrest <bcf@google.com>
> 
> [...]

Here is the summary with links:
  - [net] gve: Remove the code of clearing PBA bit
    https://git.kernel.org/netdev/net/c/f4c2e67c1773

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] 3+ messages in thread

end of thread, other threads:[~2023-05-10  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-09 22:51 [PATCH net] gve: Remove the code of clearing PBA bit Ziwei Xiao
2023-05-10  9:17 ` Simon Horman
2023-05-10  9:40 ` 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).