[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1330994958.9504.2.camel@edumazet-glaptop>
Date: Mon, 05 Mar 2012 16:49:18 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: Roland Stigge <stigge@...com.de>, davem@...emloft.net,
jeffrey.t.kirsher@...el.com, alexander.h.duyck@...el.com,
eilong@...adcom.com, ian.campbell@...rix.com,
netdev@...r.kernel.org, w.sang@...gutronix.de,
linux-kernel@...r.kernel.org, kevin.wells@....com,
linux-arm-kernel@...ts.infradead.org, arnd@...db.de,
baruch@...s.co.il, joe@...ches.com
Subject: Re: [PATCH v4] lpc32xx: Added ethernet driver
On Mon, 2012-03-05 at 22:45 +0000, Ben Hutchings wrote:
> On Mon, 2012-03-05 at 22:40 +0100, Roland Stigge wrote:
> [...]
...
> > + /* Copy packet from buffer */
> > + memcpy(prdbuf,
> > + pldat->rx_buff_v[rxconsidx], len);
> > +
> > + /* Pass to upper layer */
> > + skb->protocol = eth_type_trans(skb, ndev);
> > + netif_rx(skb);
> > + ndev->last_rx = jiffies;
>
> Drivers don't need to set last_rx any more.
Also, a NAPI driver should call netif_receive_skb() instead of
netif_rx()
netif_rx() is more expensive because of additional queue, while
netif_receive_skb() directly calls the upper stacks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists