linux/drivers/net/ethernet/mellanox/mlx5/core
Zhu Yanjun dcdf4ce0ff net/mlx5e: Get the latest values from counters in switchdev mode
In the switchdev mode, when running "cat
/sys/class/net/NIC/statistics/tx_packets", the ppcnt register is
accessed to get the latest values. But currently this command can
not get the correct values from ppcnt.

From firmware manual, before getting the 802_3 counters, the 802_3
data layout should be set to the ppcnt register.

When the command "cat /sys/class/net/NIC/statistics/tx_packets" is
run, before updating 802_3 data layout with ppcnt register, the
monitor counters are tested. The test result will decide the
802_3 data layout is updated or not.

Actually the monitor counters do not support to monitor rx/tx
stats of 802_3 in switchdev mode. So the rx/tx counters change
will not trigger monitor counters. So the 802_3 data layout will
not be updated in ppcnt register. Finally this command can not get
the latest values from ppcnt register with 802_3 data layout.

Fixes: 5c7e8bbb02 ("net/mlx5e: Use monitor counters for update stats")
Signed-off-by: Zhu Yanjun <yanjunz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2020-04-20 14:30:22 -07:00
..
accel net/mlx5: Deprecate usage of generic TLS HW capability bit 2020-02-06 12:24:24 -08:00
diag net/mlx5: Fix failing fw tracer allocation on s390 2020-04-20 14:30:21 -07:00
en net/mlx5e: Don't trigger IRQ multiple times on XSK wakeup to avoid WQ overruns 2020-04-20 14:30:22 -07:00
en_accel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
esw net/mlx5: E-Switch: Move eswitch chains to a new directory 2020-03-29 23:42:22 -07:00
fpga net/mlx5e: Replace zero-length array with flexible-array member 2020-02-19 09:13:10 +02:00
ipoib Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2020-03-09 16:58:26 -07:00
lib Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2020-03-09 16:58:26 -07:00
steering Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
alloc.c net/mlx5: limit the function in local scope 2020-01-07 10:40:22 -08:00
cmd.c net/mlx5: rate limit alloc_ent error messages 2019-11-01 14:55:17 -07:00
cq.c
debugfs.c mlx5: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
dev.c net/mlx5: Simplify mlx5_register_device to return void 2020-03-25 23:19:13 -07:00
devlink.c net/mlx5e: Add missing release firmware call 2020-04-08 15:46:41 -07:00
devlink.h net/mlx5e: Add devlink fdb_large_groups parameter 2020-02-27 16:40:19 -08:00
ecpf.c
ecpf.h
en_arfs.c net/mlx5: Accept flow rules without match 2020-03-13 16:26:17 -07:00
en_common.c
en_dcbnl.c net/mlx5e: Change inline mode correctly when changing trust state 2020-02-25 17:06:04 -08:00
en_dim.c
en_ethtool.c net/mlx5e: Show/set Rx network flow classification rules on ul rep 2020-03-09 16:58:49 -07:00
en_fs_ethtool.c net/mlx5: Refactor mlx5_create_auto_grouped_flow_table 2020-01-16 15:41:59 -08:00
en_fs.c net/mlx5e: Fix hairpin RSS table size 2020-01-06 15:30:05 -08:00
en_main.c net/mlx5e: Get the latest values from counters in switchdev mode 2020-04-20 14:30:22 -07:00
en_rep.c net/mlx5e: Fix pfnum in devlink port attribute 2020-04-08 15:46:49 -07:00
en_rep.h net/mlx5e: CT: Introduce connection tracking 2020-03-12 15:00:39 -07:00
en_rx.c net/mlx5e: Don't trigger IRQ multiple times on XSK wakeup to avoid WQ overruns 2020-04-20 14:30:22 -07:00
en_selftest.c net/mlx5e: Fix ethtool self test: link speed 2019-10-29 16:27:20 -07:00
en_stats.c net/mlx5e: Enable all available stats for uplink reps 2020-01-22 22:30:12 -08:00
en_stats.h net/mlx5e: Enable all available stats for uplink reps 2020-01-22 22:30:12 -08:00
en_tc.c net/mlx5e: Fix missing pedit action after ct clear action 2020-04-08 15:46:46 -07:00
en_tc.h net/mlx5e: CT: Handle misses after executing CT action 2020-03-12 15:00:39 -07:00
en_tx.c net/mlx5e: Define one flow for TXQ selection when TCs are configured 2020-02-25 17:05:39 -08:00
en_txrx.c net/mlx5e: Don't trigger IRQ multiple times on XSK wakeup to avoid WQ overruns 2020-04-20 14:30:22 -07:00
en.h net/mlx5e: Don't trigger IRQ multiple times on XSK wakeup to avoid WQ overruns 2020-04-20 14:30:22 -07:00
eq.c net/mlx5: Use async EQ setup cleanup helpers for multiple EQs 2020-01-07 10:41:30 -08:00
eswitch_offloads_termtbl.c net/mlx5e: Add support for offloading traffic from uplink to uplink 2020-03-17 19:41:37 -07:00
eswitch_offloads.c net/mlx5: Fix condition for termination table cleanup 2020-04-08 15:46:38 -07:00
eswitch.c net/mlx5: E-switch, Protect eswitch mode changes 2020-03-25 23:19:25 -07:00
eswitch.h net/mlx5: Fix condition for termination table cleanup 2020-04-08 15:46:38 -07:00
events.c
fs_cmd.c net/mlx5: Add support for RDMA TX steering 2020-03-27 13:24:48 -03:00
fs_cmd.h net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
fs_core.c RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
fs_core.h net/mlx5: Add support for RDMA TX steering 2020-03-27 13:24:48 -03:00
fs_counters.c net/mlx5e: Replace zero-length array with flexible-array member 2020-02-19 09:13:10 +02:00
fw.c net/mlx5: Add fsm_reactivate callback support 2020-02-21 15:41:10 -08:00
health.c net/mlx5: Fix frequent ioread PCI access during recovery 2020-04-08 15:46:36 -07:00
Kconfig net/mlx5: Kconfig: convert imply usage to weak dependency 2020-04-20 14:30:22 -07:00
lag_mp.c net/mlx5: Use a separate work queue for fib event handling 2020-03-29 23:42:20 -07:00
lag_mp.h net/mlx5: Use a separate work queue for fib event handling 2020-03-29 23:42:20 -07:00
lag.c net/mlx5: Clear LAG notifier pointer after unregister 2020-03-05 15:13:45 -08:00
lag.h mlx5: register lag notifier for init network namespace only 2020-02-27 11:16:14 -08:00
main.c Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2020-03-29 23:42:11 -07:00
Makefile net/mlx5: E-Switch: Move eswitch chains to a new directory 2020-03-29 23:42:22 -07:00
mcg.c
mlx5_core.h net/mlx5: Simplify mlx5_unload_one() and its callers 2020-03-25 23:19:15 -07:00
mr.c mlx5: Remove uninitialized use of key in mlx5_core_create_mkey 2020-03-16 23:30:32 -07:00
pagealloc.c
pci_irq.c
pd.c
port.c
qp.c net/mlx5: Use debug message instead of warn 2019-08-13 12:58:06 +03:00
rdma.c net/mlx5: Avoid disabling RoCE when uninitialized 2019-09-01 23:44:42 -07:00
rdma.h
rl.c net/mlx5: Expose raw packet pacing APIs 2020-03-05 14:18:09 +02:00
sriov.c net/mlx5: E-switch, Protect eswitch mode changes 2020-03-25 23:19:25 -07:00
transobj.c
uar.c
vport.c net/mlx5_core: Set IB capability mask1 to fix ib_srpt connection failure 2020-03-24 14:42:58 -07:00
wq.c net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-18 19:01:19 -08:00
wq.h net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-18 19:01:19 -08:00