]> 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)
commit12c5b7e7dad5d851beba7ebb00ccaeb1108b4642
tree83e2b8bd772c8ddd633c8baa69c00fd65ce88d08
parent4281082f2e0855fe36dc7fcbbdc6e6e56032aa14
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: e913bbf8fd39 ("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