]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'hinic-dev_get_stats-fixes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2022 12:09:28 +0000 (13:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2022 12:09:28 +0000 (13:09 +0100)
commit48eef3abc85d7f5a83d35162bd5a74fc068318bf
tree5d68c351bf3f86e1591a5d4e1cfed6cfe7b82cab
parent57ee1cb4ad691b44a8330de1f6fb84ce83a67257
parentc7f84cc0be98ab7052da497521646cb115e5a29d
Merge branch 'hinic-dev_get_stats-fixes'

Qiao Ma says:

====================
net: hinic: fix bugs about dev_get_stats

These patches fixes 2 bugs of hinic driver:
- fix bug that ethtool get wrong stats because of hinic_{txq|rxq}_clean_stats() is called
- avoid kernel hung in hinic_get_stats64()

See every patch for more information.

Changes in v4:
- removed meaningless u64_stats_sync protection in hinic_{txq|rxq}_get_stats
- merged the third patch in v2 into first one

Changes in v3:
- fixes a compile warning reported by kernel test robot <lkp@intel.com>

Changes in v2:
- fixes another 2 bugs. (v1 is a single patch, see: https://lore.kernel.org/all/07736c2b7019b6883076a06129e06e8f7c5f7154.1656487154.git.mqaio@linux.alibaba.com/).
- to fix extra bugs, hinic_dev.tx_stats/rx_stats is removed, so there is no need to use spinlock or semaphore now.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>