Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77058/?format=api
http://patches.dpdk.org/api/patches/77058/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200909140006.23788-4-hyonkim@cisco.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": "<20200909140006.23788-4-hyonkim@cisco.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200909140006.23788-4-hyonkim@cisco.com", "date": "2020-09-09T14:00:03", "name": "[3/6] net/enic: support priorities for TCAM flows", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "2c33af75332fe4a293144f98cd1f3cfc16665b6b", "submitter": { "id": 948, "url": "http://patches.dpdk.org/api/people/948/?format=api", "name": "Hyong Youb Kim (hyonkim)", "email": "hyonkim@cisco.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200909140006.23788-4-hyonkim@cisco.com/mbox/", "series": [ { "id": 12058, "url": "http://patches.dpdk.org/api/series/12058/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12058", "date": "2020-09-09T14:00:00", "name": "net/enic: minor updates to flow implementation", "version": 1, "mbox": "http://patches.dpdk.org/series/12058/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77058/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77058/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 05EDAA04B5;\n\tWed, 9 Sep 2020 16:01:20 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E278F1C0CC;\n\tWed, 9 Sep 2020 16:01:19 +0200 (CEST)", "from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90])\n by dpdk.org (Postfix) with ESMTP id 8BC6B1C0B4\n for <dev@dpdk.org>; Wed, 9 Sep 2020 16:01:18 +0200 (CEST)", "from rcdn-core-1.cisco.com ([173.37.93.152])\n by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA;\n 09 Sep 2020 14:01:17 +0000", "from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48])\n by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTP id 089E1HG8024054;\n Wed, 9 Sep 2020 14:01:17 GMT", "by cisco.com (Postfix, from userid 508933)\n id 6E6E820F2005; Wed, 9 Sep 2020 07:01:17 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=cisco.com; i=@cisco.com; l=2490; q=dns/txt; s=iport;\n t=1599660078; x=1600869678;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=XAnSbspkdEd+AOLRCu9iY9ZEL9OWXAm1mhYs1JXTk1Y=;\n b=XVilgwLyzVkVEnet5AoBZgPqVtPf8KJoZ9sVBr7QdyGw2gJr/jhYR8NQ\n DKaO7QVFW3QHvqrF7mtDJuZBnqveabimbeW3NCAmWSxvAG3bQuqOGQq0s\n IZf42IEtqtrlfUwVdbFV3xIh1Fdg7W5j5vAxxPd2pj+SOF8qVkVw1zG5W E=;", "X-IronPort-AV": "E=Sophos;i=\"5.76,409,1592870400\"; d=\"scan'208\";a=\"530077471\"", "From": "Hyong Youb Kim <hyonkim@cisco.com>", "To": "Ferruh Yigit <ferruh.yigit@intel.com>", "Cc": "dev@dpdk.org, Hyong Youb Kim <hyonkim@cisco.com>,\n John Daley <johndale@cisco.com>", "Date": "Wed, 9 Sep 2020 07:00:03 -0700", "Message-Id": "<20200909140006.23788-4-hyonkim@cisco.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20200909140006.23788-1-hyonkim@cisco.com>", "References": "<20200909140006.23788-1-hyonkim@cisco.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Outbound-SMTP-Client": "10.193.184.48, savbu-usnic-a.cisco.com", "X-Outbound-Node": "rcdn-core-1.cisco.com", "Subject": "[dpdk-dev] [PATCH 3/6] net/enic: support priorities for TCAM flows", "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": "Group 0 corresponds to TCAM which supports priorities. Accept non-zero\npriorities for group 0 flows.\n\nSigned-off-by: Hyong Youb Kim <hyonkim@cisco.com>\nReviewed-by: John Daley <johndale@cisco.com>\n---\n doc/guides/rel_notes/release_20_11.rst | 1 +\n drivers/net/enic/enic_fm_flow.c | 10 ++++++----\n 2 files changed, 7 insertions(+), 4 deletions(-)", "diff": "diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst\nindex afe81711a..6a7e7d666 100644\n--- a/doc/guides/rel_notes/release_20_11.rst\n+++ b/doc/guides/rel_notes/release_20_11.rst\n@@ -139,3 +139,4 @@ Tested Platforms\n \n * Added support for VF representors with single-queue Tx/Rx and flow API\n * Added support for egress PORT_ID action\n+ * Added support for non-zero priorities for group 0 flows\ndiff --git a/drivers/net/enic/enic_fm_flow.c b/drivers/net/enic/enic_fm_flow.c\nindex 296e7e30d..5f22f2a32 100644\n--- a/drivers/net/enic/enic_fm_flow.c\n+++ b/drivers/net/enic/enic_fm_flow.c\n@@ -1711,9 +1711,10 @@ enic_fm_dump_tcam_match(const struct fm_tcam_match_entry *match,\n \tmemset(buf, 0, sizeof(buf));\n \t__enic_fm_dump_tcam_match(&match->ftm_mask.fk_hdrset[0],\n \t\t\t\t buf, sizeof(buf));\n-\tENICPMD_LOG(DEBUG, \" TCAM %s Outer: %s %scounter\",\n+\tENICPMD_LOG(DEBUG, \" TCAM %s Outer: %s %scounter position %u\",\n \t\t (ingress) ? \"IG\" : \"EG\", buf,\n-\t\t (match->ftm_flags & FMEF_COUNTER) ? \"\" : \"no \");\n+\t\t (match->ftm_flags & FMEF_COUNTER) ? \"\" : \"no \",\n+\t\t match->ftm_position);\n \tmemset(buf, 0, sizeof(buf));\n \t__enic_fm_dump_tcam_match(&match->ftm_mask.fk_hdrset[1],\n \t\t\t\t buf, sizeof(buf));\n@@ -1760,11 +1761,11 @@ enic_fm_flow_parse(struct enic_flowman *fm,\n \t}\n \n \tif (attrs) {\n-\t\tif (attrs->priority) {\n+\t\tif (attrs->group != FM_TCAM_RTE_GROUP && attrs->priority) {\n \t\t\trte_flow_error_set(error, ENOTSUP,\n \t\t\t\t\t RTE_FLOW_ERROR_TYPE_ATTR_PRIORITY,\n \t\t\t\t\t NULL,\n-\t\t\t\t\t \"priorities are not supported\");\n+\t\t\t\t\t \"priorities are not supported for non-default (0) groups\");\n \t\t\treturn -rte_errno;\n \t\t} else if (!fm->owner_enic->switchdev_mode && attrs->transfer) {\n \t\t\trte_flow_error_set(error, ENOTSUP,\n@@ -2192,6 +2193,7 @@ enic_fm_flow_add_entry(struct enic_flowman *fm,\n \tstruct rte_flow *flow;\n \n \tENICPMD_FUNC_TRACE();\n+\tmatch_in->ftm_position = attrs->priority;\n \tenic_fm_dump_tcam_entry(match_in, action_in, attrs->ingress);\n \tflow = calloc(1, sizeof(*flow));\n \tfm_flow = calloc(1, sizeof(*fm_flow));\n", "prefixes": [ "3/6" ] }{ "id": 77058, "url": "