• Vladimir Oltean's avatar
    net: ethtool: netlink: introduce ethnl_update_bool() · 7c494a77
    Vladimir Oltean authored
    Due to the fact that the kernel-side data structures have been carried
    over from the ioctl-based ethtool, we are now in the situation where we
    have an ethnl_update_bool32() function, but the plain function that
    operates on a boolean value kept in an actual u8 netlink attribute
    doesn't exist.
    
    With new ethtool features that are exposed solely over netlink, the
    kernel data structures will use the "bool" type, so we will need this
    kind of helper. Introduce it now; it's needed for things like
    verify-disabled for the MAC merge configuration.
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7c494a77
netlink.h 18.1 KB