diff options
author | Eric Dumazet <edumazet@google.com> | 2015-10-16 16:00:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-19 01:26:02 -0400 |
commit | dc6ef6be52154490c5c03f742e28bc781cc751b2 (patch) | |
tree | 8e297dd00c9cef73f67424b72a5669d6a97d13f7 /net/ipv4/tcp_ipv4.c | |
parent | 951b5d959f1da4bae8910085a2d8d6a3d374c72d (diff) |
tcp: do not set queue_mapping on SYNACK
At the time of commit fff326990789 ("tcp: reflect SYN queue_mapping into
SYNACK packets") we had little ways to cope with SYN floods.
We no longer need to reflect incoming skb queue mappings, and instead
can pick a TX queue based on cpu cooking the SYNACK, with normal XPS
affinities.
Note that all SYNACK retransmits were picking TX queue 0, this no longer
is a win given that SYNACK rtx are now distributed on all cpus.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 9c68cf3762c4..30dd45c1f568 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -821,7 +821,6 @@ static void tcp_v4_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, | |||
821 | static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst, | 821 | static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst, |
822 | struct flowi *fl, | 822 | struct flowi *fl, |
823 | struct request_sock *req, | 823 | struct request_sock *req, |
824 | u16 queue_mapping, | ||
825 | struct tcp_fastopen_cookie *foc, | 824 | struct tcp_fastopen_cookie *foc, |
826 | bool attach_req) | 825 | bool attach_req) |
827 | { | 826 | { |
@@ -839,7 +838,6 @@ static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst, | |||
839 | if (skb) { | 838 | if (skb) { |
840 | __tcp_v4_send_check(skb, ireq->ir_loc_addr, ireq->ir_rmt_addr); | 839 | __tcp_v4_send_check(skb, ireq->ir_loc_addr, ireq->ir_rmt_addr); |
841 | 840 | ||
842 | skb_set_queue_mapping(skb, queue_mapping); | ||
843 | err = ip_build_and_send_pkt(skb, sk, ireq->ir_loc_addr, | 841 | err = ip_build_and_send_pkt(skb, sk, ireq->ir_loc_addr, |
844 | ireq->ir_rmt_addr, | 842 | ireq->ir_rmt_addr, |
845 | ireq->opt); | 843 | ireq->opt); |