| 530 | } |
| 531 | |
| 532 | static void |
| 533 | print_metrics(const struct ipsec_test_cfg *test_cfg, |
| 534 | struct ipsec_sa *sa_out, struct ipsec_sa *sa_in) |
| 535 | { |
| 536 | printf("\nMetrics of libipsec prepare/process api:\n"); |
| 537 | |
| 538 | printf("replay window size = %u\n", test_cfg->replay_win_sz); |
| 539 | if (test_cfg->esn) |
| 540 | printf("replay esn is enabled\n"); |
| 541 | else |
| 542 | printf("replay esn is disabled\n"); |
| 543 | if (test_cfg->type == RTE_CRYPTO_SYM_XFORM_AEAD) |
| 544 | printf("AEAD algo is AES_GCM\n"); |
| 545 | else |
| 546 | printf("CIPHER/AUTH algo is AES_CBC/SHA1\n"); |
| 547 | |
| 548 | |
| 549 | printf("avg cycles for a pkt prepare in outbound is = %.2Lf\n", |
| 550 | (long double)sa_out->cnt.prepare_ticks_elapsed |
| 551 | / sa_out->cnt.nb_prepare_pkt); |
| 552 | printf("avg cycles for a pkt process in outbound is = %.2Lf\n", |
| 553 | (long double)sa_out->cnt.process_ticks_elapsed |
| 554 | / sa_out->cnt.nb_process_pkt); |
| 555 | printf("avg cycles for a pkt prepare in inbound is = %.2Lf\n", |
| 556 | (long double)sa_in->cnt.prepare_ticks_elapsed |
| 557 | / sa_in->cnt.nb_prepare_pkt); |
| 558 | printf("avg cycles for a pkt process in inbound is = %.2Lf\n", |
| 559 | (long double)sa_in->cnt.process_ticks_elapsed |
| 560 | / sa_in->cnt.nb_process_pkt); |
| 561 | |
| 562 | } |
| 563 | |
| 564 | static void |
| 565 | testsuite_teardown(void) |
no test coverage detected