mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Masayuki Ohtake" <masa-korg@dsn.okisemi.com>
To: "David Miller" <davem@davemloft.net>
Cc: <randy.dunlap@oracle.com>, <ralf@linux-mips.org>,
	<eric.dumazet@gmail.com>, "ML netdev" <netdev@vger.kernel.org>,
	<meego-dev@meego.com>, <mbizon@freebox.fr>,
	"ML linux-kernel" <linux-kernel@vger.kernel.org>,
	<kristoffer@gaisler.com>, <john.linn@xilinx.com>,
	<joe@perches.com>, <gregory.v.rose@intel.com>,
	"Wang, Yong Y" <yong.y.wang@intel.com>,
	"Wang, Qi" <qi.wang@intel.com>,
	"okada" <okada533@dsn.okisemi.com>,
	"Morinaga" <morinaga526@dsn.okisemi.com>,
	"shimizu" <shimizu394@dsn.okisemi.com>,
	"Intel OTC" <joel.clark@intel.com>,
	"Foster, Margie" <margie.foster@intel.com>,
	<andrew.chih.howe.khor@intel.com>
Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH
Date: Wed, 15 Sep 2010 21:19:36 +0900	[thread overview]
Message-ID: <001601cb54d3$3aceb8d0$66f8800a@maildom.okisemi.com> (raw)
In-Reply-To: <20100908.133627.70178420.davem@davemloft.net>

Hi David

Thank you for your comments.
I will modify like your comment and resubmit patch.

Thanks Ohtake
-----
Date: Wed, 08 Sep 2010 13:36:27 -0700 (PDT)
From: "David Miller" <davem@davemloft.net>
> > +/**
> > + * pch_gbe_clean_rx - Send received data up the network stack; legacy
> > + * @adapter:     Board private structure
> > + * @rx_ring:     Rx descriptor ring
> > + * @work_done:   Completed count
> > + * @work_to_do:  Request count
> > + * Returns
> > + * true:  Cleaned the descriptor
> > + * false: Not cleaned the descriptor
> > + */
> > +static bool
> > +pch_gbe_clean_rx(struct pch_gbe_adapter *adapter,
> > + struct pch_gbe_rx_ring *rx_ring,
> > + int *work_done, int work_to_do)
> > +{
> ..
> > + if (netif_receive_skb(skb) == NET_RX_DROP) {
> > + adapter->stats.rx_dropped++;
>
> pch_gbe_clean_rx() should be given the "napi_struct" pointer
> argument from it's caller, and packets should be given to the
> stack using napi_gro_receive().  Finally, NETIF_F_GRO should
> be set in netdev->flags at probe time.
>
> Also, you should not use the return value of netif_receive_skb() to
> bump the standard rx_dropped statistics value, those return code are
> for other purposes.  No other driver does what you are doing with this
> return value.
>
> If you wish to increment some extended stastic value (like
> drivers/net/gianfar.c does) with another name, that's fine.
>




  reply	other threads:[~2010-09-15 12:40 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 14:09 Masayuki Ohtake
2010-09-03 16:35 ` Jiri Slaby
2010-09-07  1:13   ` Masayuki Ohtake
2010-09-08 13:52   ` Masayuki Ohtake
2010-09-08 14:16     ` Jiri Slaby
2010-09-08 14:54       ` Stephen Hemminger
2010-09-08 14:55       ` Stephen Hemminger
2010-09-09 13:37         ` Masayuki Ohtake
2010-09-09 13:38       ` Masayuki Ohtake
2010-09-03 20:00 ` Joe Perches
2010-09-07  2:42 ` Masayuki Ohtake
2010-09-08 20:36   ` David Miller
2010-09-15 12:19     ` Masayuki Ohtake [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-08-26  9:56 Masayuki Ohtake
2010-08-26 10:28 ` Sam Ravnborg
2010-08-26 12:47   ` Masayuki Ohtake
2010-08-26 14:44 ` Joe Perches
2010-08-26 15:34 ` Stephen Hemminger
2010-08-26 15:40 ` Stephen Hemminger
2010-08-26 15:41 ` Stephen Hemminger
2010-08-26 15:42 ` Stephen Hemminger
2010-08-26 15:43 ` Stephen Hemminger
2010-08-26 15:45 ` Stephen Hemminger
2010-08-26 15:47 ` Stephen Hemminger
2010-08-26 15:57 ` Stephen Hemminger
2010-08-26 16:05 ` Stephen Hemminger
2010-08-26 16:16   ` Joe Perches
2010-08-26 16:29     ` Stephen Hemminger
2010-08-26 17:02       ` Joe Perches
2010-08-31 14:15 ` Masayuki Ohtake
2010-08-31 14:51   ` Eric Dumazet
2010-09-02 12:39     ` Masayuki Ohtake
2010-09-02 13:40       ` Eric Dumazet
2010-09-02 15:10         ` Stephen Hemminger
2010-09-03 13:32           ` Masayuki Ohtake
2010-09-03 13:43             ` Eric Dumazet
2010-09-03 14:11               ` Masayuki Ohtake
2010-08-31 15:08   ` Randy Dunlap
2010-08-31 16:10   ` Joe Perches
2010-09-03  2:23   ` FUJITA Tomonori
2010-09-07  1:13     ` Masayuki Ohtake
2010-09-07  3:21       ` FUJITA Tomonori
2010-09-07  4:06         ` Masayuki Ohtake

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='001601cb54d3$3aceb8d0$66f8800a@maildom.okisemi.com' \
    --to=masa-korg@dsn.okisemi.com \
    --cc=andrew.chih.howe.khor@intel.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=gregory.v.rose@intel.com \
    --cc=joe@perches.com \
    --cc=joel.clark@intel.com \
    --cc=john.linn@xilinx.com \
    --cc=kristoffer@gaisler.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=margie.foster@intel.com \
    --cc=mbizon@freebox.fr \
    --cc=meego-dev@meego.com \
    --cc=morinaga526@dsn.okisemi.com \
    --cc=netdev@vger.kernel.org \
    --cc=okada533@dsn.okisemi.com \
    --cc=qi.wang@intel.com \
    --cc=ralf@linux-mips.org \
    --cc=randy.dunlap@oracle.com \
    --cc=shimizu394@dsn.okisemi.com \
    --cc=yong.y.wang@intel.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

Powered by JetHome