From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C2D3A3160 for ; Thu, 10 Oct 2019 03:17:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 998091DFE2; Thu, 10 Oct 2019 03:17:02 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 8C4401D50B for ; Thu, 10 Oct 2019 03:17:01 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id k7so1941896pll.1 for ; Wed, 09 Oct 2019 18:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WlclIQR1xijiGx54YafemVOO7Kc7WIj2KTzoXvt5iak=; b=FnRFVGmgmOTyhEvaOThEBAbsJlM48g9qHex/MG0FUo5tFkSNYpnv5gI50PH4A97QJW vdtY0NfG2hEkXFoAj754lWU6RuEEq1OSmqiN7hclQrgU9Ml7KwIupCvlqV31qsulbNqM uAp/ErbKa8ocZNb1J4pPRca/m3yC33vHgy17H85yzM47vhRTPwQSAkzLXP8Y72hdQdxO 5eD2ywjJycxtzXP5u2TsKsIZQihN84uFGrRUXTMrFLjg5O/I3mmOkRI6lWFWsn0E9Riq woMHCm2zmU/+/Tb1bDZTpqeJfDEcSoN2/ipE6WJa8i6Q/MkVtviYTtYJU2k4jcOaBBhz K1Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WlclIQR1xijiGx54YafemVOO7Kc7WIj2KTzoXvt5iak=; b=Bc/ouz+J4O4Q9RUwRHtoCKUlc2FXv8iJOo5PfxN9CARe4nuKR2ETMWbIG76p/Au893 UnQd2K7E/LSuL6Oet4Sgi0/0dN457RN2AKGzDqkg4ZSSeeTgy8EGzbK7Fftz+GtkVh8+ +Dn587CLlwDzBrp4XxJnJWW6rnEXk0ezJr23f14vYDeRVqc0V5/km/d7wGmmhM9YywbN ltQJQBHIkAZqZ/OzIExCYnBKi5SEb052t7Brt1WbU/UJAr8ZwYAlcpFLFXU66sIxJAP/ bv77AVjEYXEX9wAxH2R56DCT3gsSrTPngPDBrFN9cXNEQAoA7XW2Z6HpzQEJ9nKv/zul /W9Q== X-Gm-Message-State: APjAAAVAc8sLcWV9n9CeCq9Ram6qiwKD8wWTECvTIhEjZPj7WW66EWi8 eHgCj42RwZgFrd5jvyo0qbWdow== X-Google-Smtp-Source: APXvYqyq+3y9Oxlw6U0co6WzFKNqkQ6ngzC+BqyT4xQlM6D9QMD5LarRsSsZbUZFiBSJ142YrcSvcg== X-Received: by 2002:a17:902:126:: with SMTP id 35mr1343655plb.327.1570670220495; Wed, 09 Oct 2019 18:17:00 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 19sm3348646pjd.23.2019.10.09.18.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 18:17:00 -0700 (PDT) Date: Wed, 9 Oct 2019 18:12:51 -0700 From: Stephen Hemminger To: sachin gupta Cc: "users@dpdk.org" Message-ID: <20191009181251.0e6d05cb@hermes.lan> In-Reply-To: <215431052.5313737.1570521552689@mail.yahoo.com> References: <215431052.5313737.1570521552689.ref@mail.yahoo.com> <215431052.5313737.1570521552689@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] KNI Error while Running KNI example on Google CLoud X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Tue, 8 Oct 2019 07:59:12 +0000 (UTC) sachin gupta wrote: > Hi All,When i run the KNI sample application on Google Cloud, i get the f= ollowing error >=20 >=20 >=20 > EAL: Detected 2 lcore(s)EAL: Detected 1 NUMA nodesEAL: Multi-process sock= et /var/run/dpdk/rte/mp_socketEAL: No free hugepages reported in hugepages-= 1048576kBEAL: Probing VFIO support...Oct 8 07:35:17 master-node kni[19444]:= =C2=A0EAL: Probing VFIO support...EAL: PCI device 0000:00:04.0 on NUMA sock= et -1EAL: Invalid NUMA socket, default to 0EAL: probe driver: 1af4:1000 net= _virtioOct 8 07:35:17 master-node kni[19444]:=C2=A0EAL: PCI device 0000:00:= 04.0 on NUMA socket -1Oct 8 07:35:17 master-node kni[19444]:=C2=A0EAL: Inva= lid NUMA socket, default to 0Oct 8 07:35:17 master-node kni[19444]:=C2=A0EA= L: probe driver: 1af4:1000 net_virtioEAL: Error - exiting with code: 1 Caus= e: No supported Ethernet device foundOct 8 07:35:17 master-node kni[19444]:= =C2=A0EAL: Error - exiting with code: 1#012 Cause:Oct 8 07:35:17 master-nod= e kni[19444]: No supported Ethernet device found >=20 > I have set 128 hugepages each of size 128KB > AnonHugePages:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 kBShmemHugePages:=C2=A0= =C2=A0 =C2=A0 =C2=A0 0 kBHugePages_Total:=C2=A0 =C2=A0 =C2=A0128HugePages_= Free:=C2=A0 =C2=A0 =C2=A0 114HugePages_Rsvd:=C2=A0 =C2=A0 =C2=A0 =C2=A0 0Hu= gePages_Surp:=C2=A0 =C2=A0 =C2=A0 =C2=A0 0Hugepagesize:=C2=A0 =C2=A0 =C2=A0= =C2=A02048 kB >=20 >=20 >=20 > ens4: flags=3D4163=C2=A0 mtu 1460=C2=A0 = =C2=A0 =C2=A0 =C2=A0 inet 10.128.0.17=C2=A0 netmask 255.255.255.255=C2=A0 b= roadcast 0.0.0.0=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::4001:aff:fe80:11=C2= =A0 prefixlen 64=C2=A0 scopeid 0x20=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether = 42:01:0a:80:00:11=C2=A0 txqueuelen 1000=C2=A0 (Ethernet)=C2=A0 =C2=A0 =C2= =A0 =C2=A0 RX packets 2064=C2=A0 bytes 5260296 (5.2 MB)=C2=A0 =C2=A0 =C2=A0= =C2=A0 RX errors 0=C2=A0 dropped 0=C2=A0 overruns 0=C2=A0 frame 0=C2=A0 = =C2=A0 =C2=A0 =C2=A0 TX packets 2001=C2=A0 bytes 183154 (183.1 KB)=C2=A0 = =C2=A0 =C2=A0 =C2=A0 TX errors 0=C2=A0 dropped 0 overruns 0=C2=A0 carrier 0= =C2=A0 collisions 0 >=20 >=20 > soot@master-node:~/dpdk/dpdk-stable-18.11.2# ./usertools/dpdk-devbind.py = --statu=C2=A0 > Network devices using kernel driver=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D0000:0= 0:04.0 'Virtio network device 1000' if=3Dens4 drv=3Dvirtio-pci unused=3D *A= ctive* > No 'Crypto' devices detected=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > No 'Eventdev' devices detected=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > No 'Mempool' devices detected=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > No 'Compress' devices detected=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > ThanksSachin Hard to tell on this email, bad line wrapping (and which ended up in spam f= older). But the startup output indicates you did not configure huge pages. Did you use dpdk-setup.sh ? With virtio you need to unbind the device from the kernel and bind it to dp= dk with dpdk-devbind or manually. In a cloud that means you need to have two Ethernet devices, one for DPDK and one for logging in SSH etc. Also last time I checked Google Cloud had a custom version of virtio and do= n't think virtio developers test wit that.