get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 46948,
    "url": "http://patches.dpdk.org/api/patches/46948/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1539762086-15569-1-git-send-email-wei.zhao1@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": "<1539762086-15569-1-git-send-email-wei.zhao1@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1539762086-15569-1-git-send-email-wei.zhao1@intel.com",
    "date": "2018-10-17T07:41:26",
    "name": "examples/ipv4_multicast: enable multicast promiscuous for all port",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "65c64813a036c25e02243570235daaf13e4b77e1",
    "submitter": {
        "id": 495,
        "url": "http://patches.dpdk.org/api/people/495/?format=api",
        "name": "Zhao1, Wei",
        "email": "wei.zhao1@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1539762086-15569-1-git-send-email-wei.zhao1@intel.com/mbox/",
    "series": [
        {
            "id": 1944,
            "url": "http://patches.dpdk.org/api/series/1944/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1944",
            "date": "2018-10-17T07:41:26",
            "name": "examples/ipv4_multicast: enable multicast promiscuous for all port",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1944/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/46948/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/46948/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3F9107D4A;\n\tWed, 17 Oct 2018 10:05:26 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id 1C7CF7D05;\n\tWed, 17 Oct 2018 10:05:23 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Oct 2018 01:05:19 -0700",
            "from dpdk6.bj.intel.com ([172.16.182.94])\n\tby orsmga001.jf.intel.com with ESMTP; 17 Oct 2018 01:05:17 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,391,1534834800\"; d=\"scan'208\";a=\"100143164\"",
        "From": "Wei Zhao <wei.zhao1@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, qi.z.zhang@intel.com, ferruh.yigit@intel.com,\n\tWei Zhao <wei.zhao1@intel.com>",
        "Date": "Wed, 17 Oct 2018 15:41:26 +0800",
        "Message-Id": "<1539762086-15569-1-git-send-email-wei.zhao1@intel.com>",
        "X-Mailer": "git-send-email 2.7.5",
        "Subject": "[dpdk-dev] [PATCH] examples/ipv4_multicast: enable multicast\n\tpromiscuous for all port",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This example has not been enable for receiving multicast\npacket, so it will drop multicast packet. Users must send packet\nwith ether MAC destination address the same as pf port MAC address,\nin order to forward packet successfully, but this is an example\nfor forwarding ipv4 multicastpacket. So calling function\nrte_eth_promiscuous_enable() or rte_eth_allmulticast_enable() can\nenable promiscuous mode of all multicast packet. And aslo, DPDK has\nrte API function of rte_eth_dev_set_mc_addr_list() for setting\nspecific multicast filter table for specific multicast IP address,\nbut this example do not support this configuration, so it need to\nbe enable multicast promiscuous mode instead.\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\n---\n examples/ipv4_multicast/main.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c\nindex 6530d48..4073a49 100644\n--- a/examples/ipv4_multicast/main.c\n+++ b/examples/ipv4_multicast/main.c\n@@ -773,7 +773,7 @@ main(int argc, char **argv)\n \t\t\tqconf->tx_queue_id[portid] = queueid;\n \t\t\tqueueid++;\n \t\t}\n-\n+\t\trte_eth_allmulticast_enable(portid);\n \t\t/* Start device */\n \t\tret = rte_eth_dev_start(portid);\n \t\tif (ret < 0)\n",
    "prefixes": []
}