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 CB0ED454E9; Tue, 25 Jun 2024 02:02:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50B9C427A7; Tue, 25 Jun 2024 02:02:39 +0200 (CEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id A8B66410DC for ; Tue, 25 Jun 2024 02:02:37 +0200 (CEST) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1f480624d0dso41351255ad.1 for ; Mon, 24 Jun 2024 17:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1719273757; x=1719878557; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=UaDWSTwlQX1vJKTiiptxAf4TPhdpGikR/nRYeGDhlM4=; b=VFvtUUog3eS1TsmjgggJNRdKIwy1rPuV8iPtBuuVLV/lSfePMdfUEzqxI2sSe2JXg5 Pv9fUwJONnR2QYrjqowP7fVXmJgzVyvlZi5P9BG8JZ6uThnk8F9kU24jkHTrzIbeQtzB FtjOeq1qwLfBdYsJUfrYJ3u0J12kO5kTciMgemxbCmMfseXCm0AMBJvGJ83ncfgyJ4mD dcnmL+s3+LFgUcsa5ICjL9oqbXOsk36L4zaVbgAKoyEo4GGaPl/YWoff3Ann0IzKXemG 53ieDltHHbNeHirj5mYcNm4gbNgwEf07HH+CZ1llgjQL3yIlCBw3s0SJTfnGftthWova 54/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273757; x=1719878557; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UaDWSTwlQX1vJKTiiptxAf4TPhdpGikR/nRYeGDhlM4=; b=FBdtcr7NrkUJraDPXw2hQ8oU1ONy6Up47TxrNovfEO0g5dMhi3TxzWDb4igymsDF4+ vM+i+RQxtP7gegHeTgZe9RuIQ8PLZvza1KNjeQ5IDOJTX6F2ZivM8vBpZKDMs8Sd0BKB 1aH1HgY2wgUmEwDMG2B9RR3hebHgfqVl6SfumqdOvuJx4WsFz+mz41dkkjN2CCbZkVY3 doaKllqubxnDeLwOBBQOkyJ9jEskIg1fObpfmFu5i7wUv05BHNBBBBBbw0trbDef8z4N zUMn3GzSe7piebqlRS6JvzKTfg4jI5gdzfxywjv/t6vwy6hL4WZ71jGRTGcQ86kses1z 0ITA== X-Forwarded-Encrypted: i=1; AJvYcCVqLJlORwFdfQNWZNqDRTiOO0szeHEs6PXyrv7JkgpRZCQEd3VbyffvKLWb3Z/xJHXKrhFdoC2D79KWmOc= X-Gm-Message-State: AOJu0YyeGMc9iJBd+L6OoGwholDZIfFNsTZmeMeXC+r7MMx7/R+Iyv1x DYwf/1jZHXshPPVUPgMsHiB1ZAKvn1kNlenQR+/wcNlo4XcxUcyAE7S2/NdnrTQ= X-Google-Smtp-Source: AGHT+IGLnmOjVp4SktogxymY8s6fFdg/Pb/9/2dcvsxR5WFVHcUJO7y6IUoRaLYOk1n5o1tJGrJz9A== X-Received: by 2002:a17:902:d2c9:b0:1f8:7c86:9f53 with SMTP id d9443c01a7336-1fa23f256c7mr73525305ad.64.1719273756805; Mon, 24 Jun 2024 17:02:36 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f9eb32b9ddsm67989685ad.119.2024.06.24.17.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 17:02:36 -0700 (PDT) Date: Mon, 24 Jun 2024 17:02:34 -0700 From: Stephen Hemminger To: Vladimir Ratnikov Cc: longli@microsoft.com, dev@dpdk.org Subject: Re: [PATCH v2] bus/vmbus: add device_order field to rte_vmbus_dev Message-ID: <20240624170234.50f1e213@hermes.local> In-Reply-To: <20240624111521.3253-1-vratnikov@netgate.com> References: <20240624110415.3230-1-vratnikov@netgate.com> <20240624111521.3253-1-vratnikov@netgate.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 24 Jun 2024 11:15:21 +0000 Vladimir Ratnikov wrote: > Field can be used to have static interface naming > in DPDK based applications instead of uuid. > RTE_FOREACH_DEV won't return the correct order of > such devices due to vmbus_ignore_device in case of > blocklisting/allowlisting. So device_order field > will be helpful in that case. > > Signed-off-by: Vladimir Ratnikov > --- Not sure the order of device discovery is predictable. The order of devices on vmbus is when they were reported by the host OS. That is why Linux driver use other ways to have persistent naming.