]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66ad3d03aa8532e63f8ac319263f2c69458d488a
treeed29dce2d9af57b59272c557552973adab466039
parent02d3a78b6a3ce2f4c2c334ce22a6fe8b7ae3c0b4
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