aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-01 17:22:19 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-01 17:22:19 -0500
commit5df65e5567a497a28067019b8ff08f98fb026629 (patch)
tree776a8a2cfa2cf5962ea0d53dea8c6c8360a0c58d /include/net/route.h
parent420d44daa7aa1cc847e9e527f0a27a9ce61768ca (diff)
net: Add FLOWI_FLAG_CAN_SLEEP.
And set is in contexts where the route resolution can sleep. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 6de4333d6002..1be5c05a0905 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -185,6 +185,8 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst,
185 fl.flags |= FLOWI_FLAG_ANYSRC; 185 fl.flags |= FLOWI_FLAG_ANYSRC;
186 if (protocol == IPPROTO_TCP) 186 if (protocol == IPPROTO_TCP)
187 fl.flags |= FLOWI_FLAG_PRECOW_METRICS; 187 fl.flags |= FLOWI_FLAG_PRECOW_METRICS;
188 if (can_sleep)
189 fl.flags |= FLOWI_FLAG_CAN_SLEEP;
188 190
189 if (!dst || !src) { 191 if (!dst || !src) {
190 err = __ip_route_output_key(net, rp, &fl); 192 err = __ip_route_output_key(net, rp, &fl);