• Dima Chumak's avatar
    net/mlx5e: Consider geneve_opts for encap contexts · 929a2fad
    Dima Chumak authored
    Current algorithm for encap keys is legacy from initial vxlan
    implementation and doesn't take into account all possible fields of a
    tunnel. For example, for a Geneve tunnel, which may have additional TLV
    options, they are ignored when comparing encap keys and a rule can be
    attached to an incorrect encap entry.
    
    Fix that by introducing encap_info_equal() operation in
    struct mlx5e_tc_tunnel. Geneve tunnel type uses custom implementation,
    which extends generic algorithm and considers options if they are set.
    
    Fixes: 7f1a546e ("net/mlx5e: Consider tunnel type for encap contexts")
    Signed-off-by: default avatarDima Chumak <dchumak@nvidia.com>
    Reviewed-by: default avatarVlad Buslov <vladbu@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    929a2fad
tc_tun_gre.c 3.04 KB