* [dpdk-dev] [PATCH] net/mlx5: improve logging of MPRQ selection
@ 2020-04-17 17:20 Alexander Kozyrev
2020-04-21 17:56 ` Raslan Darawsheh
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kozyrev @ 2020-04-17 17:20 UTC (permalink / raw)
To: dev; +Cc: rasland, viacheslavo, stable
MPRQ is silently turned off in case there is not enough
Rx queues configured. Improve the logging to show a
warning in this case to notify a user about the Rx burst
function selected.
Fixes: 7d6bf6b866b8 ("net/mlx5: add Multi-Packet Rx support")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
drivers/net/mlx5/mlx5_rxq.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index 9bc7af6..7a50ec6 100644
--- a/drivers/net/mlx5/mlx5_rxq.c
+++ b/drivers/net/mlx5/mlx5_rxq.c
@@ -1921,19 +1921,22 @@ struct mlx5_rxq_ctrl *
tmpl->rxq.sges_n = sges_n;
max_lro_size = max_rx_pkt_len;
}
- if (mprq_en && !mlx5_rxq_mprq_enabled(&tmpl->rxq))
+ if (config->mprq.enabled && !mlx5_rxq_mprq_enabled(&tmpl->rxq))
DRV_LOG(WARNING,
- "port %u MPRQ is requested but cannot be enabled"
- " (requested: packet size = %u, desc = %u,"
- " stride_sz = %u, stride_num = %u,"
- " supported: min_stride_sz = %u, max_stride_sz = %u).",
- dev->data->port_id, non_scatter_min_mbuf_size, desc,
+ "port %u MPRQ is requested but cannot be enabled\n"
+ " (requested: pkt_sz = %u, desc_num = %u,"
+ " rxq_num = %u, stride_sz = %u, stride_num = %u\n"
+ " supported: min_rxqs_num = %u,"
+ " min_stride_sz = %u, max_stride_sz = %u).",
+ dev->data->port_id, non_scatter_min_mbuf_size,
+ desc, priv->rxqs_n,
config->mprq.stride_size_n ?
(1U << config->mprq.stride_size_n) :
(1U << mprq_stride_size),
config->mprq.stride_num_n ?
(1U << config->mprq.stride_num_n) :
(1U << mprq_stride_nums),
+ config->mprq.min_rxqs_num,
(1U << config->mprq.min_stride_size_n),
(1U << config->mprq.max_stride_size_n));
DRV_LOG(DEBUG, "port %u maximum number of segments per packet: %u",
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mlx5: improve logging of MPRQ selection
2020-04-17 17:20 [dpdk-dev] [PATCH] net/mlx5: improve logging of MPRQ selection Alexander Kozyrev
@ 2020-04-21 17:56 ` Raslan Darawsheh
0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2020-04-21 17:56 UTC (permalink / raw)
To: Alexander Kozyrev, dev; +Cc: Slava Ovsiienko, stable
Hi,
> -----Original Message-----
> From: Alexander Kozyrev <akozyrev@mellanox.com>
> Sent: Friday, April 17, 2020 8:21 PM
> To: dev@dpdk.org
> Cc: Raslan Darawsheh <rasland@mellanox.com>; Slava Ovsiienko
> <viacheslavo@mellanox.com>; stable@dpdk.org
> Subject: [PATCH] net/mlx5: improve logging of MPRQ selection
>
> MPRQ is silently turned off in case there is not enough
> Rx queues configured. Improve the logging to show a
> warning in this case to notify a user about the Rx burst
> function selected.
>
> Fixes: 7d6bf6b866b8 ("net/mlx5: add Multi-Packet Rx support")
> Cc: stable@dpdk.org
>
> Signed-off-by: Alexander Kozyrev <akozyrev@mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
> ---
> drivers/net/mlx5/mlx5_rxq.c | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
> index 9bc7af6..7a50ec6 100644
> --- a/drivers/net/mlx5/mlx5_rxq.c
> +++ b/drivers/net/mlx5/mlx5_rxq.c
> @@ -1921,19 +1921,22 @@ struct mlx5_rxq_ctrl *
> tmpl->rxq.sges_n = sges_n;
> max_lro_size = max_rx_pkt_len;
> }
> - if (mprq_en && !mlx5_rxq_mprq_enabled(&tmpl->rxq))
> + if (config->mprq.enabled && !mlx5_rxq_mprq_enabled(&tmpl-
> >rxq))
> DRV_LOG(WARNING,
> - "port %u MPRQ is requested but cannot be enabled"
> - " (requested: packet size = %u, desc = %u,"
> - " stride_sz = %u, stride_num = %u,"
> - " supported: min_stride_sz = %u, max_stride_sz =
> %u).",
> - dev->data->port_id, non_scatter_min_mbuf_size,
> desc,
> + "port %u MPRQ is requested but cannot be
> enabled\n"
> + " (requested: pkt_sz = %u, desc_num = %u,"
> + " rxq_num = %u, stride_sz = %u, stride_num = %u\n"
> + " supported: min_rxqs_num = %u,"
> + " min_stride_sz = %u, max_stride_sz = %u).",
> + dev->data->port_id, non_scatter_min_mbuf_size,
> + desc, priv->rxqs_n,
> config->mprq.stride_size_n ?
> (1U << config->mprq.stride_size_n) :
> (1U << mprq_stride_size),
> config->mprq.stride_num_n ?
> (1U << config->mprq.stride_num_n) :
> (1U << mprq_stride_nums),
> + config->mprq.min_rxqs_num,
> (1U << config->mprq.min_stride_size_n),
> (1U << config->mprq.max_stride_size_n));
> DRV_LOG(DEBUG, "port %u maximum number of segments per
> packet: %u",
> --
> 1.8.3.1
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-21 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 17:20 [dpdk-dev] [PATCH] net/mlx5: improve logging of MPRQ selection Alexander Kozyrev
2020-04-21 17:56 ` Raslan Darawsheh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).