Hello,

When disabling RTE_LIBRTE_SECURITY, DPDK compilation fails with the following error messages:

  CC test_cryptodev.o
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:76:40: error: field ‘type’ has incomplete type
  enum rte_security_session_action_type type;
                                        ^~~~
/home/herbelot/work/dpdk/app/test/test_cryptodev.c: In function ‘ut_teardown’: /home/herbelot/work/dpdk/app/test/test_cryptodev.c:576:25: error: ‘RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL’ undeclared (first use in this function)
  if (ut_params->type == RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:576:25: note: each undeclared identifier is reported only once for each function it appears in /home/herbelot/work/dpdk/app/test/test_cryptodev.c:578:4: error: implicit declaration of function ‘rte_security_session_destroy’; did you mean ‘rte_cryptodev_pmd_destroy’? [-Werror=implicit-function-declaration]
    rte_security_session_destroy(rte_cryptodev_get_sec_ctx
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    rte_cryptodev_pmd_destroy
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:578:4: error: nested extern declaration of ‘rte_security_session_destroy’ [-Werror=nested-externs]


Indeed, in commit d883e6e7131b ('test/crypto: add PDCP C-Plane encap cases'), RTE_SECURITY features are used outside of an "ifdef".

        Thanks

        Thierry

--
Thierry Herbelot
6WIND
Senior Software Engineer

Reply via email to