DPDK patches and discussions
 help / color / mirror / Atom feed
From: Kevin Traynor <ktraynor@redhat.com>
To: Alex Kiselev <alex@therouter.net>,
	dev@dpdk.org, Bruce Richardson <bruce.richardson@intel.com>
Cc: stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] rte_lpm6: fix incorrect size of tbl8 group
Date: Wed, 8 Apr 2020 14:38:54 +0100	[thread overview]
Message-ID: <026c5998-e22c-18a3-9c34-fc9472be1180@redhat.com> (raw)
In-Reply-To: <f95173f8077f000d11b6881d9ebf6c88@therouter.net>

On 08/04/2020 14:07, Alex Kiselev wrote:
> rte_lpm6: fix incorrect size of tbl8 group
> Fixes: e480688dce6d ("lpm6: add incremental update on delete")

Cc: stable@dpdk.org

Thanks for Cc'ing stable. It is better to add the tag directly in the
commit message as we automate checking for the tag in dpdk master commit
messages to indicate it is requested for backport. Probably maintainer
can add on commit..

> 
> Signed-off-by: Alex Kiselev <alex@therouter.net>
> ---
>   lib/librte_lpm/rte_lpm6.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/librte_lpm/rte_lpm6.c b/lib/librte_lpm/rte_lpm6.c
> index 1047efa8a..f5979fb15 100644
> --- a/lib/librte_lpm/rte_lpm6.c
> +++ b/lib/librte_lpm/rte_lpm6.c
> @@ -726,7 +726,8 @@ add_step(struct rte_lpm6 *lpm, struct 
> rte_lpm6_tbl_entry *tbl,
>   			tbl8_group_start = tbl8_gindex *
>   					RTE_LPM6_TBL8_GROUP_NUM_ENTRIES;
>   			memset(&lpm->tbl8[tbl8_group_start], 0,
> -					  RTE_LPM6_TBL8_GROUP_NUM_ENTRIES);
> +					RTE_LPM6_TBL8_GROUP_NUM_ENTRIES *
> +					sizeof(struct rte_lpm6_tbl_entry));
> 
>   			/* init the new table's header:
>   			 *   save the reference to the owner table
> --
> 2.16.1
> 


  parent reply	other threads:[~2020-04-08 13:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <114e2ae0-3eb7-45c0-8ec8-d60507a9c862@orsmsx101.amr.corp.intel.com>
2020-04-08 12:28 ` Bruce Richardson
2020-04-08 13:07   ` Alex Kiselev
2020-04-08 13:11     ` Bruce Richardson
2020-04-24 17:09       ` Thomas Monjalon
2020-04-08 13:38     ` Kevin Traynor [this message]
     [not found] <20200407131551.549E32BE9@dpdk.org>
2020-04-16 13:09 ` Andrzej Ostruszka [C]
2020-04-07 11:52 Alex Kiselev

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=026c5998-e22c-18a3-9c34-fc9472be1180@redhat.com \
    --to=ktraynor@redhat.com \
    --cc=alex@therouter.net \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --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).