Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132410/?format=api
http://patches.dpdk.org/api/patches/132410/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230908160552.148060-10-yuying.zhang@intel.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": "<20230908160552.148060-10-yuying.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230908160552.148060-10-yuying.zhang@intel.com", "date": "2023-09-08T16:05:52", "name": "[v10,9/9] net/cpfl: support represented port action", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8be576b21c92be99b692e2c1b80c9fb184fd53f2", "submitter": { "id": 1844, "url": "http://patches.dpdk.org/api/people/1844/?format=api", "name": "Zhang, Yuying", "email": "yuying.zhang@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230908160552.148060-10-yuying.zhang@intel.com/mbox/", "series": [ { "id": 29766, "url": "http://patches.dpdk.org/api/series/29766/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29766", "date": "2023-09-08T16:05:43", "name": "add rte flow support for cpfl", "version": 10, "mbox": "http://patches.dpdk.org/series/29766/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/132410/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/132410/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6318E42338;\n\tMon, 9 Oct 2023 10:03:41 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1CE3A40A84;\n\tMon, 9 Oct 2023 10:02:39 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 91BC640A75\n for <dev@dpdk.org>; Mon, 9 Oct 2023 10:02:37 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Oct 2023 01:02:36 -0700", "from dpdk-pengyuan-mev.sh.intel.com ([10.67.119.132])\n by orsmga005.jf.intel.com with ESMTP; 09 Oct 2023 01:02:34 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1696838557; x=1728374557;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=kOTpgao6KPJd3SoSyyNEi8XWy4dPxfrvQjdc1KbJGiY=;\n b=VHpHznwCSJ21lvx/zvEE8Hz//uS0/m9S8G4chpsH/0ft2oatiBVimfQO\n jNZ2CrCsWBbOG/A4vDUHMTOC4O+BnIQa7M0zD1vFF3gVYZpm2/SwASHOE\n j6Ho4/iSEHnA7m0U0sk8Wa2J0xzduy1Yn5Ckhqi6pdni4aVD5Cst1FHek\n SpC3EWLkb5I26CLW4ZLiagwc5IN+Pa1MR4c3sBv+Vl4JQ6RGzDpqgcPBX\n igPeXVTeeixT5rueEQMqJlk43VVr7ZunvEWC/7/n5JitUyGKM09IUCfMO\n wQNPjXrmoENy9k7/SmiIVDjPaciNJj8qxvhiczds+CmtihpKOVxpu7qAq g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10857\"; a=\"369155102\"", "E=Sophos;i=\"6.03,209,1694761200\"; d=\"scan'208\";a=\"369155102\"", "E=McAfee;i=\"6600,9927,10857\"; a=\"926675933\"", "E=Sophos;i=\"6.03,209,1694761200\"; d=\"scan'208\";a=\"926675933\"" ], "X-ExtLoop1": "1", "From": "\"Zhang, Yuying\" <yuying.zhang@intel.com>", "To": "yuying.zhang@intel.com, dev@dpdk.org, qi.z.zhang@intel.com,\n jingjing.wu@intel.com, beilei.xing@intel.com", "Subject": "[PATCH v10 9/9] net/cpfl: support represented port action", "Date": "Fri, 8 Sep 2023 16:05:52 +0000", "Message-Id": "<20230908160552.148060-10-yuying.zhang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230908160552.148060-1-yuying.zhang@intel.com>", "References": "<20230928084458.2333663-1-yuying.zhang@intel.com>\n <20230908160552.148060-1-yuying.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "From: Yuying Zhang <yuying.zhang@intel.com>\n\nSupport RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT action for forwarding\npacket to APF/CPF/VF representors.\n\nSigned-off-by: Yuying Zhang <yuying.zhang@intel.com>\nAcked-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/cpfl/cpfl_flow_engine_fxp.c | 14 ++++++++++++--\n 1 file changed, 12 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/cpfl/cpfl_flow_engine_fxp.c b/drivers/net/cpfl/cpfl_flow_engine_fxp.c\nindex 7a3376f9f6..ddede2f553 100644\n--- a/drivers/net/cpfl/cpfl_flow_engine_fxp.c\n+++ b/drivers/net/cpfl/cpfl_flow_engine_fxp.c\n@@ -266,6 +266,7 @@ cpfl_fxp_parse_action(struct cpfl_itf *itf,\n \tint queue_id = -1;\n \tbool fwd_vsi = false;\n \tbool fwd_q = false;\n+\tbool is_vsi;\n \tuint32_t i;\n \tstruct cpfl_rule_info *rinfo = &rim->rules[index];\n \tunion cpfl_action_set *act_set = (void *)rinfo->act_bytes;\n@@ -276,6 +277,7 @@ cpfl_fxp_parse_action(struct cpfl_itf *itf,\n \t\taction_type = action->type;\n \t\tswitch (action_type) {\n \t\tcase RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR:\n+\t\tcase RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT:\n \t\t\tif (!fwd_vsi)\n \t\t\t\tfwd_vsi = true;\n \t\t\telse\n@@ -294,12 +296,20 @@ cpfl_fxp_parse_action(struct cpfl_itf *itf,\n \t\t\t\tqueue_id = CPFL_INVALID_QUEUE_ID;\n \t\t\t}\n \n-\t\t\tdev_id = cpfl_get_vsi_id(dst_itf);\n+\t\t\tis_vsi = (action_type == RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR ||\n+\t\t\t\t dst_itf->type == CPFL_ITF_TYPE_REPRESENTOR);\n+\t\t\tif (is_vsi)\n+\t\t\t\tdev_id = cpfl_get_vsi_id(dst_itf);\n+\t\t\telse\n+\t\t\t\tdev_id = cpfl_get_port_id(dst_itf);\n \n \t\t\tif (dev_id == CPFL_INVALID_HW_ID)\n \t\t\t\tgoto err;\n \n-\t\t\t*act_set = cpfl_act_fwd_vsi(0, priority, 0, dev_id);\n+\t\t\tif (is_vsi)\n+\t\t\t\t*act_set = cpfl_act_fwd_vsi(0, priority, 0, dev_id);\n+\t\t\telse\n+\t\t\t\t*act_set = cpfl_act_fwd_port(0, priority, 0, dev_id);\n \t\t\tact_set++;\n \t\t\trinfo->act_byte_len += sizeof(union cpfl_action_set);\n \t\t\tbreak;\n", "prefixes": [ "v10", "9/9" ] }{ "id": 132410, "url": "