aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-22 21:29:20 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-22 21:29:20 -0500
commit47209abd7925acb3f61ae59884247b612b8904c8 (patch)
treef02ee1ea34959fdf3f64c76c0ba300eefac1f041 /net/xfrm
parent0730b9a1504cb76f80c97d90ff82f8daeb1243a3 (diff)
xfrm: Kill strict arg to xfrm_bundle_ok().
Always set to "0". Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_policy.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 71e6dc25bc5c..1e11398163d5 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -51,7 +51,7 @@ static void xfrm_policy_put_afinfo(struct xfrm_policy_afinfo *afinfo);
51static void xfrm_init_pmtu(struct dst_entry *dst); 51static void xfrm_init_pmtu(struct dst_entry *dst);
52static int stale_bundle(struct dst_entry *dst); 52static int stale_bundle(struct dst_entry *dst);
53static int xfrm_bundle_ok(struct xfrm_policy *pol, struct xfrm_dst *xdst, 53static int xfrm_bundle_ok(struct xfrm_policy *pol, struct xfrm_dst *xdst,
54 struct flowi *fl, int family, int strict); 54 const struct flowi *fl, int family);
55 55
56 56
57static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 57static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
@@ -2210,7 +2210,7 @@ static struct dst_entry *xfrm_dst_check(struct dst_entry *dst, u32 cookie)
2210 2210
2211static int stale_bundle(struct dst_entry *dst) 2211static int stale_bundle(struct dst_entry *dst)
2212{ 2212{
2213 return !xfrm_bundle_ok(NULL, (struct xfrm_dst *)dst, NULL, AF_UNSPEC, 0); 2213 return !xfrm_bundle_ok(NULL, (struct xfrm_dst *)dst, NULL, AF_UNSPEC);
2214} 2214}
2215 2215
2216void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev) 2216void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev)
@@ -2283,7 +2283,7 @@ static void xfrm_init_pmtu(struct dst_entry *dst)
2283 */ 2283 */
2284 2284
2285static int xfrm_bundle_ok(struct xfrm_policy *pol, struct xfrm_dst *first, 2285static int xfrm_bundle_ok(struct xfrm_policy *pol, struct xfrm_dst *first,
2286 struct flowi *fl, int family, int strict) 2286 const struct flowi *fl, int family)
2287{ 2287{
2288 struct dst_entry *dst = &first->u.dst; 2288 struct dst_entry *dst = &first->u.dst;
2289 struct xfrm_dst *last; 2289 struct xfrm_dst *last;
@@ -2320,11 +2320,6 @@ static int xfrm_bundle_ok(struct xfrm_policy *pol, struct xfrm_dst *first,
2320 xdst->policy_genid != atomic_read(&xdst->pols[0]->genid)) 2320 xdst->policy_genid != atomic_read(&xdst->pols[0]->genid))
2321 return 0; 2321 return 0;
2322 2322
2323 if (strict && fl &&
2324 !(dst->xfrm->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL) &&
2325 !xfrm_state_addr_flow_check(dst->xfrm, fl, family))
2326 return 0;
2327
2328 mtu = dst_mtu(dst->child); 2323 mtu = dst_mtu(dst->child);
2329 if (xdst->child_mtu_cached != mtu) { 2324 if (xdst->child_mtu_cached != mtu) {
2330 last = xdst; 2325 last = xdst;