Hi Sergio,

Right, without the change to dpdk.am, it builds correctly with the
crypto libraries, but the plugin fails to load.
After the change, i'm able to load the plugin, but the enqueue_crypto
call does not return, no crypto error ops counters are incremented
either

Building it using the "make release".


-Avinash

--------------------------------------------------------------------------------

Hi,

So without the change to dpdk.am, does the build completes correctly
(including both crypto libraries) but you fail to load the plugin?
Are you building a VPP release or from master?

Sergio


On Mon, May 22, 2017 at 9:51 AM, Avinash Gonsalves <
avinash.gonsal...@gmail.com> wrote:

> Need help with the  DPDK crypto plugin,
>
>
> After I moved to the DPDK Crypto plugin, and built it with:
>
> *make vpp_uses_dpdk_cryptodev_sw=yes build*
>
>
> On running VPP faced the following error:
>
> *load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)*
>
> *load_one_plugin:142:
> /vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins/dpdk_plugin.so:
> undefined symbol: aesni_gcm128_init*
>
> *load_one_plugin:143: Failed to load plugin 'dpdk_plugin.so'*
>
> *Aborted (core dumped)*
>
>
> I fixed this one by modifying to use a share lib,
>
> --- a/fastpath/vpp/vpp-src/src/plugins/dpdk.am
>
> +++ b/fastpath/vpp/vpp-src/src/plugins/dpdk.am
>
> @@ -17,9 +17,10 @@ vppplugins_LTLIBRARIES += dpdk_plugin.la
>
>  dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--whole-archive,-l:
> libdpdk.a,--no-whole-archive
>
>  if WITH_DPDK_CRYPTO_SW
>
>  dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libIPSec_
> MB.a,-l:libIPSec_MB.a
>
> -dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libisal_
> crypto.a,-l:libisal_crypto.a
>
> -endif
>
> +dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl,-lisal_crypto
>
> +else
>
>  dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl
>
> +endif
>
>
> After this change, the rte_cryptodev_enqueue_burst, does not return
> decrypted packets.
> Any configuration that I'm missing?
>
>
> This is my system configuration:
>
> *No LSB modules are available.*
>
> *Distributor ID:      Ubuntu*
>
> *Description:         Ubuntu 16.04.1 LTS*
>
> *Release: 16.04*
>
> *Codename:          xenial*
>
> *# uname -a*
>
> *Linux VPP 4.4.0-75-generic #96-Ubuntu SMP Thu Apr 20 09:56:33 UTC 2017
> x86_64 x86_64 x86_64 GNU/Linux*
>
>
>
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to