Skip to content

Commit

Permalink
xen/netback: Properly initialize credit_bytes
Browse files Browse the repository at this point in the history
Commit e9ce7cb ("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>
  • Loading branch information
Ross Lagerwall authored and David S. Miller committed May 27, 2015
1 parent 748a729 commit ce0e5c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/xen-netback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ce0e5c5

Please sign in to comment.