]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-expose-number-of-physical-ports'
authorJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 04:42:15 +0000 (20:42 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 04:42:15 +0000 (20:42 -0800)
commite9deaa8b86b77790d568b3c0dd39507cc5781ecd
tree4c3df2ca3fa1deca2ed4f5f1119761cc8cc16f80
parent9f815b0fd141c84d8a37f3fb0e0ede9463c12dd0
parent0518bbf00595553ad0a8ab709be94c7bce838bc9
Merge branch 'mlxsw-expose-number-of-physical-ports'

Ido Schimmel says:

====================
mlxsw: Expose number of physical ports

The switch ASIC has a limited capacity of physical ports that it can
support. While each system is brought up with a different number of
ports, this number can be increased via splitting up to the ASIC's
limit.

Expose physical ports as a devlink resource so that user space will have
visibility into the maximum number of ports that can be supported and
the current occupancy. With this resource it is possible, for example,
to write generic (i.e., not platform dependent) tests for port
splitting.

Patch #1 adds the new resource and patch #2 adds a selftest.

v2:
* Add the physical ports resource as a generic devlink resource so that
  it could be re-used by other device drivers
====================

Link: https://lore.kernel.org/r/20210121131024.2656154-1-idosch@idosch.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>