[dpdk-users] KNI Sample App Error: portmask is not consistent to port ids specified in --config

Kandy Palanisamy kandy_pal at yahoo.com
Wed Jul 18 03:53:53 CEST 2018


I have just set up DPDK on my host. After running helloworld sample app successfully, I am trying to run the kni sample app using the command line:
   kni/kni -c 0xf -n 4 -- -P -p 0x1 --config="{1,2,3}"

But, I get: EAL: 
   EAL: Error - exiting with code: 1
  Cause: portmask is not consistent to port ids specified in –config

I have just one port (eth0 before it was bound to dpdk) set up for DPDK on an 8-core Xeon D. I have been going through the DPDK sample apps guide to figure out how to get the port id and config matching. But, so far I am not able to. Really appreciate your help on this.

root at intel-corei7-64:/usr/share/examples# kni/kni -c 0xf -n 4 -- -P -p 0x1 --config="{1,2,3}"
EAL: Detected 16 lcore(s)
EAL: Multi-process socket /var/run/.rte_unix
EAL: Probing VFIO support...
EAL: NUMA support not available consider that all memory is in socket_id 0
EAL: PCI device igb_uio 0000:0a:00.0: uio device registered with irq 45
0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:15ac net_ixgbe
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL:   probe driver: 8086:15ac net_ixgbe
EAL: PCI device 0000:0a:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1533 net_e1000_igb
EAL: Error - exiting with code: 1
  Cause: portmask is not consistent to port ids specified in --config
root at intel-corei7-64:/usr/share/examples#


root at intel-corei7-64:/usr/share/examples# lsmod
Module                  Size  Used by
rte_kni                20480  0
igb_uio                16384  0
8021q                  24576  0
nfc                    69632  0
bnep                   20480  2
uio                    16384  1 igb_uio
intel_rapl             20480  0
igb                   167936  0
ixgbe                 249856  0
x86_pkg_temp_thermal    16384  0
mei_me                 28672  0
intel_powerclamp       16384  0
mei                    61440  1 mei_me
coretemp               16384  0
mdio                   16384  1 ixgbe
root at intel-corei7-64:/usr/share/examples#

root at intel-corei7-64:/usr/share/examples# dpdk-devbind --status           

Network devices using DPDK-compatible driver
============================================
0000:0a:00.0 'I210 Gigabit Network Connection 1533' drv=igb_uio unused=igb
::

root at intel-corei7-64:/usr/share/examples# cat  /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
1024
root at intel-corei7-64:/usr/share/examples#

Thanks,
Kandy





More information about the users mailing list