common/sfc_efx/base: replace PCI efsys macros with functions
[dpdk.git] / examples / fips_validation / main.c
index f9b2056..0a1c8b5 100644 (file)
@@ -531,7 +531,7 @@ prepare_auth_op(void)
 
        sym->auth.data.length = vec.pt.len;
        sym->auth.digest.data = pt + vec.pt.len;
-       sym->auth.digest.phys_addr = rte_pktmbuf_mtophys_offset(
+       sym->auth.digest.phys_addr = rte_pktmbuf_iova_offset(
                        env.mbuf, vec.pt.len);
 
        memcpy(pt, vec.pt.val, vec.pt.len);
@@ -584,7 +584,7 @@ prepare_aead_op(void)
                memcpy(pt, vec.pt.val, vec.pt.len);
                sym->aead.data.length = vec.pt.len;
                sym->aead.digest.data = pt + vec.pt.len;
-               sym->aead.digest.phys_addr = rte_pktmbuf_mtophys_offset(
+               sym->aead.digest.phys_addr = rte_pktmbuf_iova_offset(
                                env.mbuf, vec.pt.len);
        } else {
                uint8_t *ct;
@@ -1070,7 +1070,10 @@ fips_mct_tdes_test(void)
        int test_mode = info.interim_info.tdes_data.test_mode;
 
        for (i = 0; i < TDES_EXTERN_ITER; i++) {
-               if (i != 0)
+               if (i == 0) {
+                       if (!(strstr(info.vec[0], "COUNT")))
+                               fprintf(info.fp_wr, "%s%u\n", "COUNT = ", 0);
+               } else
                        update_info_vec(i);
 
                fips_test_write_one_case();