Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/58124/?format=api
http://patches.dpdk.org/api/patches/58124/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190828110849.14759-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": "<20190828110849.14759-13-g.singh@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190828110849.14759-13-g.singh@nxp.com", "date": "2019-08-28T11:08:48", "name": "[v2,12/13] net/ppfe: add allmulticast and promiscuous", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "0da865dcc1bff62f6705ef415e86c38a10fd13d9", "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/20190828110849.14759-13-g.singh@nxp.com/mbox/", "series": [ { "id": 6153, "url": "http://patches.dpdk.org/api/series/6153/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6153", "date": "2019-08-28T11:08:36", "name": "introduces ppfe network PMD", "version": 2, "mbox": "http://patches.dpdk.org/series/6153/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/58124/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/58124/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 7687E1C2BF;\n\tWed, 28 Aug 2019 13:23:28 +0200 (CEST)", "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n\tby dpdk.org (Postfix) with ESMTP id C1A9E1C13B\n\tfor <dev@dpdk.org>; Wed, 28 Aug 2019 13:23:10 +0200 (CEST)", "from inva021.nxp.com (localhost [127.0.0.1])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A57A02006D8;\n\tWed, 28 Aug 2019 13:23:10 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 390C92006E4;\n\tWed, 28 Aug 2019 13:23:08 +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 797B940328;\n\tWed, 28 Aug 2019 19:23:03 +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": "Wed, 28 Aug 2019 16:38:48 +0530", "Message-Id": "<20190828110849.14759-13-g.singh@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190828110849.14759-1-g.singh@nxp.com>", "References": "<20190826130246.30485-1-g.singh@nxp.com>\n\t<20190828110849.14759-1-g.singh@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v2 12/13] 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 | 36 +++++++++++++++++++++++++++++++\n 3 files changed, 40 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 b4a756258..71b049198 100644\n--- a/doc/guides/nics/ppfe.rst\n+++ b/doc/guides/nics/ppfe.rst\n@@ -95,6 +95,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 9215ec026..165b1ce6e 100644\n--- a/drivers/net/ppfe/ppfe_ethdev.c\n+++ b/drivers/net/ppfe/ppfe_ethdev.c\n@@ -542,6 +542,39 @@ pfe_supported_ptypes_get(struct rte_eth_dev *dev)\n \treturn NULL;\n }\n \n+static void\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+\n+static void\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+\n+static void\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+\n static int\n pfe_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n {\n@@ -625,6 +658,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": [ "v2", "12/13" ] }{ "id": 58124, "url": "