get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 60323,
    "url": "http://patches.dpdk.org/api/patches/60323/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191001110209.6047-13-g.singh@nxp.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": "<20191001110209.6047-13-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191001110209.6047-13-g.singh@nxp.com",
    "date": "2019-10-01T11:02:07",
    "name": "[v3,12/14] net/ppfe: add allmulticast and promiscuous",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a0f659585a09c4b492aa58cddcd1aeb8c2e8a969",
    "submitter": {
        "id": 1068,
        "url": "http://patches.dpdk.org/api/people/1068/?format=api",
        "name": "Gagandeep Singh",
        "email": "g.singh@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191001110209.6047-13-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 6647,
            "url": "http://patches.dpdk.org/api/series/6647/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6647",
            "date": "2019-10-01T11:01:55",
            "name": "introduces ppfe network PMD",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/6647/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/60323/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/60323/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 C79B41BED7;\n\tTue,  1 Oct 2019 13:17:50 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id DB9211BE8B\n\tfor <dev@dpdk.org>; Tue,  1 Oct 2019 13:17:38 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id BD91A1A01DE;\n\tTue,  1 Oct 2019 13:17:38 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 91CFF1A0096;\n\tTue,  1 Oct 2019 13:17:36 +0200 (CEST)",
            "from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2280C402C7;\n\tTue,  1 Oct 2019 19:17:33 +0800 (SGT)"
        ],
        "From": "Gagandeep Singh <g.singh@nxp.com>",
        "To": "dev@dpdk.org,\n\tferruh.yigit@intel.com",
        "Cc": "thomas@monjalon.net,\n\tGagandeep Singh <g.singh@nxp.com>",
        "Date": "Tue,  1 Oct 2019 16:32:07 +0530",
        "Message-Id": "<20191001110209.6047-13-g.singh@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20191001110209.6047-1-g.singh@nxp.com>",
        "References": "<20190826130246.30485-1-g.singh@nxp.com>\n\t<20191001110209.6047-1-g.singh@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v3 12/14] net/ppfe: add allmulticast and\n\tpromiscuous",
        "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 patch adds support to enable multicast and\npromiscuous mode.\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\nAcked-by: Nipun Gupta <nipun.gupta@nxp.com>\nAcked-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n doc/guides/nics/features/ppfe.ini |  2 ++\n doc/guides/nics/ppfe.rst          |  2 ++\n drivers/net/ppfe/ppfe_ethdev.c    | 42 +++++++++++++++++++++++++++++++\n 3 files changed, 46 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/ppfe.ini b/doc/guides/nics/features/ppfe.ini\nindex e0406a97f..562c5548f 100644\n--- a/doc/guides/nics/features/ppfe.ini\n+++ b/doc/guides/nics/features/ppfe.ini\n@@ -9,6 +9,8 @@ L4 checksum offload  = Y\n Packet type parsing  = Y\n Basic stats          = Y\n MTU update           = Y\n+Promiscuous mode     = Y\n+Allmulticast mode    = Y\n Linux VFIO           = Y\n ARMv8                = Y\n Usage doc            = Y\ndiff --git a/doc/guides/nics/ppfe.rst b/doc/guides/nics/ppfe.rst\nindex 1ab0a5859..5b37bb8c3 100644\n--- a/doc/guides/nics/ppfe.rst\n+++ b/doc/guides/nics/ppfe.rst\n@@ -97,6 +97,8 @@ PPFE Features\n - Packet type parsing\n - Basic stats\n - MTU update\n+- Promiscuous mode\n+- Allmulticast mode\n - ARMv8\n \n Supported PPFE SoCs\ndiff --git a/drivers/net/ppfe/ppfe_ethdev.c b/drivers/net/ppfe/ppfe_ethdev.c\nindex 0097454c9..2b24b895a 100644\n--- a/drivers/net/ppfe/ppfe_ethdev.c\n+++ b/drivers/net/ppfe/ppfe_ethdev.c\n@@ -540,6 +540,45 @@ pfe_supported_ptypes_get(struct rte_eth_dev *dev)\n \treturn NULL;\n }\n \n+static int\n+pfe_promiscuous_enable(struct rte_eth_dev *dev)\n+{\n+\tstruct pfe_eth_priv_s *priv = dev->data->dev_private;\n+\n+\tpriv->promisc = 1;\n+\tdev->data->promiscuous = 1;\n+\tgemac_enable_copy_all(priv->EMAC_baseaddr);\n+\n+\treturn 0;\n+}\n+\n+static int\n+pfe_promiscuous_disable(struct rte_eth_dev *dev)\n+{\n+\tstruct pfe_eth_priv_s *priv = dev->data->dev_private;\n+\n+\tpriv->promisc = 0;\n+\tdev->data->promiscuous = 0;\n+\tgemac_disable_copy_all(priv->EMAC_baseaddr);\n+\n+\treturn 0;\n+}\n+\n+static int\n+pfe_allmulticast_enable(struct rte_eth_dev *dev)\n+{\n+\tstruct pfe_eth_priv_s *priv = dev->data->dev_private;\n+\tstruct pfe_mac_addr    hash_addr; /* hash register structure */\n+\n+\t/* Set the hash to rx all multicast frames */\n+\thash_addr.bottom = 0xFFFFFFFF;\n+\thash_addr.top = 0xFFFFFFFF;\n+\tgemac_set_hash(priv->EMAC_baseaddr, &hash_addr);\n+\tdev->data->all_multicast = 1;\n+\n+\treturn 0;\n+}\n+\n static int\n pfe_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n {\n@@ -624,6 +663,9 @@ static const struct eth_dev_ops ops = {\n \t.tx_queue_setup = pfe_tx_queue_setup,\n \t.tx_queue_release  = pfe_tx_queue_release,\n \t.dev_supported_ptypes_get = pfe_supported_ptypes_get,\n+\t.promiscuous_enable   = pfe_promiscuous_enable,\n+\t.promiscuous_disable  = pfe_promiscuous_disable,\n+\t.allmulticast_enable  = pfe_allmulticast_enable,\n \t.mtu_set              = pfe_mtu_set,\n \t.mac_addr_set\t      = pfe_dev_set_mac_addr,\n \t.stats_get            = pfe_stats_get,\n",
    "prefixes": [
        "v3",
        "12/14"
    ]
}