diff options
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/net/route.h b/include/net/route.h index f68c167280a7..638e3ebf76f3 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -239,14 +239,12 @@ static inline char rt_tos2priority(u8 tos) | |||
239 | static inline void ip_route_connect_init(struct flowi4 *fl4, __be32 dst, __be32 src, | 239 | static inline void ip_route_connect_init(struct flowi4 *fl4, __be32 dst, __be32 src, |
240 | u32 tos, int oif, u8 protocol, | 240 | u32 tos, int oif, u8 protocol, |
241 | __be16 sport, __be16 dport, | 241 | __be16 sport, __be16 dport, |
242 | struct sock *sk, bool can_sleep) | 242 | struct sock *sk) |
243 | { | 243 | { |
244 | __u8 flow_flags = 0; | 244 | __u8 flow_flags = 0; |
245 | 245 | ||
246 | if (inet_sk(sk)->transparent) | 246 | if (inet_sk(sk)->transparent) |
247 | flow_flags |= FLOWI_FLAG_ANYSRC; | 247 | flow_flags |= FLOWI_FLAG_ANYSRC; |
248 | if (can_sleep) | ||
249 | flow_flags |= FLOWI_FLAG_CAN_SLEEP; | ||
250 | 248 | ||
251 | flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE, | 249 | flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE, |
252 | protocol, flow_flags, dst, src, dport, sport); | 250 | protocol, flow_flags, dst, src, dport, sport); |
@@ -256,13 +254,13 @@ static inline struct rtable *ip_route_connect(struct flowi4 *fl4, | |||
256 | __be32 dst, __be32 src, u32 tos, | 254 | __be32 dst, __be32 src, u32 tos, |
257 | int oif, u8 protocol, | 255 | int oif, u8 protocol, |
258 | __be16 sport, __be16 dport, | 256 | __be16 sport, __be16 dport, |
259 | struct sock *sk, bool can_sleep) | 257 | struct sock *sk) |
260 | { | 258 | { |
261 | struct net *net = sock_net(sk); | 259 | struct net *net = sock_net(sk); |
262 | struct rtable *rt; | 260 | struct rtable *rt; |
263 | 261 | ||
264 | ip_route_connect_init(fl4, dst, src, tos, oif, protocol, | 262 | ip_route_connect_init(fl4, dst, src, tos, oif, protocol, |
265 | sport, dport, sk, can_sleep); | 263 | sport, dport, sk); |
266 | 264 | ||
267 | if (!dst || !src) { | 265 | if (!dst || !src) { |
268 | rt = __ip_route_output_key(net, fl4); | 266 | rt = __ip_route_output_key(net, fl4); |