• J
    ethtool: add a stricter length check · 4d1fb7cd
    Jakub Kicinski 提交于
    There has been a few errors in the ethtool reply size calculations,
    most of those are hard to trigger during basic testing because of
    skb size rounding up and netdev names being shorter than max.
    Add a more precise check.
    
    This change will affect the value of payload length displayed in
    case of -EMSGSIZE but that should be okay, "payload length" isn't
    a well defined term here.
    Signed-off-by: NJakub Kicinski <kuba@kernel.org>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    4d1fb7cd
netlink.c 27.8 KB