xen/netback: Properly initialize credit_bytes
commitce0e5c522d3924090c20e774359809a7aa08c44c
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 27 May 2015 10:44:32 +0000 (27 11:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 16:56:55 +0000 (27 12:56 -0400)
treee8403fbefb62a33f7a84e9810930b89afff07bb7
parent748a7295d7242bc1aaaec0e245cc61f2be754766
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 <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