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 A8BA2A04AC; Mon, 31 Aug 2020 19:00:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 89BA41515; Mon, 31 Aug 2020 19:00:24 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 9CF65255 for ; Mon, 31 Aug 2020 19:00:23 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id x18so2110104pll.6 for ; Mon, 31 Aug 2020 10:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=muUsp8HRnyn3pk04zV6Rykdl9lgYCWA0gq3SfX46FYY=; b=n5IfvvSa0WzKFQeYyVX7MtIkOjH6rCtuBAgHYNdwMV47AM9X0d9c2vGywUbSD7roPj /wUXQRQftCz9Q0NyX5ZpZyxcM+/AvsG2c7QgBhe797Nq2b9FzIl/rwxPZ7MTA7yvG5G4 6BEMdeayIdpkzwhd5muhctYXmMb0WjAqvomEct8TgOhWLrhPxnZ90qB1lZqYCCplvHxJ /SkM82Cl3C5BVYGTs+1PuE0XKxZ2drk1rzFdwZ41uCZLXy31TNev2fRB/On0JwaTpiyL h4K1PzbE9x193DSSg5grliBAzXXrHRgCzkRpqRZmR00RuvKQt+Tt04zzLqLtV2pZuJMW UkxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=muUsp8HRnyn3pk04zV6Rykdl9lgYCWA0gq3SfX46FYY=; b=GLtt0BLNDeNAodRVc/hx1kPyKr6u94As0PQ+J8mCjF+guOVMk770AYMhsCDN61KOpo 05T9V06r/HpCSpA7JkLElh79hirKGv7Q3Cc4/937qafk6aztM3ri3tcz8ogqQAEiTWuD Enr2Psm1Uvzu929clpgy+DpBx1tpYGHkGb+W4xkKdJQyZcb3kBm36eqeMp9nMk6CQwO+ SGVni8syZmkhQPH8zCILYdTsFg/Hft7Ew3xBxa43ed403vX9h53DCKAk9wtKsHLD6Jtq a9g7FFh0jR3gx7nooxV5I9JgTm25w3soNka0Ak6hlpT1vswS56R6xbJZGgi9XI+Oauvg ixog== X-Gm-Message-State: AOAM530R96cXsEP/99uTNvtYXTwaPMjmlPL8q7ruBpBeiVA25400ftdl W97KTF9jKk5dqjVxSwpiLR5yvQ== X-Google-Smtp-Source: ABdhPJxa3ZP2q86NYClYKgBrfFuoYTa7WVTX0K8NncAiJ1jMO4yQzfgs4f7UqoTQlQEVXL8cHByfOA== X-Received: by 2002:a17:90a:af84:: with SMTP id w4mr281565pjq.94.1598893222772; Mon, 31 Aug 2020 10:00:22 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id z1sm125281pjn.34.2020.08.31.10.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 10:00:22 -0700 (PDT) Date: Mon, 31 Aug 2020 10:00:19 -0700 From: Stephen Hemminger To: Nipun Gupta Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com, hemant.agrawal@nxp.com, Rohit Raj Message-ID: <20200831100019.11e5c916@hermes.lan> In-Reply-To: <20200831075333.10135-1-nipun.gupta@nxp.com> References: <20200831075333.10135-1-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ethdev: add rx offload to drop error packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Mon, 31 Aug 2020 13:23:33 +0530 Nipun Gupta wrote: > This change adds a RX offload capability where hardware can drop the > packets in case there is an error in the packet such as L3 checksum > error or L4 checksum. > > Signed-off-by: Nipun Gupta > Signed-off-by: Rohit Raj > --- > lib/librte_ethdev/rte_ethdev.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h > index a49242bcd..bb9df2fb9 100644 > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -1120,6 +1120,7 @@ struct rte_eth_conf { > #define DEV_RX_OFFLOAD_SCTP_CKSUM 0x00020000 > #define DEV_RX_OFFLOAD_OUTER_UDP_CKSUM 0x00040000 > #define DEV_RX_OFFLOAD_RSS_HASH 0x00080000 > +#define DEV_RX_OFFLOAD_ERR_PKT_DROP 0x00100000 > > #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \ > DEV_RX_OFFLOAD_UDP_CKSUM | \ Could/should this be an rte_flow action as well?