Skip to content

Commit

Permalink
add barrier missing between producer submit and needpoke check
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen committed Oct 4, 2024
1 parent ecf88da commit 07f756b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/datapath_raw_xdp_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,7 @@ CxPlatXdpTx(
if (ProdCount > 0 ||
(CompCount > 0 && XskRingProducerReserve(&Queue->TxRing, MAXUINT32, &TxIndex) != Queue->TxRing.Size)) {
XskRingProducerSubmit(&Queue->TxRing, ProdCount);
MemoryBarrier();
if (Xdp->TxAlwaysPoke || XskRingProducerNeedPoke(&Queue->TxRing)) {
XSK_NOTIFY_RESULT_FLAGS OutFlags;
QUIC_STATUS Status = Xdp->XdpApi->XskNotifySocket(Queue->TxXsk, XSK_NOTIFY_FLAG_POKE_TX, 0, &OutFlags);
Expand Down

0 comments on commit 07f756b

Please sign in to comment.