patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] sched: fix for demo failure in debug mode
@ 2023-01-05 12:28 Megha Ajmera
  2023-01-09 13:27 ` Dumitrescu, Cristian
  0 siblings, 1 reply; 3+ messages in thread
From: Megha Ajmera @ 2023-01-05 12:28 UTC (permalink / raw)
  To: dev, jasvinder.singh, cristian.dumitrescu; +Cc: stable

This issue is happening due to non-initialization of some
fields in “rte_eth_rxconf” structure in our application.
Doing a memset to zero before initialization in HQoS application.

Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
---
 examples/qos_sched/init.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
index 0709aec10c..d28350e14a 100644
--- a/examples/qos_sched/init.c
+++ b/examples/qos_sched/init.c
@@ -79,6 +79,7 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
 	if (app_inited_port_mask & (1u << portid))
 		return 0;
 
+	memset(&rx_conf, 0, sizeof(struct rte_eth_rxconf));
 	rx_conf.rx_thresh.pthresh = rx_thresh.pthresh;
 	rx_conf.rx_thresh.hthresh = rx_thresh.hthresh;
 	rx_conf.rx_thresh.wthresh = rx_thresh.wthresh;
@@ -86,6 +87,7 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
 	rx_conf.rx_drop_en = 0;
 	rx_conf.rx_deferred_start = 0;
 
+	memset(&tx_conf, 0, sizeof(struct rte_eth_txconf));
 	tx_conf.tx_thresh.pthresh = tx_thresh.pthresh;
 	tx_conf.tx_thresh.hthresh = tx_thresh.hthresh;
 	tx_conf.tx_thresh.wthresh = tx_thresh.wthresh;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] sched: fix for demo failure in debug mode
  2023-01-05 12:28 [PATCH] sched: fix for demo failure in debug mode Megha Ajmera
@ 2023-01-09 13:27 ` Dumitrescu, Cristian
  2023-02-06  7:39   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Dumitrescu, Cristian @ 2023-01-09 13:27 UTC (permalink / raw)
  To: Ajmera, Megha, dev, Singh, Jasvinder; +Cc: stable



> -----Original Message-----
> From: Ajmera, Megha <megha.ajmera@intel.com>
> Sent: Thursday, January 5, 2023 12:29 PM
> To: dev@dpdk.org; Singh, Jasvinder <jasvinder.singh@intel.com>; Dumitrescu,
> Cristian <cristian.dumitrescu@intel.com>
> Cc: stable@dpdk.org
> Subject: [PATCH] sched: fix for demo failure in debug mode
> 
> This issue is happening due to non-initialization of some
> fields in “rte_eth_rxconf” structure in our application.
> Doing a memset to zero before initialization in HQoS application.
> 
> Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
> ---
>  examples/qos_sched/init.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
> index 0709aec10c..d28350e14a 100644
> --- a/examples/qos_sched/init.c
> +++ b/examples/qos_sched/init.c


Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sched: fix for demo failure in debug mode
  2023-01-09 13:27 ` Dumitrescu, Cristian
@ 2023-02-06  7:39   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2023-02-06  7:39 UTC (permalink / raw)
  To: Ajmera, Megha; +Cc: dev, Singh, Jasvinder, stable, Dumitrescu, Cristian

> > This issue is happening due to non-initialization of some
> > fields in “rte_eth_rxconf” structure in our application.
> > Doing a memset to zero before initialization in HQoS application.
> > 
> > Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
> > ---
> >  examples/qos_sched/init.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
> > index 0709aec10c..d28350e14a 100644
> > --- a/examples/qos_sched/init.c
> > +++ b/examples/qos_sched/init.c
> 
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

Fixes: de3cfa2c9823 ("sched: initial import")
Cc: stable@dpdk.org

Applied, thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-06  7:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05 12:28 [PATCH] sched: fix for demo failure in debug mode Megha Ajmera
2023-01-09 13:27 ` Dumitrescu, Cristian
2023-02-06  7:39   ` Thomas Monjalon

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).