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 241AD4246A; Mon, 23 Jan 2023 14:20:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD24C400EF; Mon, 23 Jan 2023 14:20:46 +0100 (CET) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) by mails.dpdk.org (Postfix) with ESMTP id D2872400D4 for ; Mon, 23 Jan 2023 14:20:45 +0100 (CET) Received: by mail-ua1-f45.google.com with SMTP id a40so2845849uad.12 for ; Mon, 23 Jan 2023 05:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sr/G6hJe8Ds1NIHPl1eSRtBQhozZChGHs56lozp7t68=; b=g7AOvOpUGmrttsoU0/dvhkpmdvhFOji07keaAJFstmhX8LTCT2wIjpkr3zeF5che9n IYuE2dFY0NSJJfGzUl1nb5O4CDvFXK0Mm1Z1Q5ZHM3ERi1cWfseDoqsO3ZZIU+rTjSSA kWMmxLrepm9690KSf59YzEhFj/NuRMXLI2gALviTgx7F6O76TuzauLELnCpjSwrRGMaI NBMnqNWm3IgQpzKotOCWQA8WJd5wuoQniXNoGPEt6Ehd/zFpxK8vVc1KbGznnK6yJaYu 0f0VUz9mM+oktuIg7/Uq4vs+QgbJv26ywbm8mHqJC9LIhT2CoO09sBz5GiKBVYVCk5Uq 2J5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=sr/G6hJe8Ds1NIHPl1eSRtBQhozZChGHs56lozp7t68=; b=GM3afAo96H1K6cCms8coV8qLwNGrExKZPzifYhKw1vy50qGGqz/8IFbvQ3AzqMT4Py k89bYpdEsa9cU8sdYyI9S2wppgo2BEOAz193kEUIMjkcQPOi/c56U1Sn+rUkGZJtQZfb 2HaDwDrTHkW8+GCO6p0d4linPDmHnp4+7HhxF6u5+VCTTe+WIKiA10ac87IZM25N83Uq u22a0LwOyreJWU6U5CFK1/Cs197DQulspnuX8mjcDr+WCPU7u/4+Vr6WB+f0gSLHBAMu GAjd6G5940xF+vIb0L8icoEx5o4Tn8nRGLOPcJnRtV7wLoJp+NgFj9TfF9FhU7KAarPp uQOg== X-Gm-Message-State: AFqh2koaMzDZ/SeQfvddCiO//GKBqhM+I4BCVrAf3ZQ3UM7ArD4er1y0 JzZBzCnw8TSyGIBrZs7QNU9pwrnb4QYkAbBPMmU= X-Google-Smtp-Source: AMrXdXuPpIQ1qKCfQCUcxPh1aBLJgp2i0UAg4xu8GTe6lEBDCJngSe7NZOlIG2hmBl1+s8G2V45bdOmB7XyL74H2v34= X-Received: by 2002:ab0:3b02:0:b0:55a:a7aa:76f with SMTP id n2-20020ab03b02000000b0055aa7aa076fmr2637796uaw.15.1674480045115; Mon, 23 Jan 2023 05:20:45 -0800 (PST) MIME-Version: 1.0 References: <20221221090017.3715030-2-rongweil@nvidia.com> <20230118154447.595231-1-rongweil@nvidia.com> <20230118154447.595231-4-rongweil@nvidia.com> In-Reply-To: <20230118154447.595231-4-rongweil@nvidia.com> From: Jerin Jacob Date: Mon, 23 Jan 2023 18:50:19 +0530 Message-ID: Subject: Re: [PATCH v4 3/3] ethdev: add standby flags for live migration To: Rongwei Liu Cc: dev@dpdk.org, matan@nvidia.com, viacheslavo@nvidia.com, orika@nvidia.com, thomas@monjalon.net, stephen@networkplumber.org, rasland@nvidia.com, Ferruh Yigit , Andrew Rybchenko Content-Type: text/plain; charset="UTF-8" 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 Wed, Jan 18, 2023 at 9:15 PM Rongwei Liu wrote: > > Some flags are added to the process state API for live migration > in order to change the behavior of the flow rules in a standby process. > > Signed-off-by: Rongwei Liu > --- > lib/ethdev/rte_ethdev.h | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index 1505396ced..9ae4f426a7 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -2260,6 +2260,27 @@ int rte_eth_dev_owner_get(const uint16_t port_id, > __rte_experimental > int rte_eth_process_set_role(bool standby, uint32_t flags); > > +/**@{@name Process role flags > + * used when migrating from an application to another one. > + * @see rte_eth_process_set_active > + */ > +/** > + * When set on a standby process, ingress flow rules will be effective > + * in active and standby processes, so the ingress traffic may be duplicated. > + */ > +#define RTE_ETH_PROCESS_FLAG_STANDBY_DUP_FLOW_INGRESS RTE_BIT32(0) How to duplicate if action has statefull items for example, rte_flow_action_security::security_session -> it store the live pointer rte_flow_action_meter::mtr_id; -> MTR object ID created with rte_mtr_create()