Re: [dpdk-dev] Max rnc/dec flow for coletocreek
Including dpdk_dev On 6 Dec 2017 10:50 pm, "Pankaj Joshi" wrote: > Hello All, > I want to know that how many maximum no of flow/rule can be installed on > coletocreek hardware. > > Regards, > Pankaj Joshi > >
Re: [dpdk-dev] Query for QAT software running in SR-IOV mode at VM
Hello Fiona, Thanks for giving response. Below are my some points. Yes,I am using the cpaCyXXX API's so I need steps 4,5,6,7 here. Without SR-IOV, with "ICP_WITHOUT_IOMMU" application is running fine. Here I am trying to run my application on VM with SR-IOV enabled mode. Also I have pass through VM devices to VM and binded those devices to vfio-pci as given in section 10.6. So trying to get response through registered callback function. Regards, Pankaj Joshi On Mon, Mar 27, 2017 at 10:44 PM, Trahe, Fiona wrote: > Hi Pankaj, > See below > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Pankaj Joshi > > Sent: Monday, March 27, 2017 5:20 PM > > To: qat-linux ; dev@dpdk.org; us...@dpdk.org > > Subject: [dpdk-dev] Query for QAT software running in SR-IOV mode at VM > > > > Hello Team, > > > > I have followed the steps given in section 10.4 in below link : > > > > > > > > http://dpdk.org/doc/guides/cryptodevs/qat.html > > > > > > <http://dpdk.org/doc/guides/cryptodevs/qat.html> > > > > > > <http://dpdk.org/doc/guides/cryptodevs/qat.html> > > > > <http://dpdk.org/doc/guides/cryptodevs/qat.html> > > > > 1. Export ICP_WITHOUT_IOMMU=1, and install the QAT software in > > host ( SR-IOV mode ). > > > > 2. Checked that there are 32 VF devices are there. > > > > 3.Launched VM and add 1 PCI device to the VM. > > > > 4. 1 device map to 1 /etc/dh895xcc_qa_dev0.conf file which is > having > > 2 instance. > > > > 5.Install QAT software in VM m/c with guest mode as explained in > > below link. > > > > 6.Running my application, it is able to submit the request to > hardware > > queue using API,cpaCySymDpEnqueueOp. > > > > 7. But unable to call the registered callback function. > > > > http://www.intel.com/content/dam/www/public/us/en/documents/applicati > > on-notes/virtualization-technology-with-quickassist- > technology-app-note.pdf > > > > How I can debug the issue, or how I enable the logs in QAT software. > > > If you're trying to use QAT with DPDK cryptodev API then there's no need > for steps 4,5,6,7 > above. These are steps for using the QA API, i.e. cpaCyXXX APIs. > > Also the ICP_WITHOUT_IOMMU condition is only needed if intending to access > the QAT HW from > the Host. If you intend to access the crypto services on QAT via the VF on > a VM, then you can > use the standard out of the box install for a HOST. > > Once the VF device is passed through to the VM, on the VM it can be passed > straight through > to the user-space DPDK QAT PMD without a QAT kernel driver. > i.e. follow the bind commands on http://dpdk.org/doc/guides/ > cryptodevs/qat.html > to bind the VF to either igb_uio or vfio-pci > > Then build your application to use the cryptodev APIs, see > http://dpdk.org/doc/guides/sample_app_ug/ipsec_secgw.html > for an example of how to do this. > If you just want to get it up and running without a traffic generator, you > can use the test app to > run a sanity check against any of the crypto poll mode drivers, e.g. to > run some basic functional tests > against the QAT PMD, e.g. > use dpdk/usertools/dpdk-setup.sh to allocate huge pages > start test app, e.g. test -n1 -l1 > (The test app has moved in a recent release, you should find it at either > dpdk/build/app/ or dpdk/build/build/test/test ) > Run the qat test suite with > >cryptodev_qat_autotest > > > > Please help here. > > > > Regards, > > > > Pankaj Joshi >
[dpdk-dev] Query for QAT software running in SR-IOV mode at VM
Hello Team, I have followed the steps given in section 10.4 in below link : http://dpdk.org/doc/guides/cryptodevs/qat.html <http://dpdk.org/doc/guides/cryptodevs/qat.html> <http://dpdk.org/doc/guides/cryptodevs/qat.html> <http://dpdk.org/doc/guides/cryptodevs/qat.html> 1. Export ICP_WITHOUT_IOMMU=1, and install the QAT software in host ( SR-IOV mode ). 2. Checked that there are 32 VF devices are there. 3.Launched VM and add 1 PCI device to the VM. 4. 1 device map to 1 /etc/dh895xcc_qa_dev0.conf file which is having 2 instance. 5.Install QAT software in VM m/c with guest mode as explained in below link. 6.Running my application, it is able to submit the request to hardware queue using API,cpaCySymDpEnqueueOp. 7. But unable to call the registered callback function. http://www.intel.com/content/dam/www/public/us/en/documents/application-notes/virtualization-technology-with-quickassist-technology-app-note.pdf How I can debug the issue, or how I enable the logs in QAT software. Please help here. Regards, Pankaj Joshi
[dpdk-dev] Problem running dpdk-qat example in SR-IOV mode
Hello All, I am trying to run dpdk-qat example code in SR-IOV mode. Steps done by me so far are : 1. Enable SR-IOV, virtualization, VT-d in bios setup. 2. Boot file settings are like : /boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=67d49074-1cca-490d-9626-bfda8b789ff7 ro default_hugepagesz=1G hugepagesz=1G hugepages=16 intel_iommu=on iommu=pt quiet splash security=selinux selinux=1 vt.handoff=7 isolcpus=1-15 3. Install QAT1.6 software using below configuration : d1 Set SRIOV Mode to "Host" 4. There is one coletocreek device and device state is up : service qat_service start There is 1 acceleration device(s) in the system: icp_dev0 - type=dh895xcc, inst_id=0, node_id=1, bdf=83:00:0, #accel=6, #engines=12, state=up 5. The output of the "lspci -d:443" command giving as below output : 83:01.0 Co-processor: Intel Corporation Device 0443 83:01.1 Co-processor: Intel Corporation Device 0443 83:01.2 Co-processor: Intel Corporation Device 0443 83:01.3 Co-processor: Intel Corporation Device 0443 83:04.7 Co-processor: Intel Corporation Device 0443 6. "lsmod | grep qat " gives no output. 7. "lspci -d :435" command gives output as : 83:00.0 Co-processor: Intel Corporation Coleto Creek PCIe Endpoint 8.The is no such folder : /sys/bus/pci/drivers/dh895xcc/ 9. Output of the below command is 32. cat /sys/bus/pci/drivers/qat_1_6_adf/:83:00.0/sriov_numvfs 10. After these steps, while running the dpdk-qat example in host m/c (As The QAT1.6 is install as host with SR-IOV mode). The number of crypto instances are getting as 0 and getting error as : Crypto: get_crypto_instance_on_core failed with status: -1 Please suggest a way, how I can proceed for the same. Regards, Pankaj Joshi
[dpdk-dev] Facing issue in encryption/decryption with QAT library
Hello All, I am using QAT library, and getting the error as below : ?[error] LacSymCb_ProcessDpCallback() - : Response status value not as expected? Observation are as below : 1. While running encryption only, everything working fine 2. While running decryption only, everything working fine 3. While running decryption along with encryption, in encryption instance getting this error for some packet, 10% of the packets are corrupting and digest result is coming as FALSE Please let me know, what wrong is getting and how can I debug this. Regards, Pankaj Joshi
[dpdk-dev] Getting corrupted ESP packet
Hello All, I am using QAT library for data encryption ( for coletocreek card). I am sending 98 byte ICMP data to the hardware, at successful time it is returning 166 byte of data as ESP packet. But sometimes it is returning through callback function 180 byte of data , which is corrupted one . Can anyone tell, how I can resolve this issue and why it is happening when I am sending same data to the hardware. Regards, Pankaj Joshi
[dpdk-dev] igb_uio binding issue
Hello, I am running DPDK sample application of l2_fwd. I have some of the ports like , Network devices using IGB_UIO driver :84:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused= :84:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused= Network devices using kernel driver === :05:00.0 'I350 Gigabit Network Connection' if=eth0 drv=igb unused=igb_uio *Active* :05:00.1 'I350 Gigabit Network Connection' if=eth1 drv=igb unused=igb_uio :06:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=eth4 drv=ixgbe unused=igb_uio :06:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=eth5 drv=ixgbe unused=igb_uio :0c:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=eth6 drv=ixgbe unused=igb_uio :0c:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=eth7 drv=ixgbe unused=igb_uio Other network devices = I have binded two port, but while running application it is searching for ports which I have not binded.. Logs are showing as below : EAL: Core 1 is ready (tid=cef5c700) EAL: PCI device :05:00.0 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: :05:00.0 not managed by UIO driver, skipping EAL: PCI device :05:00.1 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: :05:00.1 not managed by UIO driver, skipping EAL: PCI device :84:00.0 on NUMA socket 1 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI memory mapped at 0x7f49d021a000 EAL: PCI memory mapped at 0x7f49d0354000 EAL: PCI device :84:00.1 on NUMA socket 1 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI memory mapped at 0x7f49cd65a000 EAL: PCI memory mapped at 0x7f49d0216000 Lcore 0: RX port 0 Lcore 1: RX port 1 Initializing port 0... EAL: Error - exiting with code: 1 Cause: rte_eth_rx_queue_setup:err=-12, port=0 Can any one figure out the problem. thanks, Pankaj Joshi
[dpdk-dev] Problem in running DPDK quick assist technology environment application
hi, I have run DPDK qat example . working fine for me . I have written a sample application for coletocreek hardware using QAT apis . 1. The crypto initialization is successfule. 2. API cpaCySymDpInitSession is returning successful. 3. Crypto enque is successful. 4. While doing the flush queue , cpaCySymDpPerformOpNow API giving the error like : tail -f /var/log/messages Dec 1 14:53:13 linux-frmb kernel: [ 2404.420731] icp_qa_al err: adf_dh895xcc_adf_isr_handleUncoInterrupt: Uncorrectable Error Occurred on CPM 5 Dec 1 14:53:13 linux-frmb kernel: [ 2404.420736] icp_qa_al err: adf_dh895xcc_adf_isr_LogSSM_Int: Push/Pull Error on CPM 5 Dec 1 14:53:13 linux-frmb kernel: [ 2404.420737] One error occured - Error type: Data asserted on Dram Push Data Bus Dec 1 14:53:13 linux-frmb kernel: [ 2404.420738] id 0x580D547C Dec 1 14:53:13 linux-frmb kernel: [ 2404.420744] icp_qa_al err: adf_dh895xcc_adf_isr_handleUncoInterrupt: Uncorrectable Push/Pull Misc Error Dec 1 14:53:13 linux-frmb kernel: [ 2404.420745] memory status: No errors occurred - Transaction Id 0x0 - Error type reserved Dec 1 14:53:13 linux-frmb kernel: [ 2404.420746] Bus Operation Type Push - Id 0x580D547C Dec 1 14:53:13 linux-frmb kernel: [ 2404.420747] Reset needed for device: icp_dev0 pls let me know how to proceed . how can I debug this Thanks in advance .. Pankaj.