From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 13FCF42B27; Tue, 16 May 2023 19:56:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E121F406B6; Tue, 16 May 2023 19:56:21 +0200 (CEST) Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) by mails.dpdk.org (Postfix) with ESMTP id D037F4003C; Tue, 16 May 2023 19:56:19 +0200 (CEST) Received: by mail-vk1-f178.google.com with SMTP id 71dfb90a1353d-4501ca552a3so7690249e0c.2; Tue, 16 May 2023 10:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684259779; x=1686851779; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wc2dSzo2sxhwFa8O7DFCLGeGG2RbqSpws24GnnaIT9Y=; b=pQ36uf5gezIFw5d/dPo76FPNbZ199AebJIDsBEj6Pwq/PWuqxfQGfgOOzjx/CCXfBt jOTIXXSxcMbsfkGStwCyjMxLUrVFjcG+50hB5yboWrvj1JQ2AM1IxSYaHZRi4uHnyXQS IceQ3jkkzGI2D6JoKqoaGGXTB/+C/NSOaAkgEtUkB9Zmlw7dEormp5i4eWy7VhXG9tsJ Eb8D44GbKHsEhwuoWHQ+tzr22p7XDF4xGYvfEew9wZ3BOzApgX7sxvE7inWf0+DXtJo8 spa8T/z0rUWXewCXNzZzgc4UpM37w/2nqvacU7qZ5X8wcTH78WGrwKuA8XBRFvFWUSDX JNig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684259779; x=1686851779; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wc2dSzo2sxhwFa8O7DFCLGeGG2RbqSpws24GnnaIT9Y=; b=WKIjqout7oFNMvuQoT0KviOlTuENu0RL92IX+3MllUQwYo+7rybZZzo7uLAPy3EJHL Y2nlxC4ClVJBDTRdikKbZNPrqOgCZFaU8OXPiZy+xECTQJ7/nNQYxid14znPDYvxjlWI 7ZkQlop2CQKFvGf2oWUtbalQFLGiefhiPBSuQw5PxGXnfE5JKJvLs1fnAKbd+S+HNds5 2DdoBwNu5CW9npyO2VduTvqwGbLjL5gsVZzmLh9r/oKDMGHeVrY9at92PnU0Xy4kXtWj vpsjpmmCX4n8DnojrOjNDPb2VTRB+vT0+jdmKlAdWGLMj+408c6ixJ+3ZDAafMeO7D26 Zf1A== X-Gm-Message-State: AC+VfDz625EXnwqOrTl32Rhrs/SVWQEk6/lGLNcE6PB+mLXsiJ13kqtx vzklHtaOTre6At3ANCdier8s5H02H65tAMnbxxw= X-Google-Smtp-Source: ACHHUZ6FyJUBTgIxU+XuOCiwVumlzwBpWJSQdK6mEDr2FtaeqJVdoSBvxl32UzddsB24uLc2Pv4deIU2E9Vo3f/vhX0= X-Received: by 2002:a1f:3d57:0:b0:453:ae15:8b49 with SMTP id k84-20020a1f3d57000000b00453ae158b49mr6667117vka.12.1684259779103; Tue, 16 May 2023 10:56:19 -0700 (PDT) MIME-Version: 1.0 References: <20230511064029.6532-1-mattias.ronnblom@ericsson.com> In-Reply-To: <20230511064029.6532-1-mattias.ronnblom@ericsson.com> From: Jerin Jacob Date: Tue, 16 May 2023 23:25:52 +0530 Message-ID: Subject: Re: [PATCH] event/dsw: free rings on close To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: jerinj@marvell.com, hofors@lysator.liu.se, dev@dpdk.org, stable@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, May 11, 2023 at 12:17=E2=80=AFPM Mattias R=C3=B6nnblom 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/st= op") > Cc: stable@dpdk.org > > Signed-off-by: Mattias R=C3=B6nnblom 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 =3D dsw_pmd_priv(dev); > + uint16_t port_id; > + > + for (port_id =3D 0; port_id < dsw->num_ports; port_id++) > + dsw_port_release(&dsw->ports[port_id]); > > dsw->num_ports =3D 0; > dsw->num_queues =3D 0; > -- > 2.34.1 >