From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0062.outbound.protection.outlook.com [104.47.32.62]) by dpdk.org (Postfix) with ESMTP id 2198F3195 for ; Thu, 28 Sep 2017 14:20:06 +0200 (CEST) Received: from BN6PR03CA0003.namprd03.prod.outlook.com (10.168.230.141) by CO2PR03MB2358.namprd03.prod.outlook.com (10.166.93.18) 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:04 +0000 Received: from BL2FFO11FD028.protection.gbl (2a01:111:f400:7c09::122) by BN6PR03CA0003.outlook.office365.com (2603:10b6:404:23::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.8 via Frontend Transport; Thu, 28 Sep 2017 12:20:04 +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 BL2FFO11FD028.mail.protection.outlook.com (10.173.161.107) 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:04 +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 v8SCJ72M008785; Thu, 28 Sep 2017 05:20:02 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:59:49 +0530 Message-ID: <20170928123000.1711-30-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: 131510748044109605; (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)(7966004)(346002)(376002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(8936002)(47776003)(189998001)(8676002)(16586007)(68736007)(8656003)(498600001)(2906002)(2950100002)(1076002)(33646002)(81156014)(2351001)(5660300001)(6916009)(4326008)(85426001)(316002)(50466002)(97736004)(54906003)(53936002)(81166006)(48376002)(50986999)(5003940100001)(76176999)(77096006)(106466001)(6666003)(86362001)(356003)(50226002)(305945005)(104016004)(36756003)(105606002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2358; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD028; 1:Ue2XLaRyMHQZ6a13ZBh5p/GozU3xTMo9SQGaS/VzVOoj+zq2Dyd4U7ioGOeCTUv7LCfkA1fK643U5YU8edhb0wm20DSp8DiySGWgIuZUoB0O8wPNSrVF9lgV+D1p8kRF MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bae3a9a6-22dc-4909-3abc-08d5066b3fb2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:CO2PR03MB2358; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2358; 3:Oph4yt679lbkuGb75Tz0OcyotYBALE64bCMKLRKVW9nQbhtFs5B68Kh6YYTTWQiQeKt6SpeGwORmroZrof9gD/8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Z0z9n8Je2OqCIm5nOSK++UwZdCj6bwwFVcgrNDmiAAOBehXP9m37M4WlIO37ZRzkQlkQTk7FILAgEJkoJOpO1UNM+gbw10Udm8m66FMtgT2yRN9B2H1IWsSnWyKk+bGC+/HMDhmA0zmawnkp1xLaWZk= 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)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(20161123565025)(20161123556025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2358; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2358; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2358; 23:i+Hv8AQFfLsu5mZDu9gozbJg4wsc759xSo1T5mlZZ?= =?us-ascii?Q?y76WrFN8KuWOjmLJTKnHsDQ3EnYw+mUYsFgmGhrGMAP3AYlGsG7D12Cl2ERk?= =?us-ascii?Q?XDEMSkpeKjeJoVdIbbOoQFiliCivMYZo92F04XFs445x9bce3+2zaIk8dGst?= =?us-ascii?Q?8WhQpI8oCyBGa4uQ4Bnz69NvfBEkMgfIaFgYPNvccXwxGJcnOnK+3d1Qnn8k?= =?us-ascii?Q?xMhjUIwvR2qWevDU9EfG3EM36xGhS/5Wan4vRubCOIaZ13ZwVP4R4AwfNNHM?= =?us-ascii?Q?3p8JVQ0zsCgpNK50FNAsfZugScZ5DSZzCXRr9Dp3vw6jFHrjpF3QxfNX/tId?= =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ft-Exchange-Diagnostics: 1; CO2PR03MB2358; 6:OvVWEGIfz41FE6m3qBGnS+vR+sRG/h3xN9dGrr+2v7srLxz01k30h+9R0kf5nqLsHE5Ss4swRXqtP303YnzragH4aUoMq2bFEb/jzC7cW6+aHO9G30rxzKWLrfSVkYqkCW3Gjdgjsk6MHNac4NDhPRdZ6M2RkiIOQpXbBUXL5SGSTHFIbva6WIjX8tBY5kVNVmgZHVuh/J23TB2uaWy1S/0oL7u5o6xfsN5O74ISEgneRqyAJiwNrB5tCKtgQa+dt8BZ9uKZjaUabqyyCFMuQf9WactHiMs1fF61xrNoUUpskH5frX22CG+Ai+8GNpWw13ahGH26+qxRpQhYjFih+A==; 5:PyD/jj9zUaXJxT+w6bOF/rzwf9Pd26tkzR33JrdJ3eZ2OzMqD9zRAt6snDo0dRyg1ChXg/XNrDpI0JFnvFe/SRVuJ3bDoMyyaXo3R1htwRlnCRBFZ23jxQU0NCvRzOi3XhBv8hfSEnZA19Iffk9SyA==; 24:jMyynNwqKsfqDt3Y3L8UCtLFX74Fpxdlgijivb/2jh3EEBrydZTclEv2we/kqLC/Q3aNXLXLxW3aQf8XDPbUVVUkQsSoAFpWqNQ0w/sgac8=; 7:eg4/cUO1G+aucW4yUXZe4WMKAtRRecPXf0apvEhpxrCdyhFLihastmg0SUtTgAAffEXNRK4dAt2erXK/tr9bRCjBDx8lUrGXLxWhHWch1Oglo80FRaVh9muyLId8qG3KIfIb1SzBioFG70xwXkgOh7Wm5XvGOlZsGajtg4sF2kbk9EocD/FRUbj4OpwGmVXB1W83gJxCQfQxMmld+uy8B6nHd2cPzJpCGtY4nOD3ZXg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 12:20:04.1145 (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: CO2PR03MB2358 Subject: [dpdk-dev] [PATCH v6 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 12:20:06 -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 69361eb..9d2e003 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