Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132419/?format=api
https://patches.dpdk.org/api/patches/132419/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231009040018.149689-10-yuying.zhang@intel.com/", "project": { "id": 1, "url": "https://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": "<20231009040018.149689-10-yuying.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231009040018.149689-10-yuying.zhang@intel.com", "date": "2023-10-09T04:00:18", "name": "[v10,9/9] net/cpfl: support represented port action", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "8be576b21c92be99b692e2c1b80c9fb184fd53f2", "submitter": { "id": 1844, "url": "https://patches.dpdk.org/api/people/1844/?format=api", "name": "Zhang, Yuying", "email": "yuying.zhang@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231009040018.149689-10-yuying.zhang@intel.com/mbox/", "series": [ { "id": 29767, "url": "https://patches.dpdk.org/api/series/29767/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29767", "date": "2023-10-09T04:00:10", "name": "[v10,1/9] net/cpfl: parse flow offloading hint from JSON", "version": 10, "mbox": "https://patches.dpdk.org/series/29767/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/132419/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/132419/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 77F2D42338;\n\tMon, 9 Oct 2023 10:14:54 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6A88A40E09;\n\tMon, 9 Oct 2023 10:14:03 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [192.198.163.7])\n by mails.dpdk.org (Postfix) with ESMTP id D760F40E09\n for <dev@dpdk.org>; Mon, 9 Oct 2023 10:14:01 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Oct 2023 01:14:01 -0700", "from dpdk-pengyuan-mev.sh.intel.com ([10.67.119.132])\n by orsmga003.jf.intel.com with ESMTP; 09 Oct 2023 01:13:59 -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=1696839242; x=1728375242;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=kOTpgao6KPJd3SoSyyNEi8XWy4dPxfrvQjdc1KbJGiY=;\n b=TuVdPTehV+9OzIwOfDm+jWlwHpno/tTrJvNUgszuCFoQnvgaSRiVNw+3\n ydNEe9oBegdHiOr3RrP3h2G9U+1PdgHDjKBjserdkRI+noUc6P1NTsODI\n XfvlBl8DoXFIUj1D4KYium1aIuYLCIKiUrEplHGIMLd7Rrr38oSdn9BL2\n V8espM3noPcPd8PQSc18iCYoC6xInuCn78FkjlTNIGQuMxuZwVJqim6Dj\n mBhAo3TknUHH1EUdkzw/1JPn1F4upOqKtBXc8PAwSPiNwdKl7R9uwWnNF\n 4zL1bnu32oKkH7btz/auQ4vIzORiIh2TnmZP9heT3fLC1vaGEBPrfCkfU Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10857\"; a=\"5641861\"", "E=Sophos;i=\"6.03,209,1694761200\";\n d=\"scan'208\";a=\"5641861\"", "E=McAfee;i=\"6600,9927,10857\"; a=\"702801771\"", "E=Sophos;i=\"6.03,209,1694761200\"; d=\"scan'208\";a=\"702801771\"" ], "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": "Mon, 9 Oct 2023 04:00:18 +0000", "Message-Id": "<20231009040018.149689-10-yuying.zhang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20231009040018.149689-1-yuying.zhang@intel.com>", "References": "<20230928084458.2333663-1-yuying.zhang@intel.com>\n <20231009040018.149689-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": 132419, "url": "