[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <493423D7.5030203@myri.com>
Date: Mon, 01 Dec 2008 12:50:15 -0500
From: Andrew Gallatin <gallatin@...i.com>
To: Jan-Bernd Themann <ossthema@...ibm.com>
CC: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>, tklein@...ibm.com,
Christoph Raisch <raisch@...ibm.com>, jb.billaud@...il.com,
hering2@...ibm.com
Subject: Re: [PATCH] lro: IP fragment checking
Jan-Bernd Themann wrote:
> This patch prevents that ip fragmented TCP packets are considered vaild
> for aggregation
<...>
> + if (iph->frag_off & IP_MF)
> + return -1;
> +
I think there is an endian bug, and that you should also check
IP_OFFSET. What about:
if (iph->frag_off & htons(IP_MF|IP_OFFSET))
As to whether or not to do it in the drivers/hardware or in the
LRO code, I favor doing it in the LRO code just so that it is not
missed in some driver.
Drew
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists