[dpdk-users] i40evf : !PANIC!: Cannot configure device: port=0, Num queues 1, 1 (2)Invalid argument
Wiles, Keith
keith.wiles at intel.com
Thu Sep 21 16:47:19 CEST 2017
> On Sep 21, 2017, at 8:46 AM, Mauricio Valdueza <mvaldueza at vmware.com> wrote:
>
> Hi Keith.
>
>
> It works!
>
> However I had some error messages when I run:
These seem to be in the driver and I have no control of that code. Including the maintainers.
>
> sudo ./app/x86_64-native-linuxapp-gcc/pktgen -c 0xf -- -P -m "[1:2-4].0" --crc-strip
>
>
> Copyright (c) <2010-2017>, Intel Corporation. All rights reserved. Powered by DPDK
> EAL: Detected 4 lcore(s)
> EAL: No free hugepages reported in hugepages-1048576kB
> EAL: Probing VFIO support...
> EAL: PCI device 0000:03:00.0 on NUMA socket -1
> EAL: Invalid NUMA socket, default to 0
> EAL: probe driver: 8086:154c net_i40e_vf
> EAL: PCI device 0000:0b:00.0 on NUMA socket -1
> EAL: Invalid NUMA socket, default to 0
> EAL: probe driver: 15ad:7b0 net_vmxnet3
> Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
> Copyright (c) <2010-2017>, Intel Corporation. All rights reserved.
> Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
>
> >>> Packet Burst 64, RX Desc 1024, TX Desc 2048, mbufs/port 16384, mbuf cache 2048
>
> === port to lcore mapping table (# lcores 4) ===
> lcore: 0 1 2 3 Total
> port 0: ( D: T) ( 1: 0) ( 0: 1) ( 0: 1) = ( 1: 3)
> Total : ( 0: 0) ( 1: 0) ( 0: 1) ( 0: 1)
> Display and Timer on lcore 0, rx:tx counts per port/lcore
>
> Configuring 1 ports, MBUF Size 2176, MBUF Cache Size 2048
> Lcore:
> 1, RX-Only
> RX_cnt( 1): (pid= 0:qid= 0)
> 2, TX-Only
> TX_cnt( 1): (pid= 0:qid= 0)
> 3, TX-Only
> TX_cnt( 1): (pid= 0:qid= 1)
> 4, TX-Only
> TX_cnt( 1): (pid= 0:qid= 2)
>
> Port :
> 0, nb_lcores 4, private 0xa80ea0, lcores: 1 2 3 4
>
> ** Default Info (0000:03:00.0, if_index:0) **
> max_vfs : 0, min_rx_bufsize :1024, max_rx_pktlen : 9728
> max_rx_queues : 4, max_tx_queues : 4
> max_mac_addrs : 64, max_hash_mac_addrs: 0, max_vmdq_pools: 0
> rx_offload_capa: 47, tx_offload_capa : 287, reta_size : 64, flow_type_rss_offloads:0000000000007ef8
> vmdq_queue_base: 0, vmdq_queue_num : 0, vmdq_pool_base: 0
> ** RX Conf **
> pthresh : 8, hthresh : 8, wthresh : 0
> Free Thresh : 32, Drop Enable : 0, Deferred Start : 0
> ** TX Conf **
> pthresh : 32, hthresh : 0, wthresh : 0
> Free Thresh : 32, RS Thresh : 32, Deferred Start : 0, TXQ Flags:00000f01
>
> i40evf_execute_vf_cmd(): No response for 28
> i40evf_disable_vlan_strip(): Failed to execute command of VIRTCHNL_OP_DISABLE_VLAN_STRIPPING
> Create: Default RX 0:0 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Set RX queue stats mapping pid 0, q 0, lcore 1
>
>
> Create: Default TX 0:0 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Range TX 0:0 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Sequence TX 0:0 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Special TX 0:0 - Memory used (MBUFs 64 x (size 2176 + Hdr 128)) + 192 = 145 KB headroom 128 2176
>
> Create: Default TX 0:1 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Range TX 0:1 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Sequence TX 0:1 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Special TX 0:1 - Memory used (MBUFs 64 x (size 2176 + Hdr 128)) + 192 = 145 KB headroom 128 2176
>
> Create: Default TX 0:2 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Range TX 0:2 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Sequence TX 0:2 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB headroom 128 2176
> Create: Special TX 0:2 - Memory used (MBUFs 64 x (size 2176 + Hdr 128)) + 192 = 145 KB headroom 128 2176
>
> Port memory used = 369075 KB
> Initialize Port 0 -- TxQ 3, RxQ 1, Src MAC fa:16:3e:d4:57:3e
> Total memory used = 369075 KB
> i40evf_execute_vf_cmd(): No response for 14
> i40evf_config_promisc(): fail to execute command CONFIG_PROMISCUOUS_MODE
> Port 0: Link Up - speed 10000 Mbps - full-duplex <Enable promiscuous mode>
>
>
>
> Many thanks
>
>
> Mau
>
> On 21/09/2017, 14:27, "Wiles, Keith" <keith.wiles at intel.com> wrote:
>
>
> > On Sep 21, 2017, at 5:38 AM, Mauricio Valdueza <mvaldueza at vmware.com> wrote:
> >
> > Hi:
> >
> >
> > I am testing pktgen with Intel Fortville. When I test it in PT, pktgen works without issues however, using SR-IOV has a Panic error (see long below)
> >
> > I tested same pktgen in same VM in same platform (vsphere) and Niantic Nics and also works without problems
>
> Pktgen can only set the hw_strip_crc for the port only when the command line uses —crc-strip option. In this case the port was set by the PF to hw-strip and Pktgen is resetting that value back to zero, so just add the —crc-strip option to pktgen for the VF port.
>
> Let me know if that fixes the problem for now.
>
> >
> >
> > Any idea?
> >
> > Cheers
> >
> > Mau
> >
> > :_____________________________________
> >
> >
> >
> > sudo ./app/x86_64-native-linuxapp-gcc/pktgen -c 0xf -- -P -m "[2:4].0"
> >
> >
> > Copyright (c) <2010-2017>, Intel Corporation. All rights reserved. Powered by DPDK
> > EAL: Detected 4 lcore(s)
> > EAL: No free hugepages reported in hugepages-1048576kB
> > EAL: Probing VFIO support...
> > EAL: PCI device 0000:03:00.0 on NUMA socket -1
> > EAL: Invalid NUMA socket, default to 0
> > EAL: probe driver: 8086:154c net_i40e_vf
> > EAL: PCI device 0000:0b:00.0 on NUMA socket -1
> > EAL: Invalid NUMA socket, default to 0
> > EAL: probe driver: 15ad:7b0 net_vmxnet3
> >
> > Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
> >
> > Copyright (c) <2010-2017>, Intel Corporation. All rights reserved.
> > Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
> >
> >>>> Packet Burst 64, RX Desc 1024, TX Desc 2048, mbufs/port 16384, mbuf cache 2048
> >
> > === port to lcore mapping table (# lcores 4) ===
> > lcore: 0 1 2 3 Total
> > port 0: ( D: T) ( 0: 0) ( 1: 0) ( 0: 0) = ( 1: 1)
> > Total : ( 0: 0) ( 0: 0) ( 1: 0) ( 0: 0)
> > Display and Timer on lcore 0, rx:tx counts per port/lcore
> >
> > Configuring 1 ports, MBUF Size 2176, MBUF Cache Size 2048
> > Lcore:
> > 2, RX-Only
> > RX_cnt( 1): (pid= 0:qid= 0)
> > 4, TX-Only
> > TX_cnt( 1): (pid= 0:qid= 0)
> >
> > Port :
> > 0, nb_lcores 2, private 0xa80ea0, lcores: 2 4
> >
> > ** Default Info (0000:03:00.0, if_index:0) **
> > max_vfs : 0, min_rx_bufsize :1024, max_rx_pktlen : 9728
> > max_rx_queues : 4, max_tx_queues : 4
> > max_mac_addrs : 64, max_hash_mac_addrs: 0, max_vmdq_pools: 0
> > rx_offload_capa: 47, tx_offload_capa : 287, reta_size : 64, flow_type_rss_offloads:0000000000007ef8
> > vmdq_queue_base: 0, vmdq_queue_num : 0, vmdq_pool_base: 0
> > ** RX Conf **
> > pthresh : 8, hthresh : 8, wthresh : 0
> > Free Thresh : 32, Drop Enable : 0, Deferred Start : 0
> > ** TX Conf **
> > pthresh : 32, hthresh : 0, wthresh : 0
> > Free Thresh : 32, RS Thresh : 32, Deferred Start : 0, TXQ Flags:00000f01
> >
> > i40evf_dev_configure(): VF can't disable HW CRC Strip
> > !PANIC!: Cannot configure device: port=0, Num queues 1,1 (2)Invalid argument
> > PANIC in pktgen_config_ports():
> > Cannot configure device: port=0, Num queues 1,1 (2)Invalid argument6: [./app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) [0x44a5a9]]
> > 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f55847e1830]]
> > 4: [./app/x86_64-native-linuxapp-gcc/pktgen(main+0x580) [0x4478d0]]
> > 3: [./app/x86_64-native-linuxapp-gcc/pktgen(pktgen_config_ports+0x1c85) [0x471245]]
> > 2: [./app/x86_64-native-linuxapp-gcc/pktgen(__rte_panic+0xc3) [0x441e28]]
> > 1: [./app/x86_64-native-linuxapp-gcc/pktgen(rte_dump_stack+0x2b) [0x4bdffb]]
> > Aborted (core dumped)
> > n2 at pktgen2:~/pktgen-3.4.1$
> >
>
> Regards,
> Keith
>
>
Regards,
Keith
More information about the users
mailing list