linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlxsw
Vadim Pasternak ea30a92a46 mlxsw: hwmon: Provide optimization for QSFP modules number detection
Use new field "num_of_modules" of MGPIR register for "hwmon" interface
in order to get the number of modules supported by system directly from
the system configuration, instead of getting it from port to module
mapping info.

Reading this info through MGPIR register is faster and does not depend
on possible dynamic re-configuration of ports.
In case of port dynamic re-configuration some modules can logically
"disappear" as a result of port split and un-spilt operations, which
can cause missing of some modules, in case this info is taken from port
to module mapping info.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-06 18:31:39 +02:00
..
cmd.h mlxsw: cmd: Free running clock PCI BAR and offsets via query firmware 2019-06-13 22:34:55 -07:00
core_acl_flex_actions.c
core_acl_flex_actions.h
core_acl_flex_keys.c mlxsw: spectrum_acl: Avoid size check for RX_ACL_SYSTEM_PORT element 2019-06-19 10:09:22 -04:00
core_acl_flex_keys.h mlxsw: spectrum_acl: Fix SRC_SYS_PORT element size 2019-06-19 10:09:22 -04:00
core_env.c mlxsw: core: Reduce buffer size in transactions for SFP modules temperature readout 2019-05-30 12:59:46 -07:00
core_env.h
core_hwmon.c mlxsw: hwmon: Provide optimization for QSFP modules number detection 2019-10-06 18:31:39 +02:00
core_thermal.c mlxsw: reg: Extend MGPIR register with new field exposing the number of QSFP modules 2019-10-06 18:31:39 +02:00
core.c net: devlink: allow to change namespaces during reload 2019-10-04 11:10:56 -07:00
core.h mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
emad.h
i2c.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
i2c.h
ib.h
item.h
Kconfig mlxsw: spectrum: Extend to support Spectrum-3 ASIC 2019-08-08 22:27:09 -07:00
Makefile mlxsw: spectrum: Add devlink-trap support 2019-08-21 12:58:39 -07:00
minimal.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
pci_hw.h mlxsw: PCI: Send EMAD traffic on a separate queue 2019-10-03 12:17:10 -07:00
pci.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
pci.h mlxsw: spectrum: Extend to support Spectrum-3 ASIC 2019-08-08 22:27:09 -07:00
port.h
reg.h mlxsw: reg: Extend MGPIR register with new field exposing the number of QSFP modules 2019-10-06 18:31:39 +02:00
resources.h mlxsw: resources: Add local_ports_in_{1x, 2x} 2019-05-04 01:21:36 -04:00
spectrum1_acl_tcam.c
spectrum1_kvdl.c
spectrum1_mr_tcam.c
spectrum2_acl_tcam.c
spectrum2_kvdl.c
spectrum2_mr_tcam.c
spectrum_acl_atcam.c
spectrum_acl_bloom_filter.c
spectrum_acl_ctcam.c
spectrum_acl_erp.c mlxsw: spectrum_acl: Avoid warning after identical rules insertion 2019-05-30 12:30:47 -07:00
spectrum_acl_flex_actions.c
spectrum_acl_flex_actions.h
spectrum_acl_flex_keys.c mlxsw: spectrum_acl: Fix SRC_SYS_PORT element size 2019-06-19 10:09:22 -04:00
spectrum_acl_tcam.c
spectrum_acl_tcam.h
spectrum_acl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-08-19 11:54:03 -07:00
spectrum_buffers.c mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer 2019-09-16 22:07:59 +02:00
spectrum_cnt.c
spectrum_cnt.h
spectrum_dcb.c mlxsw: spectrum_dcb: Configure DSCP map as the last rule is removed 2019-07-17 15:19:46 -07:00
spectrum_dpipe.c
spectrum_dpipe.h mlxsw: spectrum: Assume CONFIG_NET_DEVLINK is always enabled 2019-04-19 15:03:55 -07:00
spectrum_fid.c mlxsw: spectrum: Do not process learned records with a dummy FID 2019-07-17 15:19:46 -07:00
spectrum_flower.c mlxsw: spectrum_flower: Fail in case user specifies multiple mirror actions 2019-09-27 20:33:19 +02:00
spectrum_ipip.c
spectrum_ipip.h
spectrum_kvdl.c
spectrum_mr_tcam.c
spectrum_mr_tcam.h
spectrum_mr.c
spectrum_mr.h
spectrum_nve_vxlan.c mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled 2019-07-29 13:55:05 -07:00
spectrum_nve.c mlxsw: spectrum: Take devlink net instead of init_net 2019-10-04 11:10:56 -07:00
spectrum_nve.h mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled 2019-07-29 13:55:05 -07:00
spectrum_ptp.c mlxsw: spectrum_ptp: Add counters for GC events 2019-08-28 18:24:04 -07:00
spectrum_ptp.h mlxsw: spectrum_ptp: Add counters for GC events 2019-08-28 18:24:04 -07:00
spectrum_qdisc.c
spectrum_router.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
spectrum_router.h
spectrum_span.c
spectrum_span.h
spectrum_switchdev.c mlxsw: spectrum: Take devlink net instead of init_net 2019-10-04 11:10:56 -07:00
spectrum_switchdev.h
spectrum_trap.c mlxsw: spectrum: Add devlink-trap support 2019-08-21 12:58:39 -07:00
spectrum.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
spectrum.h mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
switchib.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
switchx2.c mlxsw: Propagate extack down to register_fib_notifier() 2019-10-04 11:10:56 -07:00
trap.h mlxsw: Add layer 2 discard trap IDs 2019-08-21 12:58:39 -07:00
txheader.h