get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 90086,
    "url": "http://patchwork.dpdk.org/api/patches/90086/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210330082212.707-6-pbhagavatula@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20210330082212.707-6-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210330082212.707-6-pbhagavatula@marvell.com",
    "date": "2021-03-30T08:22:08",
    "name": "[v9,5/8] eventdev: add Tx adapter event vector support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cb873d596a1e305a00328801754b9d90a9f78ec4",
    "submitter": {
        "id": 1183,
        "url": "http://patchwork.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210330082212.707-6-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 15971,
            "url": "http://patchwork.dpdk.org/api/series/15971/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=15971",
            "date": "2021-03-30T08:22:03",
            "name": "Introduce event vectorization",
            "version": 9,
            "mbox": "http://patchwork.dpdk.org/series/15971/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/90086/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/90086/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 A29EDA034F;\n\tTue, 30 Mar 2021 10:23:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 14A6A140DAC;\n\tTue, 30 Mar 2021 10:22:53 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id CDA37140DA2\n for <dev@dpdk.org>; Tue, 30 Mar 2021 10:22:51 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 12U8Kk40032428; Tue, 30 Mar 2021 01:22:51 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 37kh3n2pgf-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 30 Mar 2021 01:22:51 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Tue, 30 Mar 2021 01:22:49 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 30 Mar 2021 01:22:49 -0700",
            "from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176])\n by maili.marvell.com (Postfix) with ESMTP id 595DF3F703F;\n Tue, 30 Mar 2021 01:22:45 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=Wjm1+KBXz7Kbih1e/0YybT/T8xtDeeBupU991pK7cjA=;\n b=W5T2+ASNfv2SdB/hnjKFVD0cqDrD+tq+VFW8sjm/A+wo8fSHk7JVxj1aeKIByJN3JJsf\n 7+07s9SuH4A/A+QdCwe6lR4c7SRwG1RtmbDqY0zBHTb1SfhfetyaqAnIkMCpZ5mCfeQw\n af448NilTUhJYF24WjV2wgw3TwtjzW3s5/HpkT5s9ipluNV5k7PunaOcw+DByAoh7fWx\n rn8Jp6kdXuJheLbx1k0sqw2gC6bMo0a1gIkvu4z4TuyWitbIeDG86s4M+EMSDh0og8Zt\n ryubmTli96Z8P/hXSrA4b42keTZ4U8UUxsxAsjgZbslLTHOC+t0DuOGIvYmFwCk48XFU BQ==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, <jay.jayatheerthan@intel.com>,\n <erik.g.carrillo@intel.com>, <abhinandan.gujjar@intel.com>,\n <timothy.mcdaniel@intel.com>, <hemant.agrawal@nxp.com>,\n <harry.van.haaren@intel.com>, <mattias.ronnblom@ericsson.com>,\n <liang.j.ma@intel.com>",
        "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "Date": "Tue, 30 Mar 2021 13:52:08 +0530",
        "Message-ID": "<20210330082212.707-6-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210330082212.707-1-pbhagavatula@marvell.com>",
        "References": "<20210326140850.7332-1-pbhagavatula@marvell.com>\n <20210330082212.707-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "nicDXVlzhDS8pSrVMjl2lj31Ga78kPIz",
        "X-Proofpoint-GUID": "nicDXVlzhDS8pSrVMjl2lj31Ga78kPIz",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761\n definitions=2021-03-30_02:2021-03-26,\n 2021-03-30 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v9 5/8] eventdev: add Tx adapter event vector\n support",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd event vector support for event eth Tx adapter, the implementation\nreceives events from the single linked queue and based on\nrte_event_vector::attr_valid transmits the vector of mbufs to a given\nport, queue pair.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\nAcked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com>\n---\n .../rte_event_eth_tx_adapter.c                | 66 ++++++++++++++++---\n lib/librte_eventdev/rte_eventdev.c            |  5 +-\n 2 files changed, 60 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/lib/librte_eventdev/rte_event_eth_tx_adapter.c b/lib/librte_eventdev/rte_event_eth_tx_adapter.c\nindex 5b4c42dcf..db260bfb6 100644\n--- a/lib/librte_eventdev/rte_event_eth_tx_adapter.c\n+++ b/lib/librte_eventdev/rte_event_eth_tx_adapter.c\n@@ -510,6 +510,47 @@ txa_service_buffer_retry(struct rte_mbuf **pkts, uint16_t unsent,\n \tstats->tx_dropped += unsent - sent;\n }\n \n+static uint16_t\n+txa_process_event_vector(struct txa_service_data *txa,\n+\t\t\t struct rte_event_vector *vec)\n+{\n+\tstruct txa_service_queue_info *tqi;\n+\tuint16_t port, queue, nb_tx = 0;\n+\tstruct rte_mbuf **mbufs;\n+\tint i;\n+\n+\tmbufs = (struct rte_mbuf **)vec->mbufs;\n+\tif (vec->attr_valid) {\n+\t\tport = vec->port;\n+\t\tqueue = vec->queue;\n+\t\ttqi = txa_service_queue(txa, port, queue);\n+\t\tif (unlikely(tqi == NULL || !tqi->added)) {\n+\t\t\trte_pktmbuf_free_bulk(mbufs, vec->nb_elem);\n+\t\t\trte_mempool_put(rte_mempool_from_obj(vec), vec);\n+\t\t\treturn 0;\n+\t\t}\n+\t\tfor (i = 0; i < vec->nb_elem; i++) {\n+\t\t\tnb_tx += rte_eth_tx_buffer(port, queue, tqi->tx_buf,\n+\t\t\t\t\t\t   mbufs[i]);\n+\t\t}\n+\t} else {\n+\t\tfor (i = 0; i < vec->nb_elem; i++) {\n+\t\t\tport = mbufs[i]->port;\n+\t\t\tqueue = rte_event_eth_tx_adapter_txq_get(mbufs[i]);\n+\t\t\ttqi = txa_service_queue(txa, port, queue);\n+\t\t\tif (unlikely(tqi == NULL || !tqi->added)) {\n+\t\t\t\trte_pktmbuf_free(mbufs[i]);\n+\t\t\t\tcontinue;\n+\t\t\t}\n+\t\t\tnb_tx += rte_eth_tx_buffer(port, queue, tqi->tx_buf,\n+\t\t\t\t\t\t   mbufs[i]);\n+\t\t}\n+\t}\n+\trte_mempool_put(rte_mempool_from_obj(vec), vec);\n+\n+\treturn nb_tx;\n+}\n+\n static void\n txa_service_tx(struct txa_service_data *txa, struct rte_event *ev,\n \tuint32_t n)\n@@ -522,22 +563,27 @@ txa_service_tx(struct txa_service_data *txa, struct rte_event *ev,\n \n \tnb_tx = 0;\n \tfor (i = 0; i < n; i++) {\n-\t\tstruct rte_mbuf *m;\n \t\tuint16_t port;\n \t\tuint16_t queue;\n \t\tstruct txa_service_queue_info *tqi;\n \n-\t\tm = ev[i].mbuf;\n-\t\tport = m->port;\n-\t\tqueue = rte_event_eth_tx_adapter_txq_get(m);\n+\t\tif (!(ev[i].event_type & RTE_EVENT_TYPE_VECTOR)) {\n+\t\t\tstruct rte_mbuf *m;\n \n-\t\ttqi = txa_service_queue(txa, port, queue);\n-\t\tif (unlikely(tqi == NULL || !tqi->added)) {\n-\t\t\trte_pktmbuf_free(m);\n-\t\t\tcontinue;\n-\t\t}\n+\t\t\tm = ev[i].mbuf;\n+\t\t\tport = m->port;\n+\t\t\tqueue = rte_event_eth_tx_adapter_txq_get(m);\n \n-\t\tnb_tx += rte_eth_tx_buffer(port, queue, tqi->tx_buf, m);\n+\t\t\ttqi = txa_service_queue(txa, port, queue);\n+\t\t\tif (unlikely(tqi == NULL || !tqi->added)) {\n+\t\t\t\trte_pktmbuf_free(m);\n+\t\t\t\tcontinue;\n+\t\t\t}\n+\n+\t\t\tnb_tx += rte_eth_tx_buffer(port, queue, tqi->tx_buf, m);\n+\t\t} else {\n+\t\t\tnb_tx += txa_process_event_vector(txa, ev[i].vec);\n+\t\t}\n \t}\n \n \tstats->tx_packets += nb_tx;\ndiff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c\nindex 62824654b..c9bb5d227 100644\n--- a/lib/librte_eventdev/rte_eventdev.c\n+++ b/lib/librte_eventdev/rte_eventdev.c\n@@ -196,7 +196,10 @@ rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,\n \tif (caps == NULL)\n \t\treturn -EINVAL;\n \n-\t*caps = 0;\n+\tif (dev->dev_ops->eth_tx_adapter_caps_get == NULL)\n+\t\t*caps = RTE_EVENT_ETH_TX_ADAPTER_CAP_EVENT_VECTOR;\n+\telse\n+\t\t*caps = 0;\n \n \treturn dev->dev_ops->eth_tx_adapter_caps_get ?\n \t\t\t(*dev->dev_ops->eth_tx_adapter_caps_get)(dev,\n",
    "prefixes": [
        "v9",
        "5/8"
    ]
}