patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] net/softnic: initialize meter policy list before use
@ 2021-04-29  7:06 dapengx.yu
  2021-04-29  7:48 ` Dumitrescu, Cristian
  0 siblings, 1 reply; 3+ messages in thread
From: dapengx.yu @ 2021-04-29  7:06 UTC (permalink / raw)
  To: Jasvinder Singh, Cristian Dumitrescu; +Cc: dev, Dapeng Yu, stable

From: Dapeng Yu <dapengx.yu@intel.com>

Initialize meter policy list before use to avoid segment fault

Fixes: 0d73ddf25faa ("net/softnic: add meter profile")
Cc: stable@dpdk.org

Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
---
 drivers/net/softnic/rte_eth_softnic_meter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_softnic_meter.c
index acb8b87fd..5831892a3 100644
--- a/drivers/net/softnic/rte_eth_softnic_meter.c
+++ b/drivers/net/softnic/rte_eth_softnic_meter.c
@@ -17,6 +17,9 @@ softnic_mtr_init(struct pmd_internals *p)
 	/* Initialize meter profiles list */
 	TAILQ_INIT(&p->mtr.meter_profiles);
 
+	/* Initialize meter policies list */
+	TAILQ_INIT(&p->mtr.meter_policies);
+
 	/* Initialize MTR objects list */
 	TAILQ_INIT(&p->mtr.mtrs);
 
-- 
2.27.0


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

* Re: [dpdk-stable] [PATCH] net/softnic: initialize meter policy list before use
  2021-04-29  7:06 [dpdk-stable] [PATCH] net/softnic: initialize meter policy list before use dapengx.yu
@ 2021-04-29  7:48 ` Dumitrescu, Cristian
  2021-04-29 14:12   ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Dumitrescu, Cristian @ 2021-04-29  7:48 UTC (permalink / raw)
  To: Yu, DapengX, Singh, Jasvinder; +Cc: dev, stable



> -----Original Message-----
> From: Yu, DapengX <dapengx.yu@intel.com>
> Sent: Thursday, April 29, 2021 8:06 AM
> To: Singh, Jasvinder <jasvinder.singh@intel.com>; Dumitrescu, Cristian
> <cristian.dumitrescu@intel.com>
> Cc: dev@dpdk.org; Yu, DapengX <dapengx.yu@intel.com>; stable@dpdk.org
> Subject: [PATCH] net/softnic: initialize meter policy list before use
> 
> From: Dapeng Yu <dapengx.yu@intel.com>
> 
> Initialize meter policy list before use to avoid segment fault
> 
> Fixes: 0d73ddf25faa ("net/softnic: add meter profile")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
> ---
>  drivers/net/softnic/rte_eth_softnic_meter.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c
> b/drivers/net/softnic/rte_eth_softnic_meter.c
> index acb8b87fd..5831892a3 100644
> --- a/drivers/net/softnic/rte_eth_softnic_meter.c
> +++ b/drivers/net/softnic/rte_eth_softnic_meter.c
> @@ -17,6 +17,9 @@ softnic_mtr_init(struct pmd_internals *p)
>  	/* Initialize meter profiles list */
>  	TAILQ_INIT(&p->mtr.meter_profiles);
> 
> +	/* Initialize meter policies list */
> +	TAILQ_INIT(&p->mtr.meter_policies);
> +
>  	/* Initialize MTR objects list */
>  	TAILQ_INIT(&p->mtr.mtrs);
> 
> --
> 2.27.0

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


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

* Re: [dpdk-stable] [dpdk-dev] [PATCH] net/softnic: initialize meter policy list before use
  2021-04-29  7:48 ` Dumitrescu, Cristian
@ 2021-04-29 14:12   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2021-04-29 14:12 UTC (permalink / raw)
  To: Dumitrescu, Cristian, Yu, DapengX, Singh, Jasvinder; +Cc: dev, stable

On 4/29/2021 8:48 AM, Dumitrescu, Cristian wrote:
> 
> 
>> -----Original Message-----
>> From: Yu, DapengX <dapengx.yu@intel.com>
>> Sent: Thursday, April 29, 2021 8:06 AM
>> To: Singh, Jasvinder <jasvinder.singh@intel.com>; Dumitrescu, Cristian
>> <cristian.dumitrescu@intel.com>
>> Cc: dev@dpdk.org; Yu, DapengX <dapengx.yu@intel.com>; stable@dpdk.org
>> Subject: [PATCH] net/softnic: initialize meter policy list before use
>>
>> From: Dapeng Yu <dapengx.yu@intel.com>
>>
>> Initialize meter policy list before use to avoid segment fault
>>
>> Fixes: 0d73ddf25faa ("net/softnic: add meter profile")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
net/softnic: initialize meter policy list before use
> 
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> 

Applied to dpdk-next-net/main, thanks.

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

end of thread, other threads:[~2021-04-29 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29  7:06 [dpdk-stable] [PATCH] net/softnic: initialize meter policy list before use dapengx.yu
2021-04-29  7:48 ` Dumitrescu, Cristian
2021-04-29 14:12   ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git