Show a patch.

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

{
    "id": 184,
    "url": "https://patches.dpdk.org/api/patches/184/",
    "web_url": "https://patches.dpdk.org/patch/184/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1408456313-28812-7-git-send-email-declan.doherty@intel.com>",
    "date": "2014-08-19T13:51:53",
    "name": "[dpdk-dev,6/6] testpmd: adding parameter to reconfig method to set socket_id when adding new port to portlist",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "406a77e8b779f55f4156790f0e2f2174b312a050",
    "submitter": {
        "id": 11,
        "url": "https://patches.dpdk.org/api/people/11/",
        "name": "Doherty, Declan",
        "email": "declan.doherty@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/184/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/184/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/184/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Date": "Tue, 19 Aug 2014 14:51:53 +0100",
        "In-Reply-To": "<1408456313-28812-1-git-send-email-declan.doherty@intel.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<1408456313-28812-1-git-send-email-declan.doherty@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Received": [
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 67078B38B\n\tfor <dev@dpdk.org>; Tue, 19 Aug 2014 15:48:44 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 19 Aug 2014 06:52:11 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby FMSMGA003.fm.intel.com with ESMTP; 19 Aug 2014 06:48:24 -0700",
            "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\n\t[10.237.217.46])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\ts7JDq6cP002085; Tue, 19 Aug 2014 14:52:06 +0100",
            "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev02.ir.intel.com with ESMTP id s7JDq6mD003056;\n\tTue, 19 Aug 2014 14:52:06 +0100",
            "(from dwdohert@localhost)\n\tby sivswdev02.ir.intel.com with  id s7JDq6EG003051;\n\tTue, 19 Aug 2014 14:52:06 +0100"
        ],
        "From": "Declan Doherty <declan.doherty@intel.com>",
        "Precedence": "list",
        "X-ExtLoop1": "1",
        "Message-Id": "<1408456313-28812-7-git-send-email-declan.doherty@intel.com>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 6/6] testpmd: adding parameter to reconfig method\n\tto set socket_id when adding new port to portlist",
        "X-List-Received-Date": "Tue, 19 Aug 2014 13:48:45 -0000",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<dwdohert@ecsmtp.ir.intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"374260177\"",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "Fix for \"show port info\" command which displays the incorrect \"connected to socket\"\nwhen port is a link bonding port. \n\nSigned-off-by: Declan Doherty <declan.doherty@intel.com>\n---\n app/test-pmd/cmdline.c |    2 +-\n app/test-pmd/testpmd.c |    3 ++-\n app/test-pmd/testpmd.h |    2 +-\n 3 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 345be11..8cc4937 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -3515,7 +3515,7 @@ static void cmd_create_bonded_device_parsed(void *parsed_result,\n \n \t\t/* Update number of ports */\n \t\tnb_ports = rte_eth_dev_count();\n-\t\treconfig(port_id);\n+\t\treconfig(port_id, res->socket);\n \t\trte_eth_promiscuous_enable(port_id);\n \t}\n \ndiff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex e8a4b45..58ed03c 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -627,7 +627,7 @@ init_config(void)\n \n \n void\n-reconfig(portid_t new_port_id)\n+reconfig(portid_t new_port_id, unsigned socket_id)\n {\n \tstruct rte_port *port;\n \n@@ -646,6 +646,7 @@ reconfig(portid_t new_port_id)\n \t/* set flag to initialize port/queue */\n \tport->need_reconfig = 1;\n \tport->need_reconfig_queues = 1;\n+\tport->socket_id = socket_id;\n \n \tinit_port_config();\n }\ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex ac86bfe..207eacb 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -455,7 +455,7 @@ void fwd_config_display(void);\n void rxtx_config_display(void);\n void fwd_config_setup(void);\n void set_def_fwd_config(void);\n-void reconfig(portid_t new_port_id);\n+void reconfig(portid_t new_port_id, unsigned socket_id);\n int init_fwd_streams(void);\n \n void port_mtu_set(portid_t port_id, uint16_t mtu);\n",
    "prefixes": [
        "dpdk-dev",
        "6/6"
    ]
}