• Maor Gottlieb's avatar
    IB/mlx5: Add tunneling offloads support · f95ef6cb
    Maor Gottlieb authored
    The device can support receive Stateless Offloads for the inner
    packet's fields only when the packet is processed by TIR which is
    enabled to support tunneling. Otherwise, the device treats the
    packet as an ordinary non-tunneling packet and receive offloads
    can be done only for the outer packet's field.
    In order to enable receive Stateless Offloading support for incoming
    tunneling traffic the TIR should be created with tunneled_offload_en.
    Tunneling offloads is supported only be raw ethernet QP.
    
    This patch includes:
    * New QP creation flag for tunneling offloads.
    * Reports device capabilities.
    Signed-off-by: default avatarMaor Gottlieb <maorg@mellanox.com>
    Reviewed-by: default avatarMark Bloch <markb@mellanox.com>
    Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    f95ef6cb
main.c 114 KB