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 35A4FA0032 for ; Wed, 17 Aug 2022 13:28:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD8CA40DDA; Wed, 17 Aug 2022 13:28:23 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70050.outbound.protection.outlook.com [40.107.7.50]) by mails.dpdk.org (Postfix) with ESMTP id 89E734068E for ; Wed, 17 Aug 2022 13:28:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kliYXBzWcFHujA5OngNY42/nDGIkzIitPeiNobaY6alBYhS4vr2YDNs6+ZlXjiGe1Ldc/6ogTqy4uCH6AoBoM1JG2GUvL6dShm/g6xoKCt8Nst4Ixn4BVCnMfwZ0iAmDxvFKw6pcIrXX3Gvj+UdxmEp6WH3h8F+3nIHkQuHNpJYhePbJGIqKYqz3gBT1bwFrHsQYgtXwN2niGN4txqKwo0ZnCGNoAdWyPjj2PlQPPa2HnxCXSjtfJ8Ot8zpvskapqEgtRRlMiIUs4ciEZIMLNYWQ2ZpGCjZsnec4IZp/Gdoxgj9+h5g7vw/vCMN5GD40kcXXywB5w9MXq2b7H/UAyg== 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=nHVneE+zLkEs0tJfqlJRCTeJxFn0MDO4kHi7K1gA6u4=; b=bQtaUQV6g0NJaNjXXip59lsj/bSNebp2N0wFPr2lgBZ3UtkV6O0O7OjGm8mhZgPBqu4yYiQgSAc/3d+hh8gTFLu+iajT/yzf0oWtLRAt6NaawTp9qLNHkE/4jZHBJESki6qcfeeV0R+ESk6Rw7xUZazCTcut3Rm3RGFr9I4umQidhi8bUBw7jCOZsKTz/XGoElqAAc2IZn0AnzctdAkFuPcbci8yAM413gfKbpfxjUze0VIPl5CEGrXAFZDrEePfJRuOOzPSKw9OpcZwYhVy0SR5T0AuU9+LUueHxH9SSk4MuOiyt30XtZGxhjSb+aPB5LVM0Dsoi5pfUfW3idC+LA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tietoevry.com; dmarc=pass action=none header.from=tietoevry.com; dkim=pass header.d=tietoevry.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tietoevry.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nHVneE+zLkEs0tJfqlJRCTeJxFn0MDO4kHi7K1gA6u4=; b=xEh15FUHa8OiFeiXqGdveS6swZCb30C3dZJcUdKN9vBYYz+Q0ZZ5WYWwwPFffDp0yY23F1vs14XIILJzgtEVUb5RcAuHNay7yl7JMGfFTm0v4Bq6ubiCkF3jMIWkYgEJMy/ynvSxmZGtLKJjoKj3BYDccU0JijWkTJ5iwjThXMk= Received: from DU0PR04MB9226.eurprd04.prod.outlook.com (2603:10a6:10:351::9) by GV1PR04MB9514.eurprd04.prod.outlook.com (2603:10a6:150:20::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.19; Wed, 17 Aug 2022 11:28:20 +0000 Received: from DU0PR04MB9226.eurprd04.prod.outlook.com ([fe80::2c99:55d2:ecf3:e582]) by DU0PR04MB9226.eurprd04.prod.outlook.com ([fe80::2c99:55d2:ecf3:e582%4]) with mapi id 15.20.5525.019; Wed, 17 Aug 2022 11:28:20 +0000 From: Mikael R Carlsson To: "users@dpdk.org" Subject: DPDK port concept in rte_eth_dev Thread-Topic: DPDK port concept in rte_eth_dev Thread-Index: AdiyK4q9NFCTaU4AS/2Mq6c31uyfxw== Date: Wed, 17 Aug 2022 11:28:20 +0000 Message-ID: Accept-Language: sv-SE, 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=tietoevry.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2b017775-6d13-467a-f92a-08da8043967b x-ms-traffictypediagnostic: GV1PR04MB9514:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: N0SEV2REEOQ/SgVmYjFnfi3/zHuOKLa78bH2Vau/dlG6UzjKNOwOCrHizzlGG4uKqzQWXW76h1c/iSy9QtHEQljCaD1OxFJHx5N08bV46xDByTrKg9cDALnZdsUMu8i0N5UnNJ2wUk8ChoNEGiYzf/PcuviEJEqBpJr2EUyRqCnoz9io5kHLWQN+q0Z/Z7hRjh27biQhdLvA5yqExSG0qp30Uk/lplkKgpa76B5fqUAmwm0Vii15VT+ju+SQ2V25IxInYcWLwmimI+HSG8YizsbYC5JSJgDlVtXl8KdW7oU6lKp9eoUIg3PM3Qb44e0t5Xw1tf/yLsBAVbI27VherK4J2TB36iSTFMlyP3SzKNq2R9xFTENlnFWETrLMU48hwulhq5jSKIExJpOV5kDXslIfwZkhgFhaq6KQ/e6kifCNKrIA+1Y5uClZMdM0oMPcTlhwevjLwhP9FiXPTvWpPhCSyQeiBz2tGsMhTR2F5OeLlEVKyKbRRzgmnQdVGb0Le4vpiJ2KvUqT7muTbXkETkVcbW24py8caYqucd1BLwOYjsN+b4kpKflFfzJsZvcmsRAje4iLkzuOroS/FCqlc56JvIBBriejB+F4EmbJeMVgew7o2YRFVIMoLLfM2exHCVBMfKFdeSYe+DS4Dxm1kMgKdvhLmm0DF2DwOj2wDoJ5nRrpkuOy5stUxtBLqeXAxnewkEyXp009HT5zpNeu7TbNmas73CkalHO/EPS2bJcSCbZAkgXgm/arendt/mij9KhTMslsyxaX9hqXlxLhX7rVvxxhPmuGMpqnwwlxNKs= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9226.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(376002)(39860400002)(346002)(366004)(52536014)(122000001)(38100700002)(38070700005)(76116006)(5660300002)(8936002)(2906002)(66476007)(66446008)(64756008)(66946007)(66556008)(8676002)(26005)(4744005)(9686003)(7696005)(6506007)(33656002)(316002)(71200400001)(6916009)(55016003)(41300700001)(86362001)(478600001)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4V6TER5h3EEDO7L9HbojA+gMr7jd4awPZponHeHIgi4MsMkQN3TaXjWygIYg?= =?us-ascii?Q?NLrVmkefivNUPuXJVZhq5Ao71umPsEyEjx+VowG700+V8mbKCrBcUjcZKcv0?= =?us-ascii?Q?PM62JXd2pKDEiM5XBdl4VYavYhTszUEsD0yp2UqbUoyFw2t5Hb7kZPOddULp?= =?us-ascii?Q?6T2HGgAoBwNsLdypjgzDT1yb6lasIdD9odE6nJfUVLtRdOo3webae6euRu/O?= =?us-ascii?Q?d+CdiZqGZodZPmhZhm22Xg2BpTUW26QZr/jEzk4fJM03i8L0urJKNxA5wugy?= =?us-ascii?Q?eYTtwqHhFstNAUs4iVjcZr+xXQoSbeJmM7UFdiFhx8xDCZ409IN1jzfOIDJa?= =?us-ascii?Q?dJnlNC/Iy3UNxdvfu5MHzsgVZoFmpOWNhFCaN2ENW0svFeEsi9/YRROSidc/?= =?us-ascii?Q?KoxjTmJfqLYYio8MzFJvd5VP7yywIPVuwOf7JRsIrk7KgRkzId7qU40pWH4m?= =?us-ascii?Q?qRVD2YsNtd5SkwdJm7aK/VIWCBEAjIYIrKmImoPWCaucViy4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r1k9tiqOupT9Cw5/KeMndT/2PYQN/0bxi0Q3QSFky7NyxeCnnml?= =?us-ascii?Q?WmFREBRolLZvJzWKi9Kvuw45jNtYVfszBby/T4UE7ab4TufWB2nFiLZN2SnI?= =?us-ascii?Q?n7f5+nkyWvtKoL7MtuxaHmgmkoh6EuNexQTYQQI4cpcVfHBSYEswMgYCsTcv?= =?us-ascii?Q?uORVqsSjaiZE18/zjgBEMAuczOL72Gl7yyJJB3tuhuwWAJQ7opazwzvm1fVP?= =?us-ascii?Q?sA=3D=3D?= Content-Type: multipart/alternative; boundary="_000_DU0PR04MB922682CEFBDB881F2F81AF43A66A9DU0PR04MB9226eurp_" MIME-Version: 1.0 X-OriginatorOrg: tietoevry.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9226.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b017775-6d13-467a-f92a-08da8043967b X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2022 11:28:20.1905 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: cbede638-a3d9-459f-8f4e-24ced73b4e5e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bb6vvMX01uv+CdcMhRQATk7H/ttuZ/Pq1vbx0+No8vz5iee+4g91WPWVajvfIkx0wdxklHAD9qnrZez+m32Dwq2ut4QCNAPZi3wqH/LaENU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9514 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_DU0PR04MB922682CEFBDB881F2F81AF43A66A9DU0PR04MB9226eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 su= re here, still looking into this) Could someone please give me a short explanation of the "port" concept in r= te_eth_dev, and how that correlates to PCI address and also eth_dev_rx_burs= t assuming you want to poll only from VF7 for example. Thanks in advance! / Mikael --_000_DU0PR04MB922682CEFBDB881F2F81AF43A66A9DU0PR04MB9226eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 r= te_eth_dev_get_port_by_name, I suspect that I get the same port id from bot= h 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 P= CI address and also eth_dev_rx_burst assuming you want to poll only from VF= 7 for example.

 

Thanks in advance!

 

  / Mikael

 

--_000_DU0PR04MB922682CEFBDB881F2F81AF43A66A9DU0PR04MB9226eurp_--