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 DB01DA0032 for ; Wed, 17 Aug 2022 17:30:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 731834068E; Wed, 17 Aug 2022 17:30:26 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 00A2140685 for ; Wed, 17 Aug 2022 17:30:24 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id q19so12353397pfg.8 for ; Wed, 17 Aug 2022 08:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc; bh=lakz40ONNRgDe+23o6YIzJuERfY4EB7RW3AkvTike00=; b=4QqSufkuPmrJoajJrCoQIUmtkSqQQLXukEWYf7y7OQ4LxSfCcPVRB0u4fQPKJpST08 znf7LCR1zeeXOVjDjf7Yi+AeE33u2jipfMPmu3bKZHjy17Z/mKDhgUPHEdPX8T2135rI E9bDwZMbYdwiVSWilxBs8CZ//iqWVGTWE1fqx6+gsTfyfaU2GPhfeyEWKPnvuGblyi0y Fj8CHf01RCQSv1EFYp0pQmX1uBLvEWKW3v9SJrFg6Cat1+iZK+00PbgNexo8KQrEOvgV 5N7YV5woOkfkechtMMtiZiDcJjxEMn6NJMzz49iA0MoGbqTzyauBKmEeJXwTUAnM5NMU hDfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=lakz40ONNRgDe+23o6YIzJuERfY4EB7RW3AkvTike00=; b=Zj6k58YdWlBTFpMKxiojKnDYX3Dp1j+6/YA2yjaNN9vGwjv80uwSslC29g5v2TJ3Wv kDQwt6v16IWUiV57t9APbDFB8VAu7/lUC8o64g0vNMMdoLrFpM085gUO+KNJdmp/KnQ9 2i2QHhxAjRJKzZsdJJOMRO+e5ylolE+aD2HtN3SeiIGMGE/VUaI7SG90N75OK/NCldnw +uMV4k6TSk/LJhA0e8L5Kp1Ap4oLDKTSiqtSkdYZbZ6eTpzI/4uPL4lPq1bCYZKIbmHu V+CQ+jrWc4SpexGX8u+sSKm6lqApwHVAm8/qE5d1YLbx6XruMgK/eZZDK9u3ui6IPdDD IyNA== X-Gm-Message-State: ACgBeo3o2kvbhpe937i4v5YHEE3PGm21d2KYJP22jhw9ky3Ts9AzLqen MkrYtrdEnbzdPyDl48i6qY/nzA== X-Google-Smtp-Source: AA6agR6O3D8P1azUT4oCbXapZxTtqGLuI9pQ0XaOuJhGDje5X1lDVjPd7SoD0zcxWrbYj4ZWTfmpaA== X-Received: by 2002:a63:1841:0:b0:429:8268:1fc with SMTP id 1-20020a631841000000b00429826801fcmr9835177pgy.78.1660750224000; Wed, 17 Aug 2022 08:30:24 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id p67-20020a62d046000000b0052ddaffbcc1sm10636328pfg.30.2022.08.17.08.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 08:30:23 -0700 (PDT) Date: Wed, 17 Aug 2022 08:30:21 -0700 From: Stephen Hemminger To: Mikael R Carlsson Cc: "users@dpdk.org" Subject: Re: DPDK port concept in rte_eth_dev Message-ID: <20220817083021.20459558@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 17 Aug 2022 11:28:20 +0000 Mikael R Carlsson wrote: > Hi! > > Sorry for asking such a basic question but I have a hard time understanding the "port" concept in rte_eth_dev. > > I am using 2 VFs on the same physical port on a NIC, VF7 and VF6. These to VFs have there own unique PCI address. When I call rte_eth_dev_get_port_by_name, I suspect that I get the same port id from both PCI addresses (not sure here, still looking into this) > > Could someone please give me a short explanation of the "port" concept in rte_eth_dev, and how that correlates to PCI address and also eth_dev_rx_burst assuming you want to poll only from VF7 for example. > > Thanks in advance! > > / Mikael > DPDK ethdev port is more of an object index (like Linux file handle). It can refer to many different types of devices.