aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Fainelli2020-07-19 20:49:54 -0700
committerDavid S. Miller2020-07-20 16:48:22 -0700
commit9c0c7014f38206a2b63e7e832edf2e881a7b49ad (patch)
treec0624b765dec69ddd84fda731835322feaca29b7 /include
parent3369afba1e46b0f7f33b4853a9d06616be6e22d5 (diff)
net: dsa: Setup dsa_netdev_ops
Now that we have all the infrastructure in place for calling into the dsa_ptr->netdev_ops function pointers, install them when we configure the DSA CPU/management interface and tear them down. The flow is unchanged from before, but now we preserve equality of tests when network device drivers do tests like dev->netdev_ops == &foo_ops which was not the case before since we were allocating an entirely new structure. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/dsa.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 343642ca4f63..f1b63d06d132 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -230,7 +230,6 @@ struct dsa_port {
* Original copy of the master netdev net_device_ops
*/
const struct dsa_netdevice_ops *netdev_ops;
- const struct net_device_ops *orig_ndo_ops;
bool setup;
};