From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0073.outbound.protection.outlook.com [104.47.42.73]) by dpdk.org (Postfix) with ESMTP id B143E1B22C for ; Sat, 9 Sep 2017 13:11:30 +0200 (CEST) Received: from BN6PR03CA0067.namprd03.prod.outlook.com (10.173.137.29) by MWHPR03MB3326.namprd03.prod.outlook.com (10.174.249.144) 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:29 +0000 Received: from BY2FFO11OLC009.protection.gbl (2a01:111:f400:7c0c::125) by BN6PR03CA0067.outlook.office365.com (2603:10b6:404:4c::29) 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: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 BY2FFO11OLC009.mail.protection.outlook.com (10.1.15.0) 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:28 +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 v89BAUhU026326; Sat, 9 Sep 2017 04:11:26 -0700 From: Shreyansh Jain To: CC: , Date: Sat, 9 Sep 2017 16:51:21 +0530 Message-ID: <20170909112132.13936-31-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: 131494290885778410; (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)(1109001)(1110001)(339900001)(199003)(189002)(36756003)(189998001)(8676002)(81156014)(81166006)(54906002)(53936002)(498600001)(104016004)(5003940100001)(8936002)(4326008)(50226002)(110136004)(2906002)(97736004)(86362001)(85426001)(48376002)(5660300001)(1076002)(8656003)(305945005)(356003)(47776003)(76176999)(50466002)(2351001)(33646002)(105606002)(106466001)(50986999)(2950100002)(6916009)(6666003)(68736007)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3326; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC009; 1:I7FN0dafPgieIRXVR+DwY2HFNY/KrF+/wPfXTFzA7wwndq+l+OPEGnJQXYNLy8tR9fG2+tAG0bdFf84HF9T+e4INEt8f6NP2kAdrvnK9/feUDwij9RThXQ5bLD9YGjoG MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea735ee1-d7de-4444-1bea-08d4f77384b4 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:MWHPR03MB3326; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3326; 3:3hYURnxiodUwfN/d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PlCOkqxBE9MOU2vz/2Hs8cALfoRcDx8cf6wqVUSv13CPsugcsZYkfUbICv/MQUEZ9pB1vR4uXW5j/u7BOU7ysujBkzqxbwjGyPm1mC5hl0AJcAF/4HLjhuZCinSzT1A9SV7aH3SUaz173JGvdO6S2mmYdyBKwkEcu3kLW5P+K/nUkXNKOhl+rP3jTBTRsuedNmCuFAsmub1Tpg7lNI0UuwyQoymnkRJ0oO3n+ZaKUfTZKNINryFZM= 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)(20161123563025)(20161123559100)(20161123565025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR03MB3326; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR03MB3326; X-Forefront-PRVS: 0425A67DEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB3326; 23:kf7MpmT0DwN2E3HwsR0cX6+eqgKm8C43f85nYRNsf?= =?us-ascii?Q?s5WMcFfDYKhmRsUicq7QMoyApUbCDZPZ2EDmrD3gnsaxcFLnA+TQdd16tSoT?= =?us-ascii?Q?gn0dcVighr7Ykg7XHHqHm0tH5onbPdEZh/sQ+NRrvLm0ZHwI1V+N6uQmC+en?= =?us-ascii?Q?njucoCuKSRozn5tCAgrotICfymPia/s0bo2bK/8twiJw+jE9rNN9YExkaDNV?= =?us-ascii?Q?h350+92Xt54aX1SqbBXsGSTQM5W9XMvSg1BmF5FCj6FZSJW4FU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M0IwnWbRBxm?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3326; 6:XtxbCrtEmCA7IkScyKYCTYNyLMc3qJK+uvMO0H7k+zFMCHtMgj7ySixf9GC3dZ04DkprUlDPPFuv3vG1VSUV4ymw0O2OcrhQmDWC/7GCohPFXCVfDdRbrSwfgt+sRageFgnhmnUMsXM51qzSdSvIHPccuzY9oInCaI+x691XseFH2nOFg4n1oa3NAjBeUzdUvZplLEbqf26IyN0w+T5j5NiAvQeIY7HZGIp+ijC++pu4n+6Uc/lbiuWgW/3iKvNlbSRGTUTy1hAM/VWxIUD1YcHUNIWzNKc/XewIn776qhQIPBzgk1ukoEzcEOxv65jHMe5hn8pn3HzpMP+O32UYfg==; 5:J7N6BOI4KdGvoXRFpPb+I1I+Dzc7L2bqyVJ+DDGM2Gxjl4/xnCwLzhrZ2rt2SMO2s31sZmmDeY1bkDDg6wylydpbDbNb0GYeTVNlUvmDEImEWs2JanKdxtMDuFNRDbqfsCKxVB6xDAmK9Vp1n4vxXw==; 24:Ol4vMSyw1j3qGHrPs+bkSLETUP06W60FIflZMPYUPcOki5VV5DeLhJwu1DakPMdgaD0PcCPaBJmY2FWlNGXLi9NlW2MGgLiRKJDvMlnRVdg=; 7:GNECWse/zcV7XTG3znDYfa9M+GkjwnWjDkMmKU8Hltad64yvncKEOtky5ozf8OmKl7ePejOqr93mF3js9wBBFKbIL/DzMgf/uAA20mbz1147qrrKw86exfUYfDt7Xy3a6AZ9bzgq7MBoATCf2kHNacCClGCGNjTFY1deMyf5IORxc5HViacP3Izy1tdwo6EwMEPPb/qear60n5X4TxnRON9uiuTidopFAJ3RgiC4UgQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2017 11:11:28.3750 (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: MWHPR03MB3326 Subject: [dpdk-dev] [PATCH v4 30/41] net/dpaa: add support for 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: Sat, 09 Sep 2017 11:11:31 -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 9751145..803b9df 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