From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0074.outbound.protection.outlook.com [104.47.36.74]) by dpdk.org (Postfix) with ESMTP id 037EA1B26E for ; Sat, 9 Sep 2017 13:11:32 +0200 (CEST) Received: from BLUPR0301CA0018.namprd03.prod.outlook.com (10.162.113.156) by MWHPR03MB3325.namprd03.prod.outlook.com (10.174.249.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Sat, 9 Sep 2017 11:11:31 +0000 Received: from BY2FFO11FD015.protection.gbl (2a01:111:f400:7c0c::117) by BLUPR0301CA0018.outlook.office365.com (2a01:111:e400:5259::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Sat, 9 Sep 2017 11:11:30 +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 BY2FFO11FD015.mail.protection.outlook.com (10.1.14.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Sat, 9 Sep 2017 11:11:30 +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 v89BAUhV026326; Sat, 9 Sep 2017 04:11:28 -0700 From: Shreyansh Jain To: CC: , Date: Sat, 9 Sep 2017 16:51:22 +0530 Message-ID: <20170909112132.13936-32-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170909112132.13936-1-shreyansh.jain@nxp.com> References: <20170823141213.25476-1-shreyansh.jain@nxp.com> <20170909112132.13936-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131494290905161813; (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)(189002)(199003)(305945005)(356003)(189998001)(47776003)(6666003)(106466001)(8936002)(5660300001)(105606002)(498600001)(6916009)(77096006)(104016004)(68736007)(2950100002)(54906002)(53936002)(50466002)(4326008)(8656003)(50986999)(76176999)(85426001)(48376002)(33646002)(2906002)(86362001)(1076002)(81166006)(81156014)(8676002)(5003940100001)(2351001)(36756003)(110136004)(50226002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3325; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD015; 1:xksV0sa2sQCLyUvccJ6TD5tO+sxPuRKsGMNFTxAskNXCGN2joAJlvL2mnJqBGuBrD19WNvp8RJyR3mtH/CZqRU987CzGwaXk6ZMK5zgRroP0niljHxmGonljIdkwCDEU MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b5bdb63-8117-454d-73ec-08d4f77385c6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR03MB3325; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3325; 3:y95xyPJJ56GBRMb+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XPUsWD0P5qCTbrfzE25WDsj6aJ2ZxOJwiVFo0yaOaBDyERMimxN7YmaXZeD+tdtTtrWZBqaKjYpQCSuK/h6itbEqxPxZUJot1riRFrn55NQhbX7OaSPsMIjFkpCWfgy5SGKAQmLP6aUOhr16/04PEyNs9Z7qT495OhkWBV8ciCqG6NKD/TT0Z9Z/b7LtFpv9GaMqoDiMLt95GQ24KqTGOTtmxPROMdSNONzFo= 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)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123561025)(20161123565025)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR03MB3325; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR03MB3325; X-Forefront-PRVS: 0425A67DEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB3325; 23:KwfMPcHV6iZoyv+lQYgC8K/y6e2SU+QUVkBhuReX7?= =?us-ascii?Q?VqlwFcI3w7HIZd6YtYhgbdml1MS9ZRoaoM/hWpylxrxVgBXNUJkH7IqfPPVn?= =?us-ascii?Q?0Lea57i81crU8kk1RZcUiy6YP9EOmT7BcymgXxEoUXVDZ9NwwNQxWuck0JgS?= =?us-ascii?Q?yJFaFTswHMLsgv4ZuQPWPDpZuq4OxJyAcJk42mP6YzMHxAR2X+nBnKBDm6Tv?= =?us-ascii?Q?zSyrWWyZq7CfmXhWCXlnOHqST6wvtHAgdLgqbm1hsh1trYQRaKlnJ36DP+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g5VzEeDoPuOStk9yBi2bk?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3325; 6:yr+Fm5efsbCDKlOgo7jhZdtY56SgWR93cxMlpVS4mnYOBnVkdoOZ4Rx3R500MupSu7Ic60G/B4m75hirWIklVC5f1GmTOicNDg/W9rM2Vuj1Xm+qJwEm5cJtyPrA68Gh/05nlqTOzYYVY53SWgmlORZuQ9XvfIc4SLmyPxHzSRoqJbn41Z736om9loL3kumHcExuRZS0ydaWl1wlKc+359KDOq3eF6dWtP5ANwlel1kiS4iSisVJe39FXChj9BAEjtHFkYb8UfqKjfFJd/Dj3d0ZLhRTGLcqwnnKZF71ZQH5DBDqxDqoGn03lEQbu5SoGfompJGLCfDXOyp5qFiuAQ==; 5:7mJerM99sg6kcFGqsP7FJzH430+qX5R613QyPXbVdXQzGm0hM43OFHuFbtj/U4bpdOru9lqMoGYpmb9vg4omtLrY3JHUgQGrYEy6YG7AIvBi4SCWu0DFp/8SehdaKHh+LwyU9jee6VPhj1/w8JrbrQ==; 24:gdbUUZQCxhJeCeDFnkB9Ww6cxkMG2EBwmA5AQUi5EZSskpgr3YBIggd57j48mwB74eOMtyG/B1wg+HkKYT/wvrwb5Ft5NW9Tm+9g4a8g9No=; 7:LjwizpdOu2E9D2YDuHO+CDvdqP4ffo28yVw9IZdMXanAh906zvJywzbgJYJ8dVJSRwxaT8gX4CQuMvxaDURf2G+rqYIq3NuMeVEfRtO8VSng6uK+A6ZBPNNSE5Hqef1y2hFNJYOXkzgr3GG3o+GTy/38JDs2BqgWhG/ZU062G7GzrwP1tJ6/Q/fMqrozGhDGOEzqJ4OV9H/iy7Rv5BKvG+VismpS6lLdX2gik+7siCc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2017 11:11:30.1885 (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: MWHPR03MB3325 Subject: [dpdk-dev] [PATCH v4 31/41] 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: Sat, 09 Sep 2017 11:11:34 -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