aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorMarcin Wojtas <[email protected]>2022-07-26 23:09:18 +0000
committerJakub Kicinski <[email protected]>2022-07-28 02:58:34 +0000
commitcc1049ccee20df870f2394c4d5d5fa8cabc4d0af (patch)
tree5ed24f9f499c6938dc669806e2c9add365b122e3 /net/ipv6/tcp_ipv6.c
parentnet: devlink: remove redundant net_eq() check from sb_pool_get_dumpit() (diff)
downloadkernel-cc1049ccee20df870f2394c4d5d5fa8cabc4d0af.tar.gz
kernel-cc1049ccee20df870f2394c4d5d5fa8cabc4d0af.zip
net: dsa: mv88e6xxx: fix speed setting for CPU/DSA ports
Commit 3c783b83bd0f ("net: dsa: mv88e6xxx: get rid of SPEED_MAX setting") stopped relying on SPEED_MAX constant and hardcoded speed settings for the switch ports and rely on phylink configuration. It turned out, however, that when the relevant code is called, the mac_capabilites of CPU/DSA port remain unset. mv88e6xxx_setup_port() is called via mv88e6xxx_setup() in dsa_tree_setup_switches(), which precedes setting the caps in phylink_get_caps down in the chain of dsa_tree_setup_ports(). As a result the mac_capabilites are 0 and the default speed for CPU/DSA port is 10M at the start. To fix that, execute mv88e6xxx_get_caps() and obtain the capabilities driectly. Fixes: 3c783b83bd0f ("net: dsa: mv88e6xxx: get rid of SPEED_MAX setting") Signed-off-by: Marcin Wojtas <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions