net/mlx5: fix selection between encap and decap