From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0082.outbound.protection.outlook.com [104.47.42.82]) by dpdk.org (Postfix) with ESMTP id 4D77699B9 for ; Wed, 23 Aug 2017 16:03:28 +0200 (CEST) Received: from BN6PR03CA0083.namprd03.prod.outlook.com (10.164.122.149) 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.1.1362.18; Wed, 23 Aug 2017 14:03:26 +0000 Received: from BN1BFFO11FD017.protection.gbl (2a01:111:f400:7c10::1:140) by BN6PR03CA0083.outlook.office365.com (2603:10b6:405:6f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Wed, 23 Aug 2017 14:03:26 +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 BN1BFFO11FD017.mail.protection.outlook.com (10.58.144.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Wed, 23 Aug 2017 14:03:25 +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 v7NE2Q3G004389; Wed, 23 Aug 2017 07:03:23 -0700 From: Shreyansh Jain To: CC: , Date: Wed, 23 Aug 2017 19:42:03 +0530 Message-ID: <20170823141213.25476-31-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170823141213.25476-1-shreyansh.jain@nxp.com> References: <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> <20170823141213.25476-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131479706062819333; (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)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(50466002)(626005)(2950100002)(6916009)(48376002)(5003940100001)(106466001)(85426001)(105606002)(47776003)(305945005)(6666003)(498600001)(53936002)(5660300001)(86362001)(4326008)(2351001)(8656003)(68736007)(81156014)(8936002)(189998001)(36756003)(77096006)(33646002)(110136004)(97736004)(1076002)(81166006)(50226002)(8676002)(76176999)(50986999)(2906002)(54906002)(104016004)(356003); 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; BN1BFFO11FD017; 1:5QvobJVvxPShRypPGX6I63dkS7fiza+rpKQm+i13G5/8nzhwcHb8n+iHX1KhOWHF3crBpLryctcxPFzqlokTjbKFA9+P7UMNmf1zZj9kw+Ou/bkNpdQR+YgXu9d8R6r4 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 026d3666-46e7-4c5a-aea6-08d4ea2fb980 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603185)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR03MB3325; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3325; 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6bZDGhUS9cVxl5gV69BXIz53aXgEeiodFlvcmxfWOzDppQbok3IPc3hdtZG4ejCd7kGsHlgSLgdNaiGc/Yb589gEQsVtySBfz8ax7jox572KcKgwMl3eh4Y+gdrJ19M5O9QYT9sXjpY3XocZG+sEUI7kopulSb+m1n4sWb11odKrCX9m3ZUlCyNVtt4PVLgYGAqAiTD4W5Z1GdHdLtz53q7lLC1c7U+Vve0Au24b5zVW5aJgvQPk26dASM51wr22/KoE= 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)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123565025)(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: 040866B734 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB3325; 23:K3VNtTeotoqk+i5rduPnBlc1mFS8tQgNViXZdvP/W?= =?us-ascii?Q?X/QHBnC85BYMPFEHVAL3aL6z7ePZJVy+kVdDHmJNCzuOf28/qmqNZrPBYoQv?= =?us-ascii?Q?mqry1CRmOCppHrKrgLpoPgEDIaJveRSI6Ngw3swwmshagY84pTlFoFlF+ylp?= =?us-ascii?Q?iXy37Ssi8sn4LM1SLN8K/ryCV0BI2wnIJ4qBnDVi8iBeKZovkcVIQ7+tYEEB?= =?us-ascii?Q?my8rMxznQji9EB8RbKKUifxyDzff44key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?TQcWY/8QxWb8wV7AZ9Q4NAdIjGGU1JO?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3325; 6:GK53zJY2VCuk5Y9doTigEsTOxI5+NnQeu8hHNqCFm/icuy4KGXdCLURdEOhgkbD9Qs+xm6n666zZbbRVaOg7to625GuRR6XsVyKB0puJlDuXo6SvUTyzHL7QfErVbuYeHxeHLhPeVj7R7MYdk2Ij+imF9RNBjA3SptF9M4k9en1bdddlwAuNYmPgZeYm1Jl3O9lctZ4wAx/u2eVS/MP0YAv5mb96I7hAhEeE6aC6N7V4tck1zp3ayu1Wng6Y6M3C6PlHlU8JA+jSUoYg7o7iWScSsjhKtRQevGOGZO3tM3apHozHiUnu6dY4I692Ra/5B7ZciMWFtfDt4Jj9KhKIPA==; 5:C7KtlMlgMkOHrflQwI8sWwDuE/A8sXWefB/TiuyPJ6d/epj4E9bKvOb0SanE6Gg5UcSFZtyLD1d/NFHb3qK57nxUieT87vCbwWx77L0EQN1DerYTY0zuwo9Dn/n+xyWxFWr8ituSDNtDHPJalaGnVA==; 24:yyx07LC/KPR5FMbisLtAlK6rhT85Drv4lr+0bGHRixB1SFwwgikfKv7XGiKKQFU2/jkh0hFp3eJu2gK1ZeUmI09hMElaadfYg360M4+N1p8=; 7:qs776LvwRrTisPjEONCzU+AnvVD2ePCsDtfdt2F/v3Kt99trvnUnKgNr0EzZdVyvY50ITt7ccZO0gT4cJ/2/QvywevnZvAKxso/uawfagBEyuDNJYFeZ2XfcwcbTjwHj15nwBRxeo5r2F7vcK9c5MKqwwZ8uQoNae32Z82EeEidpHj2q5aVuD38R6Z0+s98YQUCTxYjOFVp6qd5iR72iPB6a1iehdcUc/n3OpmZ4+Xc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2017 14:03:25.9387 (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 v3 30/40] 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: Wed, 23 Aug 2017 14:03:28 -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