get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28431,
    "url": "https://patches.dpdk.org/api/patches/28431/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1504773339-21022-3-git-send-email-mohammad.abdul.awal@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1504773339-21022-3-git-send-email-mohammad.abdul.awal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1504773339-21022-3-git-send-email-mohammad.abdul.awal@intel.com",
    "date": "2017-09-07T08:35:36",
    "name": "[dpdk-dev,RFC,2/5] added --enable-representor command line argument in EAL to load representor broker infrastructure.",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cac9746b346aadf88865789598570fdea5455a5d",
    "submitter": {
        "id": 482,
        "url": "https://patches.dpdk.org/api/people/482/?format=api",
        "name": "Mohammad Abdul Awal",
        "email": "mohammad.abdul.awal@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1504773339-21022-3-git-send-email-mohammad.abdul.awal@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28431/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/28431/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 8FB2F199C0;\n\tThu,  7 Sep 2017 10:36:44 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id B21FE199B9\n\tfor <dev@dpdk.org>; Thu,  7 Sep 2017 10:36:42 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t07 Sep 2017 01:36:42 -0700",
            "from awal-z170x.ir.intel.com ([163.33.210.59])\n\tby orsmga003.jf.intel.com with ESMTP; 07 Sep 2017 01:36:41 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.42,357,1500966000\"; d=\"scan'208\";\n\ta=\"1011909853\"",
        "From": "Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>,\n\tRemy Horton <remy.horton@intel.com>,\n\tDeclan Doherty <declan.doherty@intel.com>",
        "Date": "Thu,  7 Sep 2017 09:35:36 +0100",
        "Message-Id": "<1504773339-21022-3-git-send-email-mohammad.abdul.awal@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1504773339-21022-1-git-send-email-mohammad.abdul.awal@intel.com>",
        "References": "<1504773339-21022-1-git-send-email-mohammad.abdul.awal@intel.com>",
        "Subject": "[dpdk-dev] [RFC 2/5] added --enable-representor command line\n\targument in EAL to load representor broker infrastructure.",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>\nSigned-off-by: Remy Horton <remy.horton@intel.com>\nSigned-off-by: Declan Doherty <declan.doherty@intel.com>\n---\n lib/librte_eal/bsdapp/eal/eal.c            | 6 ++++++\n lib/librte_eal/common/eal_common_options.c | 1 +\n lib/librte_eal/common/eal_internal_cfg.h   | 2 ++\n lib/librte_eal/common/eal_options.h        | 2 ++\n lib/librte_eal/common/include/rte_eal.h    | 8 ++++++++\n lib/librte_eal/linuxapp/eal/eal.c          | 9 +++++++++\n 6 files changed, 28 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c\nindex 5fa5988..d1a3c79 100644\n--- a/lib/librte_eal/bsdapp/eal/eal.c\n+++ b/lib/librte_eal/bsdapp/eal/eal.c\n@@ -698,3 +698,9 @@ rte_eal_process_type(void)\n {\n \treturn rte_config.process_type;\n }\n+\n+/* return non-zero if port-representor is enabled. */\n+int rte_representor_enabled(void)\n+{\n+\treturn internal_config.enable_representor;\n+}\ndiff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex 1da185e..f9c0b42 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -78,6 +78,7 @@ const struct option\n eal_long_options[] = {\n \t{OPT_BASE_VIRTADDR,     1, NULL, OPT_BASE_VIRTADDR_NUM    },\n \t{OPT_CREATE_UIO_DEV,    0, NULL, OPT_CREATE_UIO_DEV_NUM   },\n+\t{OPT_ENABLE_REPRESENTOR, 0, NULL, OPT_ENABLE_REPRESENTOR_NUM   },\n \t{OPT_FILE_PREFIX,       1, NULL, OPT_FILE_PREFIX_NUM      },\n \t{OPT_HELP,              0, NULL, OPT_HELP_NUM             },\n \t{OPT_HUGE_DIR,          1, NULL, OPT_HUGE_DIR_NUM         },\ndiff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h\nindex 7b7e8c8..d0b3080 100644\n--- a/lib/librte_eal/common/eal_internal_cfg.h\n+++ b/lib/librte_eal/common/eal_internal_cfg.h\n@@ -72,6 +72,8 @@ struct internal_config {\n \t\t\t\t\t\t\t\t\t\t* instead of native TSC */\n \tvolatile unsigned no_shconf;      /**< true if there is no shared config */\n \tvolatile unsigned create_uio_dev; /**< true to create /dev/uioX devices */\n+\tvolatile unsigned enable_representor;\n+\t/**< true to enable port representor broker for all PFs */\n \tvolatile enum rte_proc_type_t process_type; /**< multi-process proc type */\n \t/** true to try allocating memory on specific sockets */\n \tvolatile unsigned force_sockets;\ndiff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h\nindex 439a261..a8be6e3 100644\n--- a/lib/librte_eal/common/eal_options.h\n+++ b/lib/librte_eal/common/eal_options.h\n@@ -49,6 +49,8 @@ enum {\n \tOPT_BASE_VIRTADDR_NUM,\n #define OPT_CREATE_UIO_DEV    \"create-uio-dev\"\n \tOPT_CREATE_UIO_DEV_NUM,\n+#define OPT_ENABLE_REPRESENTOR    \"enable-representor\"\n+\tOPT_ENABLE_REPRESENTOR_NUM,\n #define OPT_FILE_PREFIX       \"file-prefix\"\n \tOPT_FILE_PREFIX_NUM,\n #define OPT_HUGE_DIR          \"huge-dir\"\ndiff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h\nindex 0e7363d..4d4a6ce 100644\n--- a/lib/librte_eal/common/include/rte_eal.h\n+++ b/lib/librte_eal/common/include/rte_eal.h\n@@ -287,6 +287,14 @@ static inline int rte_gettid(void)\n \treturn RTE_PER_LCORE(_thread_id);\n }\n \n+/**\n+ * Get flag for port representor should be enabled or not.\n+ *\n+ * @return\n+ *   Returns the enable-representor flag.\n+ */\n+int rte_representor_enabled(void);\n+\n #define RTE_INIT(func) \\\n static void __attribute__((constructor, used)) func(void)\n \ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 48f12f4..165da30 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -610,6 +610,10 @@ eal_parse_args(int argc, char **argv)\n \t\t\tinternal_config.create_uio_dev = 1;\n \t\t\tbreak;\n \n+\t\tcase OPT_ENABLE_REPRESENTOR_NUM:\n+\t\t\tinternal_config.enable_representor = 1;\n+\t\t\tbreak;\n+\n \t\tdefault:\n \t\t\tif (opt < OPT_LONG_MIN_NUM && isprint(opt)) {\n \t\t\t\tRTE_LOG(ERR, EAL, \"Option %c is not supported \"\n@@ -1016,3 +1020,8 @@ rte_eal_check_module(const char *module_name)\n \t/* Module has been found */\n \treturn 1;\n }\n+\n+int rte_representor_enabled(void)\n+{\n+\treturn internal_config.enable_representor;\n+}\n",
    "prefixes": [
        "dpdk-dev",
        "RFC",
        "2/5"
    ]
}