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

Function packet_process

dpdk/app/test/test_ipsec_perf.c:306–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306static int
307packet_process(struct rte_mbuf **buf, struct ipsec_sa *sa,
308 uint16_t num_pkts)
309{
310 uint64_t time_stamp;
311 uint16_t k = 0;
312
313 time_stamp = rte_rdtsc_precise();
314
315 k = rte_ipsec_pkt_process(&sa->ss[0], buf, num_pkts);
316
317 time_stamp = rte_rdtsc_precise() - time_stamp;
318
319 if (k != num_pkts) {
320 RTE_LOG(ERR, USER1, "rte_ipsec_pkt_process fail\n");
321 return k;
322 }
323
324 sa->cnt.process_ticks_elapsed += time_stamp;
325 sa->cnt.nb_process_call++;
326 sa->cnt.nb_process_pkt += k;
327
328 return k;
329}
330
331static int
332create_traffic(struct ipsec_sa *sa, struct rte_ring *deq_ring,

Callers 1

create_trafficFunction · 0.85

Calls 2

rte_ipsec_pkt_processFunction · 0.85
rte_rdtsc_preciseFunction · 0.50

Tested by

no test coverage detected