patches for DPDK stable branches
 help / color / mirror / Atom feed
From: "Dumitrescu, Cristian" <cristian.dumitrescu@intel.com>
To: "Yu, DapengX" <dapengx.yu@intel.com>,
	"Singh, Jasvinder" <jasvinder.singh@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-stable] [PATCH] net/softnic: initialize meter policy list before use
Date: Thu, 29 Apr 2021 07:48:38 +0000	[thread overview]
Message-ID: <DM6PR11MB279605B237A1F2E4F70F4CB1EB5F9@DM6PR11MB2796.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20210429070615.97603-1-dapengx.yu@intel.com>



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


  reply	other threads:[~2021-04-29  7:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29  7:06 dapengx.yu
2021-04-29  7:48 ` Dumitrescu, Cristian [this message]
2021-04-29 14:12   ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR11MB279605B237A1F2E4F70F4CB1EB5F9@DM6PR11MB2796.namprd11.prod.outlook.com \
    --to=cristian.dumitrescu@intel.com \
    --cc=dapengx.yu@intel.com \
    --cc=dev@dpdk.org \
    --cc=jasvinder.singh@intel.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).