Message ID | 1461649169-13967-1-git-send-email-mukawa@igel.co.jp (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Yuanhan Liu |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 53D393237; Tue, 26 Apr 2016 07:39:41 +0200 (CEST) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 86CA63208 for <dev@dpdk.org>; Tue, 26 Apr 2016 07:39:39 +0200 (CEST) Received: by mail-pa0-f53.google.com with SMTP id iv1so2353449pac.2 for <dev@dpdk.org>; Mon, 25 Apr 2016 22:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MSJ3uh/eHWdSz39+CLsgqwXBa7PdXoUeHF+aDBNUoQM=; b=lBx+N18Tl+nwQ55xGCDbxrR5567MwpY6VMI5yNXdgVLTRRbpnz3HPxvrSIuRGTzRnb i1cUEKUaUeDM9w/lSkGKEktnb5R8siw42/8ar+LXUW8Gylj1q7yQBKRYTL7QF6w8AD/E 4hZu59whOYYXNFf5b3r2nzr+lDL/tFeeXkti/tF2rdRUzJ+nsZpAiU64bAOaEy6c+ppY V919oyvtCBKsJTw9qWdplykJzPhyvV9jgX+im9DQjRsm2SnKwpB3wU8T2PpipGI78gFF cHpkSWHFOqpucEnuqPWOBO8bXnYZlcVinEjIuUcOEx4fHSXfRRvmY+3IujrMzaHW7Ya0 B6BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MSJ3uh/eHWdSz39+CLsgqwXBa7PdXoUeHF+aDBNUoQM=; b=c4d62T+0xMxiUOIxrvupCysOIQ0OHn1JLCLDrSt2pZAiPaBe1+bClRVBptgNjskWxX yxXpbqbWD+aOOXpRV5BOZnQPIu7LDZy1qPJxi4ot3bZwCvSO5FVZLtQh7wtrIV0o16ji yG+4hdRPOYNO43CDQTvhZETSDuUIuZRnkmhYg4Jz5lq3xDuiaNIFmlRDclGmuJSHkMLV dp+2XwUMLx3xlw8geCO4NVyOCecas7KYGwJ4lJwQoL7S2LmRPmCqnRph448XuTGVKRQP k2bMKQ6P+UtI4+8JZSS6genSevalEFCasQaDbWp9k7fuj8K1nT5ryoFE2/HXa3UnkijW T9fA== X-Gm-Message-State: AOPr4FVLfuEy5x6PhnFaaGV2Pk+trzbQIKcVEHVYCSNjF7dMqq73uSSf3TQftYQnB8weAQ== X-Received: by 10.66.121.197 with SMTP id lm5mr881644pab.143.1461649178950; Mon, 25 Apr 2016 22:39:38 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id 79sm33137907pfq.65.2016.04.25.22.39.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Apr 2016 22:39:38 -0700 (PDT) From: Tetsuya Mukawa <mukawa@igel.co.jp> To: dev@dpdk.org Cc: pmatilai@redhat.com, yuanhan.liu@linux.intel.com, huawei.xie@intel.com, Tetsuya Mukawa <mukawa@igel.co.jp> Date: Tue, 26 Apr 2016 14:39:29 +0900 Message-Id: <1461649169-13967-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.5.0 In-Reply-To: <571DDDD8.6000000@igel.co.jp> References: <571DDDD8.6000000@igel.co.jp> Subject: [dpdk-dev] [PATCH v2] vhost: Fix linkage of vhost PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Tetsuya Mukawa
April 26, 2016, 5:39 a.m. UTC
Currently, vhost PMD doesn't have linkage for librte_vhost, even though it depends on librte_vhost APIs. This causes a linkage error if below conditions are fulfilled. - DPDK libraries are compiled as shared libraries. - DPDK application doesn't link librte_vhost. - Above application tries to link vhost PMD using '-d' DPDK option. The patch adds linkage for librte_vhost to vhost PMD not to cause an above error. Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> Acked-by: Panu Matilainen <pmatilai@redhat.com> --- drivers/net/vhost/Makefile | 1 + 1 file changed, 1 insertion(+)
Comments
On Tue, Apr 26, 2016 at 02:39:29PM +0900, Tetsuya Mukawa wrote: > Currently, vhost PMD doesn't have linkage for librte_vhost, even though > it depends on librte_vhost APIs. This causes a linkage error if below > conditions are fulfilled. > > - DPDK libraries are compiled as shared libraries. > - DPDK application doesn't link librte_vhost. > - Above application tries to link vhost PMD using '-d' DPDK option. > > The patch adds linkage for librte_vhost to vhost PMD not to cause an > above error. > > Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> > Acked-by: Panu Matilainen <pmatilai@redhat.com> Applied to dpdk-next-virtio. Thanks. --yliu
diff --git a/drivers/net/vhost/Makefile b/drivers/net/vhost/Makefile index f49a69b..30b91a0 100644 --- a/drivers/net/vhost/Makefile +++ b/drivers/net/vhost/Makefile @@ -38,6 +38,7 @@ LIB = librte_pmd_vhost.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +LDLIBS += -lrte_vhost EXPORT_MAP := rte_pmd_vhost_version.map