]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix refreshing iavf adapter stats on ethtool request
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Wed, 15 Sep 2021 09:01:00 +0000 (09:01 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 19 Nov 2021 17:26:41 +0000 (09:26 -0800)
commit1418b4e018beb0d0baca6a6b9776057b7137cd4b
tree83e2b8bd772c8ddd633c8baa69c00fd65ce88d08
parent649bcdc47402ab3ea42eec7486caa766fe969139
iavf: Fix refreshing iavf adapter stats on ethtool request

Currently iavf adapter statistics are refreshed only in a
watchdog task, triggered approximately every two seconds,
which causes some ethtool requests to return outdated values.

Add explicit statistics refresh when requested by ethtool -S.

Fixes: 58b6564f31c7 ("iavf: Move commands processing to the separate function")
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_ethtool.c
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c