get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/122273/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 122273,
    "url": "http://patches.dpdk.org/api/patches/122273/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230118073304.903093-2-mingxia.liu@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": "<20230118073304.903093-2-mingxia.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230118073304.903093-2-mingxia.liu@intel.com",
    "date": "2023-01-18T07:33:03",
    "name": "[v3,17/21] net/cpfl: add AVX512 data path for split queue model",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d2e680b1dbf8b7c373da676b499bbd339a28f6f5",
    "submitter": {
        "id": 2514,
        "url": "http://patches.dpdk.org/api/people/2514/?format=api",
        "name": "Liu, Mingxia",
        "email": "mingxia.liu@intel.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/20230118073304.903093-2-mingxia.liu@intel.com/mbox/",
    "series": [
        {
            "id": 26589,
            "url": "http://patches.dpdk.org/api/series/26589/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26589",
            "date": "2023-01-18T07:33:02",
            "name": null,
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/26589/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/122273/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/122273/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 B4E884240B;\n\tWed, 18 Jan 2023 09:30:18 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 53F8542D49;\n\tWed, 18 Jan 2023 09:28:48 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id DF1C142D0B\n for <dev@dpdk.org>; Wed, 18 Jan 2023 09:28:45 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Jan 2023 00:28:45 -0800",
            "from dpdk-mingxial-01.sh.intel.com ([10.67.119.167])\n by fmsmga004.fm.intel.com with ESMTP; 18 Jan 2023 00:28:43 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1674030526; x=1705566526;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=MX1fl1hddCSZriThaPQkm3sSimGsfcEf3cQh4nYJ9kI=;\n b=N49OdMl+8Ou5CWveIiuE/rUktQg0vVr4z/ce2QSdztQl+fbJwT3JDm3h\n K2kLy4eb50Z/5jfIqyuSvci0CTgfqN8Ly9InILzn4ACPwxr3yZ9/mX7v+\n XHCwQsOEi7EellHuvXGVeX8KVJpBugHQjvxCg7ILQBD4c/rqkLyA5yd5a\n CwAZphVX0JAieqkhECXG2rv3j5SGFXgWtxbq2c3on6FnYefThgc1Zhg0L\n 0q5Gh+tDRtTRm6j38pIfxDrwYQfSFkes0JtxTwLBezjYsH1Pfzprwi3Gd\n yEJtdEaRydgMlKv3hjTeQ/Pn3kAcCjQmVnimYarH0qtGp5AWUXSm11ycf Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10593\"; a=\"322620069\"",
            "E=Sophos;i=\"5.97,224,1669104000\"; d=\"scan'208\";a=\"322620069\"",
            "E=McAfee;i=\"6500,9779,10593\"; a=\"728100085\"",
            "E=Sophos;i=\"5.97,224,1669104000\"; d=\"scan'208\";a=\"728100085\""
        ],
        "X-ExtLoop1": "1",
        "From": "Mingxia Liu <mingxia.liu@intel.com>",
        "To": "dev@dpdk.org, qi.z.zhang@intel.com, jingjing.wu@intel.com,\n beilei.xing@intel.com",
        "Cc": "wenjun1.wu@intel.com,\n\tMingxia Liu <mingxia.liu@intel.com>",
        "Subject": "[PATCH v3 17/21] net/cpfl: add AVX512 data path for split queue model",
        "Date": "Wed, 18 Jan 2023 07:33:03 +0000",
        "Message-Id": "<20230118073304.903093-2-mingxia.liu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230118073304.903093-1-mingxia.liu@intel.com>",
        "References": "<20230113081931.221576-1-mingxia.liu@intel.com>\n <20230118073304.903093-1-mingxia.liu@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": "Add support of AVX512 data path for split queue model.\n\nSigned-off-by: Wenjun Wu <wenjun1.wu@intel.com>\nSigned-off-by: Mingxia Liu <mingxia.liu@intel.com>\n---\n drivers/net/cpfl/cpfl_rxtx.c            | 25 +++++++++++++++++++++++++\n drivers/net/cpfl/cpfl_rxtx_vec_common.h | 19 +++++++++++++++++--\n 2 files changed, 42 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c\nindex 559b10cb85..5cd25278d6 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.c\n+++ b/drivers/net/cpfl/cpfl_rxtx.c\n@@ -772,6 +772,20 @@ cpfl_set_rx_function(struct rte_eth_dev *dev)\n \n #ifdef RTE_ARCH_X86\n \tif (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) {\n+#ifdef RTE_ARCH_X86\n+\t\tif (vport->rx_vec_allowed) {\n+\t\t\tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n+\t\t\t\trxq = dev->data->rx_queues[i];\n+\t\t\t\t(void)idpf_splitq_rx_vec_setup(rxq);\n+\t\t\t}\n+#ifdef CC_AVX512_SUPPORT\n+\t\t\tif (vport->rx_use_avx512) {\n+\t\t\t\tdev->rx_pkt_burst = idpf_splitq_recv_pkts_avx512;\n+\t\t\t\treturn;\n+\t\t\t}\n+#endif\n+\t\t}\n+#endif\n \t\tdev->rx_pkt_burst = idpf_splitq_recv_pkts;\n \t} else {\n \t\tif (vport->rx_vec_allowed) {\n@@ -833,6 +847,17 @@ cpfl_set_tx_function(struct rte_eth_dev *dev)\n #endif /* RTE_ARCH_X86 */\n \n \tif (vport->txq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) {\n+#ifdef RTE_ARCH_X86\n+\t\tif (vport->tx_vec_allowed) {\n+#ifdef CC_AVX512_SUPPORT\n+\t\t\tif (vport->tx_use_avx512) {\n+\t\t\t\tdev->tx_pkt_burst = idpf_splitq_xmit_pkts_avx512;\n+\t\t\t\tdev->tx_pkt_prepare = idpf_prep_pkts;\n+\t\t\t\treturn;\n+\t\t\t}\n+#endif\n+\t\t}\n+#endif\n \t\tdev->tx_pkt_burst = idpf_splitq_xmit_pkts;\n \t\tdev->tx_pkt_prepare = idpf_prep_pkts;\n \t} else {\ndiff --git a/drivers/net/cpfl/cpfl_rxtx_vec_common.h b/drivers/net/cpfl/cpfl_rxtx_vec_common.h\nindex 503bc87f21..1f01cd40c5 100644\n--- a/drivers/net/cpfl/cpfl_rxtx_vec_common.h\n+++ b/drivers/net/cpfl/cpfl_rxtx_vec_common.h\n@@ -64,15 +64,30 @@ cpfl_tx_vec_queue_default(struct idpf_tx_queue *txq)\n \treturn CPFL_VECTOR_PATH;\n }\n \n+static inline int\n+cpfl_rx_splitq_vec_default(struct idpf_rx_queue *rxq)\n+{\n+\tif (rxq->bufq2->rx_buf_len < rxq->max_pkt_len)\n+\t\treturn CPFL_SCALAR_PATH;\n+\n+\treturn CPFL_VECTOR_PATH;\n+}\n+\n static inline int\n cpfl_rx_vec_dev_check_default(struct rte_eth_dev *dev)\n {\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n \tstruct idpf_rx_queue *rxq;\n-\tint i, ret = 0;\n+\tint i, default_ret, splitq_ret, ret = CPFL_SCALAR_PATH;\n \n \tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n \t\trxq = dev->data->rx_queues[i];\n-\t\tret = (cpfl_rx_vec_queue_default(rxq));\n+\t\tdefault_ret = cpfl_rx_vec_queue_default(rxq);\n+\t\tif (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) {\n+\t\t\tsplitq_ret = cpfl_rx_splitq_vec_default(rxq);\n+\t\t\tret = splitq_ret && default_ret;\n+\t\t} else\n+\t\t\tret = default_ret;\n \t\tif (ret == CPFL_SCALAR_PATH)\n \t\t\treturn CPFL_SCALAR_PATH;\n \t}\n",
    "prefixes": [
        "v3",
        "17/21"
    ]
}