From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>, netdev@vger.kernel.org
Cc: wei.liu2@citrix.com
Subject: Re: [PATCH net] xen/netback: Properly initialize credit_bytes
Date: Mon, 11 May 2015 23:45:39 +0300 [thread overview]
Message-ID: <555114F3.4020502@cogentembedded.com> (raw)
In-Reply-To: <1431363865-27317-1-git-send-email-ross.lagerwall@citrix.com>
Hello.
On 05/11/2015 08:04 PM, Ross Lagerwall wrote:
> 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>
> ---
> drivers/net/xen-netback/xenbus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c
> index 3d8dbf5..1be3ef3 100644
> --- a/drivers/net/xen-netback/xenbus.c
> +++ b/drivers/net/xen-netback/xenbus.c
> @@ -793,7 +793,7 @@ static void connect(struct backend_info *be)
> goto err;
> }
>
> - queue->remaining_credit = credit_bytes;
> + queue->remaining_credit = queue->credit_bytes = credit_bytes;
[headless@wasted linux]$ scripts/checkpatch.pl
~/patches/xen_netback-Properly-initialize-credit_bytes.patch
CHECK: multiple assignments should be avoided
#22: FILE: drivers/net/xen-netback/xenbus.c:796:
+ queue->remaining_credit = queue->credit_bytes = credit_bytes;
total: 0 errors, 0 warnings, 1 checks, 8 lines checked
/home/headless/patches/xen_netback-Properly-initialize-credit_bytes.patch has
style problems, please review.
If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
WBR, Sergei
prev parent reply other threads:[~2015-05-11 20:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 17:04 [PATCH net] xen/netback: Properly initialize credit_bytes Ross Lagerwall
2015-05-11 20:45 ` Sergei Shtylyov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=555114F3.4020502@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=netdev@vger.kernel.org \
--cc=ross.lagerwall@citrix.com \
--cc=wei.liu2@citrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).