]> err.no Git - linux-2.6/commit
[XFRM]: Optimize MTU calculation
authorPatrick McHardy <kaber@trash.net>
Mon, 9 Apr 2007 18:47:18 +0000 (11:47 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:28:38 +0000 (22:28 -0700)
commitc5c2523893747f88a83376abad310c8ad13f7197
tree58f1ab25ac9f7ca7460abbd24e9bab9c8683f6fd
parent557922584d9c5b6b990bcfb2fec3134f0e73a05d
[XFRM]: Optimize MTU calculation

Replace the probing based MTU estimation, which usually takes 2-3 iterations
to find a fitting value and may underestimate the MTU, by an exact calculation.

Also fix underestimation of the XFRM trailer_len, which causes unnecessary
reallocations.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/esp4.c
net/ipv6/esp6.c
net/xfrm/xfrm_state.c