* [PATCH net-next] myri10ge: check fragmentation in LRO get_frag_header()
@ 2008-12-08 9:17 Brice Goglin
2008-12-09 8:14 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Brice Goglin @ 2008-12-08 9:17 UTC (permalink / raw)
To: David S. Miller, netdev
Add a fragmentation check to myri10ge's LRO get_frag_header() callback.
Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Andrew Gallatin <gallatin@myri.com>
--- linux-git/drivers/net/myri10ge/myri10ge.c 2008-12-08 10:12:11.000000000 +0100
+++ linux-tmp/drivers/net/myri10ge/myri10ge.c 2008-12-08 10:12:21.000000000 +0100
@@ -2229,6 +2229,8 @@ myri10ge_get_frag_header(struct skb_frag
*ip_hdr = iph;
if (iph->protocol != IPPROTO_TCP)
return -1;
+ if (iph->frag_off & htons(IP_MF | IP_OFFSET))
+ return -1;
*hdr_flags |= LRO_TCP;
*tcpudp_hdr = (u8 *) (*ip_hdr) + (iph->ihl << 2);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] myri10ge: check fragmentation in LRO get_frag_header()
2008-12-08 9:17 [PATCH net-next] myri10ge: check fragmentation in LRO get_frag_header() Brice Goglin
@ 2008-12-09 8:14 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-12-09 8:14 UTC (permalink / raw)
To: brice; +Cc: netdev
From: Brice Goglin <brice@myri.com>
Date: Mon, 08 Dec 2008 10:17:36 +0100
> Add a fragmentation check to myri10ge's LRO get_frag_header() callback.
>
> Signed-off-by: Brice Goglin <brice@myri.com>
> Signed-off-by: Andrew Gallatin <gallatin@myri.com>
Applied, thanks Brice.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-09 8:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 9:17 [PATCH net-next] myri10ge: check fragmentation in LRO get_frag_header() Brice Goglin
2008-12-09 8:14 ` 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).