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 6DB334417D for ; Fri, 7 Jun 2024 12:56:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D542F4028A; Fri, 7 Jun 2024 12:56:19 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 8A62F40151 for ; Fri, 7 Jun 2024 12:56:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717757778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wMIEP2n6bBY5fdBid095VLVEX4qoPzvkOKhPrr4pw50=; b=S0n3Oms02ra/BkYXvkXQaTEeEhWLmLS1zn8i2LE+MXCrulRInq1T1rTwFsJddflmqID8oe Poa/R8zffMYcZADVCEFrTX4b0gTGL1jaV+GTHd45DXgowm2qdX6pvHzzuk0P6Xpr4qkiDk TdqR2B0vnhvFB1Gu9JBx/kHN4GyyKR4= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-216-wsMKX2nkO3KMqq0PXsewgQ-1; Fri, 07 Jun 2024 06:56:16 -0400 X-MC-Unique: wsMKX2nkO3KMqq0PXsewgQ-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2eae7631293so3059651fa.0 for ; Fri, 07 Jun 2024 03:56:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717757775; x=1718362575; h=content-transfer-encoding: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=wMIEP2n6bBY5fdBid095VLVEX4qoPzvkOKhPrr4pw50=; b=lkDnLUslUKaPqxEI8guh3oT0PdZfsgvGQP4fMjr5vefSzaNF+8VQO6vKVK7epcUmUg IPE5mFWADZUzvLe8ndNJNaRhM0hgh25rjZueqS7bE4dO00tNy7E6P0iTV0wk+1cM3FBR ULpLqllXRQDA5ptgLLTG44goBvjqQmcy3/9tKY0xIdYTQY0RsK0n77L939ahQvVWnb6Q 7R8tF3UuluFeTAkqQa7XIOovq7C18HFPV2AC8THpKc3p+Mq4DyG6lOIwA2tDTTB5ozXk o8LerKEfjMspE/vVht1BB9Gf6WlRW9Okwm4dp7En1ZYWfcFeaRyy6/vqwSVWjt+lIA6l XnVw== X-Gm-Message-State: AOJu0YzKmDb6aVhW4t//2ZBORsVXn30fj+LIekuk4yxTfI8SJc40lbUZ bD3Vquz/w5KzJCpgL4RHbrp161v0Jrt5qN4DSO7JmVk8o4x+SpNWb81BdAQOtgTnVhwbxxw9Lcc aJlj7Vr5wbnXfL7yI1q/cf4UckS5vd6DrJAmVRAn75zLnfk2z0dJ7Kkxp8jKVOJ/dy9mudoDnvP iEzvimdjEU6bYvaQBuUg== X-Received: by 2002:a05:651c:cb:b0:2ea:79ab:6709 with SMTP id 38308e7fff4ca-2eadce4ac8cmr15814041fa.31.1717757774905; Fri, 07 Jun 2024 03:56:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDTxatTLcCUDcq0MMGJZS+wnMze7VTcjPimLlBi8IDKxjgOwtblG56qiAqen1xAi+kHdyrXSfHjstvc8/uLEk= X-Received: by 2002:a05:651c:cb:b0:2ea:79ab:6709 with SMTP id 38308e7fff4ca-2eadce4ac8cmr15813941fa.31.1717757774505; Fri, 07 Jun 2024 03:56:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Marchand Date: Fri, 7 Jun 2024 12:56:02 +0200 Message-ID: Subject: Re: Compiling testpmd with DPDK netvsc PMD To: Nandini Rangaswamy Cc: users@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 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 CON= FIG_RTE_LIBRTE_NETVSC_PMD=3Dy . > > However, when I check ldd testpmd, it does not show any of the dpdk share= d libraries including net_netvsc linked to testpmd binary. > ldd dpdk-testpmd > linux-vdso.so.1 (0x00007ffca1467000) > libm.so.6 =3D> /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffb0813400= 0) > libdl.so.2 =3D> /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ffb0812f= 000) > libelf.so.1 =3D> /usr/lib/x86_64-linux-gnu/libelf.so.1 (0x00007ff= b08111000) > libpcap.so.1 =3D> not found > libmlx5.so.1 =3D> /usr/lib/x86_64-linux-gnu/libmlx5.so.1 (0x00007= ffb08093000) > libibverbs.so.1 =3D> /usr/lib/x86_64-linux-gnu/libibverbs.so.1 (0= x00007ffb0806d000) > libIPSec_MB.so.1 =3D> not found > libcrypto.so.3 =3D> /usr/lib/x86_64-linux-gnu/libcrypto.so.3 (0x0= 0007ffb07c29000) > libgcc_s.so.1 =3D> /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff= b07c09000) > libpthread.so.0 =3D> /lib/x86_64-linux-gnu/libpthread.so.0 (0x000= 07ffb07c04000) > libc.so.6 =3D> /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffb079db00= 0) > /lib64/ld-linux-x86-64.so.2 (0x00007ffb097c1000) > libz.so.1 =3D> /lib/x86_64-linux-gnu/libz.so.1 (0x00007ffb079bd00= 0) > libnl-route-3.so.200 =3D> /usr/lib/x86_64-linux-gnu/libnl-route-3= .so.200 (0x00007ffb0793a000) > libnl-3.so.200 =3D> /lib/x86_64-linux-gnu/libnl-3.so.200 (0x00007= ffb07917000) I am not sure what openwrt does wrt DPDK compilation, yet I can give some h= ints. DPDK drivers are, by default, statically linked into dpdk binaries like testpmd, so netvsc would not show up in this listing you tried. On the other hand, if using dynamically linked drivers, testpmd is not linked to them. Instead, those shared libraries are found automatically (for a DPDK global install) or via the -d EAL option. Then EAL loads those drivers via dlopen(). If you want to ensure that a specific driver is linked in, you may inspect meson output (which lists enabled drivers), or have a try with dpdk-pmd-info.py /path/to/dpdk-testpmd. HTH, --=20 David Marchand