net/sfc: allow to control the represented entity MAC address
[dpdk.git] / app / test / test_cryptodev_security_ipsec.h
index fa7bb06..744dd64 100644 (file)
@@ -41,6 +41,8 @@ struct ipsec_test_data {
 
        bool aead;
 
+       bool aes_gmac;
+
        bool auth_only;
 
        /* Antireplay packet */
@@ -71,6 +73,15 @@ enum dscp_flags {
        TEST_IPSEC_SET_DSCP_1_INNER_0,
 };
 
+#define TEST_IPSEC_FLABEL_VAL 0x1234
+
+enum flabel_flags {
+       TEST_IPSEC_COPY_FLABEL_INNER_0 = 1,
+       TEST_IPSEC_COPY_FLABEL_INNER_1,
+       TEST_IPSEC_SET_FLABEL_0_INNER_1,
+       TEST_IPSEC_SET_FLABEL_1_INNER_0,
+};
+
 struct ipsec_test_flags {
        bool display_alg;
        bool sa_expiry_pkts_soft;
@@ -90,6 +101,7 @@ struct ipsec_test_flags {
        bool antireplay;
        enum df_flags df;
        enum dscp_flags dscp;
+       enum flabel_flags flabel;
        bool dec_ttl_or_hop_limit;
        bool ah;
 };
@@ -186,6 +198,13 @@ static const struct crypto_param auth_list[] = {
                .key_length = 16,
                .digest_length = 12,
        },
+       {
+               .type = RTE_CRYPTO_SYM_XFORM_AUTH,
+               .alg.auth =  RTE_CRYPTO_AUTH_AES_GMAC,
+               .key_length = 16,
+               .digest_length = 16,
+               .iv_length = 12,
+       },
 };
 
 struct crypto_param_comb {