• Liu, Changcheng's avatar
    RDMA/mlx5: Don't set tx affinity when lag is in hash mode · a83bb5df
    Liu, Changcheng authored
    In hash mode, without setting tx affinity explicitly, the port select
    flow table decides which port is used for the traffic.
    If port_select_flow_table_bypass capability is supported and tx affinity
    is set explicitly for QP/TIS, they will be added into the explicit affinity
    table in FW to check which port is used for the traffic.
    1. The overloaded explicit affinity table may affect performance.
       To avoid this, do not set tx affinity explicitly by default.
    2. The packets of the same flow need to be transmitted on the same port.
       Because the packets of the same flow use different QPs in slow & fast
       path, it shouldn't set tx affinity explicitly for these QPs.
    Signed-off-by: default avatarLiu, Changcheng <jerrliu@nvidia.com>
    Reviewed-by: default avatarMark Bloch <mbloch@nvidia.com>
    Reviewed-by: default avatarVlad Buslov <vladbu@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    a83bb5df
mlx5_ib.h 42.7 KB