• Maor Dickman's avatar
    net/mlx5: E-switch, Fix wrong usage of source port rewrite in split rules · 1313d78a
    Maor Dickman authored
    In few cases, rules with mirror use case are split to two FTEs, one which
    do the mirror action and forward to second FTE which do the rest of the rule
    actions and the second redirect action.
    In case of mirror rules which do split and forward to ovs internal port or
    VF stack devices, source port rewrite should be used in the second FTE but
    it is wrongly also set in the first FTE which break the offload.
    
    Fix this issue by removing the wrong check if source port rewrite is needed to
    be used on the first FTE of the split and instead return EOPNOTSUPP which will
    block offload of rules which mirror to ovs internal port or VF stack devices
    which isn't supported.
    
    Fixes: 10742efc ("net/mlx5e: VF tunnel TX traffic offloading")
    Fixes: a508728a ("net/mlx5e: VF tunnel RX traffic offloading")
    Signed-off-by: default avatarMaor Dickman <maord@nvidia.com>
    Reviewed-by: default avatarRoi Dayan <roid@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    1313d78a
eswitch_offloads.c 110 KB