]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Adjust PPCNT register to support local port 255
authorAmit Cohen <amcohen@nvidia.com>
Wed, 1 Dec 2021 08:12:36 +0000 (10:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Dec 2021 14:52:34 +0000 (14:52 +0000)
commit9a36ef5edeaff6df5b630f3f9f4c1ce26453544d
tree1bc8c66b2c2f686617569a60abfb7560e3f9b6d0
parentfac166933f4cc9e4d806046e895bf6e66edc0fee
mlxsw: reg: Adjust PPCNT register to support local port 255

Local port 255 has a special meaning in PPCNT register, it is used to
refer to all local ports. This wild card ability is not currently used
by the driver.

Special casing local port 255 in Spectrum-4 systems where it is a valid
port is going to be a problem.

Work around this issue by adding and always setting the 'lp_gl' bit
which instructs the device's firmware to treat this local port like an
ordinary port.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h