• Daniel Pieczko's avatar
    sfc: force removal of VF and vport on driver removal · 2a3fc311
    Daniel Pieczko authored
    When the driver unloads, force the unbind and removal of any
    VFs in the host with the PF.  The PF cannot remove vports and
    vswitches if they are still being used by a VF driver, and when
    unloading the sfc driver the removal order is not guaranteed,
    so the instruction from the PF to the VF to unbind enforces a
    suitable ordering so that vswitches and vports can be removed.
    
    As a result of this, manually unbinding the driver from a single
    PF will result in all of its VFs in the host also being removed.
    Signed-off-by: default avatarShradha Shah <sshah@solarflare.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2a3fc311
ef10_sriov.c 18.9 KB