tcp: change TCP_ECN prefixes to lower case
[deliverable/linux.git] / net / ipv4 / tcp_minisocks.c
index 1649988bd1b632f09506da9e685dc643c64161fd..63d2680b65db36c93737f8c72df66263dfde06bf 100644 (file)
@@ -232,7 +232,7 @@ kill:
                u32 isn = tcptw->tw_snd_nxt + 65535 + 2;
                if (isn == 0)
                        isn++;
-               TCP_SKB_CB(skb)->when = isn;
+               TCP_SKB_CB(skb)->tcp_tw_isn = isn;
                return TCP_TW_SYN;
        }
 
@@ -393,8 +393,8 @@ void tcp_openreq_init_rwin(struct request_sock *req,
 }
 EXPORT_SYMBOL(tcp_openreq_init_rwin);
 
-static inline void TCP_ECN_openreq_child(struct tcp_sock *tp,
-                                        struct request_sock *req)
+static void tcp_ecn_openreq_child(struct tcp_sock *tp,
+                                 const struct request_sock *req)
 {
        tp->ecn_flags = inet_rsk(req)->ecn_ok ? TCP_ECN_OK : 0;
 }
@@ -451,9 +451,8 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req,
                newtp->snd_cwnd = TCP_INIT_CWND;
                newtp->snd_cwnd_cnt = 0;
 
-               if (newicsk->icsk_ca_ops != &tcp_init_congestion_ops &&
-                   !try_module_get(newicsk->icsk_ca_ops->owner))
-                       newicsk->icsk_ca_ops = &tcp_init_congestion_ops;
+               if (!try_module_get(newicsk->icsk_ca_ops->owner))
+                       tcp_assign_congestion_control(newsk);
 
                tcp_set_ca_state(newsk, TCP_CA_Open);
                tcp_init_xmit_timers(newsk);
@@ -508,7 +507,7 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req,
                if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len)
                        newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len;
                newtp->rx_opt.mss_clamp = req->mss;
-               TCP_ECN_openreq_child(newtp, req);
+               tcp_ecn_openreq_child(newtp, req);
                newtp->fastopen_rsk = NULL;
                newtp->syn_data_acked = 0;
 
This page took 0.024927 seconds and 5 git commands to generate.