• Yevgeny Kliteynik's avatar
    net/mlx5e: Enable setting multiple match criteria for flow group · d4a18e16
    Yevgeny Kliteynik authored
    When filling in flow spec match criteria, to allow previous
    modifications of the match criteria, use "|=" rather than "=".
    
    Tunnel options are parsed before the match criteria of the offloaded
    flow are being set. If the the flow that we're about to offload has
    encapsulation options, the flow group might need to match on additional
    criteria.
    
    For Geneve, an additional flow group matching parameter should
    be used - misc3. The appropriate bit in the match criteria is set
    while parsing the tunnel options, so the criteria value shouldn't
    be overwritten.
    
    This is a pre-step for supporting Geneve TLV options offload.
    Reviewed-by: default avatarOz Shlomo <ozsh@mellanox.com>
    Signed-off-by: default avatarYevgeny Kliteynik <kliteyn@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    d4a18e16
en_tc.c 99.6 KB