From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shriram Rajagopalan Subject: Re: [PATCH 0 of 5 V2] Remus/Libxl: Network buffering support Date: Wed, 4 Sep 2013 09:21:51 -0400 Message-ID: References: Reply-To: rshriram@cs.ubc.ca Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2401594393553143580==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" Cc: Andrew Cooper , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --===============2401594393553143580== Content-Type: multipart/alternative; boundary=bcaec51968d79e74a804e58eb21c --bcaec51968d79e74a804e58eb21c Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 29, 2013 at 6:16 PM, Shriram Rajagopalan wrote: > This patch series adds support for network buffering in the Remus > codebase in libxl. > > Changes in V2: > [1/5] Configure script will automatically enable/disable network > buffer support depending on the availability of the appropriate > libnl3 version. [If libnl3 is unavailable, a warning message will be > printed to let the user know that the feature has been disabled.] > > use macros from pkg.m4 instead of pkg-config commands > removed redundant checks for libnl3 libraries. > > [3,4/5] - Minor nits. > > Version 1: > > 1/5 - changes to autoconf scripts to check for libnl3. Add linker flags > to libxl Makefile. > > 2/5 - External script to setup/teardown network buffering using libnl3's > CLI. > This script will be invoked by libxl before starting Remus. The > script's > main job is to bring up an IFB device with plug qdisc attached to > it. > It then re-routes egress traffic from the guest's vif to the IFB > device. > > 3/5 - Libxl code to invoke the external setup script, followed by > netlink related setup to obtain a handle on the output buffers > attached > to each vif. > > 4/5 - Libxl interaction with network buffer module in the kernel via > libnl3 API. > > 5/5 - xl cmdline switch to explicitly enable network buffering when > starting remus. > > > Few things to note: > a) Based on previous email discussions, the setup/teardown task has been > moved to a > hotplug style shell script which can be customized as desired, instead > of > implementing it as C code inside libxl. > > b) Libnl3 is not available on NetBSD. Nor is it available on CentOS > (Linux). > So I have made network buffering support an optional feature so that it > can be > disabled if desired. > > c) NetBSD does not have libnl3. So I have put the setup script under > tools/hotplug/Linux folder. > > thanks > shriram > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel > ping! shriram --bcaec51968d79e74a804e58eb21c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Aug 29, 2013 at 6:16 PM, Shriram Rajagopalan <rs= hriram@cs.ubc.ca> wrote:
This patch series adds support for network b= uffering in the Remus
codebase in libxl.

Changes in V2:
[1/5] Configure script will automatically enable/disable network
=A0 =A0 =A0 buffer support depending on the availability of the appropriate=
=A0 =A0 =A0 libnl3 version. [If libnl3 is unavailable, a warning message wi= ll be
=A0 =A0 =A0 printed to let the user know that the feature has been disabled= .]

=A0 =A0 =A0 use macros from pkg.m4 instead of pkg-config commands
=A0 =A0 =A0 removed redundant checks for libnl3 libraries.

[3,4/5] - Minor nits.

Version 1:

=A01/5 - changes to autoconf scripts to check for libnl3. Add linker flags<= br> =A0 =A0 =A0 =A0to libxl Makefile.

=A02/5 - External script to setup/teardown network buffering using libnl3&#= 39;s CLI.
=A0 =A0 =A0 =A0This script will be invoked by libxl before starting Remus. = The script's
=A0 =A0 =A0 =A0main job is to bring up an IFB device with plug qdisc attach= ed to it.
=A0 =A0 =A0 =A0It then re-routes egress traffic from the guest's vif to= the IFB device.

=A03/5 - Libxl code to invoke the external setup script, followed by
=A0 =A0 =A0 =A0netlink related setup to obtain a handle on the output buffe= rs attached
=A0 =A0 =A0 =A0to each vif.

=A04/5 - Libxl interaction with network buffer module in the kernel via lib= nl3 API.

=A05/5 - xl cmdline switch to explicitly enable network buffering when star= ting remus.


Few things to note:
a) Based on previous email discussions, the setup/teardown task has been mo= ved to a
=A0 =A0hotplug style shell script which can be customized as desired, inste= ad of
=A0 =A0implementing it as C code inside libxl.

b) Libnl3 is not available on NetBSD. Nor is it available on CentOS (Linux)= .
=A0 =A0So I have made network buffering support an optional feature so that= it can be
=A0 =A0disabled if desired.

c) NetBSD does not have libnl3. So I have put the setup script under
=A0 =A0tools/hotplug/Linux folder.

thanks
shriram


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.x= en.org/xen-devel

ping!

shriram
--bcaec51968d79e74a804e58eb21c-- --===============2401594393553143580== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============2401594393553143580==--