Show a patch.

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

{
    "id": 44106,
    "url": "http://patches.dpdk.org/api/patches/44106/",
    "web_url": "http://patches.dpdk.org/patch/44106/",
    "project": {
        "id": 1,
        "url": "http://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": "<1535718368-15803-10-git-send-email-amo@semihalf.com>",
    "date": "2018-08-31T12:26:05",
    "name": "[v2,5/8] net/mvneta: support for promiscuous",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8e46f82d62c3c0556a1180035a01eea0178580c6",
    "submitter": {
        "id": 1112,
        "url": "http://patches.dpdk.org/api/people/1112/",
        "name": "Andrzej Ostruszka",
        "email": "amo@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/44106/mbox/",
    "series": [
        {
            "id": 1131,
            "url": "http://patches.dpdk.org/api/series/1131/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1131",
            "date": "2018-08-31T12:25:56",
            "name": "Add Marvell NETA PMD",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/1131/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44106/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44106/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1535718368-15803-1-git-send-email-amo@semihalf.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.7.4",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 884A75F1D;\n\tFri, 31 Aug 2018 14:26:32 +0200 (CEST)",
            "from mail-lj1-f196.google.com (mail-lj1-f196.google.com\n\t[209.85.208.196]) by dpdk.org (Postfix) with ESMTP id A2EE558C4\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 14:26:21 +0200 (CEST)",
            "by mail-lj1-f196.google.com with SMTP id 203-v6so9889313ljj.13\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 05:26:21 -0700 (PDT)",
            "from amok.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.googlemail.com with ESMTPSA id\n\tt4-v6sm1825422lfd.13.2018.08.31.05.26.19\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 31 Aug 2018 05:26:20 -0700 (PDT)"
        ],
        "References": "<1535469030-18647-1-git-send-email-amo@semihalf.com>\n\t<1535718368-15803-1-git-send-email-amo@semihalf.com>",
        "X-Google-Smtp-Source": "ANB0VdZ0FKWfT7WdO9jsw1CCOMdxxoRK1TOP/S4SfDVf6jxVhGHY3X5l2C/u1rudMsPJCoaWebVRrA==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=E4itDI2qlSRvuwfrYOlSRjyKGKfSb2mu2PnFh0wXjf4=;\n\tb=BWpQpvnsox5H5Y1ICibnJTNtkdZFaaPGmi5GH9rlJzGq8CcWs6qYPrv82XuOGK91g6\n\tt+itysWunqXKcsYzVm3fOhYXR+VYXOBDy2ieuW0VhzcprmjLq1VFgJuA3j7Kll3U22Nj\n\tqrn1sYRIWmc/hEg83s6NDRhXyZAoGqhkvh8D7IVbfNIfaq0+v8A5o2a+bl2tBjgYBILB\n\tgp2J30m66JeKWcyT5yNoQPBWz2m+zGUKsSxTmhcdADDiiSUpxH4Ks3lvxJnvn0j/K+HO\n\ttLCGFxu12tmOs3Eievpligr7MW+TnLcSZbpCDVW4kjKw1PWkQzFcGN7a+684LY1AiT4x\n\tJWoQ==",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 2002:a2e:9599:: with SMTP id\n\tw25-v6mr536834ljh.6.1535718381123; \n\tFri, 31 Aug 2018 05:26:21 -0700 (PDT)",
        "Message-Id": "<1535718368-15803-10-git-send-email-amo@semihalf.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=E4itDI2qlSRvuwfrYOlSRjyKGKfSb2mu2PnFh0wXjf4=;\n\tb=U1aoDqfHJMRLDkLqoSs/2YlO3n1XKVqpyPISZiz4OKFibZ384v7fPrhxcy+6ulod/S\n\toWzuO+DLIKFZsaE9YrqadggwieOtyK9EDcqKVGo0jAKPXf4uqySQ9a0wKiv3jByCge0q\n\tw6jM9LI9XjKFrh0RrOzp4DmXQ9bs8SInNYabTszdSjPsc77Mw4jEC0s0G3JDHWeMTk69\n\tpLs+vP6tp8pZ186avmXCgP2nZZmU0D9dv5uaSNw9DkLX8mq6mp7R3eDpOuvQcONjKu9L\n\twi0WqeZogM5iWBkNn6y2JZqEqpvusxV3jq/eIQ7+LZTbO6lYXmr//RDeX3PQ+4AKPAyF\n\tk1Sg==",
        "Delivered-To": "patchwork@dpdk.org",
        "Precedence": "list",
        "From": "Andrzej Ostruszka <amo@semihalf.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org",
        "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>",
        "Date": "Fri, 31 Aug 2018 14:26:05 +0200",
        "X-Gm-Message-State": "APzg51BRClsWKsdc3wWeC6re7e6dsFvqz5Y3RG7HCKExiWz0vI3oXuww\n\tM8FehW7qYQC3Xa6tsrBGwi6jiK51h2w=",
        "Cc": "mw@semihalf.com, zr@semihalf.com, tdu@semihalf.com, nsamsono@marvell.com",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 5/8] net/mvneta: support for promiscuous"
    },
    "content": "From: Zyta Szpak <zr@semihalf.com>\n\nAdd callbacks for enabling/disabling of promiscuous mode.\n\nSigned-off-by: Yelena Krivosheev <yelena@marvell.com>\nSigned-off-by: Zyta Szpak <zr@semihalf.com>\n---\n drivers/net/mvneta/mvneta_ethdev.c | 54 ++++++++++++++++++++++++++++++++++++++\n 1 file changed, 54 insertions(+)",
    "diff": "diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c\nindex a7e79ea..68d363e 100644\n--- a/drivers/net/mvneta/mvneta_ethdev.c\n+++ b/drivers/net/mvneta/mvneta_ethdev.c\n@@ -1527,6 +1527,58 @@ mvneta_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused)\n }\n \n /**\n+ * DPDK callback to enable promiscuous mode.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device structure.\n+ */\n+static void\n+mvneta_promiscuous_enable(struct rte_eth_dev *dev)\n+{\n+\tstruct mvneta_priv *priv = dev->data->dev_private;\n+\tint ret, en;\n+\n+\tif (!priv->ppio)\n+\t\treturn;\n+\n+\tneta_ppio_get_promisc(priv->ppio, &en);\n+\tif (en) {\n+\t\tMVNETA_LOG(INFO, \"Promiscuous already enabled\");\n+\t\treturn;\n+\t}\n+\n+\tret = neta_ppio_set_promisc(priv->ppio, 1);\n+\tif (ret)\n+\t\tMVNETA_LOG(ERR, \"Failed to enable promiscuous mode\");\n+}\n+\n+/**\n+ * DPDK callback to disable allmulticast mode.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device structure.\n+ */\n+static void\n+mvneta_promiscuous_disable(struct rte_eth_dev *dev)\n+{\n+\tstruct mvneta_priv *priv = dev->data->dev_private;\n+\tint ret, en;\n+\n+\tif (!priv->ppio)\n+\t\treturn;\n+\n+\tneta_ppio_get_promisc(priv->ppio, &en);\n+\tif (!en) {\n+\t\tMVNETA_LOG(INFO, \"Promiscuous already disabled\");\n+\t\treturn;\n+\t}\n+\n+\tret = neta_ppio_set_promisc(priv->ppio, 0);\n+\tif (ret)\n+\t\tMVNETA_LOG(ERR, \"Failed to disable promiscuous mode\");\n+}\n+\n+/**\n  * DPDK callback to set the primary MAC address.\n  *\n  * @param dev\n@@ -1560,6 +1612,8 @@ static const struct eth_dev_ops mvneta_ops = {\n \t.dev_set_link_down = mvneta_dev_set_link_down,\n \t.dev_close = mvneta_dev_close,\n \t.link_update = mvneta_link_update,\n+\t.promiscuous_enable = mvneta_promiscuous_enable,\n+\t.promiscuous_disable = mvneta_promiscuous_disable,\n \t.mac_addr_set = mvneta_mac_addr_set,\n \t.mtu_set = mvneta_mtu_set,\n \t.dev_infos_get = mvneta_dev_infos_get,\n",
    "prefixes": [
        "v2",
        "5/8"
    ]
}