From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0075.outbound.protection.outlook.com [104.47.33.75]) by dpdk.org (Postfix) with ESMTP id 827C51B19B for ; Thu, 28 Sep 2017 14:20:07 +0200 (CEST) Received: from BN3PR03CA0076.namprd03.prod.outlook.com (10.167.1.164) by BN3PR03MB2354.namprd03.prod.outlook.com (10.166.74.149) 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 12:20:06 +0000 Received: from BN1BFFO11FD033.protection.gbl (2a01:111:f400:7c10::1:139) by BN3PR03CA0076.outlook.office365.com (2a01:111:e400:7a4d::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Thu, 28 Sep 2017 12:20:06 +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 BN1BFFO11FD033.mail.protection.outlook.com (10.58.144.96) 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 12:20:06 +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 v8SCJ72N008785; Thu, 28 Sep 2017 05:20:04 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:59:50 +0530 Message-ID: <20170928123000.1711-31-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928123000.1711-1-shreyansh.jain@nxp.com> References: <20170928113344.12248-1-shreyansh.jain@nxp.com> <20170928123000.1711-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510748063110188; (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)(376002)(346002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(50986999)(8936002)(68736007)(106466001)(85426001)(50226002)(76176999)(50466002)(8656003)(48376002)(36756003)(47776003)(1076002)(4326008)(105606002)(189998001)(498600001)(81156014)(97736004)(33646002)(81166006)(5003940100001)(104016004)(6916009)(2950100002)(54906003)(5660300001)(8676002)(2906002)(6666003)(305945005)(16586007)(316002)(2351001)(77096006)(356003)(53936002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2354; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD033; 1:FNHXFeP/+rb69pl/SbDMgXnB4uOrGB+Jgnesd7XFM0DUdEQnB4y7HhAo000baIX1E+kUc0MEZwgRqOfQKl2rM1OqqS1zKDnDvYFWZXn3WVbrWJTK/CwzR0u5XQIKjFff MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1906ffd6-d84c-4c5f-32cb-08d5066b40e7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:BN3PR03MB2354; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 3:t29E8AUWXSKJEdNrtEQdi47hyzaHPxEIVQlanURCu3ZsEpaU3V3yZ8n9PbedAQXm5YNWifGTKzqZpVYXS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+CQcZvilm+Zx6qqfi5VoZyBwv/GHzg2ER8OkoJO3eyXvd0j2ll/ECxcjxa+FXOaTvTyoGqC80AjXDePTR3RT0pI71Yygt4gcnLUzyoURPZNy56+2YC7s8Y5d6L4Jq2AIc9Eqg65ZTxQ+R9GB7wWCFgcwW5y3aAAy18= 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)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123565025)(20161123559100)(20161123556025)(20161123563025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2354; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2354; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2354; 23:3kotO+93/IjmryITE36mUvfuNBtQAMIswzGqJA4Lu?= =?us-ascii?Q?m0rg5/yONvwaizRF7uakzUXKtA7f15kWLtPUckIVuxhzWJDix6wPR+di4QXh?= =?us-ascii?Q?ZoDUJcN1mKtiahZderr1idIag4GRA1oFXF4b5IyFvA7MDtwb4wzMnZimNpHm?= =?us-ascii?Q?Qd5S0S7X21ct3xAdyT+g/dOUbzm9EE+s5I4nQ3+8oLiV0Yj3EnP2MvOYoBbk?= =?us-ascii?Q?888d/HZ21qQ/0cKh7ATgelu7ValrApcrtHYSyhBlSezD4Ws0FwvQuHiKAIRh?= =?us-ascii?Q?YoJFkRgO/yexUihrgPJjslRfUffmjpJLsGCdoSu4owbC/0G9Ftn/hLaNvXFH?= =?us-ascii?Q?3jasbGEG6mJHdRnJ8grjv29p5diYkwUGjoS6CM76ergobXMRL3g8paOaLNsT?= =?us-ascii?Q?SfPGliFyacxhvACB1jicgzerr9gCNU6xM33FTXNmKqgmiSaKvWIj3IOCnkco?= =?us-ascii?Q?WF3j7m3PIN410t2N2ItkB3D/X3ZL/ockY+1U+g/01um12UYp0rLZct1CdCeY?= =?us-ascii?Q?ImXxWs6lICGrJbzmWvTh/a1g3NLXfOaoIPMBvmeWgeNwe8gbElIAVJXZwv40?= =?us-ascii?Q?YaWoLaBx/D6pjIheKEEOqYk58vSW7nba8VXVrOJB21vtUjQ6fGqJxDDDxoba?= =?us-ascii?Q?7JmMIn/xNuRZhI1mkYfbmY7FCYLFsQLts73kBBM5N5szccTjAPrxaGoxNsFY?= =?us-ascii?Q?Hu7wyCxONSqmSrQXt0HAUJPu/RfLuWdQ9U6Z3OpOJ8eJBfAHyXSzXT41YbSl?= =?us-ascii?Q?ygYADxGWXmq+4AjdMdLmHPapmq4JnuDx6FAnaD6oYdzKzDiTQ+6KWugiRmKu?= =?us-ascii?Q?Dszks3hxB1xk4v+mp9+QrKi8BKliQ+U0BRtyENfn7qfwgsviNXsuzZiHLtm0?= =?us-ascii?Q?i3K4MraYk+bdJYUJ/6Wm2mQCmQ7yDosBufbX0UTPsKsACM/KZR8Sry9IVzyv?= =?us-ascii?Q?JkeaKlmZUgfedQGM+g1BUtrXH1fEun5Vyl9knsWqrqZGjGawzlslasOvq80x?= =?us-ascii?Q?xYwa82X6S3h1faWPFWW4w4Grh4vTH28BBaV/wfavrqVYUtGrpMe2wlgsiVY9?= =?us-ascii?Q?ThICI1TpESilBHO9L9y3w6/UCi7cA9Opiu6y+J2OhmK9eJBuFn6fd5f1eW3F?= =?us-ascii?Q?CO2F7r4j70sDvno/eirelMb8FbtTs9Q8HlZxYDgnK0X4n3TdeiekQ2SaOBRI?= =?us-ascii?Q?5dkV8QJ9W34Wjg=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 6:14PHwkBrJaTaouR4q7q46b6/jlHj7PF4hU2ZBjy/jsAwLfuH/ABf9cd9aLVcI2lzFsDBwxQ4h7BZg/BTMA6Iuo9yKKXPVTxumkbkgqOd12Fw7y5AIBOS3xq1SyDiVxjDb1WXcYa4sZa3lBcHTT51ZXTiuKIeG88y20P85OzEnzQb3QCqMximt6ePKCQ2sPHtZPRtzUnl1zsh65sYNJU1lVyfUm+nozJwMumjquxRuEn5XpKNl/BJyojLy44M6YPm7neZMTF1SjkXb6+rb6tbN8xyr/hfX+bNiSC6YTvrjoIYtce9B3PeiFMqinzvyAUNrGy+vkEv8A9BSNKDPbQXiQ==; 5:2RfNfJtC3XmIzNS1u6ZEtYS0Dvngwzr23CmaWsCyjsZ6mhUxzYwjkEwzXBQr6cpCCRaPz0bSp8YDowovj7hCzZRBbD0jMDts3vdGhaD9Aba0obkGd/WwhcQtJi4AHjnXJLRbkcnX18MAmHC5g5MWxA==; 24:cWEcVV2c1tQS+DUh2WkMPizQ3K4B5Sb9uWffD5Oly+ujPQMXUE5cxS36OsQwE3bU9cAoifMbEG4Qm6brcIFhXAq2EXAVBQUVu0ArpZFkVpc=; 7:M1p0BFhaOD4ongki+W3l9uZXWhZ+JWz5SRCM0vIj+BhLWpHH1MDsRr9GjTJYBmjKfkVKe2jsxV9zqm23AIZPXMAjeObefmIVxHb+OPbzHg4QcejZiGkNEnQaF49sTHQ2xcmFHWmFLIvyFm0tRcHPf9rmBCs29LSsKuuplkMGgs21MRcxbIJdrRKNhkkZBq5zIMGjCm/C8+byZgnQ117Ls/qSco5IBnqogC8B3Fu0DX0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 12:20:06.1238 (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: BN3PR03MB2354 Subject: [dpdk-dev] [PATCH v6 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 12:20:07 -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 9d2e003..f45ed5e 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