diff options
author | Vadim Pasternak <vadimp@nvidia.com> | 2022-04-19 17:54:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-20 17:03:21 +0300 |
commit | 06a0fc43bb10e48355574b8d28ab5ab1a3c86c61 (patch) | |
tree | fb6fd52c5f6ea8f5e8ac1699585778a526e12992 /drivers/iommu/irq_remapping.c | |
parent | a11e1ec141ea14b9e44240b275378a315ee44457 (diff) | |
download | linux-06a0fc43bb10e48355574b8d28ab5ab1a3c86c61.tar.xz |
mlxsw: core_env: Add interfaces for line card initialization and de-initialization
Netdevs for ports found on line cards are registered upon provisioning.
However, user space is not allowed to access the transceiver modules
found on a line card until the line card becomes active.
Therefore, register event operations with the line card core to get
notifications whenever a line card becomes active or inactive.
When user space tries to dump the EEPROM of a transceiver module or reset
it and the corresponding line card is inactive, emit an error
message:
ethtool -m enp1s0nl7p9
netlink error: mlxsw_core: Cannot read EEPROM of module on an inactive line card
netlink error: Input/output error
When user space tries to set the power mode policy of such a transceiver,
cache the configuration and apply it when the line card becomes active. This
is consistent with other port configuration (e.g., MTU setting) that user space
is able to perform while the line card is provisioned, but inactive.
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/iommu/irq_remapping.c')
0 files changed, 0 insertions, 0 deletions