> -----Original Message----- > From: Dekel Peled <dek...@mellanox.com> > Sent: Thursday, October 24, 2019 15:47 > To: Matan Azrad <ma...@mellanox.com>; Slava Ovsiienko > <viachesl...@mellanox.com>; Shahaf Shuler <shah...@mellanox.com> > Cc: Ori Kam <or...@mellanox.com>; dev@dpdk.org; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix LRO dependency to include DV flow > > Rx queue for LRO is created using DevX. Flows created on this queue must > use the DV flow engine. > > This patch adds check of dv_flow_en=1 when configuring LRO support on > device spawn. > Documentation is updated accordingly. > > Fixes: 175f1c21d033 ("net/mlx5: check conditions to enable LRO") > Cc: sta...@dpdk.org > > Signed-off-by: Dekel Peled <dek...@mellanox.com> Acked-by: Viacheslav Ovsiienko <viachesl...@mellanox.com>
> --- > doc/guides/nics/mlx5.rst | 2 +- > drivers/net/mlx5/mlx5.c | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index > 600cea7..45fa968 100644 > --- a/doc/guides/nics/mlx5.rst > +++ b/doc/guides/nics/mlx5.rst > @@ -203,7 +203,7 @@ Limitations > > - LRO: > > - - Requires DevX to be enabled. > + - Requires DevX and DV flow to be enabled. > - KEEP_CRC offload cannot be supported with LRO. > - The first mbuf length, without head-room, must be big enough to include > the > TCP header (122B). > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index > b99c5a9..5977d06 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -2033,7 +2033,8 @@ struct mlx5_dev_spawn_data { > if (priv->counter_fallback) > DRV_LOG(INFO, "Use fall-back DV counter > management\n"); > /* Check for LRO support. */ > - if (config.dest_tir && config.hca_attr.lro_cap) { > + if (config.dest_tir && config.hca_attr.lro_cap && > + config.dv_flow_en) { > /* TBD check tunnel lro caps. */ > config.lro.supported = config.hca_attr.lro_cap; > DRV_LOG(DEBUG, "Device supports LRO"); > -- > 1.8.3.1