mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
[NET] Rename open_request to request_sock
Ok, this one just renames some stuff to have a better namespace and to dissassociate it from TCP: struct open_request -> struct request_sock tcp_openreq_alloc -> reqsk_alloc tcp_openreq_free -> reqsk_free tcp_openreq_fastfree -> __reqsk_free With this most of the infrastructure closely resembles a struct sock methods subset. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2e6599cb89
commit
60236fdd08
15 changed files with 117 additions and 117 deletions
|
@ -468,7 +468,7 @@ static void tcp_synack_timer(struct sock *sk)
|
|||
int max_retries = tp->syn_retries ? : sysctl_tcp_synack_retries;
|
||||
int thresh = max_retries;
|
||||
unsigned long now = jiffies;
|
||||
struct open_request **reqp, *req;
|
||||
struct request_sock **reqp, *req;
|
||||
int i, budget;
|
||||
|
||||
if (lopt == NULL || lopt->qlen == 0)
|
||||
|
@ -514,7 +514,7 @@ static void tcp_synack_timer(struct sock *sk)
|
|||
if (time_after_eq(now, req->expires)) {
|
||||
if ((req->retrans < thresh ||
|
||||
(inet_rsk(req)->acked && req->retrans < max_retries))
|
||||
&& !req->class->rtx_syn_ack(sk, req, NULL)) {
|
||||
&& !req->rsk_ops->rtx_syn_ack(sk, req, NULL)) {
|
||||
unsigned long timeo;
|
||||
|
||||
if (req->retrans++ == 0)
|
||||
|
@ -533,7 +533,7 @@ static void tcp_synack_timer(struct sock *sk)
|
|||
lopt->qlen--;
|
||||
if (req->retrans == 0)
|
||||
lopt->qlen_young--;
|
||||
tcp_openreq_free(req);
|
||||
reqsk_free(req);
|
||||
continue;
|
||||
}
|
||||
reqp = &req->dl_next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue