mirror_ubuntu-kernels/drivers/net/ethernet/netronome/nfp
Yinjun Zhang a731a43e86 nfp: improve link modes reading process
Avoid reading link modes from management firmware every time when
`ethtool_get_link_ksettings` is called, only communicate with
management firmware when necessary like we do for eth_table info.

This change can ease the situation that when large number of vlan
sub-interfaces are created and their information is requested by
some monitoring process like PCP [1] through ethool ioctl frequently.

[1] https://pcp.io

Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Acked-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230509075817.10566-1-louis.peens@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-05-09 19:40:28 -07:00
..
abm net: sched: Merge Qdisc::bstats and Qdisc::cpu_bstats data types 2021-10-18 12:54:41 +01:00
bpf nfp: bpf: Fix typo 'the the' in comment 2022-07-25 10:52:28 +01:00
crypto nfp: fix incorrect pointer deference when offloading IPsec with bonding 2023-04-21 20:23:49 -07:00
flower nfp: flower: offload tc flows of multiple conntrack zones 2023-03-15 22:16:23 -07:00
nfd3 nfp: fix incorrectly set csum flag for nfd3 path 2023-03-03 08:28:44 +00:00
nfdk nfp: fix incorrectly set csum flag for nfdk path 2023-03-03 08:28:44 +00:00
nfpcore nfp: improve link modes reading process 2023-05-09 19:40:28 -07:00
nic nfp: correct cleanup related to DCB resources 2023-02-01 19:57:30 -08:00
ccm_mbox.c nfp: Fix spelling mistake "tha" -> "the" 2022-12-08 19:44:06 -08:00
ccm.c
ccm.h
devlink_param.c devlink: protect devlink param list by instance lock 2023-01-27 12:32:02 +00:00
Makefile nfp: support IPsec offloading for NFP3800 2023-02-09 22:22:19 -08:00
nfp_abi.h
nfp_app_nic.c
nfp_app.c nfp: fix clang -Wformat warnings 2022-07-12 17:38:44 -07:00
nfp_app.h net: remove unused ndo_get_devlink_port 2022-11-03 20:48:36 -07:00
nfp_asm.c nfp: bpf: silence bitwise vs. logical OR warning 2021-10-18 14:50:01 -07:00
nfp_asm.h
nfp_devlink.c net: devlink: let the core report the driver name instead of the drivers 2022-11-30 21:49:38 -08:00
nfp_hwmon.c net: nfp: constify pointers to hwmon_channel_info 2023-04-09 19:02:03 -07:00
nfp_main.c nfp: only clean sp_indiff when application firmware is unloaded 2022-10-21 22:43:48 -07:00
nfp_main.h nfp: ethtool: support reporting link modes 2022-11-29 15:28:52 +01:00
nfp_net_common.c nfp: fix esp-tx-csum-offload doesn't take effect 2023-03-03 08:28:44 +00:00
nfp_net_ctrl.c nfp: refine the ABI of getting sp_indiff info 2022-09-30 18:47:52 -07:00
nfp_net_ctrl.h Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net 2023-02-17 11:06:39 +00:00
nfp_net_debugdump.c
nfp_net_debugfs.c nfp: use TX ring pointer write back 2022-03-21 13:21:16 +00:00
nfp_net_dp.c nfp: support RX VLAN ctag/stag strip 2022-07-04 10:44:08 +01:00
nfp_net_dp.h nfp: support RX VLAN ctag/stag strip 2022-07-04 10:44:08 +01:00
nfp_net_ethtool.c nfp: improve link modes reading process 2023-05-09 19:40:28 -07:00
nfp_net_main.c devlink: protect devlink param list by instance lock 2023-01-27 12:32:02 +00:00
nfp_net_repr.c net: remove unused ndo_get_devlink_port 2022-11-03 20:48:36 -07:00
nfp_net_repr.h
nfp_net_sriov.c nfp: avoid unnecessary check warnings in nfp_app_get_vf_config 2022-06-09 22:02:38 -07:00
nfp_net_sriov.h nfp: VF rate limit support 2022-05-12 13:03:08 +02:00
nfp_net_xsk.c nfp: support 48-bit DMA addressing for NFP3800 2022-06-13 13:31:39 +01:00
nfp_net_xsk.h nfp: move the fast path code to separate files 2022-03-21 13:21:16 +00:00
nfp_net.h nfp: fix schedule in atomic context when offloading sa 2023-02-09 22:28:06 -08:00
nfp_netvf_main.c nfp: support Corigine PCIE vendor ID 2022-05-09 18:20:39 -07:00
nfp_port.c nfp: initialize netdev's dev_port with correct id 2023-04-06 15:43:36 +02:00
nfp_port.h nfp: ethtool: fix the bug of setting unsupported port speed 2023-02-08 09:08:12 +00:00
nfp_shared_buf.c