aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/xfrm/xfrm_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index 85f3f43a6cca..dfacb9c2a6e3 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -1729,7 +1729,7 @@ int xfrm_state_mtu(struct xfrm_state *x, int mtu)
1729 x->type && x->type->get_mtu) 1729 x->type && x->type->get_mtu)
1730 res = x->type->get_mtu(x, mtu); 1730 res = x->type->get_mtu(x, mtu);
1731 else 1731 else
1732 res = mtu; 1732 res = mtu - x->props.header_len;
1733 spin_unlock_bh(&x->lock); 1733 spin_unlock_bh(&x->lock);
1734 return res; 1734 return res;
1735} 1735}