From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PACTH v2 2/2] mlx4: fix shared library dependency
Date: Thu, 30 Jul 2015 18:22:11 +0200 [thread overview]
Message-ID: <1477408.eLvkxO1gTB@xps13> (raw)
In-Reply-To: <1438267704-26414-2-git-send-email-nelio.laranjeiro@6wind.com>
2015-07-30 16:48, Nelio Laranjeiro:
> librte_pmd_mlx4.so needs to be linked with libiverbs otherwise, the PMD is not
> able to open Mellanox devices and the following message is printed by testpmd
> at startup "librte_pmd_mlx4: cannot access device, is mlx4_ib loaded?".
>
> Applications dependency on libverbs are moved to be only valid in static mode,
> in shared mode, applications do not depend on it anymore,
> librte_pmd_mlx4.so keeps this dependency and thus is linked with libverbs.
>
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
> ---
> Changelog: don't compiled MLX4 PMD when the DPDK is build in combined shared
> library.
MLX4 cannot be supported in combined shared library because there is no clean
way of adding -libverbs to the combined library.
(This comment should be in the commit message)
> --- a/drivers/net/Makefile
> +++ b/drivers/net/Makefile
> @@ -40,7 +40,6 @@ DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic
> DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k
> DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e
> DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe
> -DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
> DIRS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += mpipe
> DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null
> DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += pcap
> @@ -49,5 +48,10 @@ DIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += virtio
> DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3
> DIRS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += xenvirt
>
> +# Drivers not support in combined mode
This comment is useless.
> +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n)
It can be enabled if building a static combined library.
> +DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
There is no good reason to move this line.
next prev parent reply other threads:[~2015-07-30 16:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 13:56 [dpdk-dev] [PATCH 1/2] mk: add LDLIBS variable when producing the .so file Nelio Laranjeiro
2015-07-29 13:56 ` [dpdk-dev] [PATCH 2/2] mlx4: add missing library dependency when compiling in shared library Nelio Laranjeiro
2015-07-30 14:48 ` [dpdk-dev] [PACTH v2 1/2] mk: use LDLIBS variable when building the shared object file Nelio Laranjeiro
2015-07-30 14:48 ` [dpdk-dev] [PACTH v2 2/2] mlx4: fix shared library dependency Nelio Laranjeiro
2015-07-30 16:22 ` Thomas Monjalon [this message]
2015-07-31 13:14 ` [dpdk-dev] [PACTH v3 1/2] mk: use LDLIBS and EXTRA_LDFLAGS variable when building the shared object file Nelio Laranjeiro
2015-07-31 13:14 ` [dpdk-dev] [PACTH v3 2/2] mlx4: fix shared library dependency Nelio Laranjeiro
2015-08-02 22:23 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1477408.eLvkxO1gTB@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=nelio.laranjeiro@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).