[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1359423272.4196.8.camel@joe-AO722>
Date: Mon, 28 Jan 2013 17:34:32 -0800
From: Joe Perches <joe@...ches.com>
To: "Choi, David" <David.Choi@...rel.Com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Doong, Ping" <Ping.Doong@...rel.Com>,
"davem@...emloft.net" <davem@...emloft.net>,
"bhutchings@...arflare.com" <bhutchings@...arflare.com>
Subject: Re: [PATCH net-next] drivers/net/ethernet/micrel/ks8851_mll:
Implement basic statistics
On Wed, 2013-01-23 at 19:36 +0000, Choi, David wrote:
> From: David J. Choi <david.choi@...rel.com>
> --- net-next/drivers/net/ethernet/micrel/ks8851_mll.c.orig 2013-01-22 17:25:59.000000000 -0800
> + if (unlikely(!skb)) {
> + /* discard the packet from the device */
> + ks_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_RRXEF);
> + netdev->stats.rx_dropped++;
> + } else if (likely((frame_hdr->sts & RXFSHR_RXFV) &&
> (frame_hdr->len < RX_BUF_SIZE) && frame_hdr->len)) {
Just one small nit.
This would be better indented as:
} else if (likely((frame_hdr->sts & RXFSHR_RXFV) &&
frame_hdr->len > 0 &&
frame_hdr->len < RX_BUF_SIZE)) {
I do wonder why and when frame_hdr->len would be 0
and why the test is < RX_BUF_SIZE and not <=
--
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