netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] net: hinic: fix three bugs about dev_get_stats
@ 2022-07-04  8:57 Qiao Ma
  2022-07-04  8:57 ` [PATCH net-next v2 1/3] net: hinic: fix bug that ethtool get wrong stats Qiao Ma
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Qiao Ma @ 2022-07-04  8:57 UTC (permalink / raw)
  To: davem, edumazet, pabeni, kuba, gustavoars, cai.huoqing,
	aviad.krawczyk, zhaochen6
  Cc: netdev, linux-kernel

These patches fixes 3 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() 
- fix bug that u64_stats_sync is not initialized

See every patch for more information. 

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. 

Qiao Ma (3):
  net: hinic: fix bug that ethtool get wrong stats
  net: hinic: avoid kernel hung in hinic_get_stats64()
  net: hinic: fix bug that u64_stats_sync is not initialized

 drivers/net/ethernet/huawei/hinic/hinic_dev.h     |  3 --
 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c |  3 ++
 drivers/net/ethernet/huawei/hinic/hinic_main.c    | 56 ++++++++---------------
 3 files changed, 21 insertions(+), 41 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-06  9:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-04  8:57 [PATCH net-next v2 0/3] net: hinic: fix three bugs about dev_get_stats Qiao Ma
2022-07-04  8:57 ` [PATCH net-next v2 1/3] net: hinic: fix bug that ethtool get wrong stats Qiao Ma
2022-07-04 12:04   ` kernel test robot
2022-07-06  9:52   ` kernel test robot
2022-07-04  8:57 ` [PATCH net-next v2 2/3] net: hinic: avoid kernel hung in hinic_get_stats64() Qiao Ma
2022-07-04  8:57 ` [PATCH net-next v2 3/3] net: hinic: fix bug that u64_stats_sync is not initialized Qiao Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).