• Yishai Hadas's avatar
    IB/mlx5: Add support for multi underlay QP · a550ddfc
    Yishai Hadas authored
    Set underlay QPN as part of flow rule when it's applicable.
    
    There is one root flow table in the NIC RX namespace and all the
    underlay QPs steer the traffic to this flow table.
    In order to prevent QP to get traffic which is not target to its
    underlay QP, we need to set the underlay QP number as part of
    the steering matching.
    
    Note:
    When multicast traffic is sent the QPN filtering is done by the firmware
    as some early step. Adding the QPN match on the flow table entry is
    wrong as by that time the target QPN holds the multicast address (e.g.
    FF(s)) and it won't match.
    Signed-off-by: default avatarYishai Hadas <yishaih@mellanox.com>
    Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    a550ddfc
main.c 112 KB