aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2020-02-26 09:39:19 +0100
committerDavid S. Miller <[email protected]>2020-02-26 20:44:42 -0800
commitb401ff8541ee9a6912ad0f64e6a706cf03780467 (patch)
tree6d27bc2e62123a0500e81121308eecd373c28ee8 /net/switchdev/switchdev.c
parent8a29581eb001523f51cf6ad2051df12cd41ffe6b (diff)
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 <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions