Commit ba3f7f04ef2b19aace38f855aedd17fe43035d50
1 parent
d2d68ba9fe
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
ipv4: Kill FLOWI_FLAG_RT_NOCACHE and associated code.
Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 6 changed files with 5 additions and 13 deletions Side-by-side Diff
include/net/flow.h
include/net/inet_connection_sock.h
... | ... | @@ -250,8 +250,7 @@ |
250 | 250 | |
251 | 251 | extern struct dst_entry* inet_csk_route_req(struct sock *sk, |
252 | 252 | struct flowi4 *fl4, |
253 | - const struct request_sock *req, | |
254 | - bool nocache); | |
253 | + const struct request_sock *req); | |
255 | 254 | extern struct dst_entry* inet_csk_route_child_sock(struct sock *sk, |
256 | 255 | struct sock *newsk, |
257 | 256 | const struct request_sock *req); |
net/dccp/ipv4.c
net/ipv4/inet_connection_sock.c
... | ... | @@ -368,8 +368,7 @@ |
368 | 368 | |
369 | 369 | struct dst_entry *inet_csk_route_req(struct sock *sk, |
370 | 370 | struct flowi4 *fl4, |
371 | - const struct request_sock *req, | |
372 | - bool nocache) | |
371 | + const struct request_sock *req) | |
373 | 372 | { |
374 | 373 | struct rtable *rt; |
375 | 374 | const struct inet_request_sock *ireq = inet_rsk(req); |
... | ... | @@ -377,8 +376,6 @@ |
377 | 376 | struct net *net = sock_net(sk); |
378 | 377 | int flags = inet_sk_flowi_flags(sk); |
379 | 378 | |
380 | - if (nocache) | |
381 | - flags |= FLOWI_FLAG_RT_NOCACHE; | |
382 | 379 | flowi4_init_output(fl4, sk->sk_bound_dev_if, sk->sk_mark, |
383 | 380 | RT_CONN_FLAGS(sk), RT_SCOPE_UNIVERSE, |
384 | 381 | sk->sk_protocol, |
net/ipv4/route.c
net/ipv4/tcp_ipv4.c
... | ... | @@ -824,7 +824,7 @@ |
824 | 824 | struct sk_buff * skb; |
825 | 825 | |
826 | 826 | /* First, grab a route. */ |
827 | - if (!dst && (dst = inet_csk_route_req(sk, &fl4, req, nocache)) == NULL) | |
827 | + if (!dst && (dst = inet_csk_route_req(sk, &fl4, req)) == NULL) | |
828 | 828 | return -1; |
829 | 829 | |
830 | 830 | skb = tcp_make_synack(sk, dst, req, rvp); |
... | ... | @@ -1378,7 +1378,7 @@ |
1378 | 1378 | */ |
1379 | 1379 | if (tmp_opt.saw_tstamp && |
1380 | 1380 | tcp_death_row.sysctl_tw_recycle && |
1381 | - (dst = inet_csk_route_req(sk, &fl4, req, want_cookie)) != NULL && | |
1381 | + (dst = inet_csk_route_req(sk, &fl4, req)) != NULL && | |
1382 | 1382 | fl4.daddr == saddr) { |
1383 | 1383 | if (!tcp_peer_is_proven(req, dst, true)) { |
1384 | 1384 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_PAWSPASSIVEREJECTED); |