From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by dpdk.org (Postfix) with ESMTP id 6126391BF for ; Fri, 30 Oct 2015 15:40:27 +0100 (CET) Received: by oiao187 with SMTP id o187so60377961oia.3 for ; Fri, 30 Oct 2015 07:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UNtZwKbfKH6UdK/oRVxNFKLdHRWyoFPahZNDMURycWs=; b=KaoKboBGAq3VAEEq2GmmuOBL/sBoMT7BAkj9h+WVPzbhoEs+WWbBHHLn5viPjZ1TQA 660EXZBd9eopENjtiZJX4s2BwShaLM0hvjq8G5PQACt9SYmBfuw0qsGkUqsO+3Qmb+p6 rNPiCWi/uw9/AvAX5avpvNCCLODMSC/j2iPHCuiHTP7ciGfl0HhUKT+Ki4C2hg4wnJkn VgneWc0uPjgDnqChF37bGh3UuKKAZoGT0fuZW0yIrH+O5DkBhZbNeqionkZ4fC8GVJBk lI1Jh78eGasylyXEun9pyZLXrGVHwnOnBJGndb0n0XOw9sUkXAzx/WT7O0HEo1YWB0Ai ZBFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UNtZwKbfKH6UdK/oRVxNFKLdHRWyoFPahZNDMURycWs=; b=I6OeA+ORAgWRXbkHl4ajEn4WWx26uB/+AB1wyUZ4ggb2YfsfXinZaee0llOxCA+9xO YlHhRLmWqtV3CDzn+/RyqxwvfzBTKB+9OPc/hauZ6LsQI6bYlE/Vwjcqkv+r2Ts7OnSo PhTlyWkBevHkmyqMOwlP/WL/iaMaFgGboBgsQueCcREeWbgFaBqg6bSIHVmb9c6Sfk7P JDwEusoh6UUEa/KTL5PWU1C77sXEFxymvpVUI7vDIIeCp+8oIschm38mpwvq3hvEZkQd 1h0zUI/Cipx0M0Xp1BZ8DPcPFjeyuZ1iGKSPHlW61uBWdItBUgi3eih+j1jPgE82GCQa tYbg== X-Gm-Message-State: ALoCoQkbcOyK7uBJ5vr0q8ZJakLevKn00ZrDnZFCPbWte+lL/KohqggE+QQIPtAzuhgpagvA2yim MIME-Version: 1.0 X-Received: by 10.202.189.7 with SMTP id n7mr5798886oif.0.1446216026709; Fri, 30 Oct 2015 07:40:26 -0700 (PDT) Received: by 10.76.131.166 with HTTP; Fri, 30 Oct 2015 07:40:26 -0700 (PDT) In-Reply-To: <1446089865-20090-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1446089865-20090-1-git-send-email-yuanhan.liu@linux.intel.com> Date: Fri, 30 Oct 2015 15:40:26 +0100 Message-ID: From: David Marchand To: Yuanhan Liu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] vhost: fix build error on old kernel doesn't support MQ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 14:40:27 -0000 On Thu, Oct 29, 2015 at 4:37 AM, Yuanhan Liu wrote: > Fix build error: > > virtio-net.c:80:89: error: =E2=80=98VIRTIO_NET_F_MQ=E2=80=99 undeclared= 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") > Not sure about this fix line as a build error first appeared for me at b09b198bfb5c ("vhost-user: announce queue number in message") > Reported-by: Gu YongjieX > Signed-off-by: Yuanhan Liu > Build restored on kernel 3.2 with this fixed applied. Tested-by: David Marchand --=20 David Marchand