Hello, This is probably quite a vague and simple question but here goes...Can anyone tell me where in the Xen-4.2.0 source files i can find source code for the virtual switching (Vif/Pif'')? This is the first time i have worked with the Xen source code so struggling to work my way around the system. Thanks very much!! Ben _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On 8 November 2012 07:49, Ben Eyres <bmeyres@gmail.com> wrote:> Hello, > > This is probably quite a vague and simple question but here goes...Can > anyone tell me where in the Xen-4.2.0 source files i can find source code > for the virtual switching (Vif/Pif'')? This is the first time i have worked > with the Xen source code so struggling to work my way around the system.The virtual switching is not done by Xen but rather by the Linux bridge module or Open vSwitch etc. If you are interested in how virtual adapters are created and packets transfered from domU to domO I suggest looking at the Linux source tree in drivers/net/ for netback/netfront.> > Thanks very much!! > Ben > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >-- CTO | Orion Virtualisation Solutions | www.orionvm.com.au Phone: 1300 56 99 52 | Mobile: 0428 754 846
On Wed, 2012-11-07 at 23:33 +0000, Joseph Glanville wrote:> On 8 November 2012 07:49, Ben Eyres <bmeyres@gmail.com> wrote: > > This is probably quite a vague and simple question but here goes...Can > > anyone tell me where in the Xen-4.2.0 source files i can find source code > > for the virtual switching (Vif/Pif'')? This is the first time i have worked > > with the Xen source code so struggling to work my way around the system. > > The virtual switching is not done by Xen but rather by the Linux > bridge module or Open vSwitch etc. > If you are interested in how virtual adapters are created and packets > transfered from domU to domO I suggest looking at the Linux source > tree in drivers/net/ for netback/netfront.Also http://wiki.xen.org/wiki/Xen_Networking should provide a useful guide to how the various bits work together. The use of the Vif/Pif terminology makes me wonder if you are using xapi/XCP -- in which case you may find the xen-api@ list is more likely to have people who can point you to the code which manages those in the xapi toolstack. Ian.