From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0065.outbound.protection.outlook.com [104.47.36.65]) by dpdk.org (Postfix) with ESMTP id 792C81AEF0 for ; Fri, 8 Dec 2017 06:22:35 +0100 (CET) Received: from DM5PR03CA0036.namprd03.prod.outlook.com (10.174.189.153) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Fri, 8 Dec 2017 05:22:34 +0000 Received: from BN1BFFO11FD024.protection.gbl (2a01:111:f400:7c10::1:165) by DM5PR03CA0036.outlook.office365.com (2603:10b6:4:3b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Fri, 8 Dec 2017 05:22:33 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.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 BN1BFFO11FD024.mail.protection.outlook.com (10.58.144.87) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Fri, 8 Dec 2017 05:22:30 +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 vB85MKGb013022; Thu, 7 Dec 2017 22:22:31 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 8 Dec 2017 10:51:17 +0530 Message-ID: <1512710487-32388-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512710487-32388-1-git-send-email-hemant.agrawal@nxp.com> References: <1512710487-32388-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131571841507806394; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(376002)(346002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(77096006)(4326008)(53936002)(50466002)(105606002)(8936002)(48376002)(50226002)(47776003)(86362001)(2906002)(356003)(305945005)(68736007)(36756003)(85426001)(2351001)(16586007)(106466001)(316002)(498600001)(6666003)(296002)(97736004)(54906003)(5660300001)(76176011)(104016004)(51416003)(2950100002)(6916009)(33646002)(8676002)(81166006)(81156014)(8656006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD024; 1:Kzj7vTdwN1yIe4pbAGBMz+EoTqF5joJr7b54sRdoSZYPtUhFppJq8lftFhyFPmY/M3zVFzxAHcbuwO/QnYlH+yW6NDGKoR2kubnm5TLa8DWQEd8Sc3Aw3UesuQyjxQ8+ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 62d71377-6f4d-48e9-4cba-08d53dfbadfb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:yAyYbqmVpPuHnh+1r39Vr5fjyt3HCtK3FXJlfH6WJ+bxrgW9cgDlHaHlBXAS/7u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YlkjxvxC0L3tetZzX1AyfNiotTUOox7iQ7njQsRcNlsdakkp6D5QPg3oPjoJxLJEc4SHy9DOIXdMs+EaADSZyjuKytnyUKFxQGQIqKxs3BNwENx142zG8JMYgHrmc0ajSOcnSXg2/mebrOwCZMLZHxaKlvl7yLecQurYlA/UaB9a1gp3rl2Gq0+yeJDoxLT4W5TeBrT6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231022)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123565025)(20161123561025)(20161123559100)(20161123563025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(201708071742011); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0515208626 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2689; 23:66//z9/advZA7QD9MyLEx0cD54qch01DcLsu26B2S?= =?us-ascii?Q?tkKP7eh2WCJoeWaJnNSYllRufruRLSdZuhVvKzQCcEHyJLc2IHfVM/nPLenL?= =?us-ascii?Q?AHgO6s78FA47QgJY5wo+cCnuZPOwdqpQ6nGvEwIdAoQXM9EqCY6SX2KnSE9N?= =?us-ascii?Q?bAlDdx69najzXXVXVr9OHxPBzfRQUcntaCkvmqqioW6e9qalFnArS/IMcu3C?= =?us-ascii?Q?9TVdGTVftRnVVEWGCyAB3t18auy4hQfkDbA3Bo+8XO0MUMMToyuqVT8ZM09G?= =?us-ascii?Q?UHKsD+VYHSOZSsiwJFTxruyV8lMK8FS1mU46E7H09xtjHdwfWMcazzPUuXVO?= =?us-ascii?Q?G9Os+mYsFZD7AmMOn3LkHTJbbjN+vRfKf7i8yOirnXzB2wQfj/P6DoUOKMOC?= =?us-ascii?Q?/hFjxHmIZhL/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8KfJypFKo7vGE6/PFbp4UuFRKpzlt484vnqHcFHQLkrhIxUFn+1IAPZExi5pq3bjL9cq+7v7eKaNJzgq6WRRVXDrWjdoqEZYv2/0T25ZUoJV+4icYHk49LPct00c7stmoVngt9Qx2lGl/KGrmAKaVSrwWD79vrCO4YZ5L1qYLW0LMAaY=; 5:g3w5s4tzbwQaBWI9YOpkDISL61jd2/RyUr2RHAqEjE1gYEeWjoNvbqez1fLLa28QFJvQP17eb/YE+6FHc+TWAk/hMs/hSR+25VSjdDsUF3uYmS8kNPs9HBStJGDsGXcnU6igU270vq5tX0UfthjiV7k2HniqdvzTwNmRyJ48Dkc=; 24:A2NdWXXAHrSI7+7fM2ygL/G3Idkx6061VLrgc+K5r2MG0cwVin98I+1I/SBvSODQWkNUiBqF4e4D0Oc7iUcosQmQoNsecDE8GxYKEYWQ2f0=; 7:PZZjofzKJb5S/XcQlNlXjI/eLCwyFXY/w1OGqUAEecaQ/k1dxdNbt7xB83ci4inE/joTmj3elzpejGyd+UMmK8dSgwoLl/5tHUh5qiBu0QKqIFdMSSLLKJDcZt9OSdt5Tl7yikqQVqqPVHNeLc6xReh8B3QoP5gxaTrsY/06WPSDRpR8N30O2VQVunupntXds1UxnSkVMSfj9Ha94O3ZydlrhK87k72jrjGNHzwFx37tSraX6vHvoYW96HJPBA4w SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2017 05:22:30.6090 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62d71377-6f4d-48e9-4cba-08d53dfbadfb 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: BN6PR03MB2689 Subject: [dpdk-dev] [PATCH 04/14] net/dpaa2: link status check as driver flag 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: Fri, 08 Dec 2017 05:22:36 -0000 Signed-off-by: Hemant Agrawal DPDK-809 --- drivers/bus/fslmc/rte_fslmc.h | 4 ++++ drivers/net/dpaa2/dpaa2_ethdev.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslmc/rte_fslmc.h b/drivers/bus/fslmc/rte_fslmc.h index 0c7872d..fd52e2b 100644 --- a/drivers/bus/fslmc/rte_fslmc.h +++ b/drivers/bus/fslmc/rte_fslmc.h @@ -62,6 +62,10 @@ extern "C" { #define FSLMC_OBJECT_MAX_LEN 32 /**< Length of each device on bus */ + +/** Device driver supports link state interrupt */ +#define RTE_DPAA2_DRV_INTR_LSC 0x0008 + /** Device driver supports IOVA as VA */ #define RTE_DPAA2_DRV_IOVA_AS_VA 0X0040 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 38de3d9..1cd302d 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -1872,7 +1872,6 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) } eth_dev->dev_ops = &dpaa2_ethdev_ops; - eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC; eth_dev->rx_pkt_burst = dpaa2_dev_prefetch_rx; eth_dev->tx_pkt_burst = dpaa2_dev_tx; @@ -1976,6 +1975,9 @@ rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv, dpaa2_dev->eth_dev = eth_dev; eth_dev->data->rx_mbuf_alloc_failed = 0; + if (dpaa2_drv->drv_flags & RTE_DPAA2_DRV_INTR_LSC) + eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC; + /* Invoke PMD device initialization function */ diag = dpaa2_dev_init(eth_dev); if (diag == 0) @@ -2003,7 +2005,7 @@ rte_dpaa2_remove(struct rte_dpaa2_device *dpaa2_dev) } static struct rte_dpaa2_driver rte_dpaa2_pmd = { - .drv_flags = RTE_DPAA2_DRV_IOVA_AS_VA, + .drv_flags = RTE_DPAA2_DRV_INTR_LSC | RTE_DPAA2_DRV_IOVA_AS_VA, .drv_type = DPAA2_ETH, .probe = rte_dpaa2_probe, .remove = rte_dpaa2_remove, -- 2.7.4