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 08A72A0C41; Wed, 6 Oct 2021 19:15:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86D9741136; Wed, 6 Oct 2021 19:15:20 +0200 (CEST) Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by mails.dpdk.org (Postfix) with ESMTP id 4031740696 for ; Wed, 6 Oct 2021 19:15:19 +0200 (CEST) Received: by mail-il1-f172.google.com with SMTP id w10so3565099ilc.13 for ; Wed, 06 Oct 2021 10:15:19 -0700 (PDT) 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=HjMFhqsEFRWQoOdxGMY5touE1BCe+akp9riHMrgJ8po=; b=BHL+v4OId4+SeHuwWY48HVgGzoyDpeiGpopAY8YHfbX354ztEfnkoWLzEurbvgPENR U11Xx7YEMfO8LAUTYTyGrXFSI/raHMgtFN5MHypv2jsif1OvXFTPWHvcOa6aYYTopBfA K9LmzYHqomlDhaQrQpUd7lOzKeolCpzSbylf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HjMFhqsEFRWQoOdxGMY5touE1BCe+akp9riHMrgJ8po=; b=7/OlpJJQtYwzBFVEywPCAolMDIc5aZdTZ3D1+sGVLpoNNzxtxJHETjbN7RO0ExGffq 8HoQchm8u+rjD/1TJMrkXzEq1dqcS8EwsBNIYvFe+viU+PRRDwW52wRyetwdVTA2kJAK NqMfxZUkXoeuGbiHPzYDRAgHxzewQOolDvSIWus6Zuf0Hmvz156JtyOKuPFyeq3So5JP dB2DV22dfG+Qsiv1lpza5Oy8FQOGAw0/tlc5UWOYNGR6vNRTiPxh/5a75kEDfq9R7P4m SorB2UVkAIxZGUmJTmRyRDTUDTai/c8nylnGMIrFxP61e4jSzgwRx1Q6GjvffA5fRi3C HRxw== X-Gm-Message-State: AOAM532ZcTbaE/3y0edn7vI2NFzcG1/S4dhZhoY6wViE7KqbWCyQ+UJN rvfV+A91tdJi2hE698U8cUX3LyYJNz13F+LCvLfAtg== X-Google-Smtp-Source: ABdhPJxifYdQ+2jAbfl80dbZzeFGU1EEI+WJOSF7EFu/KtKVPWdlXLk1CLW5S8xfkcqMPtcjauTC8Fi4bTMidIAPimE= X-Received: by 2002:a05:6e02:c2f:: with SMTP id q15mr8347603ilg.255.1633540518557; Wed, 06 Oct 2021 10:15:18 -0700 (PDT) MIME-Version: 1.0 References: <20211005005216.2427489-1-dkozlyuk@nvidia.com> <20211005005216.2427489-2-dkozlyuk@nvidia.com> In-Reply-To: <20211005005216.2427489-2-dkozlyuk@nvidia.com> From: Ajit Khaparde Date: Wed, 6 Oct 2021 10:15:02 -0700 Message-ID: To: dkozlyuk@oss.nvidia.com Cc: dpdk-dev , Ori Kam , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000005a005705cdb24a31" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH 1/5] ethdev: add capability to keep flow rules on restart 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 Sender: "dev" --0000000000005a005705cdb24a31 Content-Type: text/plain; charset="UTF-8" On Mon, Oct 4, 2021 at 5:52 PM wrote: > > From: Dmitry Kozlyuk > > Currently, it is not specified what happens to the flow rules when > the device is stopped, possibly reconfigured, then started. > If flow rules were kept, it could be convenient for application > developers, because they wouldn't need to save and restore them. > However, due to the number of flows and possible creation rate it is > impractical to save all flow rules in DPDK layer. This means that flow > rules persistence really depends on whether PMD and HW can implement it > efficiently. It is proposed for PMDs to advertise this capability > if supported using a new flag. > > If the device is being reconfigured in a way that is incompatible with > existing flow rules, PMD is required to report an error. > This is mandatory, because flow API does not supply users with > capabilities, so this is the only way for a user to learn that > configuration is invalid. For example, if queue count changes and the > action of a flow rule specifies queues that are going away, the user > must update or remove the flow rule before removing the queues. > > Signed-off-by: Dmitry Kozlyuk Acked-by: Ajit Khaparde --0000000000005a005705cdb24a31--