summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2025-03-07 20:36:09 +0300
committerPaolo Abeni <pabeni@redhat.com>2025-03-18 11:03:12 +0300
commit4ca5b8a258b67aa5e06af56e53708cc23ea05e79 (patch)
treeddfb7234debe6c30c2c3a8d5ddf132c5005aad2e /net/lapb/lapb_subr.c
parent3bea75002a05b86bf4d87773c456f39f7693f5c4 (diff)
downloadlinux-4ca5b8a258b67aa5e06af56e53708cc23ea05e79.tar.xz
net: phylink: Convert capabilities to linkmodes using phy_caps
phylink_caps_to_linkmodes() is used to derive a list of linkmodes that can be conceivably exposed using a given set of speeds and duplex through phylink's MAC capabilities. This list can be derived from the link_caps array in phy_caps, provided we convert the MAC capabilities into a LINK_CAPA bitmask first. Introduce an internal phylink helper phylink_caps_to_link_caps() to convert from MAC capabilities into phy_caps, then phy_caps_linkmodes() to do the link_caps -> linkmodes conversion. This avoids having to update phylink for every new linkmode. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Link: https://patch.msgid.link/20250307173611.129125-13-maxime.chevallier@bootlin.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions