diff options
author | 2017-07-03 09:51:50 -0400 | |
---|---|---|
committer | 2017-07-04 01:46:10 -0700 | |
commit | e05a90ec9e1680952454ea9510da9a761a5baac9 (patch) | |
tree | 617be3ef77be766ac9a8939d7b94f6f18d8d9d3d /net/ipv4/tcp_output.c | |
parent | net: ethernet: mediatek: fixed deadlock captured by lockdep (diff) | |
download | linux-e05a90ec9e1680952454ea9510da9a761a5baac9.tar.gz linux-e05a90ec9e1680952454ea9510da9a761a5baac9.tar.bz2 linux-e05a90ec9e1680952454ea9510da9a761a5baac9.zip |
net: reflect mark on tcp syn ack packets
SYN-ACK responses on a server in response to a SYN from a client
did not get the injected skb mark that was tagged on the SYN packet.
Fixes: 84f39b08d786 ("net: support marking accepting TCP sockets")
Reviewed-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 4d36f0b093e6..4e985dea1dd2 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -3213,6 +3213,7 @@ struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst, tcp_ecn_make_synack(req, th); th->source = htons(ireq->ir_num); th->dest = ireq->ir_rmt_port; + skb->mark = ireq->ir_mark; /* Setting of flags are superfluous here for callers (and ECE is * not even correctly set) */ |