diff options
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 15734adc9367..0ecec34d265a 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -1152,29 +1152,6 @@ int xfrm_state_check_expire(struct xfrm_state *x) | |||
1152 | } | 1152 | } |
1153 | EXPORT_SYMBOL(xfrm_state_check_expire); | 1153 | EXPORT_SYMBOL(xfrm_state_check_expire); |
1154 | 1154 | ||
1155 | static int xfrm_state_check_space(struct xfrm_state *x, struct sk_buff *skb) | ||
1156 | { | ||
1157 | int nhead = x->props.header_len + LL_RESERVED_SPACE(skb->dst->dev) | ||
1158 | - skb_headroom(skb); | ||
1159 | |||
1160 | if (nhead > 0) | ||
1161 | return pskb_expand_head(skb, nhead, 0, GFP_ATOMIC); | ||
1162 | |||
1163 | /* Check tail too... */ | ||
1164 | return 0; | ||
1165 | } | ||
1166 | |||
1167 | int xfrm_state_check(struct xfrm_state *x, struct sk_buff *skb) | ||
1168 | { | ||
1169 | int err = xfrm_state_check_expire(x); | ||
1170 | if (err < 0) | ||
1171 | goto err; | ||
1172 | err = xfrm_state_check_space(x, skb); | ||
1173 | err: | ||
1174 | return err; | ||
1175 | } | ||
1176 | EXPORT_SYMBOL(xfrm_state_check); | ||
1177 | |||
1178 | struct xfrm_state * | 1155 | struct xfrm_state * |
1179 | xfrm_state_lookup(xfrm_address_t *daddr, __be32 spi, u8 proto, | 1156 | xfrm_state_lookup(xfrm_address_t *daddr, __be32 spi, u8 proto, |
1180 | unsigned short family) | 1157 | unsigned short family) |