From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7605A0542 for ; Fri, 28 Oct 2022 11:46:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FB73400D5; Fri, 28 Oct 2022 11:46:12 +0200 (CEST) Received: from mail-proxy.massresponse.com (mail-proxy.massresponse.com [193.9.252.221]) by mails.dpdk.org (Postfix) with ESMTP id 7510340041 for ; Fri, 28 Oct 2022 11:46:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail-proxy.massresponse.com (Postfix) with ESMTP id 089ED680124 for ; Fri, 28 Oct 2022 11:46:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spusu.at; s=mail; t=1666950370; bh=n/2B0c3VwM85NjLtJ92NeZU5ZyqHy8Crl5sHbaSLCxo=; h=From:To:Subject:Date:From; b=PqlG3sLS5PYhl7NGPY9QuUOIbig6wJfySPvcyguyRR4t7ik3cIVBbLisKYFKJP1xi 2xBu8VEcF+BFo2XR9Kp9hDJOtLZl0WtyRlq1bAjp/Q0pQuSW+F96+VN1ss/rxlPqOO 2Swaay8Xk8LWiCq6cxi4FJj9ThAJrO+/7ksvK6xs= X-Virus-Scanned: Debian amavisd-new at mail-proxy.massresponse.com X-Spam-Flag: NO X-Spam-Score: 1.349 X-Spam-Level: * X-Spam-Status: No, score=1.349 tagged_above=-9999 required=4 tests=[AWL=2.251, BAYES_00=-1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, querysenderbaseorg=0.1] autolearn=no autolearn_force=no X-Spam-Languages: en Received: from mail-proxy.massresponse.com ([193.9.252.221]) by localhost (wipmail1.mip.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iHCq8zWnCZQ9 for ; Fri, 28 Oct 2022 11:45:57 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04lp2057.outbound.protection.outlook.com [104.47.12.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-proxy.massresponse.com (Postfix) with ESMTPS id B393F68011B for ; Fri, 28 Oct 2022 11:45:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aK7G15uP85ge7jgtC41qQRDtuF7Db9TIBuF5MU9S9xDvYcS8tVlqjZSKzS8WCrFaweRjfKl1FcrQxrM5vHFUDJ6m/xXd6c3mIKJjddHk6MYT2E5jrjI0kFl4bukBB/hmKUWpcmAXTGdShF8mMStlIMi7pfRxqFJvyBKPPDu/37JE288EQQ+GTzClusxynmZY4pgryInV1hfI1PWjp0JfiONFmDzS4cBsxEdS4U+49jT2qytN5ausrxeaxEX3P2oLYNCyiEpOR7gtwkRdkZoid0U+WL0mlfRalWnq3BMJAkzcpq8sC8UsVjZsZFE5C3DlJrerfAcC2kRyunbMuMSPYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FaDBFTEkXF7SJEbV8adgM2fXy9wCUu4uVEj0LgYndTY=; b=XfQwM8OCMKNGNvbJnEKsIO57b4bz9A0p+dFQJyWaCRzDU8KCRp8GGShkjxFFQRQEaKid0Ox7P6nAlyeP16W7LYz0qvszt7XfWpFWtd6mUYznXUGyCUHhENbCUgPL4QmcIg9+ifjUOjMLvLehWyZeh776cDSPuM3bZ39mXIxVP2sURDoPcp5w/jySVO1R3ffDHZp5GpSLptaNQCMVHODUC2XzEtKhl0BmKYGA16s6PU+Tn8xwT9WW0sXy2xgVTtvj/C5BmtAlc4itT9kBhazxZvrl+HziBqyN3+74l81NcaUpnTJt0ZV5ZiZAaR7xbEv24SQMSgi0uVarsl/B2hBeqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=spusu.at; dmarc=pass action=none header.from=spusu.at; dkim=pass header.d=spusu.at; arc=none Received: from PAXP190MB1741.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:28a::22) by VE1P190MB0989.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:1a9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 09:45:56 +0000 Received: from PAXP190MB1741.EURP190.PROD.OUTLOOK.COM ([fe80::60fc:c483:6737:5f6d]) by PAXP190MB1741.EURP190.PROD.OUTLOOK.COM ([fe80::60fc:c483:6737:5f6d%4]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:45:56 +0000 From: Robert Hable To: "users@dpdk.org" Subject: rte_eth_dev_count_avail returns different value in library Thread-Topic: rte_eth_dev_count_avail returns different value in library Thread-Index: AdjqsT8t0rmZJCGcQYi54+pH7mlI9Q== Date: Fri, 28 Oct 2022 09:45:56 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=spusu.at; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXP190MB1741:EE_|VE1P190MB0989:EE_ x-ms-office365-filtering-correlation-id: 6ce9c9b3-4c75-4528-8267-08dab8c93619 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QXJpoPBWImNvEh66iSywYy30Q46du6IlxHGQrDwxyreDV6HmN0l+B92XWfFpWXi+6fL7eHUE9H2IxQSMJ1FAmQTy6WNFoVpk01QZCgs6gA85LW2H4CmGlBZOr/MkqMb3fY3vhSl/EVrv+KnhJvjCpNd2Uu/MCKEijBfwpPp/EKkjvB6hUeMY+61HZg+l8apgqcav7SC19+BQ11R6cyzxIjsRFDC7YlHGZ3sKTM8zF5HOvme06tRc1TNxv5v5c1zc2X4Js75Fs/2ibX/OyDZUnoPt/VulzTpalzETUByxq3e9Chqohgdhy4RpXfOPQR+WH4zuxcV6zTH3ET0ns9i31+OsM8rhFZGnWb/no3FRThzcJty5t+afeoykIq4gKjsyuYZFvgS8h9YRwcMbHsRVCVnCxkDEBjC6Ys5CDoKtig78RdEGcCgDKTYU0YvLLTrfNb2Y15+iB45cyyaG6uW/3EofB2RzDaiEFpyW3hMWvYcjSH23SAYt9MGbg7BDL2QOzQjY/CC8KAFFKUtk12Sd6bhRsxuMuI2xdA24pU0B1RcvcaaZs2Hatk7JMNIlUGvaQXDdD99tbNsNn5xD1eIvHgXAew5H3EEs0v3jQ0W8zvVZR8oOFy99tP4VdmjpF0toxk24X6oGU+2Q29kPIcZZHkHVq9aeV02iyCQRpqKHCK53kshiJ7j5hoK7KTPX2Q9iJiWFo9BwXml/WqqumHppFH8G+9dtK/R8lEFoS1EW9/dRlIkphejpVtK53zlXcb90Pa/aVFoCQvnHB0RtAnFK/A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXP190MB1741.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(376002)(366004)(396003)(346002)(39850400004)(451199015)(2906002)(478600001)(71200400001)(55016003)(64756008)(66476007)(66556008)(66446008)(6916009)(8676002)(76116006)(66946007)(316002)(6506007)(7696005)(19627235002)(41300700001)(26005)(38100700002)(122000001)(8936002)(4744005)(52536014)(9686003)(5660300002)(33656002)(86362001)(186003)(83380400001)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7lwX06z1k2SKM+oL3HSuAcFWJUoxmgIBk23Nnkfh3ChIOwaXOsGIrCD78Nk0?= =?us-ascii?Q?ssVFbplyJ8Et9FkTOmgvL20P8dE4ou8eVqiCT5hY7/uZuHIUGMB2Aznatfb3?= =?us-ascii?Q?d65QSXD2+G9gcFwSOrW0h+SRX8uZVvSXYcGsGZZ9vdL/HwCbG8allx/+ETtC?= =?us-ascii?Q?9sCuGKCWTs9WqEytRkhNEEhhG/mzUoEnrL5YiBmlPjp8t6iJ+OpXDLQFXZbe?= =?us-ascii?Q?xe4wasVE0z5vXBklYfeQHnaPgfxTmVUp+BXeUwrPCBJTQV/EYTSnPoN1nwYK?= =?us-ascii?Q?w4ngRuGhXqdAxG9TtkfUgjZwDsohA0ruOahOKxYqlH1g1+9s0KmTKRtXxp3c?= =?us-ascii?Q?2pLOi7jwh0SoLtWnWay2KbfmpTbP+50OTjIT6gQ7hQhV5k7HydxXEHwAZSxa?= =?us-ascii?Q?O+5BoOyIeEqihJdsyFCn7piMUcWp8bK9SZzgilV78Kd896HpRQo97pPFybat?= =?us-ascii?Q?WIxMVKYPq/9HhqCKH71tiaMKVKb2sR4EYCZSAQJVfF4pxeDVqX1GXLi4MOJS?= =?us-ascii?Q?mmxNJmlNm5f/0lsJYq6vbdO077l37AuBZWxw2ezQrM/9nq5IcMF0vFU1/yvd?= =?us-ascii?Q?ReskpmJRcE4qFhk43IffpVeGUIoPkun4/Xq+P+TH6tmBHgDUqADdNUu1BMFr?= =?us-ascii?Q?ZCKFjriMzK7m5kGtGAMUye4EHrqXo4Gs1TwwVAyiuiDrt3twLErag0AANzQH?= =?us-ascii?Q?NgSQFwztGHDxHLr/gvSyB8AIINcOFJqO1EdUjvLICdFQlBFLbgecIvCe1GJ8?= =?us-ascii?Q?kkiLgrY89IRun06orv2GbgITH/xw9I2QpF30P2BstrUK6wpBAzlvHp8+Ynrz?= =?us-ascii?Q?SEn/OVxHQg4K2098DNx9/jm9SG08nW9PDnoxPCxYIN/w4dKgrgd9BGrOjLO1?= =?us-ascii?Q?Xj2xNIw2w8NkNQEwKDucrKagCw3Pn+22NgZpxr/xr0cKBxh1ZAU7MTaNjg+w?= =?us-ascii?Q?QUQFULh3pJgQhhJn76rMxMAjEcFz4HageIW/OSDL3wFnjyA72AKgIqSUR4Bo?= =?us-ascii?Q?S1xTtHzp3GqtF9ZFl1mX3AjWWIAY9ix28YZfcDmpGK33EmzMB/56S4rYzyVu?= =?us-ascii?Q?Od0AXCeyzR1a+Qtciwk8lUCPHO5hLhhZ8NFSdTakcrBPu2uhS3BDsdgbcbz9?= =?us-ascii?Q?hYtZfiu57VuU36K0R52gRDaeLFQqbKc22pTDkKyXQ2wWrNEG1tgR3qG9SJBz?= =?us-ascii?Q?12Ra7YSJVC0GY2RGBfDUleALV0Hjy3XWFLdnsM4hQg4Kr26ITM1QLm/ne6Ws?= =?us-ascii?Q?pOxEtG23nBLFSj5JGunc0UdsV6QYbHzW/2G0krA8mp7zI1VbbZSDB93U6Xsu?= =?us-ascii?Q?szk380h7yXRuVPA17o96B7fTIfOKeF7YK7kKYHFf5egr0WnqTJLPrL0dPv22?= =?us-ascii?Q?EPDV2Rhr3LpGkEiRUfeNIZ79Nno+zgXKcJfr27FWew22Vkjpwilq1hXksEFl?= =?us-ascii?Q?xviTS4WIRTu/pF9/ozmcIOUKHyox/Sl1NkzlJ3gwC0YPheiO2MXM2rjIB/HW?= =?us-ascii?Q?ufWqh40OBpwetiOkUQ9h8iKUZtaMQFfhEKqYZITdT2+6TYAdJPvS9jMadshG?= =?us-ascii?Q?88bUHCWdYvz2QDT6qp53U0V14zG9L9ehGfXWP9JE?= Content-Type: multipart/alternative; boundary="_000_PAXP190MB174125BF2117E20B260F21A4E1329PAXP190MB1741EURP_" MIME-Version: 1.0 X-OriginatorOrg: spusu.at X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXP190MB1741.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 6ce9c9b3-4c75-4528-8267-08dab8c93619 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2022 09:45:56.1456 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 287dd7f9-0481-43c3-b6cf-51c237c0cab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZtdFdlxx9I4A7zZWntLp+VH5vd6dCUCLJGU948ST9iPGSznbYE7oe4EANUbicwICTOS80Qk9cHNZ2gcm4cB7OQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1P190MB0989 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_PAXP190MB174125BF2117E20B260F21A4E1329PAXP190MB1741EURP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I am trying to build a static library based on the skeleton example. My pro= blem is when calling rte_eth_dev_count_avail() I always receive 0 in the st= atic library. When I start the skeleton example app as a regular exe file, = then it returns 2. What could be the reason that rte_eth_dev_count_avail() returns different v= alues depending on if it is an exe application or a static library? rte_eal_init() is called in both applications with the default parameters. Both processes are running under the same administrator user. I am using Windows Server 2022 with a Mellanox ConnectX-4 on DPDK V 22.11.0= -rc0. Kind regards, Robert Hable --_000_PAXP190MB174125BF2117E20B260F21A4E1329PAXP190MB1741EURP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am trying to build a static l= ibrary based on the skeleton example. My problem is when calling rte_eth_de= v_count_avail() I always receive 0 in the static library. When I start the = skeleton example app as a regular exe file, then it returns 2.

What could be the reason that r= te_eth_dev_count_avail() returns different values depending on if it is an = exe application or a static library?

 

rte_eal_init() is called in bot= h applications with the default parameters.

Both processes are running unde= r the same administrator user.

 

I am using Windows Server 2022 = with a Mellanox ConnectX-4 on DPDK V 22.11.0-rc0.

 

Kind regards,=

Robert Hable<= /p>

 

--_000_PAXP190MB174125BF2117E20B260F21A4E1329PAXP190MB1741EURP_--