From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Deshvanth Mirle Jayaprakash (dmirleja)" Subject: Re: Issues running Ethtool on KNI interfaces Date: Mon, 13 Oct 2014 07:39:27 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: "Zhang, Helin" , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: Content-Language: en-US Content-ID: <9688955BEAF8D7429118F55213850474-WwaMAgPkaIIluPl5bxqUMw@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Thanks Helin, have been trying this for some time, Is there any other way I can pass IOCTLs to IGB-UIO interfaces. Can I use /dev/uio0 and /dev/uio1 ? Can I use IOCTLS on these references in Kernel to gather interface statistics, set MTU or bring up/down UIO interfaces. /Desh On 10/13/14 12:34 AM, "Zhang, Helin" wrote: >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-VfR2kkLFssw@public.gmane.org] On Behalf Of Deshvanth Mirle >> Jayaprakash (dmirleja) >> Sent: Monday, October 13, 2014 3:21 PM >> To: dev-VfR2kkLFssw@public.gmane.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, Thread= s=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 >>to >> the Userspace. The issue is that the Ethtool doesn't work with KNI >>interfaces. >> Is there anything that I am missing, How can I get Ethtool to work with >>KNI >> interfaces? Also, If I do not use --socket-mem OR -m EAL option, KNI >>application >> consumes all the huge pages(It doesn't mater 512/4096) assigned in the >>very >> first step.Is that expected behavior? Can I get KNI to work without >>assigning >> any Hugepages? >>=20 >>=20 >>=20 >> Also, I have attached screen shots of KNI log file. Please take a look. >>=20 >>=20 >> Thanks, >>=20 >> Desh