summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorPalik, Imre <imrep@amazon.de>2015-03-19 11:05:42 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-20 12:55:15 -0400
commitedafc132baac4f5331b7bffd99a7af371776f2b5 (patch)
treeed29dce2d9af57b59272c557552973adab466039 /drivers/net/xen-netback/interface.c
parent750f2f9165bafb5fc20a1ec689f46c89dac54658 (diff)
downloadblackbird-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.c1
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;
OpenPOWER on IntegriCloud