Re: Regarding Netmap in VM
On Tue, May 27, 2014 at 5:00 AM, Jack Vogel jfvo...@gmail.com wrote: I don't think we've ever tried this at Intel either. I had meant to check the ixv code to see if it had your code in it Luigi but got distracted, if it doesn't then it obviously can't work for the case of a VM. ixv.c does not contain the netmap hooks though it might be relatively straightforward to add them, possibly reusing the same netmap hooks and support functions used in ixgbe.c As a matter of fact, there seems to be a large amount of duplicated code between ixv.c and ixgbe.c, so i wonder whether it makes sense to remove the duplication and use just a single copy of the common parts ? cheers luigi ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
Re: Regarding Netmap in VM
Ya, it might be nice to do a bunch of cleanup like that, maybe once the i40e release happens I'll have some time to look into that. Jack On Tue, May 27, 2014 at 2:49 AM, Luigi Rizzo ri...@iet.unipi.it wrote: On Tue, May 27, 2014 at 5:00 AM, Jack Vogel jfvo...@gmail.com wrote: I don't think we've ever tried this at Intel either. I had meant to check the ixv code to see if it had your code in it Luigi but got distracted, if it doesn't then it obviously can't work for the case of a VM. ixv.c does not contain the netmap hooks though it might be relatively straightforward to add them, possibly reusing the same netmap hooks and support functions used in ixgbe.c As a matter of fact, there seems to be a large amount of duplicated code between ixv.c and ixgbe.c, so i wonder whether it makes sense to remove the duplication and use just a single copy of the common parts ? cheers luigi ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
Re: Regarding Netmap in VM
On Thu, May 22, 2014 at 09:28:45AM +0530, Prashant Upadhyaya wrote: Hi, Suppose I am on x86 with Intel 82599 NIC. Now I spawn a VM (running FreeBSD as guest OS with Netmap support) For better I/O performance, I have two main choices -- 1. Pass the 82599 NIC as a PCI passthrough device into the VM 2. Use SRIOV VF of 82599 into the VM Question is, will Netmap be able to utilize both the above environments when I run the userspace application in the guest OS in the VM, or will there be any issues. if i remember well we do not have sriov vf support yet in freebsd so you should follow the pci-passthrough approach. It should probably work, i am not 100% sure who is in charge of programming the IOMMU for the guest os when accessing a device through pci passthrough. If this part is missing, the symptoms you should see is that packets will have all bytes set to 0x00 cheers luigi ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
Re: Regarding Netmap in VM
I don't think we've ever tried this at Intel either. I had meant to check the ixv code to see if it had your code in it Luigi but got distracted, if it doesn't then it obviously can't work for the case of a VM. I think with the new 40G VF driver, when that gets committed it might be desirable to have netmap support. And, although we don't have SRIOV yet... that should be changing before long :) Jack On Mon, May 26, 2014 at 10:06 AM, Luigi Rizzo ri...@iet.unipi.it wrote: On Thu, May 22, 2014 at 09:28:45AM +0530, Prashant Upadhyaya wrote: Hi, Suppose I am on x86 with Intel 82599 NIC. Now I spawn a VM (running FreeBSD as guest OS with Netmap support) For better I/O performance, I have two main choices -- 1. Pass the 82599 NIC as a PCI passthrough device into the VM 2. Use SRIOV VF of 82599 into the VM Question is, will Netmap be able to utilize both the above environments when I run the userspace application in the guest OS in the VM, or will there be any issues. if i remember well we do not have sriov vf support yet in freebsd so you should follow the pci-passthrough approach. It should probably work, i am not 100% sure who is in charge of programming the IOMMU for the guest os when accessing a device through pci passthrough. If this part is missing, the symptoms you should see is that packets will have all bytes set to 0x00 cheers luigi ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org