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 E578B424CD for ; Tue, 11 Jun 2024 16:35:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E1F74027D; Tue, 11 Jun 2024 16:35:45 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id 3EBC54021F for ; Tue, 11 Jun 2024 16:35:44 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-652fd0bb5e6so4974633a12.0 for ; Tue, 11 Jun 2024 07:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1718116543; x=1718721343; 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=H2WW55+3S98FTUqErOGnFH2rVBqibFlAQEU2o6h0njs=; b=tCWJoN/PKCaYCsgEAeqke2nX9zGkXRuJZR6ZZhVlnJtEnQci+mRd2oI18Nx10gPG4k Tu3QaU1dRIaGkb/QymGtia/iwi0nJl3ypSVKHRErIq3Se59HgiKfCzduwqbJjru2Uix4 fDFTUN+5MImu+n9vtSa2xnjau2mSG0lK2iysOygt4pfBNCp1pIk0693BRZmTWvpySHZ6 Cu5C3X2A8HotTFyK3UfesE3eNOFsopuGudWXgdY9RTZ2cc1glAypg1cz3kSki7cyLyNu h6nizO13icPlHXl/2tjb9dNW4bEe790lpIvjb3jKTFrY+kH31vwBt0zRmSzugcB13S0S i/YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718116543; x=1718721343; 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=H2WW55+3S98FTUqErOGnFH2rVBqibFlAQEU2o6h0njs=; b=R45V5ahEhlLEW1eJJaBSQLI7KeBb6h7KTji93fCvg26MgZgKzQ1sLda++gZeRMdF6g eLHeq/XvSsFmHitK3zyPJLtiPG2oI/vBLoAXSwkeJW5fou8Xo0pgIm/hYTeyfLxjt+dn Qb6MK0A0FNilJU/FJ0sgfgcdTOd1lKc/7xBgSIlzvnq4sFFZPwYkjEW9BUZYQFEZxYJA Q0q7ws0gY6QjgwC9Cigm8jC687pOrG9BuOZANQmWNPda0Kk9/XlGVlmqA/YqP6FJd7OT PCyOVstHT5+E2GAzfIVHKIZTtcThFLgQ5LW+1vwXU88NID93bqa4Z39vv52WcePeJhkU L8Kg== X-Forwarded-Encrypted: i=1; AJvYcCVHc/axtW3DAq1e9FRg+Nn3yaB3I76afpmyqN+Nmoud3+e0su1mTT586AA7lOd2X7xHa18II4YEjSQBDmL20g== X-Gm-Message-State: AOJu0YwXE/BKZAwbYZR0iUvPPdVTeSQkDWcFBhgOR99HWAN+eZNQZFKz 0BDKtr8rhbOfohiRqZ4AozUTKJTiG3NTJqx7GopqsZQ3fpCTkRSF63N92MR/ANg= X-Google-Smtp-Source: AGHT+IEJebFS+Um5tgW/23fLAA4KRGHPOrbJE7T/XyVeq/+P4cumxZZET2UXoMxOQXvYiXa30JufoQ== X-Received: by 2002:a17:90a:ea92:b0:2c2:dfbe:7318 with SMTP id 98e67ed59e1d1-2c2dfbe7742mr8515678a91.26.1718116542887; Tue, 11 Jun 2024 07:35:42 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c33308ee8esm1589674a91.22.2024.06.11.07.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:35:42 -0700 (PDT) Date: Tue, 11 Jun 2024 07:35:40 -0700 From: Stephen Hemminger To: David Marchand Cc: Nandini Rangaswamy , users@dpdk.org Subject: Re: Compiling testpmd with DPDK netvsc PMD Message-ID: <20240611073540.783cbd81@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Mon, 10 Jun 2024 09:50:42 +0200 David Marchand wrote: > Hello, >=20 > On Sat, Jun 8, 2024 at 1:32=E2=80=AFAM Nandini Rangaswamy > wrote: > > Thanks for your email. I inspected meson build output and do see that n= etvsc is in the list of enabled drivers. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Drivers Enabled > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > common: > > iavf, mlx5, qat, > > bus: > > auxiliary, pci, vdev, vmbus, > > mempool: > > bucket, ring, stack, > > dma: > > > > net: > > af_packet, bond, e1000, ena, failsafe, gve, i40e, iavf, > > ice, igc, ixgbe, kni, mlx5, netvsc, ring, tap, > > vdev_netvsc, vhost, virtio, vmxnet3, =20 >=20 > Ok, so the driver seems indeed part of this build, yet it was not > functional at runtime? > Could you confirm this driver was indeed embeeded in (*statically* > linked) testpmd? > $ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd | grep -i vsc > "name": "net_netvsc", > "name": "net_vdev_netvsc", >=20 >=20 > > > > Also, i changed the meson.build default_library=3Dshared from static an= d it worked. =20 >=20 > Mm, the fact that changing link mode fixes the issue points at a link iss= ue. >=20 > There is a bug with old pkg-config tool (<=3D 0.27 iirc) that does not > process correctly dpdk .pc (for static link). > It is worth checking which version of pkgconf is used in openwrt. >=20 >=20 Does the openwrt kernel include the uio_hv_generic driver? Did you bind the network device to uio_hv_generic as described in the documentation: https://doc.dpdk.org/guides/nics/netvsc.html