mbox series

[v2,net-next,0/6] Support some enhances features for the HIBMCGE driver

Message ID 20250218085829.3172126-1-shaojijie@huawei.com (mailing list archive)
Headers show
Series Support some enhances features for the HIBMCGE driver | expand

Message

Jijie Shao Feb. 18, 2025, 8:58 a.m. UTC
In this patch set, we mainly implement some enhanced features.
It mainly includes the statistics, diagnosis, and ioctl to
improve fault locating efficiency,
abnormal irq and MAC link exception handling feature
to enhance driver robustness,
and rx checksum offload feature to improve performance 
(tx checksum feature has been implemented).

---
ChangeLog:
v1 -> v2:
  - Remove self_test patch from this series, suggested by Andrew.
  - Use phy_do_ioctl() to simplify ioctl code, suggested by Andrew.
  - Replace phy_reset() with phy_stop() and phy_start(), suggested by Andrew.
  - Recalculate the interval for the scheduled task to update statistics,
    suggested by Andrew.
  - Use !! to convert integer to boolean, suggested by Simon Horman.
  v1: https://lore.kernel.org/all/20250213035529.2402283-1-shaojijie@huawei.com/
---

Jijie Shao (6):
  net: hibmcge: Add dump statistics supported in this module
  net: hibmcge: Add rx checksum offload supported in this module
  net: hibmcge: Add abnormal irq handling feature in this module
  net: hibmcge: Add mac link exception handling feature in this module
  net: hibmcge: Add BMC diagnose feature in this module
  net: hibmcge: Add ioctl supported in this module

 .../net/ethernet/hisilicon/hibmcge/Makefile   |   2 +-
 .../ethernet/hisilicon/hibmcge/hbg_common.h   | 122 ++++++
 .../ethernet/hisilicon/hibmcge/hbg_debugfs.c  |   7 +-
 .../ethernet/hisilicon/hibmcge/hbg_diagnose.c | 348 ++++++++++++++++++
 .../ethernet/hisilicon/hibmcge/hbg_diagnose.h |  11 +
 .../net/ethernet/hisilicon/hibmcge/hbg_err.c  |  58 +++
 .../net/ethernet/hisilicon/hibmcge/hbg_err.h  |   1 +
 .../ethernet/hisilicon/hibmcge/hbg_ethtool.c  | 298 +++++++++++++++
 .../ethernet/hisilicon/hibmcge/hbg_ethtool.h  |   5 +
 .../net/ethernet/hisilicon/hibmcge/hbg_hw.c   |  20 +
 .../net/ethernet/hisilicon/hibmcge/hbg_irq.c  |  55 +--
 .../net/ethernet/hisilicon/hibmcge/hbg_main.c | 110 ++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_mdio.c |  20 +
 .../net/ethernet/hisilicon/hibmcge/hbg_mdio.h |   2 +
 .../net/ethernet/hisilicon/hibmcge/hbg_reg.h  | 105 ++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_txrx.c | 176 ++++++++-
 16 files changed, 1314 insertions(+), 26 deletions(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_diagnose.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_diagnose.h