diff options
author | Palik, Imre <imrep@amazon.de> | 2015-03-19 11:05:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-20 12:55:15 -0400 |
commit | edafc132baac4f5331b7bffd99a7af371776f2b5 (patch) | |
tree | ed29dce2d9af57b59272c557552973adab466039 /drivers/net/xen-netback/interface.c | |
parent | 750f2f9165bafb5fc20a1ec689f46c89dac54658 (diff) | |
download | blackbird-op-linux-edafc132baac4f5331b7bffd99a7af371776f2b5.tar.gz blackbird-op-linux-edafc132baac4f5331b7bffd99a7af371776f2b5.zip |
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>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index d2ada7cda97a..1a83e190fc15 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -463,6 +463,7 @@ int xenvif_init_queue(struct xenvif_queue *queue) queue->credit_bytes = queue->remaining_credit = ~0UL; queue->credit_usec = 0UL; init_timer(&queue->credit_timeout); + queue->credit_timeout.function = xenvif_tx_credit_callback; queue->credit_window_start = get_jiffies_64(); queue->rx_queue_max = XENVIF_RX_QUEUE_BYTES; |