From: hayeswang <hayeswang@realtek.com>
To: "'David Miller'" <davem@davemloft.net>, <oneukum@suse.de>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-usb@vger.kernel.org>
Subject: RE: [PATCH net-next 1/3] net/usb/r8152: support aggregation
Date: Wed, 14 Aug 2013 11:02:56 +0800 [thread overview]
Message-ID: <20698A1C08B24B92B3CD1D84AC85A175@realtek.com.tw> (raw)
In-Reply-To: <20130813.164118.1992860501009385037.davem@davemloft.net>
David Miller [mailto:davem@davemloft.net]
> Sent: Wednesday, August 14, 2013 7:41 AM
> To: oneukum@suse.de
> Cc: Hayeswang; netdev@vger.kernel.org;
> linux-kernel@vger.kernel.org; linux-usb@vger.kernel.org
> Subject: Re: [PATCH net-next 1/3] net/usb/r8152: support aggregation
>
[...]
> > I don't understand what problem the function is supposed to
> fix. As long
> > as I don't understand it I cannot say for sure whether it
> is correct.
> > There seems no obvious reason for a memory barrier, but
> there may be a
> > hidden reason I don't see.
>
> Hayes, when Oliver asks you "Against what is the memory
> barrier?" he is asking
> you which memory operations you are trying to order.
>
> You do not explain this in your commit message, nor do you
> explain it with a
> suitable comment. This is not acceptable.
>
> It is absolutely critical, that any time you add a memory
> barrier, you add a
> comment above the new memory barrier explaining exactly what
> the barrier is
> trying to achieve.
>
> In fact, this is required by our coding standards.
I just want to make sure the rx_desc and rx_data are set correctly before
they are used. However, I study some examples and information from internet,
and I think that the memory barries is not necessary here. Therefore, I would
remove them later.
Best Regards,
Hayes
next prev parent reply other threads:[~2013-08-14 3:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 7:28 Hayes Wang
2013-08-13 7:28 ` [PATCH net-next 2/3] net/usb/r8152: enable tx checksum Hayes Wang
2013-08-13 14:39 ` Sergei Shtylyov
2013-08-13 7:28 ` [PATCH net-next 3/3] net/usb/r8152: enable interrupt transfer Hayes Wang
2013-08-13 8:49 ` [PATCH net-next 1/3] net/usb/r8152: support aggregation Oliver Neukum
2013-08-13 12:32 ` hayeswang
2013-08-13 15:17 ` Oliver Neukum
2013-08-13 23:41 ` David Miller
2013-08-14 3:02 ` hayeswang [this message]
2013-08-14 12:54 ` [PATCH net-next v2 " Hayes Wang
2013-08-14 12:54 ` [PATCH net-next v2 2/3] net/usb/r8152: enable tx checksum Hayes Wang
2013-08-15 8:34 ` David Miller
2013-08-14 12:54 ` [PATCH net-next v2 3/3] net/usb/r8152: enable interrupt transfer Hayes Wang
2013-08-15 8:35 ` David Miller
2013-08-15 8:34 ` [PATCH net-next v2 1/3] net/usb/r8152: support aggregation David Miller
2013-08-15 12:26 ` Francois Romieu
2013-08-16 3:44 ` hayeswang
2013-08-16 5:54 ` Francois Romieu
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=20698A1C08B24B92B3CD1D84AC85A175@realtek.com.tw \
--to=hayeswang@realtek.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oneukum@suse.de \
/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
all inboxes | Powered by JetHome®