-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PF_RING ZC: ixgbe virtual function support #15
Comments
This requires patching the ixgbevf driver to support ZC, we already started working on this some time ago but need to complete it. We will try to allocate more time on the roadmap for this as soon as possible. |
Thank you so much! I really appreciate your help! :) On Fri, Jun 19, 2015 at 10:33 AM, Alfredo Cardigliano <
Sincerely yours, Pavel Odintsov |
I'm also very much interested in ixgbevf ZC driver. |
Very interested in this as well. |
Any update on this? |
Not yet, we are busy with other projects with higher priority. sorry. |
@cardigliano: Is this supported now ? |
Hi Alfredo, Does the VF support is included latest PF_RING? I do see some commits related to it, please do confirm. Regards, |
@jcmathews this is still in progress, I will update this issue as soon as it is ready |
Thanks |
Support for ixgbe-vf has been added to ZC and it is available on latest dev branch. This is currently under testing, if you want to start playing with it you are welcome. |
Hi Alfredo, Do you have configuration details to hook vf's by using qemu cmd line(but not by libvirt)? Any script changes to examples_zc/kvm/host/vm-boot.sh Regards, |
@jcmathews I do not have a sample configuration for Qemu atm, I will work on that and update the documentation asap. (however you should be able to find instructions on google as it's a generic sriov configuration) |
@cardigliano |
@jcmathews could you provide more details about the configuration/processing pattern you want to achieve? Virtual Functions are not supposed to be used with IPC/ivshmem as they are two differnt ways of achieving the same, bringing some traffic to the VM |
@cardigliano : |
Got it. Could you comment more about "Generic SRIO configuration unbinds existing driver(say ixgbevf) and hook vf's using vfio-pci"? VF can be either on the host or assigned to a VM (unbinding it from the host), I guess you need the latter for sending from the VM, what is the problem with that? |
Sorry for late reply. The below step are from Assign the VF to a guest unbind from previous driver (take igbvf device for example) Create guest with direct passthrough via VFIO framework Problem 1: Problem 2: Is above mentioned registration correct for VF's or any other way you used to use? |
Hi @jcmathews, we added instructions for assigning a VF without virsh at http://www.ntop.org/guides/pf_ring/vm/sriov.html (which is what you are doing). |
I got some errors as follows WARNING: "ixgbevf_hv_set_rar_vf" [/root/PF_RING/drivers/intel/ixgbevf/ixgbevf-4.5.1-zc/src/ixgbevf.ko] undefined! Kernel Version Used : 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux #if IS_ENABLED(CONFIG_PCI_HYPERV) not enabled in VM. while compiling it throws error. |
Strange this is working for me on a VM with 3.10.0-862.14.4.el7.x86_64, I am investigating.. |
config-3.10.0-327.el7.x86_64.zip |
I pushed a patch to handle that case, please try compiling latest code from github: |
48.253334] ixgbevf: Intel(R) 10GbE PCI Express Virtual Function Driver - version 4.5.1 zsend if failing to send packets out. [root@localhost examples_zc]# ./zsend -i zc:ens4 -r 2 -l 256 ERROR: You do not seem to have a valid PF_RING ZC 7.3.0.181122license for ens4 (MAC 12:64:14:F9:18:65) [Intel 10 Gbit ixgbe VF]ERROR: Please get one at http://shop.ntop.org/.######################################################################### We're now working in demo mode with packet capture andtransmission limited to 5 minutes######################################################################### ERROR: You do not seem to have a valid PF_RING ZC 7.3.0.181122license for ens4 (MAC 12:64:14:F9:18:65) [Intel 10 Gbit ixgbe VF]ERROR: Please get one at http://shop.ntop.org/.#########################################################################
|
@jcmathews could you try with pfsend (which is using a different memory allocation method) to figure out if this is related to hugepages? |
Host Logs: VM Logs: [ 196.394348] Copyright(c) 1999 - 2018 Intel Corporation. Pfsend: Packets started flowing out and then immediately stopped. Retries also didnt work |
@jcmathews are you reforging the MAC address to match what is configured for the VF? It seems the adapter detects spoofed packets. Please note pfsend supports that: |
@cardigliano kernel cmd line is not having these "msi=1 pci=assign-busses. Do you see any impacts? |
@jcmathews please note that spoof check is a generic feature the adapter provide (not related to ZC), you can disable it with: |
is there a way this zc working on OVH public clouds? |
Hello, folks!
I have multiple virtual functions with ixgbe.
I have changed following lines in load_driver.sh:
Thus, I tuned virtual functions and set mac's for they:
And apply changes:
Thus, I have single physical NIC and two virtual NIC's:
And I have enabled all NICs:
And all nic's become ready:
Well! I could run PF_RING ZC.
It works perfectly for physical interface:
But for virtual functions it did not work at all:
./zcount -c 0 -i zc:eth10 pfring_zc_open_device error [Socket operation on non-socket] Please check that zc:eth10 is up and not already used root@filteredclient /usr/src/PF_RING-6.0.3/userland/examples_zc # ./zcount -c 0 -i zc:eth11 pfring_zc_open_device error [Socket operation on non-socket] Please check that zc:eth11 is up and not already used
Could you add support for PF_RING which run on top of virtual functions?
The text was updated successfully, but these errors were encountered: