]> Git Repo - linux.git/commitdiff
net: dsa: Remove the now unused DSA_SKB_CB_COPY() macro
authorVladimir Oltean <[email protected]>
Sat, 11 May 2019 20:14:47 +0000 (23:14 +0300)
committerDavid S. Miller <[email protected]>
Sun, 12 May 2019 20:19:46 +0000 (13:19 -0700)
It's best to not expose this, due to the performance hit it may cause
when calling it.

Fixes: b68b0dd0fb2d ("net: dsa: Keep private info in the skb->cb")
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/net/dsa.h

index 1f6b8608b0b78ede71f648583ca0f016a5ebbb3e..6852948177129bd5719e63acdae3d42a7b6b429a 100644 (file)
@@ -99,9 +99,6 @@ struct __dsa_skb_cb {
 
 #define DSA_SKB_CB(skb) ((struct dsa_skb_cb *)((skb)->cb))
 
-#define DSA_SKB_CB_COPY(nskb, skb)             \
-       { *__DSA_SKB_CB(nskb) = *__DSA_SKB_CB(skb); }
-
 #define DSA_SKB_CB_PRIV(skb)                   \
        ((void *)(skb)->cb + offsetof(struct __dsa_skb_cb, priv))
 
This page took 0.06329 seconds and 4 git commands to generate.