diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-06-13 13:27:21 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 16:35:03 -0400 |
commit | a29342e739115211615acc33616e547b2d3e0663 (patch) | |
tree | 6502be7ffce35898757e7b7cfac6c4fd87852a0f /net/dsa/dsa_priv.h | |
parent | 67dbb9d433447e358de7d293f15318bb5db9529b (diff) | |
download | linux-a29342e739115211615acc33616e547b2d3e0663.tar.gz linux-a29342e739115211615acc33616e547b2d3e0663.tar.bz2 linux-a29342e739115211615acc33616e547b2d3e0663.zip |
net: dsa: Associate slave network device with CPU port
In preparation for supporting multiple CPU ports with DSA, have the
dsa_port structure know which CPU it is associated with. This will be
important in order to make sure the correct CPU is used for transmission
of the frames. If not for functional reasons, for performance (e.g: load
balancing) and forwarding decisions.
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index 5c510f4ba0ce..7c2326f3b538 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -185,7 +185,7 @@ extern const struct dsa_device_ops trailer_netdev_ops; static inline struct net_device *dsa_master_netdev(struct dsa_slave_priv *p) { - return p->dp->ds->dst->cpu_dp->netdev; + return p->dp->cpu_dp->netdev; } #endif |