net: mii: add linkmode_adv_to_mii_adv_x()
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 14 Mar 2020 10:09:58 +0000 (10:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 00:10:14 +0000 (17:10 -0700)
commita9f28eba6eaab651e4cec6d936a107b03d61754a
treeff3ba602d42085c33df8f302d72796ea62dcba70
parentf6554187855a4ddce235d22cc1486c118846b592
net: mii: add linkmode_adv_to_mii_adv_x()

Add a helper to convert a linkmode advertisement to a clause 37
advertisement value for 1000base-x and 2500base-x.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mii.h