dst: Pass net into dst->output
[deliverable/linux.git] / net / ipv4 / xfrm4_output.c
index 17db61f4b439178dfe37cbe9e53926e75e5f7825..9f298d0dc9a1ccc3ac53dd205be8b90e56cc866b 100644 (file)
@@ -94,10 +94,8 @@ static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
        return x->outer_mode->afinfo->output_finish(sk, skb);
 }
 
-int xfrm4_output(struct sock *sk, struct sk_buff *skb)
+int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
 {
-       struct net *net = dev_net(skb_dst(skb)->dev);
-
        return NF_HOOK_COND(NFPROTO_IPV4, NF_INET_POST_ROUTING,
                            net, sk, skb, NULL, skb_dst(skb)->dev,
                            __xfrm4_output,
This page took 0.023539 seconds and 5 git commands to generate.