From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98F21A04B1 for ; Tue, 24 Nov 2020 15:43:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 17E48C934; Tue, 24 Nov 2020 15:43:12 +0100 (CET) Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) by dpdk.org (Postfix) with ESMTP id 2F82FC926 for ; Tue, 24 Nov 2020 15:43:09 +0100 (CET) Received: by mail-oi1-f195.google.com with SMTP id c80so24024032oib.2 for ; Tue, 24 Nov 2020 06:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CRL8x4fEmFRne/vfXqwHYrDiYqh/7Vubj9gWSlaBswk=; b=PNIY3eOUp2f5p2kr+VLRygYOqM68N2lKCB4JPjQKPuwoKdSchXQaYxr3UoZUryzx6j dd81WWWsZoLi6lM8F+euB0kwI8Scn7X0GPQYMPmOPMKqB6qeUB01NQJIgItrbHL3QWQl IeowzWjfQhKbvcpl7/0tURbjxaAGiJuC2SVQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CRL8x4fEmFRne/vfXqwHYrDiYqh/7Vubj9gWSlaBswk=; b=oPhq8B80k1hayw+Egq/sQW73Tv0nMVAuLgrcE4mpXgT8LFfVmnZvo2X6Jelz13/L/9 BdQS7I8vA4Fjuw3b5JZ6SeRuMk2/xaR3IpnbkffCCGuHDWQAanGQ0byxQMvZVYlmZYcY efwwQsDm03+FBM2VpLqEacLF1ZlkbHQIINjd8evysmLYfQiT2eGD/dCm7EPJ8FdBRNKr ml+tofNnpFtOfXEC3e30J74QoW4Sh/kET86ZwYjx6gClwQmyZGcxBVhnhdEMXHEuwYLO rkE6l6A0m2yurXMt6l1iil0GmWxBiAGSKJ4SdSH023lbWXUqKRiXZSAI5akx/kGHrI1x 4/Xw== X-Gm-Message-State: AOAM531N4RPYSF2KRoUf9eS5Cc/i8w4l4GScGU66AS9XhkULMjGwtFW8 NUceZG6JewW8EnZWQdUmMx9NjIxrpMn/iMg/miazuQ== X-Google-Smtp-Source: ABdhPJwILYykAI2tMdXFnPD4aDd/s7d8MlwGrE9vFHJue6TN1KazvjnIKkz2M6HnUUtBgF2V2Lx2CZ1JcTH/Iw0jgJA= X-Received: by 2002:aca:ecca:: with SMTP id k193mr2986853oih.27.1606228987468; Tue, 24 Nov 2020 06:43:07 -0800 (PST) MIME-Version: 1.0 References: <20200811061443.8214-1-getelson@nvidia.com> In-Reply-To: <20200811061443.8214-1-getelson@nvidia.com> From: Ajit Khaparde Date: Tue, 24 Nov 2020 06:42:51 -0800 Message-ID: To: Gregory Etelson Cc: dpdk-dev , Matan Azrad , Raslan Darawsheh , dpdk stable , Ori Kam , Wenzhuo Lu , Beilei Xing , Bernard Iremonger Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] app/testpmd: fix flow rules list after port stop X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Mon, Aug 10, 2020 at 11:15 PM Gregory Etelson wrote: > > According to current RTE API, port flow rules must not be kept > after port stop. > > Testpmd did not flush port flow rules after `port stop' command was > called. As the result, after the port was restarted, it showed bogus > flow rules. > > Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") > > Cc: stable@dpdk.org > > Signed-off-by: Gregory Etelson > Acked-by: Ori Kam Acked-by: Ajit Khaparde > --- > app/test-pmd/testpmd.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 7842c3b781..4ba5c41c6e 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -2627,6 +2627,9 @@ stop_port(portid_t pid) > RTE_PORT_HANDLING) == 0) > continue; > > + if (port->flow_list) > + port_flow_flush(pi); > + > rte_eth_dev_stop(pi); > > if (rte_atomic16_cmpset(&(port->port_status), > -- > 2.25.1 >