• Grzegorz Nitka's avatar
    ice: rebuild switchdev when resetting all VFs · b3be918d
    Grzegorz Nitka authored
    As resetting all VFs behaves mostly like creating new VFs also
    eswitch infrastructure has to be recreated. The easiest way to
    do that is to rebuild eswitch after resetting VFs.
    
    Implement helper functions to start and stop all representors
    queues. This is used to disable traffic on port representors.
    
    In rebuild path:
    - NAPI has to be disabled
    - eswitch environment has to be set up
    - new port representors have to be created, because the old
    one had pointer to not existing VFs
    - new control plane VSI ring should be remapped
    - NAPI hast to be enabled
    - rxdid has to be set to FLEX_NIC_2, because this descriptor id
    support source_vsi, which is needed on control plane VSI queues
    - port representors queues have to be started
    Signed-off-by: default avatarGrzegorz Nitka <grzegorz.nitka@intel.com>
    Tested-by: default avatarSandeep Penigalapati <sandeep.penigalapati@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    b3be918d
ice_eswitch.c 14.2 KB