From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id 0B808298F for ; Mon, 24 Apr 2017 11:59:57 +0200 (CEST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3O9wW5S080665 for ; Mon, 24 Apr 2017 05:59:57 -0400 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0b-001b2d01.pphosted.com with ESMTP id 2a03c2sbcd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 24 Apr 2017 05:59:57 -0400 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Apr 2017 19:59:28 +1000 Received: from d23relay06.au.ibm.com (202.81.31.225) by e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 24 Apr 2017 19:59:27 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v3O9xJc17536974 for ; Mon, 24 Apr 2017 19:59:27 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v3O9wsSU020696 for ; Mon, 24 Apr 2017 19:58:54 +1000 Received: from [9.79.216.186] ([9.79.216.186]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v3O9wr56020428; Mon, 24 Apr 2017 19:58:53 +1000 To: "Pattan, Reshma" References: <3AEA2BF9852C6F48A459DA490692831F01136A18@irsmsx110.ger.corp.intel.com> Cc: "users@dpdk.org" From: gowrishankar muthukrishnan Date: Mon, 24 Apr 2017 15:28:37 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <3AEA2BF9852C6F48A459DA490692831F01136A18@irsmsx110.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable x-cbid: 17042409-0048-0000-0000-00000222178A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17042409-0049-0000-0000-000047CFBF32 Message-Id: <40d19348-c4cd-8bd1-806f-6c95f3465f76@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-24_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704240176 Subject: Re: [dpdk-users] dpdk-pdump: pdump_create_client_socket fails to run along with kni app X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2017 09:59:58 -0000 On Monday 24 April 2017 02:45 PM, Pattan, Reshma wrote: > Hi Gowrishankar, > >> PDUMP: failed to send to server:Connection refused, >> pdump_create_client_socket:702 >> PDUMP: client request for pdump enable/disable failed >> PDUMP: failed to send to server:Connection refused, >> pdump_create_client_socket:702 >> PDUMP: client request for pdump enable/disable failed > Primary application here kni should initialize packet capture framework using rte_pdump_init(). And uninitialize rte_pdump_uninit() before application terminates. > In DPDK by default only testpmd has init/uninit changes added. Rest other application that wants to use pdump should do these changes explicitly, make the build and > rerun the primary and dpdk-pdump applications. > > Please refer app/test-pmd/testpmd.c for rte_pdump* code changes and make similar change in kni main.c and retest. > > Let me know if you stuck. Thanks Reshma. It works after I call its init. Regards, Gowrishankar > > Thanks, > Reshma > > >> -----Original Message----- >> From: users [mailto:users-bounces@dpdk.org] On Behalf Of gowrishankar >> muthukrishnan >> Sent: Friday, April 21, 2017 11:11 AM >> To: users@dpdk.org >> Subject: [dpdk-users] dpdk-pdump: pdump_create_client_socket fails to run >> along with kni app >> >> Hi, >> I am trying to run dpdk-pdump along with KNI app (in current master ie >> 17.05 >> rc2). I find dpdk-pdump crashing as below. >> >> KNI execution: >> >> ./examples/kni/build/kni -l 4,5,6,7 --socket-mem 1024 -- -P -p 0x3 -- >> config="(0,4,5),(1,6,7)" >> EAL: Detected 32 lcore(s) >> EAL: No free hugepages reported in hugepages-1048576kB >> EAL: Probing VFIO support... >> EAL: VFIO support initialized >> EAL: PCI device 0000:0e:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:10fb net_ixgbe >> EAL: using IOMMU type 1 (Type 1) >> EAL: Ignore mapping IO port bar(2) addr: 2fc1 >> EAL: PCI device 0000:0e:00.1 on NUMA socket 0 >> EAL: probe driver: 8086:10fb net_ixgbe >> EAL: Ignore mapping IO port bar(2) addr: 2fe1 >> APP: Initialising port 0 ... >> KNI: pci: 0e:00:00 8086:10fb >> APP: Initialising port 1 ... >> KNI: pci: 0e:00:01 8086:10fb >> >> Checking link status >> .done >> Port 0 Link Up - speed 10000 Mbps - full-duplex Port 1 Link Up - speed 10000 >> Mbps - full-duplex >> APP: Lcore 5 is writing to port 0 >> APP: Lcore 6 is reading from port 1 >> APP: Lcore 7 is writing to port 1 >> APP: Lcore 4 is reading from port 0 >> >> dpdk pdump execution: >> >> dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap' >> EAL: Detected 32 lcore(s) >> EAL: Probing VFIO support... >> EAL: VFIO support initialized >> EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in >> the kernel. >> EAL: This may cause issues with mapping memory into secondary processes >> EAL: PCI device 0000:0e:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:10fb net_ixgbe >> EAL: Ignore mapping IO port bar(2) addr: 2fc1 >> EAL: PCI device 0000:0e:00.1 on NUMA socket 0 >> EAL: probe driver: 8086:10fb net_ixgbe >> EAL: Ignore mapping IO port bar(2) addr: 2fe1 >> PMD: Initializing pmd_pcap for net_pcap_rx_0 >> PMD: Creating pcap-backed ethdev on numa socket 4294967295 Port 2 MAC: >> 00 00 00 01 02 03 >> PDUMP: failed to send to server:Connection refused, >> pdump_create_client_socket:702 >> PDUMP: client request for pdump enable/disable failed >> PDUMP: failed to send to server:Connection refused, >> pdump_create_client_socket:702 >> PDUMP: client request for pdump enable/disable failed >> EAL: Error - exiting with code: 1 >> Cause: Unknown error -1 >> >> Has this worked before with KNI or I am doing something not supported ?. >> Before checking further, I just wanted to check with anyone trying/fixing it. >> >> Thanks, >> Gowrishankar >>