diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-10-01 22:12:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-02 14:17:11 -0700 |
commit | 37048e94a2dc81a5a259963117f62341e25161f7 (patch) | |
tree | 5a598575e4ff0b1febc3f58715e6b2990533cf27 /include/net/dsa.h | |
parent | b74d402ef599e8e1f3c8a64ed7ba3f87d164d5c9 (diff) | |
download | linux-37048e94a2dc81a5a259963117f62341e25161f7.tar.bz2 |
net: dsa: Remove unused __DSA_SKB_CB macro
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>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 541fb514e31d..8c3ea0530f65 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -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) \ |