net: dsa: remove dp->priv
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 9 Dec 2021 23:34:47 +0000 (01:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2021 12:51:34 +0000 (12:51 +0000)
All current in-tree uses of dp->priv have been replaced with
ds->tagger_data, which provides for a safer API especially when the
connection isn't the regular 1:1 link between one switch driver and one
tagging protocol driver, but could be either one switch to many taggers,
or many switches to one tagger.

Therefore, we can remove this unused pointer.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h

index 8b496c7e62ef83ffdc9bd52165e36e0acd9af19c..64d71968aa91a5f93c6a9c7365ea8f939b5b6820 100644 (file)
@@ -276,12 +276,6 @@ struct dsa_port {
 
        struct list_head list;
 
-       /*
-        * 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
         */