Loading include/net/dst.h +1 −5 Original line number Diff line number Diff line Loading @@ -454,14 +454,10 @@ static inline void dst_set_expires(struct dst_entry *dst, int timeout) } /* Output packet to network from transport. */ static inline int dst_output(struct sock *sk, struct sk_buff *skb) static inline int dst_output(struct net *net, struct sock *sk, struct sk_buff *skb) { return skb_dst(skb)->output(sk, skb); } static inline int dst_output_okfn(struct net *net, struct sock *sk, struct sk_buff *skb) { return dst_output(sk, skb); } /* Input packet from network to transport. */ static inline int dst_input(struct sk_buff *skb) Loading net/decnet/dn_nsp_out.c +2 −2 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ static void dn_nsp_send(struct sk_buff *skb) if (dst) { try_again: skb_dst_set(skb, dst); dst_output(skb->sk, skb); dst_output(&init_net, skb->sk, skb); return; } Loading Loading @@ -582,7 +582,7 @@ static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, * associations. */ skb_dst_set(skb, dst_clone(dst)); dst_output(skb->sk, skb); dst_output(&init_net, skb->sk, skb); } Loading net/ipv4/ip_forward.c +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *s ip_forward_options(skb); skb_sender_cpu_clear(skb); return dst_output(sk, skb); return dst_output(net, sk, skb); } int ip_forward(struct sk_buff *skb) Loading net/ipv4/ip_output.c +4 −3 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ static int __ip_local_out_sk(struct sock *sk, struct sk_buff *skb) ip_send_check(iph); return nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk, skb, NULL, skb_dst(skb)->dev, dst_output_okfn); dst_output); } int __ip_local_out(struct sk_buff *skb) Loading @@ -115,11 +115,12 @@ int __ip_local_out(struct sk_buff *skb) int ip_local_out_sk(struct sock *sk, struct sk_buff *skb) { struct net *net = dev_net(skb_dst(skb)->dev); int err; err = __ip_local_out_sk(sk, skb); if (likely(err == 1)) err = dst_output(sk, skb); err = dst_output(net, sk, skb); return err; } Loading Loading @@ -276,7 +277,7 @@ static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *sk /* Policy lookup after SNAT yielded a new policy */ if (skb_dst(skb)->xfrm) { IPCB(skb)->flags |= IPSKB_REROUTED; return dst_output(sk, skb); return dst_output(net, sk, skb); } #endif mtu = ip_skb_dst_mtu(skb); Loading net/ipv4/ip_vti.c +1 −1 Original line number Diff line number Diff line Loading @@ -197,7 +197,7 @@ static netdev_tx_t vti_xmit(struct sk_buff *skb, struct net_device *dev, skb_dst_set(skb, dst); skb->dev = skb_dst(skb)->dev; err = dst_output(skb->sk, skb); err = dst_output(tunnel->net, skb->sk, skb); if (net_xmit_eval(err) == 0) err = skb->len; iptunnel_xmit_stats(err, &dev->stats, dev->tstats); Loading Loading
include/net/dst.h +1 −5 Original line number Diff line number Diff line Loading @@ -454,14 +454,10 @@ static inline void dst_set_expires(struct dst_entry *dst, int timeout) } /* Output packet to network from transport. */ static inline int dst_output(struct sock *sk, struct sk_buff *skb) static inline int dst_output(struct net *net, struct sock *sk, struct sk_buff *skb) { return skb_dst(skb)->output(sk, skb); } static inline int dst_output_okfn(struct net *net, struct sock *sk, struct sk_buff *skb) { return dst_output(sk, skb); } /* Input packet from network to transport. */ static inline int dst_input(struct sk_buff *skb) Loading
net/decnet/dn_nsp_out.c +2 −2 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ static void dn_nsp_send(struct sk_buff *skb) if (dst) { try_again: skb_dst_set(skb, dst); dst_output(skb->sk, skb); dst_output(&init_net, skb->sk, skb); return; } Loading Loading @@ -582,7 +582,7 @@ static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg, * associations. */ skb_dst_set(skb, dst_clone(dst)); dst_output(skb->sk, skb); dst_output(&init_net, skb->sk, skb); } Loading
net/ipv4/ip_forward.c +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *s ip_forward_options(skb); skb_sender_cpu_clear(skb); return dst_output(sk, skb); return dst_output(net, sk, skb); } int ip_forward(struct sk_buff *skb) Loading
net/ipv4/ip_output.c +4 −3 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ static int __ip_local_out_sk(struct sock *sk, struct sk_buff *skb) ip_send_check(iph); return nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk, skb, NULL, skb_dst(skb)->dev, dst_output_okfn); dst_output); } int __ip_local_out(struct sk_buff *skb) Loading @@ -115,11 +115,12 @@ int __ip_local_out(struct sk_buff *skb) int ip_local_out_sk(struct sock *sk, struct sk_buff *skb) { struct net *net = dev_net(skb_dst(skb)->dev); int err; err = __ip_local_out_sk(sk, skb); if (likely(err == 1)) err = dst_output(sk, skb); err = dst_output(net, sk, skb); return err; } Loading Loading @@ -276,7 +277,7 @@ static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *sk /* Policy lookup after SNAT yielded a new policy */ if (skb_dst(skb)->xfrm) { IPCB(skb)->flags |= IPSKB_REROUTED; return dst_output(sk, skb); return dst_output(net, sk, skb); } #endif mtu = ip_skb_dst_mtu(skb); Loading
net/ipv4/ip_vti.c +1 −1 Original line number Diff line number Diff line Loading @@ -197,7 +197,7 @@ static netdev_tx_t vti_xmit(struct sk_buff *skb, struct net_device *dev, skb_dst_set(skb, dst); skb->dev = skb_dst(skb)->dev; err = dst_output(skb->sk, skb); err = dst_output(tunnel->net, skb->sk, skb); if (net_xmit_eval(err) == 0) err = skb->len; iptunnel_xmit_stats(err, &dev->stats, dev->tstats); Loading