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 0610FA034F; Mon, 7 Jun 2021 20:31:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8120F40692; Mon, 7 Jun 2021 20:31:27 +0200 (CEST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by mails.dpdk.org (Postfix) with ESMTP id A3C8F4068B for ; Mon, 7 Jun 2021 20:31:25 +0200 (CEST) Received: by mail-qv1-f49.google.com with SMTP id g12so9374623qvx.12 for ; Mon, 07 Jun 2021 11:31:25 -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=P6AuBnV6CDtYPUlSlHLU9IZp4cC5M43qRoxYGGqHG8c=; b=H+p+CKyrZHHZcUet9HFMViHZTviQ2BWMPC+m3Ot+Ez6PUMwYnyjaEIF+gNw5qO/X2t gRLuKs0gDZ3EhhZHJ8aHJBEaWipTcE0cDHGEvZP7wv1R6aDCp6r+MGA4ih6lHqJB0Q5W +OIirbYng7mw7fTU+ZlHSKp3IBoQH8BBzD4t0= 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=P6AuBnV6CDtYPUlSlHLU9IZp4cC5M43qRoxYGGqHG8c=; b=q+F1lkxxzRyjlQ6tN56T/19e3Ic3uwqzvc2iiaho+PIoyzvwwCqElg0DM2HmiTwlEJ ctTQITt2eLvNeI5f0ezq4ogRQkqIOJhzLXAg9nSZPWbk4aYhiFvZizcD7HOl5KUdHmVi tyCclhPfZvpCheSQIFWfLI8RCLuRrKmVjq7uRcEzKp0xrRYnDVreGnkwaB3AidgLaRxx /TM0IEz1BFay9CkrroKU3NnVkvHQ6dWroJ/wNndEZsupwUHJeFZKo7qqR48Nqx200DHr zGZeOw8IuIT1k6AiQMdoN9eG9Pcre3NoblAJkDs7N2TLAHxB9GlrTNCHc0lxaEuvu2fj 3KrA== X-Gm-Message-State: AOAM530KXPONctuZTVmgmaqURSgeSObx6pDLIpUqssjIir2sXfwSjDew YgfLAjLPsUj84+r34EXCvL6+pxyiyITMBgyu0kL4gw== X-Google-Smtp-Source: ABdhPJwVGPmvDI0PKFbBiqm92zeNgsCEjMhB1igOK1PeR7VchoAwYd2g4VzPk38YUQvQBYz1o0oab1rcPsnfi1FohcQ= X-Received: by 2002:a0c:fe62:: with SMTP id b2mr9678112qvv.30.1623090684895; Mon, 07 Jun 2021 11:31:24 -0700 (PDT) MIME-Version: 1.0 References: <20210603031214.19892-1-alvinx.zhang@intel.com> <20210603080352.10924-1-alvinx.zhang@intel.com> In-Reply-To: <20210603080352.10924-1-alvinx.zhang@intel.com> From: Ajit Khaparde Date: Mon, 7 Jun 2021 11:31:08 -0700 Message-ID: To: Alvin Zhang Cc: Qi Zhang , Andrew Rybchenko , dpdk-dev Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000bbb53105c4313fd9" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v2] ethdev: add IPv4 checksum RSS offload type 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" --000000000000bbb53105c4313fd9 Content-Type: text/plain; charset="UTF-8" On Thu, Jun 3, 2021 at 1:04 AM Alvin Zhang wrote: > > This patch defines new RSS offload type for IPv4 checksum, > which is required when users want to distribute packets based > on the IPv4 checksum field. > > For example "flow create 0 ingress pattern eth / ipv4 / end > actions rss types ipv4-chksum end queues end / end", this flow > causes all matching packets to be distributed to queues on > basis of IPv4 checksum. > > Signed-off-by: Alvin Zhang Acked-by: Ajit Khaparde > --- > app/test-pmd/cmdline.c | 2 ++ > app/test-pmd/config.c | 1 + > lib/ethdev/rte_ethdev.h | 1 + > 3 files changed, 4 insertions(+) > > diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c > index 0268b18..32da066 100644 > --- a/app/test-pmd/cmdline.c > +++ b/app/test-pmd/cmdline.c > @@ -2254,6 +2254,8 @@ struct cmd_config_rss { > rss_conf.rss_hf = ETH_RSS_ECPRI; > else if (!strcmp(res->value, "mpls")) > rss_conf.rss_hf = ETH_RSS_MPLS; > + else if (!strcmp(res->value, "ipv4-chksum")) > + rss_conf.rss_hf = ETH_RSS_IPV4_CHKSUM; > else if (!strcmp(res->value, "none")) > rss_conf.rss_hf = 0; > else if (!strcmp(res->value, "level-default")) { > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index 43c79b5..2c0c415 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -140,6 +140,7 @@ > { "gtpu", ETH_RSS_GTPU }, > { "ecpri", ETH_RSS_ECPRI }, > { "mpls", ETH_RSS_MPLS }, > + { "ipv4-chksum", ETH_RSS_IPV4_CHKSUM }, > { NULL, 0 }, > }; > > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index faf3bd9..f10d834 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -537,6 +537,7 @@ struct rte_eth_rss_conf { > #define ETH_RSS_PPPOE (1ULL << 31) > #define ETH_RSS_ECPRI (1ULL << 32) > #define ETH_RSS_MPLS (1ULL << 33) > +#define ETH_RSS_IPV4_CHKSUM (1ULL << 34) > > /* > * We use the following macros to combine with above ETH_RSS_* for > -- > 1.8.3.1 > --000000000000bbb53105c4313fd9--