lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1c65c240-514d-461f-b81e-6a799f6ea56f@lunn.ch>
Date: Tue, 22 Jul 2025 15:06:37 +0200
From: Andrew Lunn <andrew@...n.ch>
To: yicongsrfy@....com
Cc: andrew+netdev@...n.ch, davem@...emloft.net, linux-usb@...r.kernel.org,
	netdev@...r.kernel.org, oneukum@...e.com, yicong@...inos.cn
Subject: Re: [PATCH] usbnet: Set duplex status to unknown in the absence of
 MII

On Tue, Jul 22, 2025 at 10:09:33AM +0800, yicongsrfy@....com wrote:
> Thanks for your reply!
> 
> According to the "Universal Serial Bus Class Definitions for Communications Devices v1.2":
> In Section 6.3, which describes notifications such as NetworkConnection and ConnectionSpeedChange,
> there is no mention of duplex status.In particular, for ConnectionSpeedChange, its data payload
> only contains two 32-bit unsigned integers, corresponding to the uplink and downlink speeds.

Thanks for checking this.

Just one more question. This is kind of flipping the question on its
head. Does the standard say devices are actually allowed to support
1/2 duplex? Does it say they are not allowed to support 1/2 duplex?

If duplex is not reported, maybe it is because 1/2 duplex is simply
not allowed, so there is no need to report it.

> Since CDC has no way to obtain the duplex status of the device, ethtool displays a default
> value of "Half". I think it would be better to display "unknown" instead of potentially showing
> incorrect information — for example, my device is actually operating at 1Gbps Full-duplex,
> but ethtool shows 1Gbps Half-duplex.

I agree that reporting 1/2 is probably wrong. But we have to decide
between "unknown" and "full".

	Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ