aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-02-26 09:39:19 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-26 20:44:42 -0800
commitb401ff8541ee9a6912ad0f64e6a706cf03780467 (patch)
tree6d27bc2e62123a0500e81121308eecd373c28ee8 /net/switchdev/switchdev.c
parent8a29581eb001523f51cf6ad2051df12cd41ffe6b (diff)
downloadlinux-b401ff8541ee9a6912ad0f64e6a706cf03780467.tar.gz
linux-b401ff8541ee9a6912ad0f64e6a706cf03780467.tar.bz2
linux-b401ff8541ee9a6912ad0f64e6a706cf03780467.zip
mlxsw: spectrum: Initialize advertised speeds to supported speeds
During port initialization the driver instructs the device to only advertise speeds that can be supported by the port's current width. Since the device now returns the supported speeds based on the port's current width, the driver no longer needs to compute the speeds that can be advertised. Simplify port initialization by setting the advertised speeds to the queried supported speeds. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions