• V
    net: ethtool: add helpers for MM fragment size translation · dd1c4164
    Vladimir Oltean 提交于
    We deliberately make the Linux UAPI pass the minimum fragment size in
    octets, even though IEEE 802.3 defines it as discrete values, and
    addFragSize is just the multiplier. This is because there is nothing
    impossible in operating with an in-between value for the fragment size
    of non-final preempted fragments, and there may even appear hardware
    which supports the in-between sizes.
    
    For the hardware which just understands the addFragSize multiplier,
    create two helpers which translate back and forth the values passed in
    octets.
    Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    dd1c4164
ethtool.h 41.7 KB