Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77086/?format=api
http://patches.dpdk.org/api/patches/77086/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200909203008.25563-3-andreyv@nvidia.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200909203008.25563-3-andreyv@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200909203008.25563-3-andreyv@nvidia.com", "date": "2020-09-09T20:30:09", "name": "[RFC,2/3] ethdev: support SFT APIs", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f2045afd39f3cbbbff97a2c7149f4a87be21572f", "submitter": { "id": 1969, "url": "http://patches.dpdk.org/api/people/1969/?format=api", "name": "Andrey Vesnovaty", "email": "andreyv@nvidia.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200909203008.25563-3-andreyv@nvidia.com/mbox/", "series": [ { "id": 12067, "url": "http://patches.dpdk.org/api/series/12067/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12067", "date": "2020-09-09T20:30:05", "name": "introduce Stateful Flow Table", "version": 1, "mbox": "http://patches.dpdk.org/series/12067/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77086/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77086/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2F73AA04B5;\n\tWed, 9 Sep 2020 22:31:41 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 047EB1C0BD;\n\tWed, 9 Sep 2020 22:31:41 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 268D01DB8\n for <dev@dpdk.org>; Wed, 9 Sep 2020 22:31:39 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n andreyv@nvidia.com) with SMTP; 9 Sep 2020 23:31:38 +0300", "from nvidia.com (r-arch-host11.mtr.labs.mlnx [10.213.43.60])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 089KUKbQ023874;\n Wed, 9 Sep 2020 23:31:38 +0300" ], "From": "Andrey Vesnovaty <andreyv@nvidia.com>", "To": "dev@dpdk.org", "Cc": "thomas@nvidia.net, orika@nvidia.com, viacheslavo@nvidia.com,\n andrey.vesnovaty@gmail.com, ozsh@nvidia.com, elibr@nvidia.com,\n alexr@nvidia.com, roniba@nvidia.com, Thomas Monjalon <thomas@monjalon.net>,\n Ferruh Yigit <ferruh.yigit@intel.com>,\n Andrew Rybchenko <arybchenko@solarflare.com>", "Date": "Wed, 9 Sep 2020 23:30:09 +0300", "Message-Id": "<20200909203008.25563-3-andreyv@nvidia.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20200909203008.25563-1-andreyv@nvidia.com>", "References": "<20200909203008.25563-1-andreyv@nvidia.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [RFC 2/3] ethdev: support SFT APIs", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "ethdev updated to support SFT lookup offload\nto ethernet device.\n\nSigned-off-by: Andrey Vesnovaty <andreyv@nvidia.com>\n---\n lib/librte_ethdev/rte_ethdev.c | 7 +++++++\n lib/librte_ethdev/rte_ethdev.h | 16 ++++++++++++++++\n lib/librte_ethdev/rte_ethdev_core.h | 1 +\n 3 files changed, 24 insertions(+)", "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex 7858ad5f11..fcdcfcce6d 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -752,6 +752,13 @@ rte_eth_dev_get_sec_ctx(uint16_t port_id)\n \treturn rte_eth_devices[port_id].security_ctx;\n }\n \n+void *\n+rte_eth_dev_get_sft_ctx(uint16_t port_id)\n+{\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, NULL);\n+\treturn rte_eth_devices[port_id].sft_ctx;\n+}\n+\n uint16_t\n rte_eth_dev_count_avail(void)\n {\ndiff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 70295d7ab7..83a71a8532 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -1228,6 +1228,7 @@ struct rte_eth_conf {\n #define DEV_RX_OFFLOAD_SCTP_CKSUM\t0x00020000\n #define DEV_RX_OFFLOAD_OUTER_UDP_CKSUM 0x00040000\n #define DEV_RX_OFFLOAD_RSS_HASH\t\t0x00080000\n+#define DEV_RX_OFFLOAD_SFT\t\t0x00100000\n \n #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \\\n \t\t\t\t DEV_RX_OFFLOAD_UDP_CKSUM | \\\n@@ -4388,6 +4389,21 @@ rte_eth_dev_pool_ops_supported(uint16_t port_id, const char *pool);\n void *\n rte_eth_dev_get_sec_ctx(uint16_t port_id);\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change, or be removed, without prior notice\n+ *\n+ * Get the SFT context for the Ethernet device.\n+ *\n+ * @param port_id\n+ * Port identifier of the Ethernet device\n+ * @return\n+ * - NULL on error.\n+ * - pointer to SFT context on success.\n+ */\n+void *\n+rte_eth_dev_get_sft_ctx(uint16_t port_id);\n+\n /**\n * @warning\n * @b EXPERIMENTAL: this API may change, or be removed, without prior notice\ndiff --git a/lib/librte_ethdev/rte_ethdev_core.h b/lib/librte_ethdev/rte_ethdev_core.h\nindex 32407dd418..4ff458bfe0 100644\n--- a/lib/librte_ethdev/rte_ethdev_core.h\n+++ b/lib/librte_ethdev/rte_ethdev_core.h\n@@ -806,6 +806,7 @@ struct rte_eth_dev {\n \tstruct rte_eth_rxtx_callback *pre_tx_burst_cbs[RTE_MAX_QUEUES_PER_PORT];\n \tenum rte_eth_dev_state state; /**< Flag indicating the port state */\n \tvoid *security_ctx; /**< Context for security ops */\n+\tvoid *sft_ctx; /**< Context for SFT ops */\n \n \tuint64_t reserved_64s[4]; /**< Reserved for future fields */\n \tvoid *reserved_ptrs[4]; /**< Reserved for future fields */\n", "prefixes": [ "RFC", "2/3" ] }{ "id": 77086, "url": "