diff options
author | Benjamin Poirier <bpoirier@suse.de> | 2012-05-24 11:32:38 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-10 00:36:15 +0900 |
commit | 978041f2a946a4616f7cdb60f6d453ffa83298c1 (patch) | |
tree | e5ced0504c3986e77add058bf1923cfe7b7449b2 /fs/ext4 | |
parent | 010589e2bce841733dc989fd56c5c3aba41a759c (diff) | |
download | lwn-978041f2a946a4616f7cdb60f6d453ffa83298c1.tar.gz lwn-978041f2a946a4616f7cdb60f6d453ffa83298c1.zip |
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 <bpoirier@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions