Commit 6b7ed22
igc: Fix returning wrong statistics
'igc_update_stats()' was not updating 'netdev->stats', so the returned
statistics, for example, requested by:
$ ip -s link show dev enp3s0
were not being updated and were always zero.
Fix by returning a set of statistics that are actually being
updated (adapter->stats64).
Fixes: c9a11c2 ("igc: Add netdev")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 1773482 commit 6b7ed22
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3891 | 3891 | | |
3892 | 3892 | | |
3893 | 3893 | | |
3894 | | - | |
| 3894 | + | |
3895 | 3895 | | |
| 3896 | + | |
3896 | 3897 | | |
3897 | 3898 | | |
3898 | 3899 | | |
3899 | 3900 | | |
3900 | | - | |
| 3901 | + | |
| 3902 | + | |
3901 | 3903 | | |
3902 | 3904 | | |
3903 | 3905 | | |
| 3906 | + | |
3904 | 3907 | | |
3905 | 3908 | | |
3906 | | - | |
3907 | | - | |
3908 | | - | |
| 3909 | + | |
| 3910 | + | |
3909 | 3911 | | |
3910 | 3912 | | |
3911 | 3913 | | |
| |||
4855 | 4857 | | |
4856 | 4858 | | |
4857 | 4859 | | |
4858 | | - | |
| 4860 | + | |
4859 | 4861 | | |
4860 | 4862 | | |
4861 | 4863 | | |
| |||
0 commit comments