> On Sep 21, 2017, at 5:38 AM, Mauricio Valdueza <[email protected]> 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@pktgen2:~/pktgen-3.4.1$ > Regards, Keith
