Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85123/?format=api
https://patches.dpdk.org/api/patches/85123/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201214064913.2306802-5-junfeng.guo@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": "<20201214064913.2306802-5-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201214064913.2306802-5-junfeng.guo@intel.com", "date": "2020-12-14T06:49:12", "name": "[4/5] net/iavf: support eCPRI MSG TYPE 0 for AVF FDIR", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "8834ae2d51fd8944286f7418db55b70524aee448", "submitter": { "id": 1785, "url": "https://patches.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@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/20201214064913.2306802-5-junfeng.guo@intel.com/mbox/", "series": [ { "id": 14284, "url": "https://patches.dpdk.org/api/series/14284/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14284", "date": "2020-12-14T06:49:08", "name": "support eCPRI MSG TYPE 0 for AVF FDIR and RSS", "version": 1, "mbox": "https://patches.dpdk.org/series/14284/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85123/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/85123/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 96647A09E9;\n\tMon, 14 Dec 2020 07:53:02 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id ED215C9A0;\n\tMon, 14 Dec 2020 07:51:57 +0100 (CET)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 152C0C996\n for <dev@dpdk.org>; Mon, 14 Dec 2020 07:51:54 +0100 (CET)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Dec 2020 22:51:54 -0800", "from dpdk-junfengguo-v3.sh.intel.com ([10.67.119.146])\n by orsmga008.jf.intel.com with ESMTP; 13 Dec 2020 22:51:52 -0800" ], "IronPort-SDR": [ "\n BkfsTO8ErV4bKd047UduzKVArmkYD7K8Yp39hTBwvR/onTcFe4Bltgk94AIF213cmEnebJfPE9\n w4Ra6SRj/RzA==", "\n u6iaT9x3nzvvYOoQQk5BY8AcBfU/wJoQzBte9mVfZt9ezrsD2AZJzFFdci3w+7X15TujOxavLU\n XzHTLtdVDuRw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9834\"; a=\"236251116\"", "E=Sophos;i=\"5.78,417,1599548400\"; d=\"scan'208\";a=\"236251116\"", "E=Sophos;i=\"5.78,417,1599548400\"; d=\"scan'208\";a=\"367141065\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com,\n\tbeilei.xing@intel.com", "Cc": "dev@dpdk.org, junfeng.guo@intel.com, simei.su@intel.com,\n yahui.cao@intel.com", "Date": "Mon, 14 Dec 2020 14:49:12 +0800", "Message-Id": "<20201214064913.2306802-5-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20201214064913.2306802-1-junfeng.guo@intel.com>", "References": "<20201214064913.2306802-1-junfeng.guo@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 4/5] net/iavf: support eCPRI MSG TYPE 0 for AVF\n\tFDIR", "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": "For eCPRI MSG Type 0, ecpriRtcid/ecpriPcid field within the eCPRI\nheader will be extracted to Field Vector for AVF FDIR.\n\nSPEC for eCPRI:\nhttp://www.cpri.info/downloads/eCPRI_v_2.0_2019_05_10c.pdf\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/iavf/iavf_fdir.c | 32 ++++++++++++++++++++++++++++++++\n 1 file changed, 32 insertions(+)", "diff": "diff --git a/drivers/net/iavf/iavf_fdir.c b/drivers/net/iavf/iavf_fdir.c\nindex 7054bde0b9..e92ca17581 100644\n--- a/drivers/net/iavf/iavf_fdir.c\n+++ b/drivers/net/iavf/iavf_fdir.c\n@@ -104,6 +104,9 @@\n #define IAVF_FDIR_INSET_PFCP (\\\n \tIAVF_INSET_PFCP_S_FIELD)\n \n+#define IAVF_FDIR_INSET_ECPRI (\\\n+\tIAVF_INSET_ECPRI)\n+\n static struct iavf_pattern_match_item iavf_fdir_pattern[] = {\n \t{iavf_pattern_ethertype,\t\tIAVF_FDIR_INSET_ETH,\t\t\tIAVF_INSET_NONE},\n \t{iavf_pattern_eth_ipv4,\t\t\tIAVF_FDIR_INSET_ETH_IPV4,\t\tIAVF_INSET_NONE},\n@@ -128,6 +131,8 @@ static struct iavf_pattern_match_item iavf_fdir_pattern[] = {\n \t{iavf_pattern_eth_ipv6_udp_esp,\t\tIAVF_FDIR_INSET_IPV6_NATT_ESP,\t\tIAVF_INSET_NONE},\n \t{iavf_pattern_eth_ipv4_pfcp,\t\tIAVF_FDIR_INSET_PFCP,\t\t\tIAVF_INSET_NONE},\n \t{iavf_pattern_eth_ipv6_pfcp,\t\tIAVF_FDIR_INSET_PFCP,\t\t\tIAVF_INSET_NONE},\n+\t{iavf_pattern_eth_ecpri,\t\tIAVF_FDIR_INSET_ECPRI,\t\t\tIAVF_INSET_NONE},\n+\t{iavf_pattern_eth_ipv4_ecpri,\t\tIAVF_FDIR_INSET_ECPRI,\t\t\tIAVF_INSET_NONE},\n };\n \n static struct iavf_flow_parser iavf_fdir_parser;\n@@ -469,6 +474,8 @@ iavf_fdir_parse_pattern(__rte_unused struct iavf_adapter *ad,\n \tconst struct rte_flow_item_esp *esp_spec, *esp_mask;\n \tconst struct rte_flow_item_ah *ah_spec, *ah_mask;\n \tconst struct rte_flow_item_pfcp *pfcp_spec, *pfcp_mask;\n+\tconst struct rte_flow_item_ecpri *ecpri_spec, *ecpri_mask;\n+\tstruct rte_ecpri_common_hdr ecpri_common;\n \tuint64_t input_set = IAVF_INSET_NONE;\n \n \tenum rte_flow_item_type next_type;\n@@ -906,6 +913,31 @@ iavf_fdir_parse_pattern(__rte_unused struct iavf_adapter *ad,\n \t\t\tfilter->add_fltr.rule_cfg.proto_hdrs.count = ++layer;\n \t\t\tbreak;\n \n+\t\tcase RTE_FLOW_ITEM_TYPE_ECPRI:\n+\t\t\tecpri_spec = item->spec;\n+\t\t\tecpri_mask = item->mask;\n+\n+\t\t\tecpri_common.u32 = rte_be_to_cpu_32(ecpri_spec->hdr.common.u32);\n+\n+\t\t\thdr = &filter->add_fltr.rule_cfg.proto_hdrs.proto_hdr[layer];\n+\n+\t\t\tVIRTCHNL_SET_PROTO_HDR_TYPE(hdr, ECPRI);\n+\n+\t\t\tif (ecpri_spec && ecpri_mask) {\n+\t\t\t\tif (ecpri_common.type == RTE_ECPRI_MSG_TYPE_IQ_DATA\n+\t\t\t\t && ecpri_mask->hdr.type0.pc_id == UINT16_MAX) {\n+\t\t\t\t\tinput_set |= IAVF_ECPRI_PC_RTC_ID;\n+\t\t\t\t\tVIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, ECPRI,\n+\t\t\t\t\t\t\t\t\t PC_RTC_ID);\n+\t\t\t\t}\n+\n+\t\t\t\trte_memcpy(hdr->buffer, ecpri_spec,\n+\t\t\t\t\tsizeof(*ecpri_spec));\n+\t\t\t}\n+\n+\t\t\tfilter->add_fltr.rule_cfg.proto_hdrs.count = ++layer;\n+\t\t\tbreak;\n+\n \t\tcase RTE_FLOW_ITEM_TYPE_VOID:\n \t\t\tbreak;\n \n", "prefixes": [ "4/5" ] }{ "id": 85123, "url": "