* [PATCH net-next] net: dsa: Remove unused __DSA_SKB_CB macro
@ 2019-10-01 19:12 Vladimir Oltean
2019-10-02 21:17 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Oltean @ 2019-10-01 19:12 UTC (permalink / raw)
To: andrew, f.fainelli, vivien.didelot, davem; +Cc: netdev, Vladimir Oltean
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>
---
include/net/dsa.h | 2 --
1 file changed, 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) \
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: dsa: Remove unused __DSA_SKB_CB macro
2019-10-01 19:12 [PATCH net-next] net: dsa: Remove unused __DSA_SKB_CB macro Vladimir Oltean
@ 2019-10-02 21:17 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-10-02 21:17 UTC (permalink / raw)
To: olteanv; +Cc: andrew, f.fainelli, vivien.didelot, netdev
From: Vladimir Oltean <olteanv@gmail.com>
Date: Tue, 1 Oct 2019 22:12:50 +0300
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-02 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01 19:12 [PATCH net-next] net: dsa: Remove unused __DSA_SKB_CB macro Vladimir Oltean
2019-10-02 21:17 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).