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 2058044123 for ; Wed, 12 Jun 2024 20:53:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D7E10402C6; Wed, 12 Jun 2024 20:53:15 +0200 (CEST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by mails.dpdk.org (Postfix) with ESMTP id 6495B402B9 for ; Wed, 12 Jun 2024 20:53:14 +0200 (CEST) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ebd421a931so1309231fa.1 for ; Wed, 12 Jun 2024 11:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718218394; x=1718823194; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WTaAAfhrb2SVeDgBKSy+6rSOQzajlkvOCD7t5qM0AnM=; b=XSJK7DIu09ztwbHfB96Wu82IDNVMzHQcg289yVIA3atoHp7HhwyOb0Rqn+A6xygL+i PpDaH3tH8bWS5s5v0cfyqjPhFkQ1ZykyvR2ciTRwM4g/b7N5aae8ph26FhQnJuHdyYpd /uR2xaYxjIEG6AtBcZ65HSqtx/b1XEVPqtG0Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718218394; x=1718823194; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WTaAAfhrb2SVeDgBKSy+6rSOQzajlkvOCD7t5qM0AnM=; b=C16N4HhKIo6/FYiMorZXIe4IU94Z+WGuzOeYXcPgX1VNlDbqBuwSLGfiEi7sjDzaaH iJiX7CWoCEjcqZGjc+J3crOlZb+L2wG20xjbvHM4w4+VWGOeBDnoW7rgWZobMzz7nOCB FvF1bk6IpHi+lC3lU8lmyBE1PKkaIhpo8AytXeqdaf037wFPsF4ipgVk+mMKqkVvKo0Y ttTchfMKvw9VlvOAd/iIYieDkpTjIJj5uwLXlY+DHdADZJpk9pNiy1342zdlCkSZHqbv fAKX8mW582So4dmbtVj/JPtVQlCtBdNHiPHreVz8+52fmRXHTRy/D8XL6UxHxoVqvZdx SrsA== X-Forwarded-Encrypted: i=1; AJvYcCXmW5MwY0IHWHTtYXHCvgxM/3qiAsHp7GtVC8dq/1mrU8/H0V2yQd7lbcVMxkBIJhx/UmbezaFDBHn+Z+cfZg== X-Gm-Message-State: AOJu0YwOGu/iH9M+Cgo85+4OL2EHsI3l2j6crrDDRpIAMhErXDc+AxCb oaLgBqNC9M9xgHCNxBFSxd2DFUBOtvWYZKwmM73uYWReKdezDqppYb+K6fT9aLX87W0795SKa0Z fcVxxP6YCQGyEhN81SdgEDWBGUjvbruGftIioBUp8dq2xapy1UsJ2FharM33rHpH9Hb977v0zay Q8x2rNkkQ= X-Google-Smtp-Source: AGHT+IFGIDMxfCRY+S+Kpee8cHge4Uh0AvHrzZVOEcYAZSksMyAlocOBnvtxjsnR+cig8e94sKmGaoGHIlyvzrc6aS0= X-Received: by 2002:a2e:9b13:0:b0:2eb:de21:94a1 with SMTP id 38308e7fff4ca-2ebfc964026mr15027601fa.43.1718218393650; Wed, 12 Jun 2024 11:53:13 -0700 (PDT) MIME-Version: 1.0 References: <20240612074820.53909c9a@hermes.local> In-Reply-To: <20240612074820.53909c9a@hermes.local> From: Nandini Rangaswamy Date: Wed, 12 Jun 2024 11:53:02 -0700 Message-ID: Subject: Re: Compiling testpmd with DPDK netvsc PMD To: Stephen Hemminger Cc: David Marchand , users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000000031cb061ab5e586" 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 --0000000000000031cb061ab5e586 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello David and Stephen, Thanks for your inputs. As suggested , I compiled testpmd after removing the change below. +if dpdk_conf.has('RTE_NET_NETVSC') > + deps +=3D 'net_netvsc' > +endif I ran testpmd with -d option and EAL logging enabled and confirmed that netvsc driver's .so file is being picked by EAL. @Stephen Hemminger I also enabled VMBUS logs as per your suggestion and saw that vmbus drivers were being probed. vmbus_probe_one_driver(): VMBUS device 000d3a42-f83c-000d-3a42-f83c000d3a42 on NUMA socket -1 vmbus_probe_one_driver(): probe driver: net_netvsc hn_vf_attach(): found matching VF port 0 vmbus_probe_one_driver(): VMBUS device 000d3a42-fbcd-000d-3a42-fbcd000d3a42 on NUMA socket -1 vmbus_probe_one_driver(): probe driver: net_netvsc hn_vf_attach(): found matching VF port 1 Regards, Nandini On Wed, Jun 12, 2024 at 7:48=E2=80=AFAM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Fri, 7 Jun 2024 16:31:51 -0700 > Nandini Rangaswamy wrote: > > > Hi David, > > Thanks for your email. I inspected meson build output and do see that > > netvsc 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, > > > > Also, i changed the meson.build default_library=3Dshared from static an= d it > > worked. > > Regards, > > Nandini > > > > On Fri, Jun 7, 2024 at 3:56=E2=80=AFAM David Marchand > > > wrote: > > > > > Hello, > > > > > > On Thu, Jun 6, 2024 at 11:32=E2=80=AFPM Nandini Rangaswamy > > > wrote: > > > > I tried compiling the testpmd with DPDK netvsc for openwrt by > setting > > > CONFIG_RTE_LIBRTE_NETVSC_PMD=3Dy . > > > > > > > > However, when I check ldd testpmd, it does not show any of the dpdk > > > shared libraries including net_netvsc linked to testpmd binary. > > Testpmd is a special case. It always is statically linked because it has = to > have several drivers private API's. So using ldd to check is not going t= o > give > the right answer. > > What is the startup of testpmd look like? You may need to enable debuggin= g > of > vmbus and netvsc to see all the reasons the driver decided not to be > probed. > --=20 This electronic communication and the information and any files transmitted= =20 with it, or attached to it, are confidential and are intended solely for=20 the use of the individual or entity to whom it is addressed and may contain= =20 information that is confidential, legally privileged, protected by privacy= =20 laws, or otherwise restricted from disclosure to anyone else. If you are=20 not the intended recipient or the person responsible for delivering the=20 e-mail to the intended recipient, you are hereby notified that any use,=20 copying, distributing, dissemination, forwarding, printing, or copying of= =20 this e-mail is strictly prohibited. If you received this e-mail in error,= =20 please return the e-mail to the sender, delete it from your computer, and= =20 destroy any printed copy of it. --0000000000000031cb061ab5e586 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello David and Stephen,
Thanks for your inputs.
=
As suggested , I compiled testpmd after removing the change below.
+if dpdk_conf.has('RTE_NET_NE= TVSC')
> +=C2=A0 =C2=A0 deps +=3D 'net_netvsc'=
> +endif
I ran testpmd with -d option and EAL logg= ing enabled and confirmed that netvsc driver's .so file is being picked= by EAL.=C2=A0

@Stephen Hemminger=C2=A0I also enabled VMBUS logs as per your suggesti= on and saw that vmbus drivers were being probed.
vmbus_probe_one_= driver(): VMBUS device 000d3a42-f83c-000d-3a42-f83c000d3a42 on NUMA socket = -1
vmbus_probe_one_driver(): =C2=A0 probe driver: net_netvsc
hn_vf_at= tach(): found matching VF port 0
vmbus_probe_one_driver(): VMBUS device = 000d3a42-fbcd-000d-3a42-fbcd000d3a42 on NUMA socket -1
vmbus_probe_one_d= river(): =C2=A0 probe driver: net_netvsc
hn_vf_attach(): foun= d matching VF port 1

Regards,
Nandin= i


On Wed, Jun 12, 2024 at 7:48=E2=80=AFAM Stephen Hemmi= nger <stephen@networkplumb= er.org> wrote:
On Fri, 7 Jun 2024 16:31:51 -0700
Nandini Rangaswamy <nandini.rangaswamy@broadcom.com> wrote:

> Hi David,
> Thanks for your email. I inspected meson build output and do see that<= br> > netvsc 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:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0iavf, mlx5, qat,
> bus:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0auxiliary, pci, vdev, vmbus,
> mempool:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0bucket, ring, stack,
> dma:
>
> net:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0af_packet, bond, e1000, ena, failsafe= , gve, i40e, iavf,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ice, igc, ixgbe, kni, mlx5, *netvsc*,= ring, tap,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0vdev_netvsc, vhost, virtio, vmxnet3,<= br> >
> Also, i changed the meson.build default_library=3Dshared from static a= nd it
> worked.
> Regards,
> Nandini
>
> On Fri, Jun 7, 2024 at 3:56=E2=80=AFAM David Marchand <david.marchand@redhat.co= m>
> wrote:
>
> > Hello,
> >
> > On Thu, Jun 6, 2024 at 11:32=E2=80=AFPM Nandini Rangaswamy
> > <nandini.rangaswamy@broadcom.com> wrote:=C2=A0
> > > I tried compiling the testpmd with DPDK netvsc for openwrt b= y setting=C2=A0
> > CONFIG_RTE_LIBRTE_NETVSC_PMD=3Dy .=C2=A0
> > >
> > > However, when I check ldd testpmd, it does not show any of t= he dpdk=C2=A0
> > shared libraries including net_netvsc linked to testpmd binary.= =C2=A0

Testpmd is a special case. It always is statically linked because it has to=
have several drivers private API's.=C2=A0 So using ldd to check is not = going to give
the right answer.

What is the startup of testpmd look like? You may need to enable debugging = of
vmbus and netvsc to see all the reasons the driver decided not to be probed= .

This ele= ctronic communication and the information and any files transmitted with it= , or attached to it, are confidential and are intended solely for the use o= f the individual or entity to whom it is addressed and may contain informat= ion that is confidential, legally privileged, protected by privacy laws, or= otherwise restricted from disclosure to anyone else. If you are not the in= tended recipient or the person responsible for delivering the e-mail to the= intended recipient, you are hereby notified that any use, copying, distrib= uting, dissemination, forwarding, printing, or copying of this e-mail is st= rictly prohibited. If you received this e-mail in error, please return the = e-mail to the sender, delete it from your computer, and destroy any printed= copy of it. --0000000000000031cb061ab5e586--