diff options
| author | Maxime Chevallier <[email protected]> | 2025-03-07 17:36:09 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-03-18 08:03:12 +0000 |
| commit | 4ca5b8a258b67aa5e06af56e53708cc23ea05e79 (patch) | |
| tree | ddfb7234debe6c30c2c3a8d5ddf132c5005aad2e /net/ipv4/tcp_output.c | |
| parent | net: phylink: Add a mapping between MAC_CAPS and LINK_CAPS (diff) | |
| download | kernel-4ca5b8a258b67aa5e06af56e53708cc23ea05e79.tar.gz kernel-4ca5b8a258b67aa5e06af56e53708cc23ea05e79.zip | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
