]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: dsa: Add a private structure pointer to dsa_port
authorVladimir Oltean <olteanv@gmail.com>
Sun, 5 May 2019 10:19:26 +0000 (13:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 May 2019 04:52:42 +0000 (21:52 -0700)
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>
include/net/dsa.h

index 0260b73938e2d3d557890f3ec7b5cbf91b6fb235..e20be1ceb306832ac3df4e10eda7ec7598b19601 100644 (file)
@@ -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
         */