Skip to content

Commit

Permalink
net: dsa: Add a private structure pointer to dsa_port
Browse files Browse the repository at this point in the history
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 <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vladimir Oltean authored and David S. Miller committed May 6, 2019
1 parent 97a69a0 commit c362beb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/net/dsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ struct dsa_port {
struct work_struct xmit_work;
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
*/
Expand Down

0 comments on commit c362beb

Please sign in to comment.