From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id A43641C77F for ; Wed, 4 Apr 2018 17:56:46 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id x82so43862597wmg.1 for ; Wed, 04 Apr 2018 08:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=H0H1uw8nKMQJI1F1nAhd4PjUevEzQOlclATd6YTJ3xM=; b=aDWZDYo2/gsumA41aVb/ki540vu4JgQOHx/CFT3pPcSJk10Fv+afi8HBSO8+mrZASE 6Bd1zm4bYV3jzmCLqA14vHxe4c2Bk+lYoxuMutWLF2egWEaJ2pkkWflKMlcmTbt06796 kNI+QbJnQSQhHOvMXgkDUMFdHOP1kYIwTy+tBhE24WIEjjB6dflTNWHKgLicfjEFIZwZ XwyAD2ipNww8aL0fYlx/A+vWh0a2n9gLbR95a6fD64AQJUuzOXK3jKuEecZol+vmiPMc +aesZ8e3w9F8CVSpEacy9dkCenJrrsM5ryQ+FOTgTFlIIHYvAGumE3fATLheGp2IGsk+ 2xqw== 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:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=H0H1uw8nKMQJI1F1nAhd4PjUevEzQOlclATd6YTJ3xM=; b=byXPlNe5OzcQcbjpjo/P3pEI4NzAlmyDSqqcvsabQ0GvI9oo+klSeopVBcizFyvCxp PDIZO42PeYVO5E7F40PfFybfDbsA8NM56KdRw2dRGT0jZA54wCRKCeXEIGkLgpDNpoor 6UUYL65Yw+YLNrh89ovom1bW4/tDReRBghzQC5tvKbeUv0ik/A4GKl4kzqCom8qJx4VK Y25pGNasv83ptn8Gs3P0ZNiNlyvsciBIQZLwfpbi6zN9UPKCduS6QTir+swWssTN9Imn n3rrYxYNbZlwrjx9FckA3Gmmxe/RjVL8UR/K5NgfjFWNmRjXLJ+RmnUay5Sl2YqLLQ5j cDrg== X-Gm-Message-State: ALQs6tBlDE6Z4BQjc10/eq7759WIPwaWExqgHO84HxH9uv+ua8XYMvtE jvGcX00gOJXra4BXf5NASR0Ylw== X-Google-Smtp-Source: AIpwx49Y9cUQGuSmES5mB03owKw57UMJYLdBLG0egfM/scdblqumCPWqRJ5WfCluCj29+u1vVzDXxw== X-Received: by 10.28.34.198 with SMTP id i189mr7676025wmi.16.1522857406450; Wed, 04 Apr 2018 08:56:46 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id p4sm7188447wrf.27.2018.04.04.08.56.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 08:56:45 -0700 (PDT) Date: Wed, 4 Apr 2018 17:56:32 +0200 From: Adrien Mazarguil To: Thomas Monjalon , Ferruh Yigit , dev@dpdk.org Message-ID: <20180404150312.12304-3-adrien.mazarguil@6wind.com> References: <20180404150312.12304-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404150312.12304-1-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v1 02/16] ethdev: add error types to flow API 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: , X-List-Received-Date: Wed, 04 Apr 2018 15:56:46 -0000 These enable more precise reporting of objects responsible for errors. Signed-off-by: Adrien Mazarguil --- app/test-pmd/config.c | 4 ++++ lib/librte_ether/rte_flow.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 2058e6ec8..7ae0295f6 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1228,8 +1228,12 @@ port_flow_complain(struct rte_flow_error *error) [RTE_FLOW_ERROR_TYPE_ATTR_EGRESS] = "egress field", [RTE_FLOW_ERROR_TYPE_ATTR] = "attributes structure", [RTE_FLOW_ERROR_TYPE_ITEM_NUM] = "pattern length", + [RTE_FLOW_ERROR_TYPE_ITEM_SPEC] = "item specification", + [RTE_FLOW_ERROR_TYPE_ITEM_LAST] = "item specification range", + [RTE_FLOW_ERROR_TYPE_ITEM_MASK] = "item specification mask", [RTE_FLOW_ERROR_TYPE_ITEM] = "specific pattern item", [RTE_FLOW_ERROR_TYPE_ACTION_NUM] = "number of actions", + [RTE_FLOW_ERROR_TYPE_ACTION_CONF] = "action configuration", [RTE_FLOW_ERROR_TYPE_ACTION] = "specific action", }; const char *errstr; diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index cdaaa3a5b..95799fd9c 100644 --- a/lib/librte_ether/rte_flow.h +++ b/lib/librte_ether/rte_flow.h @@ -1186,8 +1186,12 @@ enum rte_flow_error_type { RTE_FLOW_ERROR_TYPE_ATTR_EGRESS, /**< Egress field. */ RTE_FLOW_ERROR_TYPE_ATTR, /**< Attributes structure. */ RTE_FLOW_ERROR_TYPE_ITEM_NUM, /**< Pattern length. */ + RTE_FLOW_ERROR_TYPE_ITEM_SPEC, /**< Item specification. */ + RTE_FLOW_ERROR_TYPE_ITEM_LAST, /**< Item specification range. */ + RTE_FLOW_ERROR_TYPE_ITEM_MASK, /**< Item specification mask. */ RTE_FLOW_ERROR_TYPE_ITEM, /**< Specific pattern item. */ RTE_FLOW_ERROR_TYPE_ACTION_NUM, /**< Number of actions. */ + RTE_FLOW_ERROR_TYPE_ACTION_CONF, /**< Action configuration. */ RTE_FLOW_ERROR_TYPE_ACTION, /**< Specific action. */ }; -- 2.11.0