myri10ge: check fragmentation in LRO get_frag_header()
Subsystems (2)
PATCH 1/1 myri10ge: check fragmentation in LRO get_frag_header()
Add a fragmentation check to myri10ge's LRO get_frag_header() callback.
Signed-off-by Brice Goglin <[email protected]>
Signed-off-by Andrew Gallatin <[email protected]>
drivers/net/myri10ge/myri10ge.c +2 -0
@@ -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 );
From: Brice Goglin <[email protected]>
Date: Mon, 08 Dec 2008 10:17:36 +0100
Quoted 4 lines
Add a fragmentation check to myri10ge's LRO
get_frag_header()callback.Signed-off-by Brice Goglin <[email protected]>Signed-off-by Andrew Gallatin <[email protected]>
Applied, thanks Brice.