[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120527.011216.1298417866757459701.davem@davemloft.net>
Date: Sun, 27 May 2012 01:12:16 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: gaofeng@...fujitsu.com
Cc: netdev@...r.kernel.org, steffen.klassert@...unet.com,
lw@...fujitsu.com
Subject: Re: [PATCH v2] ipv6: fix incorrect ipsec fragment
From: Gao feng <gaofeng@...fujitsu.com>
Date: Sat, 26 May 2012 19:30:53 +0800
> Since commit ad0081e43a
> "ipv6: Fragment locally generated tunnel-mode IPSec6 packets as needed"
> the fragment of packets is incorrect.
> because tunnel mode needs IPsec headers and trailer for all fragments,
> while on transport mode it is sufficient to add the headers to the
> first fragment and the trailer to the last.
>
> so modify mtu and maxfraglen base on ipsec mode and if fragment is first
> or last.
>
> with my test,it work well(every fragment's size is the mtu)
> and does not trigger slow fragment path.
>
> Changes from v1:
> though optimization, mtu_prev and maxfraglen_prev can be delete.
> replace xfrm mode codes with dst_entry's new frag DST_XFRM_TUNNEL.
> add fuction ip6_append_data_mtu to make codes clearer.
>
> Signed-off-by: Gao feng <gaofeng@...fujitsu.com>
Applied, and queued up for -stable, thanks.
--
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