|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v10 2/5] remus: add libnl3 dependency for network buffering support
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 <rshriram@xxxxxxxxx>
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 <laijs@xxxxxxxxxxxxxx>
> Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx>
> Reviewed-by: Wen Congyang <wency@xxxxxxxxxxxxxx>
...
> +# 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.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |