From patchwork Fri Sep 8 08:45:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112041 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1247161ybm; Fri, 8 Sep 2017 01:50:21 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBqeEEjrBdYjeUYg3wJ5AGgNzNKTlbgqH7zH0TX634dJ1fAZXZWi+5SrR5HLUoOdwMUL41m X-Received: by 10.28.197.133 with SMTP id v127mr1250645wmf.52.1504860621809; Fri, 08 Sep 2017 01:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504860621; cv=none; d=google.com; s=arc-20160816; b=JcpECQc7Dr9vz9NqOE7Jjam5GqBj8k/8qes/V/T1IVd42C421q4GN+AXlwfRH87CcW 02r0h2ij7VY2YAPCGSX7JqWpuJcYCd2TsLRfecOiA8g7Ght7knOB21sOG9EouYajB2gS ff+Zqv8qZVNNyPgPAxhHZfE4ZSM5xFx++LjkbG/3KyCp146eyH4TEDjJM4HCHLlmrTF4 +88Tf+R4xhLQAm5DUeOmTCOxiP5jZlU35wKOtv6eJxOnyVCviIJWkCz3T3dqHOzBcjZ9 2/1gkvdwlGp28rqdShbjDtw87oKbpnkm4XJlg498OJC9xZOfA5hkg83k0x8d56G+xKB9 J5hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=Gf3qrkTqcK9dn9IFFIUwsHEGXnk9Gycdn0Ji/rPNqTk=; b=09VIRg8IOCCF97vkcCEFT3e2EB84Nc8nNCyP66LOIZaPmE4+sJWfJTy9zJWLHY8Io1 ZxpVDf+hg8TYzOv8UWViYI9xplRXunYlhVGlB6XRZukMqvuoCNLdGYKfThCBZWQ28s5r vi4duil96wGpiltCW/RK1dG/0UApg/Qii3Jrz+3K34DawOudhf5Htd0X4bWyGgzAxdww bDnyf3pqlObjlgBU2F6JsInBeFAp3IcJiReLqEQpm4C6elY05NSbyb7t0nQZpgARb0xS 7d7VsrgxPDIT017PxtIM7eOWE63zCRxH6TtBFo46yrUWkxtbCQC3XpS7z49v0xujJKNo pPXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id h191si1079560wma.203.2017.09.08.01.50.21; Fri, 08 Sep 2017 01:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id B321E19A37; Fri, 8 Sep 2017 10:46:32 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0041.outbound.protection.outlook.com [104.47.36.41]) by dpdk.org (Postfix) with ESMTP id D075919A1D for ; Fri, 8 Sep 2017 10:46:29 +0200 (CEST) Received: from BN3PR03CA0107.namprd03.prod.outlook.com (10.174.66.25) 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.13.10; Fri, 8 Sep 2017 08:46:25 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::157) by BN3PR03CA0107.outlook.office365.com (2603:10b6:400:4::25) 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; Fri, 8 Sep 2017 08:46:25 +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 BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Fri, 8 Sep 2017 08:46:25 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v888jmoo023063; Fri, 8 Sep 2017 01:46:23 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 8 Sep 2017 14:15:15 +0530 Message-ID: <1504860327-18451-19-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131493339854960306; (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)(1110001)(1109001)(339900001)(189002)(199003)(6916009)(2950100002)(50466002)(6666003)(77096006)(189998001)(5660300001)(5003940100001)(48376002)(97736004)(104016004)(68736007)(36756003)(54906002)(85426001)(8656003)(4326008)(110136004)(53936002)(8676002)(50226002)(81166006)(81156014)(356003)(8936002)(105606002)(305945005)(106466001)(47776003)(76176999)(2351001)(33646002)(50986999)(2906002)(86362001)(498600001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3326; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:GeCSonXtrLft3WzCIwXYUKDrndfJnTUItQtTFFPXjE6MW2oplDADNUN7G6PnwWdpXrbfXIZCdw/32FgaxhUxGeEAu3O+ftyrMycabdNOAcxs+Bt6icTC70gKxOjXnNfZ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 39045b40-b984-4822-76b2-08d4f69616d9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR03MB3326; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3326; 3:m94ELT6CFTWs6ZyoYPu0qxresivUuzMb1c42I15cnjAfjiq9E1l5EwXhLGKLdYg42wo/SPW8lkjzexqhosq4GLKXB8CCuTV85P5tigQ+Y7QW23S0gkGCCsnnxd+09zDGFID2c04B5PwXDQy8N0OcIi7FQK0pXssUxytdExAgjRbMaTN2k6/DwDqn/Tg0PU5xN2R/cwRjnhKzDzFfalnvRK+hbgFtph7BpClK+8J+9tDGW6jt2/Kb4BGNFp/a3ItRozxfZEMyMocaZwb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riScan:(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)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123561025)(20161123559100)(20161123563025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(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: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB3326; 23:T1TVUFZZTxbaTGoF42LsJ8MGC0UqVtpkdk6zSeNli?= pigzjlYUy2SnZUk+jqcSz/TwyqzrkUdi+9Eb/o/WCZFmECGqPpaLCJ0zenZwl0BYi3/HzMeNuRyQqu+ewX+YKy2AISTuZBjM1nPKRPZ24UoPAQBZAoEtqOa5iL0Ye+/dtayjn+I2bHzmqCSjrI0dL1lOyQ+wRErbTwl0WKBKvTVknhNUwHHSeRSn+kJdmM1ybQvE4MaZiMezRlopdDbT31+43wAHANs4mRp8pB8Hq389Mwr+6knrXZeTN3y+tkevQqc4+Zp/pT+FjnD36XkLyXVH+F0gkNF6wlbzXo4fV+yuQahtEYJYd8kVWKQDojn7//+bO7nYiU97E8NYVTHD1wxrXoLMoGUn0JENkTZPbonpyPl7Kp/Fk4QkmIjIz5jnM6FmlyeQpkZT+YpDn1X1WBCkO0uLh4M0n5YntIVoV16i/sCmPADGB+7EFdOu1qKaVKSaAn0DdIAvgFc74o/10r06wMxpB3T+fqTdqLFtsQllin/Uwax3kD1qFRe4TilES1BRERcINUl7yMgDy+5tiqw6TA3SLLZxd3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P8WTy2xw==; 24:3zPv1DKr49p2jBEw5ZI3vldMChaHPclUp/MiPHEH5UKLnrjbH7oRFMIvwpkbn7dTg2mUhPG+rayKyrAMJt7j7kI7xM4o3K7HNGG5DECZ1xs=; 7:VPptUlTfTpFYNdBFy29EK/K2huB4qw+F/AscqQoDfE51MVBGszyiHiWh9HU4tg5N3X5N3hRMHcWbIICqbFZxUwCLH3ESk3juY7EhLwaQ3Lfd2iJK+CIyCU6s+h0QzJQ9Xw/0d+PjSzZG9aALqsqFjtfMp0s1bHdp/66F1EKCVGBOuSTS0vD3SM4ACb6HI6s2e13+zgM5XeEy0DHa6EOOkVJy0wvxFZCJcxqZQCeuzDE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 08:46:25.3400 (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 v2 18/30] bus/fslmc: enable link status interrupt 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index ab1df36..81f0779 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -464,6 +464,10 @@ fslmc_process_iodevices(struct rte_dpaa2_device *dev) } switch (dev->dev_type) { + case DPAA2_ETH: + rte_dpaa2_vfio_setup_intr(&dev->intr_handle, dev_fd, + device_info.num_irqs); + break; case DPAA2_CON: case DPAA2_IO: case DPAA2_CI: