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-next>] [day] [month] [year] [list]
Message-ID: <tencent_78F3412B4E523FEC8F19FADAC32475318706@qq.com>
Date: Sat, 20 Apr 2024 08:41:10 +0800
From: renjun wang <renjunw0@...mail.com>
To: andrew@...n.ch,
	hkallweit1@...il.com,
	linux@...linux.org.uk
Cc: netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	renjun wang <renjunw0@...mail.com>
Subject: [PATCH] net: phy: update fields of mii_ioctl_data for transferring C45 data.

The phy_id is used as u32 type in function mdio_phy_id_is_c45()
with the 30th bit for distinguishing C22 and C45. The reg_num is
also used as u32 type in function mdiobus_c45_read() or someplace
else. For more C45 information needed and data structure alignment
consideration, change these two fields to __u32 type which can make
user space program transferring clause 45 type information to kernel
directly.

Signed-off-by: renjun wang <renjunw0@...mail.com>
---
 include/uapi/linux/mii.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/uapi/linux/mii.h b/include/uapi/linux/mii.h
index 39f7c44baf53..68c085b049de 100644
--- a/include/uapi/linux/mii.h
+++ b/include/uapi/linux/mii.h
@@ -176,8 +176,8 @@
 
 /* This structure is used in all SIOCxMIIxxx ioctl calls */
 struct mii_ioctl_data {
-	__u16		phy_id;
-	__u16		reg_num;
+	__u32		phy_id;
+	__u32		reg_num;
 	__u16		val_in;
 	__u16		val_out;
 };
-- 
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ