From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0080.outbound.protection.outlook.com [104.47.38.80]) by dpdk.org (Postfix) with ESMTP id D222B7D8F for ; Wed, 23 Aug 2017 16:03:29 +0200 (CEST) Received: from BN3PR03CA0108.namprd03.prod.outlook.com (10.174.66.26) by CY4PR03MB3319.namprd03.prod.outlook.com (10.171.247.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Wed, 23 Aug 2017 14:03:28 +0000 Received: from BY2FFO11FD010.protection.gbl (2a01:111:f400:7c0c::130) by BN3PR03CA0108.outlook.office365.com (2603:10b6:400:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Wed, 23 Aug 2017 14:03:28 +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 BY2FFO11FD010.mail.protection.outlook.com (10.1.14.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Wed, 23 Aug 2017 14:03:27 +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 v7NE2Q3H004389; Wed, 23 Aug 2017 07:03:25 -0700 From: Shreyansh Jain To: CC: , Date: Wed, 23 Aug 2017 19:42:04 +0530 Message-ID: <20170823141213.25476-32-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170823141213.25476-1-shreyansh.jain@nxp.com> References: <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> <20170823141213.25476-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131479706078804913; (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)(336005)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(5660300001)(33646002)(76176999)(2351001)(2950100002)(106466001)(6916009)(5003940100001)(77096006)(6666003)(8936002)(54906002)(50226002)(50986999)(81166006)(8676002)(8656003)(105606002)(48376002)(50466002)(305945005)(53936002)(356003)(104016004)(81156014)(68736007)(85426001)(47776003)(498600001)(1076002)(2906002)(189998001)(86362001)(36756003)(110136004)(626005)(4326008)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3319; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD010; 1:CnuWu1IIrblloK5E+g9guXYrPtRzdTSTmVyqCbMFdWiV0FtooReAoPNOyQhEyixq0HprxTlNdVb1u4KLqGJ4WvAjtlp3Rfl7GIp0PrtNmmDkX98vRkFbfAHwrTqibUIA MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72ac2d6e-2e74-4c19-f0b9-08d4ea2fba63 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603185)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR03MB3319; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3319; 3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7RT+ySSyg2EMstdEbM38U4xgJXpn2xMbqWw9rhwj3vi08rEBoMIJ1AFzEcVyjP7QIFm2DcMk71zNN5Mrr/SPC+fD45f/JQuY2uUz6lKogYqdeVMqUAKP90G02wlOZrH9wM386jiX+/NYJCoZ58EihJswNhrYogeAkgACgwoasIHktyAECrF7xJ1bt6+mZe+6Cv25DD91PNSNKemDRTURvGfUuxZ2I+Tt2i+LVFCZ7oos7lBRDMQK3E= 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)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123561025)(20161123563025)(20161123556025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB3319; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB3319; X-Forefront-PRVS: 040866B734 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3319; 23:HOoDot/IwXHsCMlSUdCo1gxhJsZCxqsMKQ2ZblZS3?= =?us-ascii?Q?dn14QXho4M/ZTYcxyTUsPaI/jvD0r10KvSVAlcCFSirX2PX5xcq7Az4G1Pjx?= =?us-ascii?Q?AJVW8WBeF+iYMkqpGPU+6xinqp/tFSplAkoeJqJleE6T52ScjdM4do3UBC/l?= =?us-ascii?Q?mUuASZfPfGT1hRRDLCqpL4xe2UBK/OEIEdGqfn+XrbObGYQ8CsmW04wNcx27?= =?us-ascii?Q?jqJKxbgxPGgwzmGrNghWqL0clXBliKEmnc1XxG5mo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A0UQgcsnNKJlm4rzoJ9i1?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3319; 6:pSfPyiXHc3BF1xVkY919baW4MLJ+Gc06W1OA2f7ye0QA1eCeIaVU85r99cc8QthTirid2xh/zMbtuKuJLT99nHeBX/dyzptQ8vY0xfzqJ2SVK1c3fU9lBFyIKH0iJSi1dQj6q4Npu2b36XEQbN5FnhP/1BhrLikVPF7ynpEdth6ayWWd8GnniIC5fV0v3XDitjH3QtDo85W35IdUZgMaGdQWBQDnrD580qV2ju6nnQgaQ/itsMqhqFUN5A2JB4nQydhUcNkY1m4n8yrT1t9ZsCxzUt/CFOJBWJop40i0X70/Mvaw1F6ZYaRr9DT7XLsPoFXXRrXk/ZlZx/WoEh1YlQ==; 5:DuS2xHnPillb+mhlcwjGNuelo5720el3LEAqrTL1U6MJTDeP/jPJPQxCa1u14vSvwS33H6sPh4YzMJz/LIpNvKvzhxKVTxnpo2lP9KT5/TtS09qHLSWr8SPgI9M2EpncFj+Iw6FrUZWaIX8m3pDUXg==; 24:dkBfMJclfdUvKu6NyIdbXoKdrSqvyvkCwkzntQ2i0+Ypf2mdlFP9wPQxICa9+EIRWTs3mGG4rcb0Ee3fmsTS52Q/wGRj+ts+54j87+tUMso=; 7:5eRmYVqgjgXr7OGQeeXMoXC8yyb0cSio6UeiE6siNrCeAkgjJfpSMNzz0POLl56bOuAn39pXsfH2g7hsu1GB/+F+DbZzPL4ohCqaFt4CKHldWWG5bSEM9US54jlNMcAdGdPOPONPQUDjK3HSnv5KnLA1HIWj39FMMjTcgmXmVyVL082AVVJAlSrQ70LChnnfUqU1sHP8ufKcvEG4zbE1wzO0IsG1ng71SIpApHPq68M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2017 14:03:27.5216 (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: CY4PR03MB3319 Subject: [dpdk-dev] [PATCH v3 31/40] net/dpaa: add support for 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: Wed, 23 Aug 2017 14:03:30 -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 803b9df..982e762 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