All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Dave Scott <Dave.Scott@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 4 of 5] tools: ocaml: add NIC QoS parameters to the ocaml libxl interface
Date: Tue, 29 Mar 2011 09:49:24 +0100	[thread overview]
Message-ID: <1301388564.3962.22.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <455cc73ea6268d54bc94.1301315198@ely>

On Mon, 2011-03-28 at 13:26 +0100, Dave Scott wrote:
> # HG changeset patch
> # User David Scott <dave.scott@eu.citrix.com>
> # Date 1301314652 -3600
> # Node ID 455cc73ea6268d54bc94e4c39ee954cef107f88b
> # Parent  3aab79c907a2c78f4e81362944ee65ddf6f2cc6f
> tools: ocaml: add NIC QoS parameters to the ocaml libxl interface
> 
> Signed-off-by: David Scott <dave.scott@eu.citrix.com>

Looks good, modulo the impact of comments on previous patches:
Acked-by: Ian Campbell <ian.campbell@citrix.com>

> 
> diff -r 3aab79c907a2 -r 455cc73ea626 tools/ocaml/libs/xl/xl.ml
> --- a/tools/ocaml/libs/xl/xl.ml	Mon Mar 28 13:17:32 2011 +0100
> +++ b/tools/ocaml/libs/xl/xl.ml	Mon Mar 28 13:17:32 2011 +0100
> @@ -109,6 +109,8 @@
>  		ifname : string;
>  		script : string;
>  		nictype : nic_type;
> +		qos_kib_per_sec : int32;
> +		qos_timeslice_usec : int32;
>  	}
>  end
>  
> diff -r 3aab79c907a2 -r 455cc73ea626 tools/ocaml/libs/xl/xl.mli
> --- a/tools/ocaml/libs/xl/xl.mli	Mon Mar 28 13:17:32 2011 +0100
> +++ b/tools/ocaml/libs/xl/xl.mli	Mon Mar 28 13:17:32 2011 +0100
> @@ -109,6 +109,8 @@
>  		ifname : string;
>  		script : string;
>  		nictype : nic_type;
> +		qos_kib_per_sec : int32;
> +		qos_timeslice_usec : int32;
>  	}
>  end
>  
> diff -r 3aab79c907a2 -r 455cc73ea626 tools/ocaml/libs/xl/xl_stubs.c
> --- a/tools/ocaml/libs/xl/xl_stubs.c	Mon Mar 28 13:17:32 2011 +0100
> +++ b/tools/ocaml/libs/xl/xl_stubs.c	Mon Mar 28 13:17:32 2011 +0100
> @@ -225,7 +225,8 @@
>  	c_val->ifname = dup_String_val(gc, Field(v, 6));
>  	c_val->script = dup_String_val(gc, Field(v, 7));
>  	c_val->nictype = (Int_val(Field(v, 8))) + NICTYPE_IOEMU;
> -
> +	c_val->qos_kib_per_sec = (Int_val(Field(v, 9)));
> +	c_val->qos_timeslice_usec = (Int_val(Field(v, 10)));
>  out:
>  	CAMLreturn(ret);
>  }
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2011-03-29  8:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 12:26 [PATCH 0 of 5] Improvements to libxl VIF hotplug, unplug; xapi can now use these functions David Scott
2011-03-28 12:26 ` [PATCH 1 of 5] libxl: fix memory management in "xl network-attach" David Scott
2011-03-28 14:37   ` Stefano Stabellini
2011-03-29  8:30   ` Ian Campbell
2011-03-28 12:26 ` [PATCH 2 of 5] tools: ocaml: move the nic_info record into a module to the field labels live in a separate namespace David Scott
2011-03-29  8:42   ` Ian Campbell
2011-03-30 17:18     ` Dave Scott
2011-03-28 12:26 ` [PATCH 3 of 5] libxl: add NIC QoS parameters David Scott
2011-03-28 14:37   ` Stefano Stabellini
2011-03-29  8:48     ` Ian Campbell
2011-03-28 12:26 ` [PATCH 4 of 5] tools: ocaml: add NIC QoS parameters to the ocaml libxl interface David Scott
2011-03-29  8:49   ` Ian Campbell [this message]
2011-03-28 12:26 ` [PATCH 5 of 5] tools: ocaml: rename nic_remove to nic_del, for consistency with libxl David Scott
2011-03-29  8:52   ` Ian Campbell

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=1301388564.3962.22.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=Dave.Scott@eu.citrix.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.