From: Benjamin Poirier Date: Thu, 24 May 2012 11:32:38 +0000 (+0000) Subject: xfrm: take net hdr len into account for esp payload size calculation X-Git-Tag: v3.2.20~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7687e882a0bbdc0bbd60613ed170d5fa4d55a44;p=pandora-kernel.git xfrm: take net hdr len into account for esp payload size calculation [ Upstream commit 91657eafb64b4cb53ec3a2fbc4afc3497f735788 ] Corrects the function that determines the esp payload size. The calculations done in esp{4,6}_get_mtu() lead to overlength frames in transport mode for certain mtu values and suboptimal frames for others. According to what is done, mainly in esp{,6}_output() and tcp_mtu_to_mss(), net_header_len must be taken into account before doing the alignment calculation. Signed-off-by: Benjamin Poirier Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed