From: Ian Jackson Subject: Re: [PATCH v10 2/5] remus: add libnl3 dependency for network buffering support Date: Thu, 5 Jun 2014 17:18:54 +0100 Message-ID: <21392.39022.100253.330973@mariner.uk.xensource.com> References: <1401932069-16460-1-git-send-email-yanghy@cn.fujitsu.com> <1401932069-16460-3-git-send-email-yanghy@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1401932069-16460-3-git-send-email-yanghy@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Hongyang Cc: ian.campbell@citrix.com, wency@cn.fujitsu.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, eddie.dong@intel.com, xen-devel@lists.xen.org, rshriram@cs.ubc.ca, roger.pau@citrix.com, laijs@cn.fujitsu.com List-Id: xen-devel@lists.xenproject.org Yang Hongyang writes ("[PATCH v10 2/5] remus: add libnl3 dependency for network buffering support"): > Libnl3 is required for controlling Remus network buffering. > This patch adds dependency on libnl3 (>= 3.2.8) to autoconf scripts. > Also provide ability to configure tools without libnl3 support, that > is without network buffering support. This patch looks broadly good to me. I have some very minor comments about the details. > when there's no network buffering support,libxl__netbuffer_enabled() > returns 0, otherwise returns 1. The commit message should explicitly state that callers will be introduced in the rest of the series. > Signed-off-by: Shriram Rajagopalan For a patch which changes configure.ac, it would be helpful to add a reminder (for the commiter) to rerun autogen.sh. This should ideally appear just before the first Signed-off-by. The committer should delete the note, and rerun autogen.sh, as they apply the patch. > Signed-off-by: Lai Jiangshan > Signed-off-by: Yang Hongyang > Reviewed-by: Wen Congyang ... > +# Check for libnl3 >=3.2.8. If present enable remus network buffering. > +PKG_CHECK_MODULES(LIBNL3, [libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8], > + [libnl3_lib="y"], [libnl3_lib="n"]) > + > +AS_IF([test "x$libnl3_lib" = "xn" ], [ > + AC_MSG_WARN([Disabling support for Remus network buffering. > + Please install libnl3 libraries, command line tools and devel > + headers - version 3.2.8 or higher]) > + AC_SUBST(remus_netbuf, [n]) > + ],[ > + AC_SUBST(LIBNL3_LIBS) > + AC_SUBST(LIBNL3_CFLAGS) It might be better to put these AC_SUBSTs into the main body of configure.ac ? Like this: diff --git a/tools/configure.ac b/tools/configure.ac index 38d2d05..ee36707 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -257,10 +257,11 @@ AS_IF([test "x$libnl3_lib" = "xn" ], [ headers - version 3.2.8 or higher]) AC_SUBST(remus_netbuf, [n]) ],[ - AC_SUBST(LIBNL3_LIBS) - AC_SUBST(LIBNL3_CFLAGS) AC_SUBST(remus_netbuf, [y]) ]) +AC_SUBST(LIBNL3_LIBS) +AC_SUBST(LIBNL3_CFLAGS) + AC_OUTPUT() Thanks, Ian.