Skip to content

Commit

Permalink
validation: pktio: fix TX completion poll mode test
Browse files Browse the repository at this point in the history
Use `ODP_PACKET_TX_COMPL_POLL` completion mode when testing TX
completion poll mode.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
  • Loading branch information
TuomasTaipale committed Sep 13, 2023
1 parent a1b2d65 commit 4733d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/validation/api/pktio/pktio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3793,7 +3793,7 @@ static void pktio_test_pktout_compl_poll(void)
for (i = 0; i < TX_BATCH_LEN; i++) {
CU_ASSERT(odp_packet_has_tx_compl_request(pkt_tbl[i]) == 0);
opt.compl_id = i;
opt.mode = ODP_PACKET_TX_COMPL_EVENT;
opt.mode = ODP_PACKET_TX_COMPL_POLL;
odp_packet_tx_compl_request(pkt_tbl[i], &opt);
CU_ASSERT(odp_packet_has_tx_compl_request(pkt_tbl[i]) != 0);
/* Set pkt sequence number as its user ptr */
Expand Down

0 comments on commit 4733d03

Please sign in to comment.