From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0059.outbound.protection.outlook.com [104.47.42.59]) by dpdk.org (Postfix) with ESMTP id 839A82BA9 for ; Thu, 28 Sep 2017 13:24:02 +0200 (CEST) Received: from BLUPR0301CA0040.namprd03.prod.outlook.com (10.162.113.178) by DM5PR03MB2699.namprd03.prod.outlook.com (10.168.197.137) 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:01 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::185) by BLUPR0301CA0040.outlook.office365.com (2a01:111:e400:5259::50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:24:00 +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 BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) 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:00 +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 v8SBMpG5016035; Thu, 28 Sep 2017 04:23:58 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:03:33 +0530 Message-ID: <20170928113344.12248-30-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: 131510714410267618; (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)(39860400002)(39380400002)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(189998001)(6916009)(2950100002)(6666003)(2906002)(2351001)(33646002)(86362001)(68736007)(81156014)(8656003)(36756003)(8676002)(5003940100001)(81166006)(498600001)(77096006)(97736004)(54906003)(8936002)(104016004)(305945005)(16586007)(5660300001)(316002)(76176999)(85426001)(1076002)(50986999)(106466001)(50466002)(4326008)(105606002)(47776003)(356003)(48376002)(53936002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2699; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:WCMvuyYfPIjZJ95hOQKY0r+zaMJhfVQVhw65zLD+2UPodBVsfyI90w5yEgBM6/Jz9TfNbBNk6v+55W+xCfdXkSKlOH46OAsKW2MT6UYt+4Tivwu0YfZnn5X3qFt67ZN2 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cea43a66-22ae-4ac5-9282-08d506636b09 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:DM5PR03MB2699; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 3:dLqNzTkE1qW1oe1cuWIS9oER96IM+otTuWI+SUjVnntCm1OXM8LNHo7+rJC/9uuOHZ//6Ut1I0MbKw2yrbAvgQugV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V1JRlBVEluKPpZBaYthKoB+//1O1CdQ6LuuX0tYj/L5Uu59IQhQNre0OYsHgllCdsGcoMvHd9jnBfNAyt5P+htzl7IrWFkHSnumk+9NJBGYkoGSrpzzgqWpvJ+dGtisrngRuAOnWm4hHxwsf7j4= 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)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123556025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(20161123565025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2699; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2699; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2699; 23:jGeMv4xbBWv/1z0JIQeZVSuC5jMXZDhHZ+ZE+wFLS?= =?us-ascii?Q?zxUELDz9jWLd0RV4AH5zrBe5+nGvutISUvXUK7SUIRZxJFM5l8vLEVdoFDOk?= =?us-ascii?Q?VF7qJeegIiRoPyM+i4NorChUdjVlkMuqK+FaOUlL8MQxrq6uK5llqeRltxC4?= =?us-ascii?Q?s+e6jN13tm68VgCDVmQ021XGL1+VGRBa5quCBuwcuW4zfoVT5ME7dDiG2UQH?= =?us-ascii?Q?MqDI7OeWpHs0CZK9TCtmEMQQtMI5Qpir5kR2lLnJXm3qyvpiuvYZPzSrl/un?= =?us-ascii?Q?C9A2zo5842COAhUKnP439u/5V0Zh4AfnEy0aQptqyvS3mqjpoM/91hA5G6p+?= =?us-ascii?Q?j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1; DM5PR03MB2699; 6:qY/fOdwyGoRbA7gDMq86Sh84k8COFqR0ZqxoJ0emdqsiMWCyUinxKOb5clWh2FCXwzuwGgs7lXPzFoTn7ykdd5N40h9O/BweYLTG3DVr2qLrSNr49UUPtfUJdTwpO7HFw3j6k1muqbFi8zLFNbtqkE3tncHaE1Ega03FFyzbbQsLNRNG4Xa8l1wAU86Mdwm3/hubt7LuhLtlU6gf/9bJRO2lUOz+/f3BZThnMMHpo2kHgoq6kyfUBrpN9A1zVSqd7cv8OAEwrGr5MB2f17vXiD0ABsfCXih6dWS9uyd7WjiVZ2vI5Cpif6+FqmiOdSurbGKvmA2CWoQyX7lclqil+A==; 5:kw6BXoywL0pWFojjg9D09GVmvx7+SHnpAJ6MklC2VpFhDPTUmVpCAUWAIOQRj5uB6XhDurYxOPicHIEOCgzlDYF/5BTibeCha6CzxoEqWlcq7NPTAS6CQbmWDOgLWU+Dvkx0Ml0R3TbbGOHRhTR0zg==; 24:USXXBXS3lIh/9iTL/E/dLKfDhe4LfvUrjUZC/nkOjkhhEEAy/tNjmLhcvqG1+VjI+ugzCURWI4Vi73323D+tCdi5KNylSf/ZJ9T6f+EFRmg=; 7:+F1NNkDmkfsG6j6AfB5C8d4g9BsVwZ0Fe6P5rirG9OEM6Hhjh6TePQak1uMvaR+3454rHliWywFCgdUmgZ9Z5ODFGlpjiJxA8tUGzA4BanBreD+yuKBOjFWAyeSZvvOFq2X+oIvtuZkqB+z2aWGuAlcOuJedfTrOnP3QDygkNVDqONHn47BCsc7BtzCkRLIMwOZX0h9iBv5HeWoPrrl2XZJiSRDOreZIuUoZkMYUiZw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 11:24:00.8551 (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: DM5PR03MB2699 Subject: [dpdk-dev] [PATCH v5 29/40] net/dpaa: support promiscuous 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:03 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 19beada..b2dfd81 100644 --- a/doc/guides/nics/features/dpaa.ini +++ b/doc/guides/nics/features/dpaa.ini @@ -8,5 +8,6 @@ Speed capabilities = P Link status = Y Jumbo frame = Y MTU update = Y +Promiscuous mode = Y ARMv8 = Y Usage doc = Y diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 384be8e..56a6039 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -183,6 +183,25 @@ static int dpaa_eth_link_update(struct rte_eth_dev *dev, return 0; } + +static void dpaa_eth_promiscuous_enable(struct rte_eth_dev *dev) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + + PMD_INIT_FUNC_TRACE(); + + fman_if_promiscuous_enable(dpaa_intf->fif); +} + +static void dpaa_eth_promiscuous_disable(struct rte_eth_dev *dev) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + + PMD_INIT_FUNC_TRACE(); + + fman_if_promiscuous_disable(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, @@ -286,6 +305,8 @@ static struct eth_dev_ops dpaa_devops = { .tx_queue_release = dpaa_eth_tx_queue_release, .link_update = dpaa_eth_link_update, + .promiscuous_enable = dpaa_eth_promiscuous_enable, + .promiscuous_disable = dpaa_eth_promiscuous_disable, .mtu_set = dpaa_mtu_set, .dev_set_link_down = dpaa_link_down, .dev_set_link_up = dpaa_link_up, -- 2.9.3