Skip to content

Commit

Permalink
fix rx fill / tx completion descriptor sizes in sample code (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen committed Dec 5, 2023
1 parent 53536eb commit 0ab2711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/xskfwd/xskfwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ main(
// from the start of the UMEM to the start of the frame. Since this sample
// is using a single buffer, the offset is always zero.
//
*(UINT32 *)XskRingGetElement(&RxFillRing, RingIndex) = 0;
*(UINT64 *)XskRingGetElement(&RxFillRing, RingIndex) = 0;

XskRingProducerSubmit(&RxFillRing, 1);

Expand Down Expand Up @@ -278,8 +278,8 @@ main(
}

if (XskRingConsumerReserve(&TxCompRing, 1, &RingIndex) == 1) {
UINT32 *Tx;
UINT32 *Rx;
UINT64 *Tx;
UINT64 *Rx;

//
// A TX frame address appeared on the TX completion ring. Recycle
Expand Down

0 comments on commit 0ab2711

Please sign in to comment.