[net/net-next PATCH v6 0/2] Move EST lock and EST structure to struct stmmac_priv

Xiaolei Wang xiaolei.wang at windriver.com
Sun May 12 18:43:44 PDT 2024


1. Pulling the mutex protecting the EST structure out to avoid
    clearing it during reinit/memset of the EST structure,and
    reacquire the mutex lock when doing this initialization.

2. Moving the EST structure to a more logical location

v1 -> v2:
  - move the lock to struct plat_stmmacenet_data
v2 -> v3:
  - Add require the mutex lock for reinitialization
v3 -> v4
  - Move est and est lock to stmmac_priv as suggested by Serge
v4 -> v5
  - Submit it into two patches and add the Fixes tag
v5 -> v6
  - move the stmmac_est structure declaration from
    include/linux/stmmac.h to
    drivers/net/ethernet/stmicro/stmmac/stmmac.h

Xiaolei Wang (2):
  net: stmmac: move the EST lock to struct stmmac_priv
  net: stmmac: move the EST structure to struct stmmac_priv

 drivers/net/ethernet/stmicro/stmmac/stmmac.h  | 17 ++++++
 .../net/ethernet/stmicro/stmmac/stmmac_main.c | 18 +++---
 .../net/ethernet/stmicro/stmmac/stmmac_ptp.c  | 30 +++++-----
 .../net/ethernet/stmicro/stmmac/stmmac_tc.c   | 58 +++++++++----------
 include/linux/stmmac.h                        | 16 -----
 5 files changed, 70 insertions(+), 69 deletions(-)

-- 
2.25.1




More information about the linux-arm-kernel mailing list