From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 812302B9E for ; Thu, 5 Oct 2017 11:49:20 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id q132so1029440wmd.2 for ; Thu, 05 Oct 2017 02:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=6sw3kXJxUYV8v1tr4gHFY8CJdJ5RI4NgyIxqmaS3h/s=; b=kPrmVbSS83vC2vccd4z03mPID9BNwvnrQ9K4HiRp6OFh9v8T93dgNwdqsjXCpURIZD Vggx3xQKdHcPogbAxbaxsHBmIN7LR1ipekIdHr74ZQVCFXDp5+A1v1tF0b2rKecAJyXz 1879K1R09PWx4Ya5t8Iq70B3ia/p/m1cObI2imi4J4SGvBy1kzD4/o/8SVnQFjfCaPOM cC/dNcLCrwpKxlLLpRhImbzXnRHP1HejC2u1w0zdhqS7P7RzqpYJFZrTTN9lVc62bf20 YEs34d0wxg+NgyfiRUzEgCFisGydXYn3uJrezTncUJ7CpN72uIyKd+GODh3tPxwt95Qh 0JQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6sw3kXJxUYV8v1tr4gHFY8CJdJ5RI4NgyIxqmaS3h/s=; b=E996v4b/fRLGmcXScOShtvUTgtskwuhBt28hVPQlDmB9slpq7kLEIbBWCALjDWBRQ5 b4m2DLWvuC36T7WKOSebDlzMgHigjzIIPa9jGchElaSlu7bwOWprw/RS6BiaPCo0sUEw Q0jfTTT9qw8tHgDOIyGa4CzY6HscdZOToexK3ABM+xqCOttY3fOUe9AlyeP1JXSUoN2b XS8sC+o0TtLyAwvqaLzlUqhPA+XkzAJZWTvhNnuVQ011veGUPGK5I/rgMxC29sNrfPZC oWU3cn+yKfkVJZgF3K858ZRF61Zs2HvzmWAw/3S3LwU3cLw0iEYQyN+UguGI6nuHebXn rQiw== X-Gm-Message-State: AHPjjUifg1ecUfDEPeZ6lYDd1dlZP9O/gkf24X3Sh1RS0kWfQd1OzbTq lxFbdwhjxmqFom5Sg5xve3g//w== X-Google-Smtp-Source: AOwi7QC3IufL35OkCsMuTbVArt2HUuzONaniCXFnG0Cqulj9RMohIW/84Z2yi11qHQN8/173GtLxmQ== X-Received: by 10.80.227.136 with SMTP id b8mr32402099edm.275.1507196960156; Thu, 05 Oct 2017 02:49:20 -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 g27sm4599150edf.94.2017.10.05.02.49.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 02:49:19 -0700 (PDT) From: Adrien Mazarguil To: Ferruh Yigit , Gaetan Rivet Cc: dev@dpdk.org Date: Thu, 5 Oct 2017 11:49:01 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH v1 0/7] Flow API helpers enhancements 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: Thu, 05 Oct 2017 09:49:20 -0000 This series brings enhancements to various rte_flow helpers: - Allow applications to use rte_flow_error_set() by making it part of the public interface and documenting it as such. - Address rte_flow_copy()'s limitations by replacing it with the more versatile rte_flow_conv(). This new function allows retrieving other properties such as item/action names, enabling testpmd to finally use it and get rid of duplicated code. - Add a script (gen-rte_flow_conv-h.sh) to help with generating the resources used by rte_flow_conv(). Developers should run it when adding or modifying pattern items or actions (done as part of this series to add the missing "fuzzy" pattern item). - Future plans for rte_flow_conv() include translating error codes to human-readable messages, so applications do not have to make their own. All these changes address concerns raised a couple of months ago [1]. Work on these patches actually started at the time but I was unable to complete and clean them up until recently. [1] http://dpdk.org/ml/archives/dev/2017-July/070492.html Adrien Mazarguil (7): ethdev: expose flow API error helper ethdev: replace flow API object copy function ethdev: add flow API item/action name conversion app/testpmd: rely on flow API conversion function ethdev: enhance flow API item/action descriptions ethdev: generate flow API conversion header ethdev: update flow API conversion header MAINTAINERS | 1 + app/test-pmd/config.c | 293 ++++----------- app/test-pmd/testpmd.h | 7 +- buildtools/gen-rte_flow_conv-h.sh | 264 +++++++++++++ doc/guides/prog_guide/rte_flow.rst | 43 ++- drivers/net/failsafe/failsafe_ether.c | 6 +- drivers/net/failsafe/failsafe_flow.c | 29 +- drivers/net/failsafe/failsafe_private.h | 4 +- drivers/net/mlx4/mlx4_flow.c | 6 +- drivers/net/tap/tap_flow.c | 2 +- lib/librte_ether/Makefile | 10 + lib/librte_ether/rte_ethdev_version.map | 1 + lib/librte_ether/rte_flow.c | 539 ++++++++++++++++----------- lib/librte_ether/rte_flow.h | 275 ++++++++++++-- lib/librte_ether/rte_flow_conv.h | 345 +++++++++++++++++ lib/librte_ether/rte_flow_driver.h | 38 -- 16 files changed, 1320 insertions(+), 543 deletions(-) create mode 100755 buildtools/gen-rte_flow_conv-h.sh create mode 100644 lib/librte_ether/rte_flow_conv.h -- 2.1.4