Skip to content

Commit c362beb

Browse files
vladimirolteandavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 97a69a0 commit c362beb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/net/dsa.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ struct dsa_port {
210210
struct work_struct xmit_work;
211211
struct sk_buff_head xmit_queue;
212212

213+
/*
214+
* Give the switch driver somewhere to hang its per-port private data
215+
* structures (accessible from the tagger).
216+
*/
217+
void *priv;
218+
213219
/*
214220
* Original copy of the master netdev ethtool_ops
215221
*/

0 commit comments

Comments
 (0)