• Anirudh Venkataramanan's avatar
    ice: Delay netdev registration · 1e23f076
    Anirudh Venkataramanan authored
    Once a netdev is registered, the corresponding network interface can
    be immediately used by userspace utilities (like say NetworkManager).
    This can be problematic if the driver technically isn't fully up yet.
    
    Move netdev registration to the end of probe, as by this time the
    driver data structures and device will be initialized as expected.
    
    However, delaying netdev registration causes a failure in the aRFS flow
    where netdev->reg_state == NETREG_REGISTERED condition is checked. It's
    not clear why this check was added to begin with, so remove it.
    Local testing didn't indicate any issues with this change.
    
    The state bit check in ice_open was put in as a stop-gap measure to
    prevent a premature interface up operation. This is no longer needed,
    so remove it.
    Signed-off-by: default avatarAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
    Tested-by: default avatarTony Brelinski <tonyx.brelinski@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    1e23f076
ice_arfs.c 18.8 KB