netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2] octeontx2-af: Send Link events one by one
@ 2025-05-14  6:28 Subbaraya Sundeep
  2025-05-14  8:11 ` Michal Swiatkowski
  2025-05-15 14:12 ` Jakub Kicinski
  0 siblings, 2 replies; 7+ messages in thread
From: Subbaraya Sundeep @ 2025-05-14  6:28 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, horms, gakula,
	hkelam, sgoutham, lcherian, bbhushan2, jerinj
  Cc: netdev, Subbaraya Sundeep

Send link events one after another otherwise new message
is overwriting the message which is being processed by PF.

Fixes: a88e0f936ba9 ("octeontx2: Detect the mbox up or down message via register")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
---
v2:
 No changes. Added subject prefix net.

 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
index 992fa0b..ebb56eb 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
@@ -272,6 +272,8 @@ static void cgx_notify_pfs(struct cgx_link_event *event, struct rvu *rvu)
 
 		otx2_mbox_msg_send_up(&rvu->afpf_wq_info.mbox_up, pfid);
 
+		otx2_mbox_wait_for_rsp(&rvu->afpf_wq_info.mbox_up, pfid);
+
 		mutex_unlock(&rvu->mbox_lock);
 	} while (pfmap);
 }
-- 
2.7.4


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

end of thread, other threads:[~2025-05-15 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  6:28 [PATCH net v2] octeontx2-af: Send Link events one by one Subbaraya Sundeep
2025-05-14  8:11 ` Michal Swiatkowski
2025-05-15 16:35   ` Subbaraya Sundeep
2025-05-15 14:12 ` Jakub Kicinski
2025-05-15 16:41   ` Subbaraya Sundeep
2025-05-15 17:19     ` Jakub Kicinski
2025-05-15 17:34       ` Subbaraya Sundeep

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).