Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132026/?format=api
http://patches.dpdk.org/api/patches/132026/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230927125416.2308974-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": "<20230927125416.2308974-10-yuying.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230927125416.2308974-10-yuying.zhang@intel.com", "date": "2023-09-27T12:54:16", "name": "[v8,9/9] net/cpfl: add support of to 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/20230927125416.2308974-10-yuying.zhang@intel.com/mbox/", "series": [ { "id": 29658, "url": "http://patches.dpdk.org/api/series/29658/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29658", "date": "2023-09-27T12:54:07", "name": "add rte flow support for cpfl", "version": 8, "mbox": "http://patches.dpdk.org/series/29658/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/132026/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/132026/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 7F18142651;\n\tWed, 27 Sep 2023 14:55:49 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5BA8140F35;\n\tWed, 27 Sep 2023 14:55:09 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 99BC040FDE\n for <dev@dpdk.org>; Wed, 27 Sep 2023 14:55:03 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Sep 2023 05:55:03 -0700", "from dpdk-wenjing-02.sh.intel.com ([10.67.119.3])\n by orsmga004.jf.intel.com with ESMTP; 27 Sep 2023 05:55:01 -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=1695819303; x=1727355303;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=lDzbXBfbC6t427VX10E8BLcdFmwP+d6CgFm31sKL7x4=;\n b=NMRcS8F291MuAyhBp2nyozw2/QRm9p449U5urXLbkk0kDnhEwOAqoEJN\n NKd9Razdus0vVKW/DKyHPNrcpDGCx6rn7uNwRiCWPcKCWItRn9m7sdoOs\n wrxys5+oQwqsvJJp8MOcnWghRaOuOAQV/4C47+5FkYfSXAjPKBVZOgkGg\n ecPtdHzxuWvr1Eb9h4TlTh5a3AlWvkZj5Fp++M9Lgr9cMcjgIdqJt3snk\n OV7+kHIbsj0NspsutqRPDW1Dfwdr0CbrSXxUt+UgkIgsmwwzYMdAfglmA\n RGh1KL76qlZdodj8J6xGSzTqUReYDqodCiDYVVCKM11jb8VM7Te9SLTWS Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10846\"; a=\"361204114\"", "E=Sophos;i=\"6.03,181,1694761200\"; d=\"scan'208\";a=\"361204114\"", "E=McAfee;i=\"6600,9927,10846\"; a=\"872873979\"", "E=Sophos;i=\"6.03,181,1694761200\"; d=\"scan'208\";a=\"872873979\"" ], "X-ExtLoop1": "1", "From": "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 v8 9/9] net/cpfl: add support of to represented port action", "Date": "Wed, 27 Sep 2023 12:54:16 +0000", "Message-Id": "<20230927125416.2308974-10-yuying.zhang@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230927125416.2308974-1-yuying.zhang@intel.com>", "References": "<20230926181703.2268199-1-yuying.zhang@intel.com>\n <20230927125416.2308974-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\nAdd support of to represented port action for forwarding\npacket to APF/CPF/VF representors.\n\nSigned-off-by: Yuying Zhang <yuying.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 c460e6b5c6..fed18d8349 100644\n--- a/drivers/net/cpfl/cpfl_flow_engine_fxp.c\n+++ b/drivers/net/cpfl/cpfl_flow_engine_fxp.c\n@@ -267,6 +267,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@@ -277,6 +278,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@@ -295,12 +297,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": [ "v8", "9/9" ] }{ "id": 132026, "url": "