Skip to content

net: ethtool: Introduce ethnl dump helpers

Maxime Chevallier linux-arm-kernel lkml netdev 8 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest3 patches 0 repliesApplied 3/3
  2. v73 patches 6 repliesSuperseded
  3. v62 patches 2 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v54 patches3 repliesSuperseded
v48 patches15 repliesSuperseded
v37 patches2 repliesSuperseded
v27 patches4 repliesSuperseded
v17 patches6 repliesSuperseded

Changes in v8 from the cover letter

- Fixed the dump process WRT refcounting
- Reset the pos_phyindex for non-filtered DUMP
- Reworked kdoc and comments

Patches in v8 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: ethtool: Introduce per-PHY DUMP operationsnet/ethtool/netlink.c+194 -90 repliesApplied
2/3net: ethtool: phy: Convert the PHY_GET command to generic phy dumpnet/ethtool/netlink.c net/ethtool/netlink.h net/ethtool/phy.c+101 -2540 repliesApplied
3/3net: ethtool: netlink: Use netdev_hold for dumpit() operationsnet/ethtool/netlink.c+3 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH net-next v8 0/3] net: ethtool: Introduce ethnl dump helpers

Hi everyone,

This is V8 for per-phy DUMP helpers, improving support for ->dumpit() operations for PHY targetting commands.

This V8 fixes some issues spotted by Jakub (thanks !) on the multi-part DUMP sequence. The netdev reftracking was reworked to make sure that during a filtered DUMP, we only keep a ref on the netdev during individual .dumpit() calls.

Thanks,

Maxime

Changes in V8:
- Fixed the dump process WRT refcounting
- Reset the pos_phyindex for non-filtered DUMP
- Reworked kdoc and comments

Changes in V7:
- Move from dev_hold to netdev_hold()
- Add an extra patch fr dev_hold() conversion.

Changes in V6:
- Squash pse and plca patches into the first one, to avoid unused functions (Jakub)

Changes in V5:
- Move to a less generic approach, focusing only on the PHY case.

Changes in V4:
- Don't grab rcu_read_lock when we already have a refcounter netdev on the filtered dump path (Paolo)
- Move the dump_all stuff in a dedicated helper (Paolo)
- Added patch 1 to set the dev in ctx->req_info

Changes in V3:
- Fixed some typos and xmas tree issues
- Added a missing check for EOPNOTSUPP in patch 1
- Added missing kdoc
- Added missing comments in phy_reply_size

Changes in V2:
- Rebased on the netdev_lock work by Stanislav and the fixes from Eric
- Fixed a bissectability issue
- Fixed kdoc for the new ethnl ops and fields

V1: https://lore.kernel.org/netdev/[email protected]/
V2: https://lore.kernel.org/netdev/[email protected]/
V3: https://lore.kernel.org/netdev/[email protected]/
V4: https://lore.kernel.org/netdev/[email protected]/
V5: https://lore.kernel.org/netdev/[email protected]/
V6: https://lore.kernel.org/netdev/[email protected]/
V7: https://lore.kernel.org/netdev/[email protected]/

Maxime Chevallier (3):
net: ethtool: Introduce per-PHY DUMP operations
net: ethtool: phy: Convert the PHY_GET command to generic phy dump
net: ethtool: netlink: Use netdev_hold for dumpit() operations

 net/ethtool/netlink.c | 217 +++++++++++++++++++++++++--
 net/ethtool/netlink.h |   4 -
 net/ethtool/phy.c     | 342 ++++++++++++------------------------------
 3 files changed, 298 insertions(+), 265 deletions(-)
Signature · 1 line
2.49.0