From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0052.outbound.protection.outlook.com [104.47.34.52]) by dpdk.org (Postfix) with ESMTP id 5209B2BF2 for ; Thu, 28 Sep 2017 13:24:04 +0200 (CEST) Received: from BN6PR03CA0095.namprd03.prod.outlook.com (10.164.122.161) by BN3PR03MB2353.namprd03.prod.outlook.com (10.166.74.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 28 Sep 2017 11:24:03 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:155) by BN6PR03CA0095.outlook.office365.com (2603:10b6:405:6f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:24:03 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:24:02 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8SBMpG6016035; Thu, 28 Sep 2017 04:24:01 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:03:34 +0530 Message-ID: <20170928113344.12248-31-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928113344.12248-1-shreyansh.jain@nxp.com> References: <20170909112132.13936-1-shreyansh.jain@nxp.com> <20170928113344.12248-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510714431351715; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(39860400002)(346002)(39380400002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(33646002)(189998001)(5003940100001)(47776003)(81156014)(81166006)(8936002)(356003)(8676002)(2950100002)(6916009)(76176999)(53936002)(50986999)(2351001)(2906002)(77096006)(105606002)(106466001)(305945005)(498600001)(36756003)(68736007)(6666003)(50466002)(50226002)(48376002)(97736004)(1076002)(4326008)(86362001)(54906003)(104016004)(316002)(85426001)(8656003)(16586007)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2353; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD002; 1:GclwwFJKm+GjjCUw2swNEdsAwwLwVnh33HWvltmhL8fTr3wO/t+hVzk02DrJ8FEOXnoBR5QNfz1oyuCI9rg6APaams1SuZ3M6LTx4zfUiQaAyhGK2q5qy7MdlBqaw2+s MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0727a19-5936-40f9-aba3-08d506636c4d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:BN3PR03MB2353; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 3:RvBIe9CuxhxpijS/habH+s+eRRjDwSmZcawJFdzM8C4gw9CChkDvi0SwXfwOIFyXYlkW9kWo577mnkjKcqDfQPjSC3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U/muzqicK8GbzScYO1IA84ydJd5suxexvnM2FymJs41LIeleU1i3n7H5Z0VSSmDZLEWWdcTLngdwmuJFjxaJWdYXJZvN0XXEoPPFBhJy4hHgQoWNC7v5MEKsjPuCx8S7A0nHREEM= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123556025)(20161123559100)(20161123565025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2353; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2353; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2353; 23:uVJCXV4q6BEa/x5KTxnYhrpLiYEaDEHKT4O0Jbbjl?= =?us-ascii?Q?Q89aovfpIHf068QFpOoVcNzRIzbKKmNNusOt74rfk/zRqyyRRW27e3WURBek?= =?us-ascii?Q?03s9Y0N5Uz6REKrsGbE6Xu6y7ZDKYnflcw56kxYN37EuLxpwbGVcdyBu2X/5?= =?us-ascii?Q?gXIttRyZZWGcN0i2b2EBZKMtsl5cZ/CibbOdumur+zo7CTfJRulSi4N7b/6P?= =?us-ascii?Q?6ZvufqCdik/P7fHViOnUcbN4RzKlF5NrZaWDYb9YYsZdkELuDR7Ge3TTdC9q?= =?us-ascii?Q?DK5M76+Cq5CtpD+uk1aNMinq3Qh1IKu1PU9yGsal+MqUGw+bXazu0Odg9I6r?= =?us-ascii?Q?EvUSq5hX8HvbiTpuznr2rDDDNM+ObkuBAFwdeK2IWXvEcprAjBL2nXpFSIgf?= =?us-ascii?Q?k5yp0bDE2aMJrigcHIPlLsLuWx60NHtm8Kcbvy7Az/1KMt59Bd8XSud8qzqf?= =?us-ascii?Q?W35B6/Tf+AGKGy5y0phmDCoPOGdnCTazjXSHLQ6N1tRqSsb+lnyzt9uJbTTN?= =?us-ascii?Q?/Gg77zPq2v566ltTy4gLQjE2kWkbSvpmhPYI1mMWj7D/70QMD4VKlI4fblr+?= =?us-ascii?Q?WLjJcYAbl7jhIL10z1djK+ycgxPAKbr7UPRg4jcKb8NH/p6Hll5AV6Sn5OJs?= =?us-ascii?Q?aviTY2YI12PlbyE6BZGrJESb6gx+S0NysOaLvksdGuma0Av72B4DyPQ8T6PE?= =?us-ascii?Q?7VBl5hbL1H8BKHbpfgxoT311We8+D7fVMAxZOtjR8fUn3ISUWbiTGA9FZA00?= =?us-ascii?Q?flDa3fHnGGjTYaOD0WhkptEg0VSvjxnhSt//QYjv20++X22nmti+hZaHsW5J?= =?us-ascii?Q?NvFWARaDiHcyOUNFsJQ3At81QXSjpaDirkJs3i6KzCfOYZqFdNq0y8nXFbqZ?= =?us-ascii?Q?alTSHImmaESr0MSZgG8Awi1W8Sdx7ZrlbD4JUrNhSvqmJQlWjca/3DnyffPs?= =?us-ascii?Q?wMCR4LbffFaVH0y4UzvekX/TKyu5y9QfcH3lrXRZlJQcHMGPs2WEe5ILWxrt?= =?us-ascii?Q?m3OSN32jHLNoVSpCJbGAZvz4HIQb+B39rw8wktLMjTx6bHEZJMpHQOKwjS3t?= =?us-ascii?Q?EplAGMN9FZITWZQVP9s3GTjXVOCnrtEXO0czDzmczOu1+pFtC4CZOTjFmapG?= =?us-ascii?Q?EYLt2n3uyxxDCojS8ei310Yg2XSwhFNZ0xqoaVxqdvMgZTCmrTysMouy6l35?= =?us-ascii?Q?GvCEisN/4kbw9sShAvAon1T91+vHFzLSPZM?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 6:dMGDVcgyhJSz0YRiuWAqi0705/k8joF7Bvnd4lgTcvn+m6sdBbto4j+RdldLUexw+LHXNHwxEZxNyIFfS4dWiX/nizDVLa7AjcNMCgEKf2Gyga26vCeJqDjCP0GxOP2zvsfyAIQSq0p5KePO9CLiV1ktjf2JYxeKZPj06tCQ+FRrOtVrJh8JxUnqDCq8qTWoElS/Ah6Q36yBlYViIiCYNjuzO/10+suqi4lLgVX5cALxg/bW/QpSDTTtl6O79AqcuW/txBmsGPAHbgA12gjSvFhe302bszwNbJ5ykRsegx9URluJHRWy9rs+1AedKDED9L1e8ptbkUAtqSgs5RIHNw==; 5:QrrEJ/8HK22kOsEuKoKTgDosQttvxQHH0NLsIT6l1JxVL0L949pBJbhFUBd3/C+z0Z/1HiVWY2zdRrJgJKTToXdxvkH+ZIWmsepyAYWSrqQXt6bn6eu5t9YdW7RMWVL5dafBGYhb9t3HvpTngu0WCg==; 24:c9qWlav9+eArYymgiO6TmlpTC+ebglnlWzT8QMQbh5qO6d4PTEtM5SsyD67TP2yIgQCftO5Diut7eDUQHS/6LH+S66U/SIu3RTNhACBkgcY=; 7:DcB4z8Nq0XKLIThqXQgQgWS6qyDjJE55cood/9fE7hsJa9lL7cOUsgLF4MIUIba4gWWY3uHMTqo/naPE0tf7v9zLY5XHPYKrgzCPjqFEJklmc5fWE0kSTB6tR6YIoj3+RfxNZNNyD5KjZZMLZI4Px8J4jDoCy63xI+YpWnwXfe2AHjtlW6f0jJaLu633povtq8W5R5WuWxw1FnQ55rI9lyADWLxlxO0P4k/xnp9G86c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 11:24:02.9479 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2353 Subject: [dpdk-dev] [PATCH v5 30/40] net/dpaa: support multicast toggle X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 11:24:05 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index b2dfd81..f21a85f 100644 --- a/doc/guides/nics/features/dpaa.ini +++ b/doc/guides/nics/features/dpaa.ini @@ -9,5 +9,6 @@ Link status = Y Jumbo frame = Y MTU update = Y Promiscuous mode = Y +Allmulticast mode = Y ARMv8 = Y Usage doc = Y diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 56a6039..f6a2e22 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -202,6 +202,24 @@ static void dpaa_eth_promiscuous_disable(struct rte_eth_dev *dev) fman_if_promiscuous_disable(dpaa_intf->fif); } +static void dpaa_eth_multicast_enable(struct rte_eth_dev *dev) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + + PMD_INIT_FUNC_TRACE(); + + fman_if_set_mcast_filter_table(dpaa_intf->fif); +} + +static void dpaa_eth_multicast_disable(struct rte_eth_dev *dev) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + + PMD_INIT_FUNC_TRACE(); + + fman_if_reset_mcast_filter_table(dpaa_intf->fif); +} + static int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, uint16_t nb_desc __rte_unused, @@ -307,6 +325,8 @@ static struct eth_dev_ops dpaa_devops = { .link_update = dpaa_eth_link_update, .promiscuous_enable = dpaa_eth_promiscuous_enable, .promiscuous_disable = dpaa_eth_promiscuous_disable, + .allmulticast_enable = dpaa_eth_multicast_enable, + .allmulticast_disable = dpaa_eth_multicast_disable, .mtu_set = dpaa_mtu_set, .dev_set_link_down = dpaa_link_down, .dev_set_link_up = dpaa_link_up, -- 2.9.3