netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] bnx2x: bnx2x_set_pbd_csum() random accesses
@ 2011-04-19 16:11 Eric Dumazet
  2011-04-20  7:31 ` [PATCH] bnx2x: dont dereference tcp header on non tcp frames Eric Dumazet
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Dumazet @ 2011-04-19 16:11 UTC (permalink / raw)
  To: Dmitry Kravkov, Eilon Greenstein; +Cc: netdev

Hi guys

bnx2x_set_pbd_csum() / bnx2x_set_pbd_csum_e2() seem to read
tcp_hdrlen(skb) even for non TCP frames ?

Also, (skb_network_header(skb) - skb->data) is signed, so 
	(skb_network_header(skb) - skb->data) / 2 is a bit expensive...

Thanks



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-22  0:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19 16:11 [BUG] bnx2x: bnx2x_set_pbd_csum() random accesses Eric Dumazet
2011-04-20  7:31 ` [PATCH] bnx2x: dont dereference tcp header on non tcp frames Eric Dumazet
2011-04-20  8:46   ` David Miller
2011-04-20  9:40     ` Dmitry Kravkov
2011-04-20 15:08       ` Dmitry Kravkov
2011-04-22  0:20       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).