get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121329,
    "url": "http://patches.dpdk.org/api/patches/121329/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221223015558.3143279-18-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": "<20221223015558.3143279-18-mingxia.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221223015558.3143279-18-mingxia.liu@intel.com",
    "date": "2022-12-23T01:55:54",
    "name": "[17/21] net/cpfl: add AVX512 data path for split queue model",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "93dfbe05fa99dde6fcf60282df7f63e919a4ecc2",
    "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/20221223015558.3143279-18-mingxia.liu@intel.com/mbox/",
    "series": [
        {
            "id": 26253,
            "url": "http://patches.dpdk.org/api/series/26253/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26253",
            "date": "2022-12-23T01:55:37",
            "name": "add support for cpfl PMD in DPDK",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26253/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/121329/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/121329/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 ECD94A0093;\n\tFri, 23 Dec 2022 03:53:26 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 775D642D30;\n\tFri, 23 Dec 2022 03:52:17 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id E069442D5D\n for <dev@dpdk.org>; Fri, 23 Dec 2022 03:52:15 +0100 (CET)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Dec 2022 18:52:15 -0800",
            "from dpdk-mingxial-01.sh.intel.com ([10.67.119.112])\n by orsmga006.jf.intel.com with ESMTP; 22 Dec 2022 18:52:13 -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=1671763936; x=1703299936;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=HvVrIh2n47FGFez5kPxuf71Yg5siVf+PK8TFhmiff9M=;\n b=Vu+Lug4e5mpm6wYAzqZFuVBd4CKWL9iO2j+QIBAySVHMnvSR4aMmkkiE\n Yqfz10Bvd0Ovh8LuJkPwovBk1Tdi2ErvVk4njMglD0rsWxquzPTA4WzGC\n lEwoqpjB2aQwxh3bnm73jr0+/WmmhVGidCNfJkxXAqapZO7Ug4hTNZuJ6\n 8YuAyAxHCZ7fsYon2P2mlxHA3sIkDUwcjVzzICgz7uRUbPVUH8TnxN4ja\n taaow3lP01pe4viHmaXnAmHZ/vU6Pt2VTq8Hun+QToks1gUdWU0e5OnDJ\n bZAlRa4A8J/nuV0PGNZopZRhgi6GcMNqwCLng482LEyGXuZhMpfuoN34/ Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10569\"; a=\"321467129\"",
            "E=Sophos;i=\"5.96,267,1665471600\"; d=\"scan'208\";a=\"321467129\"",
            "E=McAfee;i=\"6500,9779,10569\"; a=\"629707197\"",
            "E=Sophos;i=\"5.96,267,1665471600\"; d=\"scan'208\";a=\"629707197\""
        ],
        "X-ExtLoop1": "1",
        "From": "Mingxia Liu <mingxia.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jingjing.wu@intel.com, beilei.xing@intel.com, qi.z.zhang@intel.com,\n Mingxia Liu <mingxia.liu@intel.com>, Wenjun Wu <wenjun1.wu@intel.com>",
        "Subject": "[PATCH 17/21] net/cpfl: add AVX512 data path for split queue model",
        "Date": "Fri, 23 Dec 2022 01:55:54 +0000",
        "Message-Id": "<20221223015558.3143279-18-mingxia.liu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221223015558.3143279-1-mingxia.liu@intel.com>",
        "References": "<20221223015558.3143279-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 | 14 +++++++++++++-\n 2 files changed, 38 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c\nindex efe13775e6..9277249704 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_tx_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 a411cf6a32..fc3ace89dd 100644\n--- a/drivers/net/cpfl/cpfl_rxtx_vec_common.h\n+++ b/drivers/net/cpfl/cpfl_rxtx_vec_common.h\n@@ -63,15 +63,27 @@ 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 -1;\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 \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\tret = cpfl_rx_vec_queue_default(rxq) ||\n+\t\t      (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT &&\n+\t\t       cpfl_rx_splitq_vec_default(rxq));\n \t\tif (ret < 0)\n \t\t\treturn -1;\n \t}\n",
    "prefixes": [
        "17/21"
    ]
}