]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net: remove skb_sender_cpu_clear()
authorWANG Cong <xiyou.wangcong@gmail.com>
Sun, 28 Feb 2016 04:19:54 +0000 (20:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 22:36:47 +0000 (17:36 -0500)
After commit 52bd2d62ce67 ("net: better skb->sender_cpu and skb->napi_id cohabitation")
skb_sender_cpu_clear() becomes empty and can be removed.

Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/bridge/br_forward.c
net/core/filter.c
net/core/skbuff.c
net/ipv4/ip_forward.c
net/ipv6/ip6_output.c
net/netfilter/ipvs/ip_vs_xmit.c
net/netfilter/nf_dup_netdev.c
net/sched/act_mirred.c

index eab4f8fbed5806201cd9464867c4e91e8a3abc44..797cefb888fb075a9e6c458a0c3d05edfe5d3e35 100644 (file)
@@ -1161,10 +1161,6 @@ static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from)
        to->l4_hash = from->l4_hash;
 };
 
-static inline void skb_sender_cpu_clear(struct sk_buff *skb)
-{
-}
-
 #ifdef NET_SKBUFF_DATA_USES_OFFSET
 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb)
 {
index fcdb86dd5a239cceb0fb79d8e422f6fc56d14f0a..f47759f05b6d5eb0574e890e656eb42dea0bbf80 100644 (file)
@@ -44,7 +44,6 @@ int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb
 
        skb_push(skb, ETH_HLEN);
        br_drop_fake_rtable(skb);
-       skb_sender_cpu_clear(skb);
 
        if (skb->ip_summed == CHECKSUM_PARTIAL &&
            (skb->protocol == htons(ETH_P_8021Q) ||
index a3aba15a802544ee87d768637c54054db9f914c2..5e2a3b5e5196208b31e9c33fd09c853cba19fafc 100644 (file)
@@ -1597,7 +1597,6 @@ static u64 bpf_clone_redirect(u64 r1, u64 ifindex, u64 flags, u64 r4, u64 r5)
        }
 
        skb2->dev = dev;
-       skb_sender_cpu_clear(skb2);
        return dev_queue_xmit(skb2);
 }
 
@@ -1650,7 +1649,6 @@ int skb_do_redirect(struct sk_buff *skb)
        }
 
        skb->dev = dev;
-       skb_sender_cpu_clear(skb);
        return dev_queue_xmit(skb);
 }
 
index 488566b09c6df094a8f280dedd4d483635ee5aa2..7af7ec635d901b5e2c41058b5fac035c7e4821a7 100644 (file)
@@ -4302,7 +4302,6 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
        skb->skb_iif = 0;
        skb->ignore_df = 0;
        skb_dst_drop(skb);
-       skb_sender_cpu_clear(skb);
        secpath_reset(skb);
        nf_reset(skb);
        nf_reset_trace(skb);
index da0d7ce85844a9ed0732883ac363ab2de62f3a9b..af18f1e4889eec42a162a370c2d0d049fe2a82bb 100644 (file)
@@ -71,7 +71,6 @@ static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *s
        if (unlikely(opt->optlen))
                ip_forward_options(skb);
 
-       skb_sender_cpu_clear(skb);
        return dst_output(net, sk, skb);
 }
 
index a163102f1803e5f9eb4a60c501bd4adcc27bd62b..9428345d3a078786f6662e9384e75c97b9c3e245 100644 (file)
@@ -332,7 +332,6 @@ static int ip6_forward_proxy_check(struct sk_buff *skb)
 static inline int ip6_forward_finish(struct net *net, struct sock *sk,
                                     struct sk_buff *skb)
 {
-       skb_sender_cpu_clear(skb);
        return dst_output(net, sk, skb);
 }
 
index a3f5cd9b3c4c3a295466b3492884ce2d47868162..dc196a0f501def30c16ee0d965b1b1938028f94a 100644 (file)
@@ -531,8 +531,6 @@ static inline int ip_vs_tunnel_xmit_prepare(struct sk_buff *skb,
        if (ret == NF_ACCEPT) {
                nf_reset(skb);
                skb_forward_csum(skb);
-               if (!skb->sk)
-                       skb_sender_cpu_clear(skb);
        }
        return ret;
 }
@@ -573,8 +571,6 @@ static inline int ip_vs_nat_send_or_cont(int pf, struct sk_buff *skb,
 
        if (!local) {
                skb_forward_csum(skb);
-               if (!skb->sk)
-                       skb_sender_cpu_clear(skb);
                NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb,
                        NULL, skb_dst(skb)->dev, dst_output);
        } else
@@ -595,8 +591,6 @@ static inline int ip_vs_send_or_cont(int pf, struct sk_buff *skb,
        if (!local) {
                ip_vs_drop_early_demux_sk(skb);
                skb_forward_csum(skb);
-               if (!skb->sk)
-                       skb_sender_cpu_clear(skb);
                NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb,
                        NULL, skb_dst(skb)->dev, dst_output);
        } else
index 8414ee1a0319844bbf2c9dcec7492080fa286d09..7ec69723940f120fb783160ebaa6889cf24fcb3b 100644 (file)
@@ -31,7 +31,6 @@ void nf_dup_netdev_egress(const struct nft_pktinfo *pkt, int oif)
                skb_push(skb, skb->mac_len);
 
        skb->dev = dev;
-       skb_sender_cpu_clear(skb);
        dev_queue_xmit(skb);
 }
 EXPORT_SYMBOL_GPL(nf_dup_netdev_egress);
index 6b284d991e0b773886af82a58d48f239c85de7bd..e8a760cf7775ea1e3c9522376c3e3111a54a2ba6 100644 (file)
@@ -182,7 +182,6 @@ static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a,
 
        skb2->skb_iif = skb->dev->ifindex;
        skb2->dev = dev;
-       skb_sender_cpu_clear(skb2);
        err = dev_queue_xmit(skb2);
 
        if (err) {