get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114644,
    "url": "http://patchwork.dpdk.org/api/patches/114644/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220804165839.1074817-22-cristian.dumitrescu@intel.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": "<20220804165839.1074817-22-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220804165839.1074817-22-cristian.dumitrescu@intel.com",
    "date": "2022-08-04T16:58:39",
    "name": "[21/21] net/softnic: update the default device program",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0fc2168e98a697a36037c8809a5eba58763ca398",
    "submitter": {
        "id": 19,
        "url": "http://patchwork.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 3961,
        "url": "http://patchwork.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220804165839.1074817-22-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24205,
            "url": "http://patchwork.dpdk.org/api/series/24205/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24205",
            "date": "2022-08-04T16:58:18",
            "name": "net/softnic: replace the legacy pipeline with SWX pipeline",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/24205/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/114644/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/114644/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 F3AE2A00C4;\n\tThu,  4 Aug 2022 19:01:50 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7907D42CB6;\n\tThu,  4 Aug 2022 18:59:19 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 1A1E842C93\n for <dev@dpdk.org>; Thu,  4 Aug 2022 18:59:17 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Aug 2022 09:59:17 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.157])\n by orsmga001.jf.intel.com with ESMTP; 04 Aug 2022 09:59:16 -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=1659632358; x=1691168358;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=soDfUIsL6Hn8tyVJG90ZJY+owP6/vBB+tJeR7FDESoQ=;\n b=m2/Ce86qOJazKSeHLmT8ixa6pqOPl4iDjyj/sTUg9urLvQqlykxcwG8u\n vx9O1UHQWYVwSfJBbhq7xkxYbkViNyO3cy28vqmQEROcIi/g1HZ+VMwYQ\n J39GiCoccXTid8Krorq42gNe7FsGYOOB+4QArmo2m9eYLQVIeoNFgV5wa\n HU0p9y21UzJJlZQfn0RkqtV9Gm04CSYyRJ8a/z1E0+S1AyqmzbPsJuvpz\n JLFS3lpZ+kBAQCnqkqF7d52qBBGF+O1mA4/OF0jm0FbsIbpjRhD4FdApY\n nLgMRXL1MKjs9cTHF62xoFt8GnsIBgkQcRoiY871AunuLmIB7rfXAmoBn g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10429\"; a=\"290000228\"",
            "E=Sophos;i=\"5.93,216,1654585200\"; d=\"scan'208\";a=\"290000228\"",
            "E=Sophos;i=\"5.93,216,1654585200\"; d=\"scan'208\";a=\"636163288\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jasvinder.singh@intel.com,\n\tyogesh.jangra@intel.com",
        "Subject": "[PATCH 21/21] net/softnic: update the default device program",
        "Date": "Thu,  4 Aug 2022 16:58:39 +0000",
        "Message-Id": "<20220804165839.1074817-22-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220804165839.1074817-1-cristian.dumitrescu@intel.com>",
        "References": "<20220804165839.1074817-1-cristian.dumitrescu@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": "Update the default device program.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\n---\n drivers/net/softnic/firmware.cli   | 51 ++++++++++++++++++++----------\n drivers/net/softnic/firmware.spec  | 19 +++++++++++\n drivers/net/softnic/firmware_rx.io | 30 ++++++++++++++++++\n drivers/net/softnic/firmware_tx.io | 30 ++++++++++++++++++\n 4 files changed, 114 insertions(+), 16 deletions(-)\n create mode 100644 drivers/net/softnic/firmware.spec\n create mode 100644 drivers/net/softnic/firmware_rx.io\n create mode 100644 drivers/net/softnic/firmware_tx.io",
    "diff": "diff --git a/drivers/net/softnic/firmware.cli b/drivers/net/softnic/firmware.cli\nindex 300cf6e33f..8f1ff3bbb7 100644\n--- a/drivers/net/softnic/firmware.cli\n+++ b/drivers/net/softnic/firmware.cli\n@@ -1,21 +1,40 @@\n ; SPDX-License-Identifier: BSD-3-Clause\n-; Copyright(c) 2018 Intel Corporation\n+; Copyright(c) 2022 Intel Corporation\n \n-link LINK dev 0000:02:00.0\n+# Example command line for the DPDK test-pmd application. Out of the 3 application cores (see the\n+# -c <core_mask> argument), core 0 is running the master thread doing configuration and CLI, core 1\n+# is running the forwarding thread, and core 2 is setup as service core (see the -s <core_mask>\n+# argument) for the purpose of running the Soft NIC device:\n+#\n+#\t./build/app/dpdk-testpmd -c 7 -s 4 --vdev 'net_softnic0,firmware=./drivers/net/softnic/firmware.cli,cpu_id=0,conn_port=8086' -- -i\n+#\n+# Commands from within the DPDK test-pmd application:\n+#\n+# \ttestpmd> set portlist <softnic_port_id>\n+#\ttestpmd> show config fwd\n+#\ttestpmd> start\n+#\n+# To setup the CLI prompt to the Soft NIC device, the DPDK test-pmd application needs to be modified\n+# to call the rte_pmd_softnic_manage() function. Once the Soft NIC device is started, the command to\n+# get the CLI prompt is:\n+#\n+#\ttelnet 0.0.0.0 8086\n \n-pipeline RX period 10 offset_port_id 0\n-pipeline RX port in bsz 32 link LINK rxq 0\n-pipeline RX port out bsz 32 swq RXQ0\n-pipeline RX table match stub\n-pipeline RX port in 0 table 0\n-pipeline RX table 0 rule add match default action fwd port 0\n+;\n+; Pipeline code generation & shared object library build.\n+;\n+pipeline codegen ./drivers/net/softnic/firmware.spec /tmp/firmware.c\n+pipeline libbuild /tmp/firmware.c /tmp/firmware.so\n \n-pipeline TX period 10 offset_port_id 0\n-pipeline TX port in bsz 32 swq TXQ0\n-pipeline TX port out bsz 32 link LINK txq 0\n-pipeline TX table match stub\n-pipeline TX port in 0 table 0\n-pipeline TX table 0 rule add match default action fwd port 0\n+;\n+; List of pipelines.\n+;\n+pipeline RX build lib /tmp/firmware.so io ./drivers/net/softnic/firmware_rx.io numa 0\n+pipeline TX build lib /tmp/firmware.so io ./drivers/net/softnic/firmware_tx.io numa 0\n \n-thread 1 pipeline RX enable\n-thread 1 pipeline TX enable\n+;\n+; Pipelines-to-threads mapping. For the Soft NIC devices, the pipelines can be mapped to any of the\n+; application service cores (see the -s <core_mask> argument):\n+;\n+thread 2 pipeline RX enable\n+thread 2 pipeline TX enable\ndiff --git a/drivers/net/softnic/firmware.spec b/drivers/net/softnic/firmware.spec\nnew file mode 100644\nindex 0000000000..106caae735\n--- /dev/null\n+++ b/drivers/net/softnic/firmware.spec\n@@ -0,0 +1,19 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2022 Intel Corporation\n+\n+//\n+// Meta-data.\n+//\n+struct metadata_t {\n+\tbit<32> port\n+}\n+\n+metadata instanceof metadata_t\n+\n+//\n+// Pipeline.\n+//\n+apply {\n+\trx m.port\n+\ttx m.port\n+}\ndiff --git a/drivers/net/softnic/firmware_rx.io b/drivers/net/softnic/firmware_rx.io\nnew file mode 100644\nindex 0000000000..9baa4612b1\n--- /dev/null\n+++ b/drivers/net/softnic/firmware_rx.io\n@@ -0,0 +1,30 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2022 Intel Corporation\n+\n+;\n+; Pipeline input ports.\n+;\n+; Syntax:\n+;\n+;    port in <port_id> ethdev <ethdev_name> rxq <queue_id> bsz <burst_size>\n+;    port in <port_id> ring <ring_name> bsz <burst_size>\n+;    port in <port_id> source mempool <mempool_name> file <file_name> loop <n_loops> packets <n_pkts_max>\n+;    port in <port_id> fd <file_descriptor> mtu <mtu> mempool <mempool_name> bsz <burst_size>\n+;\n+; Note: Customize the parameters below to match your setup.\n+;\n+port in 0 ethdev 0000:18:00.0 rxq 0 bsz 32\n+\n+;\n+; Pipeline output ports.\n+;\n+; Syntax:\n+;\n+;    port out <port_id> ethdev <ethdev_name> txq <queue_id> bsz <burst_size>\n+;    port out <port_id> ring <ring_name> bsz <burst_size>\n+;    port out <port_id> sink file <file_name> | none\n+;    port out <port_id> fd <file_descriptor> bsz <burst_size>\n+;\n+; Note: Customize the parameters below to match your setup.\n+;\n+port out 0 ring RXQ0 bsz 32\ndiff --git a/drivers/net/softnic/firmware_tx.io b/drivers/net/softnic/firmware_tx.io\nnew file mode 100644\nindex 0000000000..4c4608b105\n--- /dev/null\n+++ b/drivers/net/softnic/firmware_tx.io\n@@ -0,0 +1,30 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2022 Intel Corporation\n+\n+;\n+; Pipeline input ports.\n+;\n+; Syntax:\n+;\n+;    port in <port_id> ethdev <ethdev_name> rxq <queue_id> bsz <burst_size>\n+;    port in <port_id> ring <ring_name> bsz <burst_size>\n+;    port in <port_id> source mempool <mempool_name> file <file_name> loop <n_loops> packets <n_pkts_max>\n+;    port in <port_id> fd <file_descriptor> mtu <mtu> mempool <mempool_name> bsz <burst_size>\n+;\n+; Note: Customize the parameters below to match your setup.\n+;\n+port in 0 ring TXQ0 bsz 32\n+\n+;\n+; Pipeline output ports.\n+;\n+; Syntax:\n+;\n+;    port out <port_id> ethdev <ethdev_name> txq <queue_id> bsz <burst_size>\n+;    port out <port_id> ring <ring_name> bsz <burst_size>\n+;    port out <port_id> sink file <file_name> | none\n+;    port out <port_id> fd <file_descriptor> bsz <burst_size>\n+;\n+; Note: Customize the parameters below to match your setup.\n+;\n+port out 0 ethdev 0000:18:00.0 txq 0 bsz 32\n",
    "prefixes": [
        "21/21"
    ]
}