Thread (19 messages) 19 messages, 3 authors, 2020-05-10

Re: [PATCH net-next v3 06/10] net: ethtool: Add infrastructure for reporting cable test results

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-05-10 18:00:46

On Sun, 10 May 2020 18:07:58 +0200 Andrew Lunn wrote:
On Sun, May 10, 2020 at 05:12:26PM +0200, Michal Kubecek wrote:
quoted
On Sat, May 09, 2020 at 06:28:47PM +0200, Andrew Lunn wrote:  
quoted
Provide infrastructure for PHY drivers to report the cable test
results.  A netlink skb is associated to the phydev. Helpers will be
added which can add results to this skb. Once the test has finished
the results are sent to user space.

When netlink ethtool is not part of the kernel configuration stubs are
provided. It is also impossible to trigger a cable test, so the error
code returned by the alloc function is of no consequence.

v2:
Include the status complete in the netlink notification message

Signed-off-by: Andrew Lunn <andrew@lunn.ch>  
Reviewed-by: Michal Kubecek <redacted>

It seems you applied the changes to ethnl_cable_test_alloc() suggested
in v2 review as part of patch 7 rather than here. I don't think it's
necessary to fix that unless there is some actual problem that would
require a resubmit.  
Hi Michal

Yes, squashed it into the wrong patch. But since all it does it change
one errno for another, it is unlikely to break bisect. As i agree, we
can live with this.
Sorry Andrew, would you mind doing one more quick spin? :(

Apart from what Michal pointed out there is a new line added after
ETHTOOL_A_TSINFO_MAX in patch 3 and removed in patch 4. 

More importantly we should not use the ENOTSUPP error code, AFAIU it's
for NFS, it's not a standard error code and user space struggles to
translate it with strerror(). Would you mind replacing all ENOTSUPPs
with EOPNOTSUPPs?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help