xen/netback: Properly initialize credit_bytes
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 27 May 2015 10:44:32 +0000 (11:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 16:56:55 +0000 (12:56 -0400)
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 <ross.lagerwall@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c

index 3d8dbf5f2d396aa8dde8745afe98d8b4f9febd67..fee02414529e0b951d67ea458107b50f87c9b1d8 100644 (file)
@@ -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;