From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E92646A8B for ; Mon, 13 Oct 2014 09:27:17 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 13 Oct 2014 00:32:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,708,1406617200"; d="scan'208";a="617563889" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 13 Oct 2014 00:34:54 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Oct 2014 00:34:54 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Oct 2014 00:34:54 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.230]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.203]) with mapi id 14.03.0195.001; Mon, 13 Oct 2014 15:34:52 +0800 From: "Zhang, Helin" To: "Deshvanth Mirle Jayaprakash (dmirleja)" , "dev@dpdk.org" Thread-Topic: Issues running Ethtool on KNI interfaces Thread-Index: AQHP5rY/FTG1vE35TUWRqFh52Bd4wJwtomtA Date: Mon, 13 Oct 2014 07:34:52 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Issues running Ethtool on KNI interfaces X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2014 07:27:18 -0000 Hi Desh You tried to use ethtool for KNI interfaces in VM, right? I don't think it = is supported in VM. Currently it just supports ethtool for KNI interfaces in host for some igb = and ixgbe NICs. Regards, Helin > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Deshvanth Mirle > Jayaprakash (dmirleja) > Sent: Monday, October 13, 2014 3:21 PM > To: dev@dpdk.org > Subject: [dpdk-dev] Issues running Ethtool on KNI interfaces >=20 > Hi, >=20 > Hypervisor: KVM >=20 > VM: Linux OS with 2.6.32 Kernel >=20 > VM Settings: >=20 > 8 vCPUs, 8192 MB of memory, CPU Configuration: Copy Host CPU Config > (SandyBridge), Manually set CPU topology: Sockets=3D2, Cores=3D4, Threads= =3D1 >=20 > 10Gigi Passthrough Interfaces attached to VM: Intel X520 >=20 >=20 > DPDK settings: >=20 >=20 > DPDK Version: 1.6R2 >=20 >=20 > echo 512 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages >=20 > rmmod ixgbe >=20 > insmod igb_uio.ko >=20 > mkdir /mnt/hugepages >=20 > mount -t hugetlbfs nodev /mnt/hugepages >=20 > #./igb_uio_bind.py --status >=20 > #./igb_uio_bind.py --bind=3Digb_uio 03:01.0 >=20 > #./igb_uio_bind.py --bind=3Digb_uio 03:02.0 >=20 > #./igb_uio_bind.py --status >=20 > modprobe hwmon >=20 > insmod rte_kni.ko >=20 > ./kni -c 0x1E -n 2 --socket-mem 512 -- -p 0x3 --config=3D"(0,1,3),(1,2,4)= " & >=20 >=20 > Having KNI process running in the background, creates two KNI interfaces > called vEth0 and vEth1 which corresponds to IGB-UIO interfaces attached t= o > the Userspace. The issue is that the Ethtool doesn't work with KNI interf= aces. > Is there anything that I am missing, How can I get Ethtool to work with K= NI > interfaces? Also, If I do not use --socket-mem OR -m EAL option, KNI appl= ication > consumes all the huge pages(It doesn't mater 512/4096) assigned in the ve= ry > first step.Is that expected behavior? Can I get KNI to work without assig= ning > any Hugepages? >=20 >=20 >=20 > Also, I have attached screen shots of KNI log file. Please take a look. >=20 >=20 > Thanks, >=20 > Desh