diff mbox series

[net-next,v2,6/9] net: dsa: Add a private structure pointer to dsa_port

Message ID 20190504135919.23185-7-olteanv@gmail.com
State Superseded
Delegated to: David Miller
Headers show
Series Traffic support for SJA1105 DSA driver | expand

Commit Message

Vladimir Oltean May 4, 2019, 1:59 p.m. UTC
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>
---
Changes in v2:
  - None.

 include/net/dsa.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Vivien Didelot May 4, 2019, 9:26 p.m. UTC | #1
On Sat,  4 May 2019 16:59:16 +0300, Vladimir Oltean <olteanv@gmail.com> wrote:
> 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>
diff mbox series

Patch

diff --git a/include/net/dsa.h b/include/net/dsa.h
index 936d53139865..b9e0ef6c5750 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -207,6 +207,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
 	 */