aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/output_core.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-09-15 21:03:53 -0400
committerDavid S. Miller <davem@davemloft.net>2015-09-17 20:18:32 -0400
commit5a70649e0dae02ba5090540fffce667d2300bc5a (patch)
tree38e18ea126c7665eebaf3ff3231a43522929a115 /net/ipv6/output_core.c
parenta6568b2425daffc7b21ae63b6601b57ae14b5cb8 (diff)
net: Merge dst_output and dst_output_sk
Add a sock paramter to dst_output making dst_output_sk superfluous. Add a skb->sk parameter to all of the callers of dst_output Have the callers of dst_output_sk call dst_output. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/output_core.c')
-rw-r--r--net/ipv6/output_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
index 928a0fb0b744..8178f72fe90d 100644
--- a/net/ipv6/output_core.c
+++ b/net/ipv6/output_core.c
@@ -149,7 +149,7 @@ static int __ip6_local_out_sk(struct sock *sk, struct sk_buff *skb)
149 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); 149 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);
150 150
151 return nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, sk, skb, 151 return nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, sk, skb,
152 NULL, skb_dst(skb)->dev, dst_output_sk); 152 NULL, skb_dst(skb)->dev, dst_output);
153} 153}
154 154
155int __ip6_local_out(struct sk_buff *skb) 155int __ip6_local_out(struct sk_buff *skb)
@@ -164,7 +164,7 @@ int ip6_local_out_sk(struct sock *sk, struct sk_buff *skb)
164 164
165 err = __ip6_local_out_sk(sk, skb); 165 err = __ip6_local_out_sk(sk, skb);
166 if (likely(err == 1)) 166 if (likely(err == 1))
167 err = dst_output_sk(sk, skb); 167 err = dst_output(sk, skb);
168 168
169 return err; 169 return err;
170} 170}