MCPcopy Create free account
hub / github.com/F-Stack/f-stack / crypto_dequeue_burst

Function crypto_dequeue_burst

dpdk/app/test/test_ipsec.c:744–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744static int
745crypto_dequeue_burst(uint16_t num_pkts)
746{
747 struct ipsec_testsuite_params *ts_params = &testsuite_params;
748 struct ipsec_unitest_params *ut_params = &unittest_params;
749 uint32_t pkt_cnt, k;
750 int i;
751
752 for (i = 0, pkt_cnt = 0;
753 i < DEQUEUE_COUNT && pkt_cnt != num_pkts; i++) {
754 k = rte_cryptodev_dequeue_burst(ts_params->valid_dev, 0,
755 &ut_params->cop[pkt_cnt], num_pkts - pkt_cnt);
756 pkt_cnt += k;
757 rte_delay_us(1);
758 }
759
760 if (pkt_cnt != num_pkts) {
761 RTE_LOG(ERR, USER1, "rte_cryptodev_dequeue_burst fail\n");
762 return TEST_FAILED;
763 }
764 return TEST_SUCCESS;
765}
766
767static int
768crypto_ipsec(uint16_t num_pkts)

Callers 3

crypto_ipsecFunction · 0.85
crypto_ipsec_2saFunction · 0.85
crypto_ipsec_2sa_4grpFunction · 0.85

Calls 1

Tested by

no test coverage detected