From: Vladimir Oltean Date: Sun, 5 May 2019 10:19:26 +0000 (+0300) Subject: net: dsa: Add a private structure pointer to dsa_port X-Git-Tag: v5.15~6431^2~17^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c362beb072e14b929eb657dc174d83ccdd9b0eed;p=platform%2Fkernel%2Flinux-starfive.git net: dsa: Add a private structure pointer to dsa_port This is supposed to share information between the driver and the tagger, or used by the tagger to keep some state. Its use is optional. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Vivien Didelot Signed-off-by: David S. Miller --- diff --git a/include/net/dsa.h b/include/net/dsa.h index 0260b73..e20be1c 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -211,6 +211,12 @@ struct dsa_port { struct sk_buff_head xmit_queue; /* + * Give the switch driver somewhere to hang its per-port private data + * structures (accessible from the tagger). + */ + void *priv; + + /* * Original copy of the master netdev ethtool_ops */ const struct ethtool_ops *orig_ethtool_ops;