get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54070,
    "url": "http://patches.dpdk.org/api/patches/54070/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190602152434.23996-15-jerinj@marvell.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": "<20190602152434.23996-15-jerinj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190602152434.23996-15-jerinj@marvell.com",
    "date": "2019-06-02T15:23:50",
    "name": "[v1,14/58] net/octeontx2: add promiscuous and allmulticast mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8cec4c7a9adf9d79c5352278b60a6378c5c5f311",
    "submitter": {
        "id": 1188,
        "url": "http://patches.dpdk.org/api/people/1188/?format=api",
        "name": "Jerin Jacob Kollanukkaran",
        "email": "jerinj@marvell.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/20190602152434.23996-15-jerinj@marvell.com/mbox/",
    "series": [
        {
            "id": 4848,
            "url": "http://patches.dpdk.org/api/series/4848/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4848",
            "date": "2019-06-02T15:23:36",
            "name": "OCTEON TX2 Ethdev driver",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/4848/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54070/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54070/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 C65E11B9C4;\n\tSun,  2 Jun 2019 17:25:22 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id A37C41B9C2\n\tfor <dev@dpdk.org>; Sun,  2 Jun 2019 17:25:21 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n\tby mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx52FKKou020361; Sun, 2 Jun 2019 08:25:21 -0700",
            "from sc-exch03.marvell.com ([199.233.58.183])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2survk4936-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tSun, 02 Jun 2019 08:25:21 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tSun, 2 Jun 2019 08:25:19 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Sun, 2 Jun 2019 08:25:19 -0700",
            "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n\tby maili.marvell.com (Postfix) with ESMTP id 8A59E3F7040;\n\tSun,  2 Jun 2019 08:25:17 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-transfer-encoding : content-type; s=pfpt0818;\n\tbh=+tY0Iz222VfNMiYKexpD1J8eM3PhTF2dLeJH4n5yL1k=;\n\tb=QNYNjFRNOFZubwmDmySbm+Zyzpq9E1ni99Kxz+0P6yb36WPi+p93m374RL3mEbcN7dBP\n\toQiyzXTmqogyTO4D+sE0tmJ3lNUzgV5zGF+1lqST0mV8RGQNPRPU2QMNqEDS+oaUAV66\n\ttgwpS8QwGaRZvVKMtRawmXwJiRMY4ffnNpAU8y41kuLyZ6k0hIwUkL+hoHuElW10fZm0\n\td8/uaIm/Sp+roV/4ImMD/4kWcUkpkdXNmPju8H/8+I3lsekKp48mmdQZftY2s+3BJJdQ\n\tk6i9Io2rKf11I9saQGaKUiaQmQyVXwF/EKObAr3HiFK7OtzGsgOZBXd4yhYcTT+/MQgy\n\tHg== ",
        "From": "<jerinj@marvell.com>",
        "To": "<dev@dpdk.org>, John McNamara <john.mcnamara@intel.com>, Marko Kovacevic\n\t<marko.kovacevic@intel.com>, Jerin Jacob <jerinj@marvell.com>, \"Nithin\n\tDabilpuram\" <ndabilpuram@marvell.com>, Kiran Kumar K\n\t<kirankumark@marvell.com>",
        "CC": "<ferruh.yigit@intel.com>, Vamsi Attunuru <vattunuru@marvell.com>, \"Sunil\n\tKumar Kori\" <skori@marvell.com>",
        "Date": "Sun, 2 Jun 2019 20:53:50 +0530",
        "Message-ID": "<20190602152434.23996-15-jerinj@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190602152434.23996-1-jerinj@marvell.com>",
        "References": "<20190602152434.23996-1-jerinj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-02_09:, , signatures=0",
        "Subject": "[dpdk-dev] [PATCH v1 14/58] net/octeontx2: add promiscuous and\n\tallmulticast mode",
        "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": "From: Vamsi Attunuru <vattunuru@marvell.com>\n\nAdd promiscuous and allmulticast mode for PF devices and\nupdate the respective feature list.\n\nSigned-off-by: Vamsi Attunuru <vattunuru@marvell.com>\nSigned-off-by: Sunil Kumar Kori <skori@marvell.com>\n---\n doc/guides/nics/features/octeontx2.ini     |  2 +\n doc/guides/nics/features/octeontx2_vec.ini |  2 +\n drivers/net/octeontx2/otx2_ethdev.c        |  4 ++\n drivers/net/octeontx2/otx2_ethdev.h        |  6 ++\n drivers/net/octeontx2/otx2_ethdev_ops.c    | 82 ++++++++++++++++++++++\n 5 files changed, 96 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/octeontx2.ini b/doc/guides/nics/features/octeontx2.ini\nindex 3835b5069..40da1bb68 100644\n--- a/doc/guides/nics/features/octeontx2.ini\n+++ b/doc/guides/nics/features/octeontx2.ini\n@@ -12,6 +12,8 @@ SR-IOV               = Y\n Multiprocess aware   = Y\n Link status          = Y\n Link status event    = Y\n+Promiscuous mode     = Y\n+Allmulticast mode    = Y\n Basic stats          = Y\n Stats per queue      = Y\n Extended stats       = Y\ndiff --git a/doc/guides/nics/features/octeontx2_vec.ini b/doc/guides/nics/features/octeontx2_vec.ini\nindex e18443742..1b89be452 100644\n--- a/doc/guides/nics/features/octeontx2_vec.ini\n+++ b/doc/guides/nics/features/octeontx2_vec.ini\n@@ -12,6 +12,8 @@ SR-IOV               = Y\n Multiprocess aware   = Y\n Link status          = Y\n Link status event    = Y\n+Promiscuous mode     = Y\n+Allmulticast mode    = Y\n Basic stats          = Y\n Extended stats       = Y\n Stats per queue      = Y\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c\nindex 937ba6399..826ce7f4e 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.c\n+++ b/drivers/net/octeontx2/otx2_ethdev.c\n@@ -237,6 +237,10 @@ static const struct eth_dev_ops otx2_eth_dev_ops = {\n \t.stats_get                = otx2_nix_dev_stats_get,\n \t.stats_reset              = otx2_nix_dev_stats_reset,\n \t.get_reg                  = otx2_nix_dev_get_reg,\n+\t.promiscuous_enable       = otx2_nix_promisc_enable,\n+\t.promiscuous_disable      = otx2_nix_promisc_disable,\n+\t.allmulticast_enable      = otx2_nix_allmulticast_enable,\n+\t.allmulticast_disable     = otx2_nix_allmulticast_disable,\n \t.queue_stats_mapping_set  = otx2_nix_queue_stats_mapping,\n \t.xstats_get               = otx2_nix_xstats_get,\n \t.xstats_get_names         = otx2_nix_xstats_get_names,\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.h b/drivers/net/octeontx2/otx2_ethdev.h\nindex 223dd5a5a..549bc26e4 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.h\n+++ b/drivers/net/octeontx2/otx2_ethdev.h\n@@ -157,6 +157,12 @@ otx2_eth_pmd_priv(struct rte_eth_dev *eth_dev)\n void otx2_nix_info_get(struct rte_eth_dev *eth_dev,\n \t\t       struct rte_eth_dev_info *dev_info);\n \n+void otx2_nix_promisc_config(struct rte_eth_dev *eth_dev, int en);\n+void otx2_nix_promisc_enable(struct rte_eth_dev *eth_dev);\n+void otx2_nix_promisc_disable(struct rte_eth_dev *eth_dev);\n+void otx2_nix_allmulticast_enable(struct rte_eth_dev *eth_dev);\n+void otx2_nix_allmulticast_disable(struct rte_eth_dev *eth_dev);\n+\n /* Link */\n void otx2_nix_toggle_flag_link_cfg(struct otx2_eth_dev *dev, bool set);\n int otx2_nix_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete);\ndiff --git a/drivers/net/octeontx2/otx2_ethdev_ops.c b/drivers/net/octeontx2/otx2_ethdev_ops.c\nindex 9f86635d4..77cfa2cec 100644\n--- a/drivers/net/octeontx2/otx2_ethdev_ops.c\n+++ b/drivers/net/octeontx2/otx2_ethdev_ops.c\n@@ -4,6 +4,88 @@\n \n #include \"otx2_ethdev.h\"\n \n+static void\n+nix_cgx_promisc_config(struct rte_eth_dev *eth_dev, int en)\n+{\n+\tstruct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);\n+\tstruct otx2_mbox *mbox = dev->mbox;\n+\n+\tif (otx2_dev_is_vf(dev))\n+\t\treturn;\n+\n+\tif (en)\n+\t\totx2_mbox_alloc_msg_cgx_promisc_enable(mbox);\n+\telse\n+\t\totx2_mbox_alloc_msg_cgx_promisc_disable(mbox);\n+\n+\totx2_mbox_process(mbox);\n+}\n+\n+void\n+otx2_nix_promisc_config(struct rte_eth_dev *eth_dev, int en)\n+{\n+\tstruct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);\n+\tstruct otx2_mbox *mbox = dev->mbox;\n+\tstruct nix_rx_mode *req;\n+\n+\tif (otx2_dev_is_vf(dev))\n+\t\treturn;\n+\n+\treq = otx2_mbox_alloc_msg_nix_set_rx_mode(mbox);\n+\n+\tif (en)\n+\t\treq->mode = NIX_RX_MODE_UCAST | NIX_RX_MODE_PROMISC;\n+\n+\totx2_mbox_process(mbox);\n+\teth_dev->data->promiscuous = en;\n+}\n+\n+void\n+otx2_nix_promisc_enable(struct rte_eth_dev *eth_dev)\n+{\n+\totx2_nix_promisc_config(eth_dev, 1);\n+\tnix_cgx_promisc_config(eth_dev, 1);\n+}\n+\n+void\n+otx2_nix_promisc_disable(struct rte_eth_dev *eth_dev)\n+{\n+\totx2_nix_promisc_config(eth_dev, 0);\n+\tnix_cgx_promisc_config(eth_dev, 0);\n+}\n+\n+static void\n+nix_allmulticast_config(struct rte_eth_dev *eth_dev, int en)\n+{\n+\tstruct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);\n+\tstruct otx2_mbox *mbox = dev->mbox;\n+\tstruct nix_rx_mode *req;\n+\n+\tif (otx2_dev_is_vf(dev))\n+\t\treturn;\n+\n+\treq = otx2_mbox_alloc_msg_nix_set_rx_mode(mbox);\n+\n+\tif (en)\n+\t\treq->mode = NIX_RX_MODE_UCAST | NIX_RX_MODE_ALLMULTI;\n+\telse if (eth_dev->data->promiscuous)\n+\t\treq->mode = NIX_RX_MODE_UCAST | NIX_RX_MODE_PROMISC;\n+\n+\totx2_mbox_process(mbox);\n+}\n+\n+void\n+otx2_nix_allmulticast_enable(struct rte_eth_dev *eth_dev)\n+{\n+\tnix_allmulticast_config(eth_dev, 1);\n+}\n+\n+void\n+otx2_nix_allmulticast_disable(struct rte_eth_dev *eth_dev)\n+{\n+\tnix_allmulticast_config(eth_dev, 0);\n+}\n+\n void\n otx2_nix_info_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *devinfo)\n {\n",
    "prefixes": [
        "v1",
        "14/58"
    ]
}