xen-netback: making the bandwidth limiter runtime settable
authorPalik, Imre <imrep@amazon.de>
Thu, 19 Mar 2015 10:05:42 +0000 (11:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 16:55:15 +0000 (12:55 -0400)
commitedafc132baac4f5331b7bffd99a7af371776f2b5
treeed29dce2d9af57b59272c557552973adab466039
parent750f2f9165bafb5fc20a1ec689f46c89dac54658
xen-netback: making the bandwidth limiter runtime settable

With the current netback, the bandwidth limiter's parameters are only
settable during vif setup time.  This patch register a watch on them, and
thus makes them runtime changeable.

When the watch fires, the timer is reset.  The timer's mutex is used for
fencing the change.

Cc: Anthony Liguori <aliguori@amazon.com>
Signed-off-by: Imre Palik <imrep@amazon.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c
drivers/net/xen-netback/xenbus.c