[dpdk-dev] Issues running Ethtool on KNI interfaces

Deshvanth Mirle Jayaprakash (dmirleja) dmirleja at cisco.com
Mon Oct 13 09:21:04 CEST 2014


Hi,

Hypervisor: KVM

VM: Linux OS with 2.6.32 Kernel

VM Settings:

8 vCPUs, 8192 MB of memory, CPU Configuration: Copy Host CPU Config (SandyBridge), Manually set CPU topology: Sockets=2, Cores=4, Threads=1

10Gigi Passthrough Interfaces attached to VM: Intel X520


DPDK settings:


DPDK Version: 1.6R2


echo 512 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages

rmmod ixgbe

insmod igb_uio.ko

mkdir /mnt/hugepages

mount -t hugetlbfs nodev /mnt/hugepages

#./igb_uio_bind.py --status

#./igb_uio_bind.py --bind=igb_uio 03:01.0

#./igb_uio_bind.py --bind=igb_uio 03:02.0

#./igb_uio_bind.py --status

modprobe hwmon

insmod rte_kni.ko

./kni -c 0x1E -n 2 --socket-mem 512 -- -p 0x3 --config="(0,1,3),(1,2,4)" &


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?



Also, I have attached screen shots of KNI log file. Please take a look.


Thanks,

Desh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KNI-SS4.png
Type: image/png
Size: 12209 bytes
Desc: KNI-SS4.png
URL: <http://dpdk.org/ml/archives/dev/attachments/20141013/beca22c5/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KNI-SS1.png
Type: image/png
Size: 15281 bytes
Desc: KNI-SS1.png
URL: <http://dpdk.org/ml/archives/dev/attachments/20141013/beca22c5/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KNI-SS2.png
Type: image/png
Size: 15239 bytes
Desc: KNI-SS2.png
URL: <http://dpdk.org/ml/archives/dev/attachments/20141013/beca22c5/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KNI-SS3.png
Type: image/png
Size: 12812 bytes
Desc: KNI-SS3.png
URL: <http://dpdk.org/ml/archives/dev/attachments/20141013/beca22c5/attachment-0007.png>


More information about the dev mailing list