Skip to content
  • Parav Pandit's avatar
    5bef709d
    net/mlx5: Enable host PF HCA after eswitch is initialized · 5bef709d
    Parav Pandit authored
    
    
    Currently ECPF enables external host PF too early in the initialization
    sequence for Ethernet links when ECPF is eswitch manager.
    
    Due to this, when external host PF driver is loaded, host PF's HCA CAP has
    inner_ip_version supported by NIC RX flow table.
    This capability is later updated by firmware after ECPF driver enables
    ENCAP/DECAP as eswitch manager.
    
    This results into a timing race condition, where CREATE_TIR command
    fails with a below syndrome on host PF.
    
    mlx5_cmd_check:775:(pid 510): CREATE_TIR(0x900) op_mod(0x0) failed,
    status bad parameter(0x3), syndrome (0x562b00)
    
    Hence, enable the external host PF after necessary eswitch and per vport
    initialization is completed.
    Continue to enable host PF when eswitch manager capability is off for a
    ECPF.
    
    Signed-off-by: default avatarParav Pandit <parav@nvidia.com>
    Reviewed-by: default avatarBodong Wang <bodong@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    5bef709d
    net/mlx5: Enable host PF HCA after eswitch is initialized
    Parav Pandit authored
    
    
    Currently ECPF enables external host PF too early in the initialization
    sequence for Ethernet links when ECPF is eswitch manager.
    
    Due to this, when external host PF driver is loaded, host PF's HCA CAP has
    inner_ip_version supported by NIC RX flow table.
    This capability is later updated by firmware after ECPF driver enables
    ENCAP/DECAP as eswitch manager.
    
    This results into a timing race condition, where CREATE_TIR command
    fails with a below syndrome on host PF.
    
    mlx5_cmd_check:775:(pid 510): CREATE_TIR(0x900) op_mod(0x0) failed,
    status bad parameter(0x3), syndrome (0x562b00)
    
    Hence, enable the external host PF after necessary eswitch and per vport
    initialization is completed.
    Continue to enable host PF when eswitch manager capability is off for a
    ECPF.
    
    Signed-off-by: default avatarParav Pandit <parav@nvidia.com>
    Reviewed-by: default avatarBodong Wang <bodong@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Loading