]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
xen-netback: fixing the propagation of the transmit shaper timeout
authorPalik, Imre <imrep@amazon.de>
Tue, 6 Jan 2015 15:44:44 +0000 (16:44 +0100)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 19 Jan 2015 11:36:21 +0000 (11:36 +0000)
commit 07ff890daeda31cf23173865edf50bcb03e100c3 upstream.

Since e9ce7cb6b107 ("xen-netback: Factor queue-specific data into queue struct"),
the transimt shaper timeout is always set to 0.  The value the user sets via
xenbus is never propagated to the transmit shaper.

This patch fixes the issue.

Cc: Anthony Liguori <aliguori@amazon.com>
Signed-off-by: Imre Palik <imrep@amazon.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/net/xen-netback/xenbus.c

index 3d85acd84bad03c5f3e0b4578e8bb414654b165b..9378a17c9553ef9b67a09c53a5f12329d927ecf3 100644 (file)
@@ -549,6 +549,7 @@ static void connect(struct backend_info *be)
                }
 
                queue->remaining_credit = credit_bytes;
+               queue->credit_usec = credit_usec;
 
                err = connect_rings(be, queue);
                if (err) {