From: Palik, Imre Date: Tue, 6 Jan 2015 15:44:44 +0000 (+0100) Subject: xen-netback: fixing the propagation of the transmit shaper timeout X-Git-Tag: v3.16.35~3083 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58db20fc52fc0f6ba921344ed9cd898317856eb1;p=thirdparty%2Fkernel%2Fstable.git xen-netback: fixing the propagation of the transmit shaper timeout 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 Signed-off-by: Imre Palik Acked-by: Ian Campbell Signed-off-by: David S. Miller Signed-off-by: Luis Henriques --- diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 3d85acd84bad0..9378a17c9553e 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -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) {