get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55690,
    "url": "http://patches.dpdk.org/api/patches/55690/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190630180609.36705-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": "<20190630180609.36705-15-jerinj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190630180609.36705-15-jerinj@marvell.com",
    "date": "2019-06-30T18:05:26",
    "name": "[v2,14/57] net/octeontx2: add promiscuous and allmulticast mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3654a40da785708a79b917bc2b16648492fd7598",
    "submitter": {
        "id": 1188,
        "url": "http://patches.dpdk.org/api/people/1188/?format=api",
        "name": "Jerin Jacob Kollanukkaran",
        "email": "jerinj@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190630180609.36705-15-jerinj@marvell.com/mbox/",
    "series": [
        {
            "id": 5236,
            "url": "http://patches.dpdk.org/api/series/5236/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5236",
            "date": "2019-06-30T18:05:12",
            "name": "OCTEON TX2 Ethdev driver",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/5236/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55690/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/55690/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 0D0361B9E6;\n\tSun, 30 Jun 2019 20:07:45 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 133FD1B99E\n\tfor <dev@dpdk.org>; Sun, 30 Jun 2019 20:07:18 +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\tx5UI5cCI016218; Sun, 30 Jun 2019 11:07:18 -0700",
            "from sc-exch04.marvell.com ([199.233.58.184])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2te7gm3y8u-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tSun, 30 Jun 2019 11:07:18 -0700",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com\n\t(10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tSun, 30 Jun 2019 11:07:16 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Sun, 30 Jun 2019 11:07:16 -0700",
            "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n\tby maili.marvell.com (Postfix) with ESMTP id 25E3B3F703F;\n\tSun, 30 Jun 2019 11:07:13 -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=z2Eoy+eh5dUagMl0WZ54qjoj+u//Yx+Xz28s5WyLc8I=;\n\tb=GYRT3P+RHZapHvaOKQBneSzFH2Mf+YXgb8g4WFRny/5u86dy6oNByhJl4BhVzoNf78pK\n\tMM2gWEOaNtWWVdWi7Qi1zaqgGqxYJQyaNYdZ04DfCDp+DnlZfiRYqfinWL3ESuPu7CDC\n\tfAN+Uw1XiYDcn5YPbp3myIJW9QXaSeN6FtU/BayZV0OUj2g1G5l2k7VEgIu/mx1e4dvw\n\tmq19KFGvV8Tl/9SiJkj5/+kHmrpfhcYRiX03lwVe/DVAMGe83E2t+mJCTp70CNs4PYJH\n\tESjtPJpieIi8T4EnlkYqJp2X3hxO9C3F+hBrKKjmdxHpoomTyjAStSZ3ctmj+yEZ/WGi\n\tXg== ",
        "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": "Vamsi Attunuru <vattunuru@marvell.com>, Sunil Kumar Kori\n\t<skori@marvell.com>",
        "Date": "Sun, 30 Jun 2019 23:35:26 +0530",
        "Message-ID": "<20190630180609.36705-15-jerinj@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190630180609.36705-1-jerinj@marvell.com>",
        "References": "<20190602152434.23996-1-jerinj@marvell.com>\n\t<20190630180609.36705-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-30_08:, , signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2 14/57] 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 doc/guides/nics/octeontx2.rst              |  1 +\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 6 files changed, 97 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/octeontx2.ini b/doc/guides/nics/features/octeontx2.ini\nindex 8d7c3588c..9f682609d 100644\n--- a/doc/guides/nics/features/octeontx2.ini\n+++ b/doc/guides/nics/features/octeontx2.ini\n@@ -10,6 +10,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 a6e6876fa..764e95ce6 100644\n--- a/doc/guides/nics/features/octeontx2_vec.ini\n+++ b/doc/guides/nics/features/octeontx2_vec.ini\n@@ -10,6 +10,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/doc/guides/nics/octeontx2.rst b/doc/guides/nics/octeontx2.rst\nindex 2944bbb99..9ef7be08f 100644\n--- a/doc/guides/nics/octeontx2.rst\n+++ b/doc/guides/nics/octeontx2.rst\n@@ -16,6 +16,7 @@ Features\n \n Features of the OCTEON TX2 Ethdev PMD are:\n \n+- Promiscuous mode\n - SR-IOV VF\n - Lock-free Tx queue\n - Port hardware statistics\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 7d53a6643..814fd6ec3 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.h\n+++ b/drivers/net/octeontx2/otx2_ethdev.h\n@@ -178,6 +178,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 df7e909d2..301a597f8 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": [
        "v2",
        "14/57"
    ]
}