get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135186,
    "url": "http://patches.dpdk.org/api/patches/135186/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231214065857.2142565-4-zhichaox.zeng@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": "<20231214065857.2142565-4-zhichaox.zeng@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231214065857.2142565-4-zhichaox.zeng@intel.com",
    "date": "2023-12-14T06:58:57",
    "name": "[v2,3/3] net/iavf: add Tx LLDP command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "277d2b16e2ca4e75226280cf746b274185e0fc57",
    "submitter": {
        "id": 2644,
        "url": "http://patches.dpdk.org/api/people/2644/?format=api",
        "name": "Zhichao Zeng",
        "email": "zhichaox.zeng@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231214065857.2142565-4-zhichaox.zeng@intel.com/mbox/",
    "series": [
        {
            "id": 30547,
            "url": "http://patches.dpdk.org/api/series/30547/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30547",
            "date": "2023-12-14T06:58:54",
            "name": "net/iavf: support Tx LLDP on scalar and AVX512",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/30547/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135186/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/135186/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 2990E436E9;\n\tThu, 14 Dec 2023 07:49:57 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 154E042FC7;\n\tThu, 14 Dec 2023 07:49:57 +0100 (CET)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.10])\n by mails.dpdk.org (Postfix) with ESMTP id 803B542FA1\n for <dev@dpdk.org>; Thu, 14 Dec 2023 07:49:55 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Dec 2023 22:49:51 -0800",
            "from unknown (HELO zhichao-dpdk..) ([10.239.252.103])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Dec 2023 22:49:48 -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=1702536596; x=1734072596;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=W0oeh8bLYGf3Unw6q8WvujThrfrsbkjmwKYlq8NfNUc=;\n b=kWZTJBmQCVGewi661/BpadDN6Z64kLL6CED+bjiC3IftNryjbgAxGbdQ\n 4FSLbPl1JLdaC/lV6oosUc0G2tn4l0EdLjjKeNfDri3brE2KX0PNxMfTD\n 6zMLsGf+Zw+RrtqXL7WrdOXBkroRf8FWBxIKTjZ9MYTXYHgmHIh6IkuGU\n 02lQmxRyi0Lws6ltIarRndglQLWvyzEDM/eExKHzO25fNEClJkypoY2Su\n 5gv7e5k22E2ohygBGwWTSa1TWTqDtPYxc99mY8jEMzNET65ccRJwav6IB\n 2bqbXR8PF5jZRVGM097J9ARDSGKboMZTNgKTQb+D/jOypc6sQsNvSpjmg w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10923\"; a=\"8440333\"",
            "E=Sophos;i=\"6.04,274,1695711600\";\n   d=\"scan'208\";a=\"8440333\"",
            "E=McAfee;i=\"6600,9927,10923\"; a=\"1105584496\"",
            "E=Sophos;i=\"6.04,274,1695711600\"; d=\"scan'208\";a=\"1105584496\""
        ],
        "X-ExtLoop1": "1",
        "From": "Zhichao Zeng <zhichaox.zeng@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com, Zhichao Zeng <zhichaox.zeng@intel.com>,\n Jingjing Wu <jingjing.wu@intel.com>, Beilei Xing <beilei.xing@intel.com>",
        "Subject": "[PATCH v2 3/3] net/iavf: add Tx LLDP command",
        "Date": "Thu, 14 Dec 2023 14:58:57 +0800",
        "Message-Id": "<20231214065857.2142565-4-zhichaox.zeng@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20231214065857.2142565-1-zhichaox.zeng@intel.com>",
        "References": "<20231206060828.3310347-1-zhichaox.zeng@intel.com>\n <20231214065857.2142565-1-zhichaox.zeng@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": "This patch adds an IAVF testpmd command \"set tx lldp on|off\" which\nwill register an mbuf dynflag IAVF_TX_LLDP_DYNFLAG at the application\nlevel to indicate the need to send LLDP packet. Currently, it only\nsupports turning on.\n\nFor avx512, need to close the Tx port first, then \"set tx lldp on\",\nand reopen the port to select correct Tx path.\n\nSigned-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>\n---\n doc/guides/rel_notes/release_24_03.rst |  3 ++\n drivers/net/iavf/iavf_testpmd.c        | 68 ++++++++++++++++++++++++++\n drivers/net/iavf/meson.build           |  3 ++\n 3 files changed, 74 insertions(+)\n create mode 100644 drivers/net/iavf/iavf_testpmd.c",
    "diff": "diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst\nindex e9c9717706..46576f62fe 100644\n--- a/doc/guides/rel_notes/release_24_03.rst\n+++ b/doc/guides/rel_notes/release_24_03.rst\n@@ -55,6 +55,9 @@ New Features\n      Also, make sure to start the actual text at the margin.\n      =======================================================\n \n+* **Updated Intel iavf driver.**\n+\n+  * Added support for Tx LLDP packet on scalar and avx512.\n \n Removed Items\n -------------\ndiff --git a/drivers/net/iavf/iavf_testpmd.c b/drivers/net/iavf/iavf_testpmd.c\nnew file mode 100644\nindex 0000000000..11788ac69e\n--- /dev/null\n+++ b/drivers/net/iavf/iavf_testpmd.c\n@@ -0,0 +1,68 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2010-2016 Intel Corporation.\n+ */\n+\n+#include <stdlib.h>\n+\n+#include <rte_pmd_iavf.h>\n+\n+#include <cmdline_parse_num.h>\n+#include <cmdline_parse_string.h>\n+\n+#include \"testpmd.h\"\n+\n+struct cmd_enable_tx_lldp_result {\n+\tcmdline_fixed_string_t set;\n+\tcmdline_fixed_string_t tx;\n+\tcmdline_fixed_string_t lldp;\n+\tcmdline_fixed_string_t what;\n+};\n+\n+static cmdline_parse_token_string_t cmd_enable_tx_lldp_set =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_enable_tx_lldp_result,\n+\t\tset, \"set\");\n+static cmdline_parse_token_string_t cmd_enable_tx_lldp_tx =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_enable_tx_lldp_result,\n+\t\ttx, \"tx\");\n+static cmdline_parse_token_string_t cmd_enable_tx_lldp_lldp =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_enable_tx_lldp_result,\n+\t\tlldp, \"lldp\");\n+static cmdline_parse_token_string_t cmd_enable_tx_lldp_what =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_enable_tx_lldp_result,\n+\t\twhat, \"on#off\");\n+\n+static void\n+cmd_enable_tx_lldp_parsed(void *parsed_result,\n+\t__rte_unused struct cmdline *cl, __rte_unused void *data)\n+{\n+\tstruct cmd_enable_tx_lldp_result *res = parsed_result;\n+\tconst struct rte_mbuf_dynflag iavf_tx_lldp = { .name = { IAVF_TX_LLDP_DYNFLAG } };\n+\n+\tif (strcmp(res->what, \"on\") == 0)\n+\t\trte_mbuf_dynflag_register(&iavf_tx_lldp);\n+}\n+\n+static cmdline_parse_inst_t cmd_enable_tx_lldp = {\n+\t.f = cmd_enable_tx_lldp_parsed,\n+\t.data = NULL,\n+\t.help_str = \"set iavf tx lldp on|off\",\n+\t.tokens = {\n+\t\t(void *)&cmd_enable_tx_lldp_set,\n+\t\t(void *)&cmd_enable_tx_lldp_tx,\n+\t\t(void *)&cmd_enable_tx_lldp_lldp,\n+\t\t(void *)&cmd_enable_tx_lldp_what,\n+\t\tNULL,\n+\t},\n+};\n+\n+static struct testpmd_driver_commands iavf_cmds = {\n+\t.commands = {\n+\t{\n+\t\t&cmd_enable_tx_lldp,\n+\t\t\"set tx lldp (on|off)\\n\"\n+\t\t\"    Set iavf Tx lldp packet(currently only supported on)\\n\\n\",\n+\t},\n+\t{ NULL, NULL },\n+\t},\n+};\n+TESTPMD_ADD_DRIVER_COMMANDS(iavf_cmds)\ndiff --git a/drivers/net/iavf/meson.build b/drivers/net/iavf/meson.build\nindex a6ce2725c3..83aebd5596 100644\n--- a/drivers/net/iavf/meson.build\n+++ b/drivers/net/iavf/meson.build\n@@ -8,6 +8,9 @@ endif\n cflags += ['-Wno-strict-aliasing']\n \n includes += include_directories('../../common/iavf')\n+\n+testpmd_sources = files('iavf_testpmd.c')\n+\n deps += ['common_iavf', 'security', 'cryptodev']\n \n sources = files(\n",
    "prefixes": [
        "v2",
        "3/3"
    ]
}