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] [day] [month] [year] [list]
Date:	Thu, 13 Aug 2009 14:57:36 +0100
From:	Ben Hutchings <bhutchings@...arflare.com>
To:	eilong@...adcom.com
Cc:	David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [net-next 11/36] bnx2x: MDC/MDIO CL45 IOCTLs

On Wed, 2009-08-12 at 21:23 +0300, Eilon Greenstein wrote:
> As suggested by Ben Hutchings <bhutchings@...arflare.com>, using the MDC/MDIO
> IOCTL
> 
> Signed-off-by: Eilon Greenstein <eilong@...adcom.com>
> ---
[...]
> @@ -11419,6 +11458,14 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
>  	dev->vlan_features |= NETIF_F_TSO6;
>  #endif
>  
> +	/* get_port_hwinfo() will set prtad and mmds properly */
> +	bp->mdio.prtad = MDIO_PRTAD_NONE;
> +	bp->mdio.mmds = 0;

I didn't see any code to change mmds.

> +	bp->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;

MDIO_EMULATE_C22 means the mdio module will map a few clause 22
registers to clause 45 (and reject access to all other clause 22
registers), and you will never be passed devad = MDIO_DEVAD_NONE.

If you want to support clause 22 register access yourself then use
MDIO_SUPPORTS_C22.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ