ipv6: constify ip6_xmit() sock argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:20 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:38 +0000 (13:00 -0700)
commit1c1e9d2b67897316770fc8a2e1acdd9f2787838d
treeb62b9ca9ecfdd5d26bc614fe84834dd05146898a
parent5d062de7f8ea1ca7c635957ff1144fba815ba34c
ipv6: constify ip6_xmit() sock argument

This is to document that socket lock might not be held at this point.

skb_set_owner_w() and ipv6_local_error() are using proper atomic ops
or spinlocks, so we promote the socket to non const when calling them.

netfilter hooks should never assume socket lock is held,
we also promote the socket to non const.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/datagram.c
net/ipv6/ip6_output.c