net/mlx5e: Support XDP over Striding RQ
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / en_main.c
index bba2fa0aa15f5a067a4320c0458b82934032248e..b03a2327356afe14e10d93c98146ed3146115618 100644 (file)
@@ -200,7 +200,8 @@ bool mlx5e_striding_rq_possible(struct mlx5_core_dev *mdev,
                                struct mlx5e_params *params)
 {
        return mlx5e_check_fragmented_striding_rq_cap(mdev) &&
-               !params->xdp_prog && !MLX5_IPSEC_DEV(mdev);
+               !MLX5_IPSEC_DEV(mdev) &&
+               !(params->xdp_prog && !mlx5e_rx_mpwqe_is_linear_skb(mdev, params));
 }
 
 void mlx5e_set_rq_type(struct mlx5_core_dev *mdev, struct mlx5e_params *params)