summaryrefslogtreecommitdiffstats
path: root/net/xfrm
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/xfrm
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/xfrm')
-rw-r--r--net/xfrm/xfrm_output.c2
-rw-r--r--net/xfrm/xfrm_policy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 68ada2ca4b60..57a50f6ce28c 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -139,7 +139,7 @@ int xfrm_output_resume(struct sk_buff *skb, int err)
139 goto out; 139 goto out;
140 140
141 if (!skb_dst(skb)->xfrm) 141 if (!skb_dst(skb)->xfrm)
142 return dst_output(skb); 142 return dst_output(skb->sk, skb);
143 143
144 err = nf_hook(skb_dst(skb)->ops->family, 144 err = nf_hook(skb_dst(skb)->ops->family,
145 NF_INET_POST_ROUTING, skb->sk, skb, 145 NF_INET_POST_ROUTING, skb->sk, skb,
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 6b5d6e2b9a49..e7f64bcb78a8 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1945,7 +1945,7 @@ static void xfrm_policy_queue_process(unsigned long arg)
1945 skb_dst_drop(skb); 1945 skb_dst_drop(skb);
1946 skb_dst_set(skb, dst); 1946 skb_dst_set(skb, dst);
1947 1947
1948 dst_output(skb); 1948 dst_output(skb->sk, skb);
1949 } 1949 }
1950 1950
1951out: 1951out: