From: Jerin Jacob <jerinjacobk@gmail.com>
To: "Mattias Rönnblom" <mattias.ronnblom@ericsson.com>
Cc: jerinj@marvell.com, hofors@lysator.liu.se, dev@dpdk.org, stable@dpdk.org
Subject: Re: [PATCH] event/dsw: free rings on close
Date: Tue, 16 May 2023 23:25:52 +0530 [thread overview]
Message-ID: <CALBAE1Nao_z4i9D17BCKzBQ0Z_Z-cpOtVQ=0cG7q7Qz_X1kcow@mail.gmail.com> (raw)
In-Reply-To: <20230511064029.6532-1-mattias.ronnblom@ericsson.com>
On Thu, May 11, 2023 at 12:17 PM Mattias Rönnblom
<mattias.ronnblom@ericsson.com> wrote:
>
> The per-port data and control rings were not freed when the event
> device was closed.
>
> Fixes: 1c8e3caa3bfb ("event/dsw: add event scheduling and device start/stop")
> Cc: stable@dpdk.org
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
Updated the git commit as follows and applied to
dpdk-next-net-eventdev/for-main. Thanks
> ---
> drivers/event/dsw/dsw_evdev.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c
> index ffabf0d23d..6c5cde2468 100644
> --- a/drivers/event/dsw/dsw_evdev.c
> +++ b/drivers/event/dsw/dsw_evdev.c
> @@ -363,6 +363,10 @@ static int
> dsw_close(struct rte_eventdev *dev)
> {
> struct dsw_evdev *dsw = dsw_pmd_priv(dev);
> + uint16_t port_id;
> +
> + for (port_id = 0; port_id < dsw->num_ports; port_id++)
> + dsw_port_release(&dsw->ports[port_id]);
>
> dsw->num_ports = 0;
> dsw->num_queues = 0;
> --
> 2.34.1
>
prev parent reply other threads:[~2023-05-16 17:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-11 6:40 Mattias Rönnblom
2023-05-16 17:55 ` Jerin Jacob [this message]
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='CALBAE1Nao_z4i9D17BCKzBQ0Z_Z-cpOtVQ=0cG7q7Qz_X1kcow@mail.gmail.com' \
--to=jerinjacobk@gmail.com \
--cc=dev@dpdk.org \
--cc=hofors@lysator.liu.se \
--cc=jerinj@marvell.com \
--cc=mattias.ronnblom@ericsson.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).