xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Hongyang Yang <yanghy@cn.fujitsu.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
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
Subject: Re: [PATCH v10 2/5] remus: add libnl3 dependency for network buffering support
Date: Fri, 6 Jun 2014 09:48:50 +0800	[thread overview]
Message-ID: <53911E02.6040706@cn.fujitsu.com> (raw)
In-Reply-To: <21392.39022.100253.330973@mariner.uk.xensource.com>

On 06/06/2014 12:18 AM, Ian Jackson wrote:
> 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@cs.ubc.ca>
>
> 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.

Thanks, will add the comment.

>
>> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
>> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
>> Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
> ...
>> +# 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()

yes, i'll try that, if we do these, then the following check of 
CONFIG_REMUS_NETBUF in libxl Makefile will no longer need:


  LIBXL_LIBS =
  LIBXL_LIBS = $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenstore) 
$(LDLIBS_libblktapctl) $(PTYFUNCS_LIBS) $(LIBUUID_LIBS)
+ifeq ($(CONFIG_REMUS_NETBUF),y)
+LIBXL_LIBS += $(LIBNL3_LIBS)
+endif

  CFLAGS_LIBXL += $(CFLAGS_libxenctrl)
  CFLAGS_LIBXL += $(CFLAGS_libxenguest)
  CFLAGS_LIBXL += $(CFLAGS_libxenstore)
  CFLAGS_LIBXL += $(CFLAGS_libblktapctl)
+ifeq ($(CONFIG_REMUS_NETBUF),y)
+CFLAGS_LIBXL += $(LIBNL3_CFLAGS)
+endif
  CFLAGS_LIBXL += -Wshadow


>
> Thanks,
> Ian.
> .
>

-- 
Thanks,
Yang.

  reply	other threads:[~2014-06-06  1:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05  1:34 [PATCH v10 0/5] Remus netbuffer: Network buffering support Yang Hongyang
2014-06-05  1:34 ` [PATCH v10 1/5] libxl: introduce asynchronous execution API Yang Hongyang
2014-06-05 16:01   ` Ian Jackson
2014-06-05  1:34 ` [PATCH v10 2/5] remus: add libnl3 dependency for network buffering support Yang Hongyang
2014-06-05 16:18   ` Ian Jackson
2014-06-06  1:48     ` Hongyang Yang [this message]
2014-06-06  6:45       ` Shriram Rajagopalan
2014-06-06 10:07         ` Ian Campbell
2014-06-06 11:04       ` Ian Jackson
2014-06-05  1:34 ` [PATCH v10 3/5] remus: introduce remus device Yang Hongyang
2014-06-05 17:06   ` Ian Jackson
2014-06-06  1:54     ` Hongyang Yang
2014-06-09  2:08     ` Hongyang Yang
2014-06-05  1:34 ` [PATCH v10 4/5] remus: implement remus network buffering for nic devices Yang Hongyang
2014-06-05 16:50   ` Shriram Rajagopalan
2014-06-05 17:37     ` Ian Jackson
2014-06-05 17:44       ` Ian Jackson
2014-06-05 17:56         ` Shriram Rajagopalan
2014-06-06  2:08           ` Hongyang Yang
2014-06-06  1:59     ` Hongyang Yang
2014-06-05 17:24   ` Ian Jackson
2014-06-10  7:33     ` Hongyang Yang
2014-07-09 23:15       ` Ian Jackson
2014-07-10  1:38         ` Hongyang Yang
2014-06-05  1:34 ` [PATCH v10 5/5] libxl: network buffering cmdline switch Yang Hongyang
2014-06-05  1:39   ` [PATCH v10] remus drbd: Implement remus drbd replicated disk Yang Hongyang
2014-06-05 16:25     ` Shriram Rajagopalan
2014-06-05 17:41       ` Ian Jackson
2014-06-05 18:14         ` Shriram Rajagopalan
2014-06-05 18:26           ` Ian Jackson
2014-06-06 11:23             ` Ian Jackson
2014-06-06  5:38           ` Hongyang Yang
2014-06-06  7:12             ` Shriram Rajagopalan
2014-06-06 11:18             ` Ian Jackson
2014-06-06  2:21       ` Hongyang Yang
2014-06-05 17:30   ` [PATCH v10 5/5] libxl: network buffering cmdline switch Ian Jackson
2014-06-06  6:34     ` Hongyang Yang
2014-06-06  7:26       ` Shriram Rajagopalan
2014-06-06 11:13       ` Ian Jackson
2014-06-05 10:47 ` [PATCH v10 0/5] Remus netbuffer: Network buffering support George Dunlap
2014-06-06  2:17   ` Hongyang Yang
2014-06-05 16:01 ` Ian Jackson
2014-06-05 16:12 ` Ian Jackson
2014-06-06  2:26   ` Hongyang Yang
  -- strict thread matches above, loose matches on Subject: below --
2014-05-21 10:14 [PATCH v10 0/5] Remus/Libxl: " Yang Hongyang
2014-05-21 10:14 ` [PATCH v10 2/5] remus: add libnl3 dependency for network " Yang Hongyang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53911E02.6040706@cn.fujitsu.com \
    --to=yanghy@cn.fujitsu.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=ian.campbell@citrix.com \
    --cc=laijs@cn.fujitsu.com \
    --cc=roger.pau@citrix.com \
    --cc=rshriram@cs.ubc.ca \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wency@cn.fujitsu.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yunhong.jiang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).