• Jakub Kicinski's avatar
    ethtool: support FEC settings over netlink · 1e5d1f69
    Jakub Kicinski authored
    Add FEC API to netlink.
    
    This is not a 1-to-1 conversion.
    
    FEC settings already depend on link modes to tell user which
    modes are supported. Take this further an use link modes for
    manual configuration. Old struct ethtool_fecparam is still
    used to talk to the drivers, so we need to translate back
    and forth. We can revisit the internal API if number of FEC
    encodings starts to grow.
    
    Enforce only one active FEC bit (by using a bit position
    rather than another mask).
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1e5d1f69
netlink.h 15.8 KB