• Hans Wippel's avatar
    qeth: improve set_features error handling · 6c7cd712
    Hans Wippel authored
    The function set_features is called to configure network device features
    on the hardware. If errors occur, the network device features should
    reflect the changed hardware state and the function should return an
    error in order to notify the user.
    
    In case of an error, the current implementation does not necessarily
    save the changed hardware state in the network device features before an
    error is returned.
    
    This patch improves error handling by saving features, that could be
    changed, to the network device features before returning an error. If
    the device is not running, an additional check in fix_features removes
    features, that require hardware changes, before they are passed to
    set_features. Thus, the corresponding check was removed in set_features.
    Signed-off-by: default avatarHans Wippel <hwippel@linux.vnet.ibm.com>
    Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6c7cd712
qeth_core_main.c 170 KB