net: dsa: Remove unused __DSA_SKB_CB macro
authorVladimir Oltean <olteanv@gmail.com>
Tue, 1 Oct 2019 19:12:50 +0000 (22:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 21:17:11 +0000 (14:17 -0700)
The struct __dsa_skb_cb is supposed to span the entire 48-byte skb
control block, while the struct dsa_skb_cb only the portion of it which
is used by the DSA core (the rest is available as private data to
drivers).

The DSA_SKB_CB and __DSA_SKB_CB helpers are supposed to help retrieve
this pointer based on a skb, but it turns out there is nobody directly
interested in the struct __dsa_skb_cb in the kernel. So remove it.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h

index 541fb51..8c3ea05 100644 (file)
@@ -94,8 +94,6 @@ struct __dsa_skb_cb {
        u8 priv[48 - sizeof(struct dsa_skb_cb)];
 };
 
-#define __DSA_SKB_CB(skb) ((struct __dsa_skb_cb *)((skb)->cb))
-
 #define DSA_SKB_CB(skb) ((struct dsa_skb_cb *)((skb)->cb))
 
 #define DSA_SKB_CB_PRIV(skb)                   \