Skip to contentSkip to conversation

MAINTAINERS: add entry for ethtool

PATCH Superseded Jakub Kicinski 4 participants 11 messages Feb 2, 2025 – Feb 4, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/2 MAINTAINERS: add entry for ethtool

Michal did an amazing job converting ethtool to Netlink, but never added an entry to MAINTAINERS for himself. Create a formal entry so that we can delegate (portions) of this code to folks.

Over the last 3 years majority of the reviews have been done by Andrew and I. I suppose Michal didn't want to be on the receiving end of the flood of patches.

---
CC: Michal Kubecek <[email protected]>

I emailed Michal a few days ago and didn't hear back. Michal, please LMK if you'd like to be added as well!

---
 MAINTAINERS | 10 ++++++++++
 1 file changed, 10 insertions(+)
MAINTAINERS +10 -0
index ce92c8a3e3ce..4e701b9a57e4 100644
@@ -16459,6 +16459,16 @@ F:	include/net/dsa.h
 F:	net/dsa/
 F:	tools/testing/selftests/drivers/net/dsa/
 
+NETWORKING [ETHTOOL]
+M:	Andrew Lunn <[email protected]>
+M:	Jakub Kicinski <[email protected]>
+F:	Documentation/netlink/specs/ethtool.yaml
+F:	Documentation/networking/ethtool-netlink.rst
+F:	include/linux/ethtool*
+F:	include/uapi/linux/ethtool*
+F:	net/ethtool/
+F:	tools/testing/selftests/drivers/net/*/ethtool*
+
 NETWORKING [GENERAL]
 M:	"David S. Miller" <[email protected]>
 M:	Eric Dumazet <[email protected]>
Signature · 1 line
2.48.1
author maintainer
#1 lore raw

PATCH 2/2 MAINTAINERS: add a sample ethtool section entry

I feel like we don't do a good enough keeping authors of driver APIs around. The ethtool code base was very nicely compartmentalized by Michal. Establish a precedent of creating MAINTAINERS entries for "sections" of the ethtool API. Use Andrew and cable test as a sample entry. The entry should ideally cover 3 elements:
a core file, test(s), and keywords. The last one is important because we intend the entries to cover core code *and* reviews of drivers implementing given API!

---
This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

---
 MAINTAINERS | 6 ++++++
 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
index 4e701b9a57e4..9bf31ba720b6 100644
@@ -16469,6 +16469,12 @@ F:	include/uapi/linux/ethtool*
 F:	net/ethtool/
 F:	tools/testing/selftests/drivers/net/*/ethtool*
 
+NETWORKING [ETHTOOL CABLE TEST]
+M:	Andrew Lunn <[email protected]>
+F:	net/ethtool/cabletest.c
+F:	tools/testing/selftests/drivers/net/*/ethtool*
+K:	start_cable_test
+
 NETWORKING [GENERAL]
 M:	"David S. Miller" <[email protected]>
 M:	Eric Dumazet <[email protected]>
Signature · 1 line
2.48.1
reviewer Reviewed-by on v1 1/2
#10 lore raw
In reply to Jakub Kicinski
Quoted 8 lines · Jakub Kicinski

Michal did an amazing job converting ethtool to Netlink, but never added an entry to MAINTAINERS for himself. Create a formal entry so that we can delegate (portions) of this code to folks.

Over the last 3 years majority of the reviews have been done by Andrew and I. I suppose Michal didn't want to be on the receiving end of the flood of patches.

Quoted 6 lines

---
CC: Michal Kubecek <[email protected]>

I emailed Michal a few days ago and didn't hear back. Michal, please LMK if you'd like to be added as well!

reviewer
#2 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

In reply to Jakub Kicinski
Quoted 9 lines · Jakub Kicinski

I feel like we don't do a good enough keeping authors of driver APIs around. The ethtool code base was very nicely compartmentalized by Michal. Establish a precedent of creating MAINTAINERS entries for "sections" of the ethtool API. Use Andrew and cable test as a sample entry. The entry should ideally cover 3 elements:
a core file, test(s), and keywords. The last one is important because we intend the entries to cover core code *and* reviews of drivers implementing given API!

Quoted 5 lines

---
This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

In the first instance this seems like a good direction to go in to me. My only slight concern is that we might see an explosion in entries. Do we think so? Do we mind if that happens?

#3 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

Quoted 10 lines · Simon Horman
Quoted 9 lines · Jakub Kicinski

I feel like we don't do a good enough keeping authors of driver APIs around. The ethtool code base was very nicely compartmentalized by Michal. Establish a precedent of creating MAINTAINERS entries for "sections" of the ethtool API. Use Andrew and cable test as a sample entry. The entry should ideally cover 3 elements:
a core file, test(s), and keywords. The last one is important because we intend the entries to cover core code *and* reviews of drivers implementing given API!

Quoted 8 lines
Quoted 5 lines

---
This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

In the first instance this seems like a good direction to go in to me. My only slight concern is that we might see an explosion in entries.

I don't think that will happen. I don't think we really have many sections of ethtool which people personally care about, always try to review across all drivers.

Even if it does explode, so what. Is ./scripts/get_maintainer.pl the bottleneck in any workflows?

Andrew

author maintainer
#4 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

Quoted 6 lines · On Mon, 3 Feb 2025 14:29:23 +0100 Andrew Lunn wrote:
Quoted 2 lines

In the first instance this seems like a good direction to go in to me. My only slight concern is that we might see an explosion in entries.

I don't think that will happen. I don't think we really have many sections of ethtool which people personally care about, always try to review across all drivers.

Agreed, FWIW.

Quoted 2 lines

Even if it does explode, so what. Is ./scripts/get_maintainer.pl the bottleneck in any workflows?

Only concern there could be the keywords, we had issues with regexps being too expensive in the past. There are plenty examples of how to do them right now, tho.

maintainer
#6 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

In reply to Jakub Kicinski
Quoted 3 lines · Jakub Kicinski

This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

Should the keyword be a little more generic, i.e. just 'cable_test'? AFAICS the current one doesn't catch the device drivers,

I agree encouraging more driver API reviewer would be great, but I personally have a slight preference to add/maintain entries only they actually affect the process.

What about tying the creation of the entry to some specific contribution?

/P

reviewer Reviewed-by
#5 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

In reply to Andrew Lunn
Quoted 20 lines · Andrew Lunn
Quoted 10 lines · Simon Horman
Quoted 9 lines · Jakub Kicinski

I feel like we don't do a good enough keeping authors of driver APIs around. The ethtool code base was very nicely compartmentalized by Michal. Establish a precedent of creating MAINTAINERS entries for "sections" of the ethtool API. Use Andrew and cable test as a sample entry. The entry should ideally cover 3 elements:
a core file, test(s), and keywords. The last one is important because we intend the entries to cover core code *and* reviews of drivers implementing given API!

Quoted 8 lines
Quoted 5 lines

---
This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

In the first instance this seems like a good direction to go in to me. My only slight concern is that we might see an explosion in entries.

Quoted 6 lines

I don't think that will happen. I don't think we really have many sections of ethtool which people personally care about, always try to review across all drivers.

Even if it does explode, so what. Is ./scripts/get_maintainer.pl the bottleneck in any workflows?

Thanks Andrew,

I'm not overly concerned by the points I raised either, but I did think they were worth raising. And given that doing so didn't raise any alarm bells (so far), I'm happy for this patch to proceed.

author maintainer
#7 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

In reply to Paolo Abeni
Quoted 11 lines · On Tue, 4 Feb 2025 10:26:40 +0100 Paolo Abeni wrote:
Quoted 3 lines · Jakub Kicinski

This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

Should the keyword be a little more generic, i.e. just 'cable_test'? AFAICS the current one doesn't catch the device drivers,

I agree encouraging more driver API reviewer would be great, but I personally have a slight preference to add/maintain entries only they actually affect the process.

You're right, I was going after the op name. Seems like a good default keyword. But it appears that there are two layers of ops, one called start_cable_test and the next cable_test_start, so this isn't catching actual drivers.

Quoted 1 line

What about tying the creation of the entry to some specific contribution?

Sure. I'm adding this so that we have a commit to point people at as an example when they contribute what should be a new section. Maybe I don't understand the question..

maintainer
#8 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

Quoted 6 lines · Jakub Kicinski
Quoted 1 line · On Tue, 4 Feb 2025 10:26:40 +0100 Paolo Abeni wrote:

What about tying the creation of the entry to some specific contribution?

Sure. I'm adding this so that we have a commit to point people at as an example when they contribute what should be a new section. Maybe I don't understand the question..

I meant that this section could be added together with a new associated name when a suitable person will pop-up.

Or course that would not help as an example, and I initially did see there was such a goal. I'm fine with adding new entry even now.

/P

#9 lore raw

Re: [PATCH net 2/2] MAINTAINERS: add a sample ethtool section entry

In reply to Jakub Kicinski
Quoted 9 lines · Jakub Kicinski
Quoted 8 lines · On Tue, 4 Feb 2025 10:26:40 +0100 Paolo Abeni wrote:
Quoted 3 lines · Jakub Kicinski

This patch is a nop from process perspective, since Andrew already is a maintainer and reviews all this code. Let's focus on discussing merits of the "section entries" in abstract?

Should the keyword be a little more generic, i.e. just 'cable_test'? AFAICS the current one doesn't catch the device drivers,

Quoted 8 lines
Quoted 3 lines

I agree encouraging more driver API reviewer would be great, but I personally have a slight preference to add/maintain entries only they actually affect the process.

You're right, I was going after the op name. Seems like a good default keyword. But it appears that there are two layers of ops, one called start_cable_test and the next cable_test_start, so this isn't catching actual drivers.

https://elixir.bootlin.com/linux/v6.13.1/source/include/linux/phy.h#L1080

The op in the driver structure is cable_test_start. There is also cable_test_tdr_start but so far only Marvell hardware supports raw TDR data. At the moment, cable_test_start does not produce any false positives anywhere else in the kernel.

Andrew