public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Zoltan Kiss <zoltan.kiss@citrix.com>
To: David Miller <davem@davemloft.net>
Cc: <steffen.klassert@secunet.com>, <minipli@googlemail.com>,
	<dborkman@redhat.com>, <tgraf@suug.ch>, <joe@perches.com>,
	<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<xen-devel@lists.xenproject.org>
Subject: Re: [PATCH net-next 1/3 v4] pktgen: Fill the payload optionally with a pattern
Date: Wed, 9 Jul 2014 15:51:34 +0100	[thread overview]
Message-ID: <53BD56F6.3060407@citrix.com> (raw)
In-Reply-To: <20140708.112838.2087453949565741801.davem@davemloft.net>

On 08/07/14 19:28, David Miller wrote:
> From: Zoltan Kiss <zoltan.kiss@citrix.com>
> Date: Wed, 2 Jul 2014 20:54:13 +0100
>
>> @@ -1129,11 +1133,13 @@ static ssize_t pktgen_if_write(struct file *file,
>>   		i += len;
>>
>>   		if (node_possible(value)) {
>> +			int j;
>>   			pkt_dev->node = value;
>>   			sprintf(pg_result, "OK: node=%d", pkt_dev->node);
>> -			if (pkt_dev->page) {
>> -				put_page(pkt_dev->page);
>> -				pkt_dev->page = NULL;
>> +			for (j = 0; j < MAX_SKB_FRAGS; ++j)
>> +				if (pkt_dev->pages[j]) {
>> +					put_page(pkt_dev->pages[j]);
>> +					pkt_dev->pages[j] = NULL;
>>   			}
>>   		}
>
> I'm scratching my head with the bracing created here, and it's because
> the indentation is wrong:
>
> 	for () /* <-- no openning curly brace */
> 		if () {
> 			x;
> 			y;
> 	} /* <-- thus, wrong indentation */

Hm, checkpatch couldn't catch this, I'll report it to the maintainers.

Zoli


  reply	other threads:[~2014-07-09 14:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 19:54 [PATCH net-next v2 0/3] pktgen: Upstreaming features useful for xen-netback/front testing Zoltan Kiss
2014-07-02 19:54 ` [PATCH net-next 1/3 v4] pktgen: Fill the payload optionally with a pattern Zoltan Kiss
2014-07-08 18:28   ` David Miller
2014-07-09 14:51     ` Zoltan Kiss [this message]
2014-07-09 15:00     ` checkpatch minor issue Zoltan Kiss
2014-07-09 18:50       ` Joe Perches
2014-07-02 19:54 ` [PATCH net-next v2 2/3] pktgen: Allow setting frag sizes individually Zoltan Kiss
2014-07-02 19:54 ` [PATCH net-next v2 3/3 RFC] pktgen: Allow sending TCP packets Zoltan Kiss
2014-07-03  6:49   ` Eric Dumazet

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=53BD56F6.3060407@citrix.com \
    --to=zoltan.kiss@citrix.com \
    --cc=davem@davemloft.net \
    --cc=dborkman@redhat.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minipli@googlemail.com \
    --cc=netdev@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    --cc=tgraf@suug.ch \
    --cc=xen-devel@lists.xenproject.org \
    /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