Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 420d44da authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Make final arg to ip_route_output_flow to be boolean "can_sleep"



Since that is what the current vague "flags" argument means.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent abdf7e72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ static struct rtable *find_route(struct t3cdev *dev, __be32 local_ip,
			  }
	};

	if (ip_route_output_flow(&init_net, &rt, &fl, NULL, 0))
	if (ip_route_output_flow(&init_net, &rt, &fl, NULL, false))
		return NULL;
	return rt;
}
+1 −1
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static struct rtable *find_route(struct c4iw_dev *dev, __be32 local_ip,
			  }
	};

	if (ip_route_output_flow(&init_net, &rt, &fl, NULL, 0))
	if (ip_route_output_flow(&init_net, &rt, &fl, NULL, false))
		return NULL;
	return rt;
}
+1 −1
Original line number Diff line number Diff line
@@ -470,7 +470,7 @@ static struct rtable *find_route_ipv4(__be32 saddr, __be32 daddr,
			}
	};

	if (ip_route_output_flow(&init_net, &rt, &fl, NULL, 0))
	if (ip_route_output_flow(&init_net, &rt, &fl, NULL, false))
		return NULL;

	return rt;
+3 −3
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ extern void rt_cache_flush(struct net *net, int how);
extern void		rt_cache_flush_batch(struct net *net);
extern int		__ip_route_output_key(struct net *, struct rtable **, const struct flowi *flp);
extern int		ip_route_output_key(struct net *, struct rtable **, struct flowi *flp);
extern int		ip_route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, int flags);
extern int		ip_route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, bool can_sleep);

extern int ip_route_input_common(struct sk_buff *skb, __be32 dst, __be32 src,
				 u8 tos, struct net_device *devin, bool noref);
@@ -196,7 +196,7 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst,
		*rp = NULL;
	}
	security_sk_classify_flow(sk, &fl);
	return ip_route_output_flow(net, rp, &fl, sk, can_sleep ? 1 : 0);
	return ip_route_output_flow(net, rp, &fl, sk, can_sleep);
}

static inline int ip_route_newports(struct rtable **rp, u8 protocol,
@@ -220,7 +220,7 @@ static inline int ip_route_newports(struct rtable **rp, u8 protocol,
		ip_rt_put(*rp);
		*rp = NULL;
		security_sk_classify_flow(sk, &fl);
		return ip_route_output_flow(sock_net(sk), rp, &fl, sk, 0);
		return ip_route_output_flow(sock_net(sk), rp, &fl, sk, false);
	}
	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk,
			  };

	security_skb_classify_flow(skb, &fl);
	if (ip_route_output_flow(net, &rt, &fl, sk, 0)) {
	if (ip_route_output_flow(net, &rt, &fl, sk, false)) {
		IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES);
		return NULL;
	}
Loading