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 0F745A034C for ; Mon, 12 Dec 2022 12:28:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7446840A89; Mon, 12 Dec 2022 12:28:02 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2114.outbound.protection.outlook.com [40.107.13.114]) by mails.dpdk.org (Postfix) with ESMTP id F40EC40156 for ; Wed, 7 Dec 2022 14:57:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SAcLgXCD+9mnK5I17KudZ+W6Uu5JgvcRaDVAPZSKmFC/5huipVpUvivf5Mm+V+GR0uzdRZ4qlYvGfkRrHpvKfeS5ca6Btu1N8qXH54LXwHz7lD9jH4BvkXgm4YEVdiocVlJE4v02f81mF0FRTyBktk0GzWJktl68Vbfgh6ExItsDBWOS/mhFby6J+t3NuLlWRQZPLDkcl0xAxd3c6i+SeNXwa1Y24JNaIN+14foWMLZ+8DF/MY/l8Ger425iiy+SPDDjZvtX96xATT86RunvqwX6FBvNDShJkqTeQhH2AfdChAgnYmZnsJOKE+/fblH/wSECHD/dHuaKSvkGfR/Uhg== 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=jKh1+9F6uD8Z6eWIFxoPa7rtoFTNwct/luubuGEEIk4=; b=KjMyb+w9kj0t6jXYX4tLLxJq3fBosmFFOY3zIYgs9G2fBFaK6v5bGJpLccsxlsVezEardMUq9p26Jup9/D/f0+xU2uZI0DAGPhsLq67Rn/otgndxmDmimTR7AbfZ7RYfi1Sfz5l23bg12egy92dL0dd+kOvwRCNKRpK+d4K7SMetEyzuiZaIgZgsOOnAa+grNS907zmsozg1sLQS/voSd1ljdJGuX/CgNmVRdCbjj2Q5Ll7VH+r2NAdQA5XwF/e3JemINU0zr9d0Xvd32FyhYSCi3YOKHpP91rU63vbakhaTCpOvASI22w/xTcGC7vP7BVWW2nzKDJci22ZfyIPnpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jKh1+9F6uD8Z6eWIFxoPa7rtoFTNwct/luubuGEEIk4=; b=hEpaK1X+4ByFKbc6AtKQcnGVv/bs612lKoFEVY3DmUqyvf8wbPTDXtVvWHwWnfAeG4/6Q/x68Uw8iFhler29hx38d7jt6blHQCOalOVjmw2qkxmVuVadP68lH6zr82uB0T5ttLzR+FLu+gCWWdyjofiDtPgWAPrF/OdRyJfa2J8= Received: from HE1PR07MB3465.eurprd07.prod.outlook.com (2603:10a6:7:2c::20) by AS8PR07MB9112.eurprd07.prod.outlook.com (2603:10a6:20b:566::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Wed, 7 Dec 2022 13:57:26 +0000 Received: from HE1PR07MB3465.eurprd07.prod.outlook.com ([fe80::781d:8ecb:1b08:55e]) by HE1PR07MB3465.eurprd07.prod.outlook.com ([fe80::781d:8ecb:1b08:55e%7]) with mapi id 15.20.5880.014; Wed, 7 Dec 2022 13:57:26 +0000 From: "Ciprian Pascu (Nokia)" To: "users@dpdk.org" , "bruce.richardson@intel.com" Subject: DPDK issue with reading the eth interface status? Thread-Topic: DPDK issue with reading the eth interface status? Thread-Index: AdkKQ7+DkoE10txDRke6pahlaPflQg== Date: Wed, 7 Dec 2022 13:57:25 +0000 Message-ID: Accept-Language: fi-FI, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: HE1PR07MB3465:EE_|AS8PR07MB9112:EE_ x-ms-office365-filtering-correlation-id: a99a4a2a-28ec-4504-f2f8-08dad85af8db x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ju7FUzvtHThxUUPdpeXQOLfTSHCcUv9VF3kBR12vCyCKNp4Ac9r/glZdI0jP0IfoXKW0h2YhHTETXU65w65PLuPd+FYtxJ/qh7IWJT8IhlDT50M5mKtaO4mWDLnu6zPgNxJ8HRYCOI3GYEkL5FPDQDNtRMqrdBgYqBdz3OeM/bgFTp4kMyvDGEvb+8nSpCwDDEtx5DpB6s6W0b7rlVPbi++9D+wUVSki3Q8h80EW/MwI9aQj6YCmMdRwpFbZc1HIV5GWrXASLi5pXU4X5zLOLg393iBN1BTB58UPIT7BPQD6ucmOgTX7x1/yRFCwg5ZXVosrvlTUXi9h6HbCjQEyFAxcErbrW22iyR/pB1rRDT+BlJSm8zWq+iNJOHC8Hcaz8OhSazIsqcho21ntT7t7ebKAMX64F2gKIdmT/emUL4jo+t5wC+Tl/jlU6f5SbS2o5yqOqZ9Dw0o4uyHApz2eCbNIa7qteNuY5YsX5ZGgS0urS6dzk7zuL+DF58awCYWekUSy0mXJ0U7qoxv6vEImIEQe6B6pK9aBv6bA1T+jNJeg/qeAPKc+9KdmKHkJpO2Zu00NN8LNeV82SPHBENCa/OhDqPPZFdvvE4twWfW3Ntl1YajrZkYCJi+O+wgOaitI7ecAR0HlwVPcDemqdBKoVH8GRQvmwqWalOOWemr6fZpwz4lklXg/6w4BERxN6yT/JI53A2K8dnpZZ2ldHdo9Rw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB3465.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(366004)(346002)(39860400002)(396003)(376002)(451199015)(38100700002)(83380400001)(82960400001)(2906002)(8936002)(33656002)(41300700001)(4744005)(38070700005)(5660300002)(122000001)(8676002)(110136005)(66556008)(316002)(66946007)(86362001)(55016003)(71200400001)(66446008)(66476007)(478600001)(64756008)(76116006)(52536014)(186003)(26005)(9686003)(7696005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wAVHE/X1/myWdlmDlXURkETZ2gOBDY+QPDpesqxaskoaPQ7rSNrforxp6Yde?= =?us-ascii?Q?DlwOwqQPJEZwviv8+BeTC8j0JG8NOqjQ6aqHg2a/cqIe6+QPemqRqXiJel/U?= =?us-ascii?Q?bEANhsXrzFEAFw+5QAw7QnfCRY5KIw4MneqikPTQSXafJBMBRRZOqH7NUqSl?= =?us-ascii?Q?baLJdahKPKNeHQ8bk8a8cUbf2hHjLPhg0/x/jekwWPjT0loAMI9tOnhWgGO0?= =?us-ascii?Q?Vtmnx4s9VhvHACn4EZVKgcUoIPhvkaPje8dZ3ZOc4+naM2JbyROFzxFLcs01?= =?us-ascii?Q?HS1wBC6yIV99FyfVBFaSkgRMP2cGMJLiE39mC77PLN15fXrnAWbNu4vB+T3d?= =?us-ascii?Q?+WFTbQpORkfvzEvqsqS5TbnE6bQNwPTtd3Ffkk8pEJCG9eeD11wJ5e0Coaq+?= =?us-ascii?Q?8a/CCnMRA5mIVIPQPwJBR8uJzKiuTmkub7ZwvddaJRKmO4BwFj9hKBRA5ca+?= =?us-ascii?Q?u48cEJSZSx97bmxPBSZEYcHXsO0Id6gemu2w+slyELc1pfBblvMDONYQJJNv?= =?us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hu1ognuFf9?= =?us-ascii?Q?OJh/Or2HCWxq63oJyoE9UmQWoTTChE4yP5s+EPWApDn+no/XqHG4zVrBnBa2?= =?us-ascii?Q?ts2WPSxDY68k3sFkE+n42K42YZzZ9WNkBwlBC1leOZsImMOTdlkUfGKLD0X/?= =?us-ascii?Q?4M4iB2eRrRgJBVo1Ddg2DROea1n45TqFhm7PUJ/M?= Content-Type: multipart/alternative; boundary="_000_HE1PR07MB34652CB007866965A7CBD0C4E31A9HE1PR07MB3465eurp_" MIME-Version: 1.0 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR07MB3465.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a99a4a2a-28ec-4504-f2f8-08dad85af8db X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2022 13:57:25.9854 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qhOIfT3kSb3g/P+9kZHR5oshYF+hTlrKuY+lPKrcpGX+NKDvgSgfBnIj2FYTs1qlUB11Jsd5pBUGrHqxVp2cSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB9112 X-Mailman-Approved-At: Mon, 12 Dec 2022 12:28:00 +0100 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_HE1PR07MB34652CB007866965A7CBD0C4E31A9HE1PR07MB3465eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I encountered an issue while using dpdk-20.05 in our VMware based VMs: at t= imes, when sysstat data is collected, dpdk signals that some eth interface = is down; this happens occasionally; after sysstat data has been collected, = eth interface is signaled as up; I was wondering about these lines in '__vm= xnet3_dev_link_update' function: 1251 >*******VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_CMD, VMXNET3_CMD_GET_LI= NK); 1252 >*******ret =3D VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_CMD); Is this atomic? Could this lead to problems if some other module tries to r= ead something else at about the same time and overwrites the command? Thanks, Ciprian. --_000_HE1PR07MB34652CB007866965A7CBD0C4E31A9HE1PR07MB3465eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

I encountered an issue while using dpdk-20.05 in our VM= ware based VMs: at times, when sysstat data is collected, dpdk signals that= some eth interface is down; this happens occasionally; after sysstat data has been collected, eth interface is signaled as up; I = was wondering about these lines in ‘__vmxnet3_dev_link_update’ = function:

 

1251 »·= ;······VMXNET3_WRITE_BAR1_REG(hw,= VMXNET3_REG_CMD, VMXNET3_CMD_GET_LINK);

1252 »·= ;······ret =3D VMXNET3_READ_BAR1_= REG(hw, VMXNET3_REG_CMD);

 

Is this atomic? Could this lead to problems if some oth= er module tries to read something else at about the same time and overwrite= s the command?

 

 

Thanks,

Ciprian.

 

--_000_HE1PR07MB34652CB007866965A7CBD0C4E31A9HE1PR07MB3465eurp_--