tcp: don't annotate mark on control socket from tcp_v6_send_response()
Unlike ipv4, this control socket is shared by all cpus so we cannot use it as scratchpad area to annotate the mark that we pass to ip6_xmit(). Add a new parameter to ip6_xmit() to indicate the mark. The SCTP socket family caches the flowi6 structure in the sctp_transport structure, so we cannot use to carry the mark unless we later on reset it back, which I discarded since it looks ugly to me. Fixes: bf99b4de ("tcp: fix mark propagation with fwmark_reflect enabled") Suggested-by:Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ipv6.h 1 addition, 1 deletioninclude/net/ipv6.h
- net/dccp/ipv6.c 2 additions, 2 deletionsnet/dccp/ipv6.c
- net/ipv6/inet6_connection_sock.c 1 addition, 1 deletionnet/ipv6/inet6_connection_sock.c
- net/ipv6/ip6_output.c 2 additions, 2 deletionsnet/ipv6/ip6_output.c
- net/ipv6/tcp_ipv6.c 2 additions, 3 deletionsnet/ipv6/tcp_ipv6.c
- net/sctp/ipv6.c 2 additions, 1 deletionnet/sctp/ipv6.c
Loading
Please register or sign in to comment