From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] vhost: fix build error on old kernel doesn't support MQ Date: Fri, 30 Oct 2015 15:58:17 +0100 Message-ID: <1591890.tYYizGEdDA@xps13> References: <1446089865-20090-1-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Yuanhan Liu Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 9BDD49201 for ; Fri, 30 Oct 2015 15:59:28 +0100 (CET) Received: by wmeg8 with SMTP id g8so13854491wme.0 for ; Fri, 30 Oct 2015 07:59:28 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-10-30 15:40, David Marchand: > On Thu, Oct 29, 2015 at 4:37 AM, Yuanhan Liu > wrote: >=20 > > Fix build error: > > > > virtio-net.c:80:89: error: =E2=80=98VIRTIO_NET_F_MQ=E2=80=99 unde= clared here > > rte_virtio_net.h:109: error: =E2=80=98VIRTIO_NET_CTRL_MQ_VQ_PAIRS= _MAX=E2=80=99 > > undeclared here > > > > Above two virtio-net MQ macros are introduced since kernel v3.8. > > For older kernel, we should not reference them directly, hence, > > this patch introduced two wrapper macros, with proper values > > being set depending on we support MQ or not. > > > > Fixes: 19d4d7ef2a21 ("vhost-user: enable multiple queue") >=20 > Not sure about this fix line as a build error first appeared for me a= t > b09b198bfb5c ("vhost-user: announce queue number in message") Fixed > > Reported-by: Gu YongjieX > > Signed-off-by: Yuanhan Liu > > >=20 > Build restored on kernel 3.2 with this fixed applied. > Tested-by: David Marchand Applied, thanks