From: Ross Lagerwall Date: Wed, 27 May 2015 10:44:32 +0000 (+0100) Subject: xen/netback: Properly initialize credit_bytes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce0e5c522d3924090c20e774359809a7aa08c44c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git xen/netback: Properly initialize credit_bytes 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 --- diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 3d8dbf5f2d39..fee02414529e 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -793,6 +793,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;