From: Ross Lagerwall Date: Wed, 27 May 2015 10:44:32 +0000 (+0100) Subject: xen/netback: Properly initialize credit_bytes X-Git-Tag: v3.16.35~1873 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d8a28f0f0f2ea1d51277522f0a0959f0aa2d5c9;p=thirdparty%2Fkernel%2Fstable.git xen/netback: Properly initialize credit_bytes commit ce0e5c522d3924090c20e774359809a7aa08c44c upstream. Commit e9ce7cb6b107 ("xen-netback: Factor queue-specific data into queue struct") introduced a regression when moving queue-specific data into the queue struct by failing to set the credit_bytes field. This prevented bandwidth limiting from working. Initialize the field as it was done before multiqueue support was added. Signed-off-by: Ross Lagerwall Acked-by: Wei Liu 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 9378a17c9553e..e54e96851cb7f 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -548,6 +548,7 @@ static void connect(struct backend_info *be) goto err; } + queue->credit_bytes = credit_bytes; queue->remaining_credit = credit_bytes; queue->credit_usec = credit_usec;