Re: [ovs-dev] HOST to SWITCH packets

2015-01-27 Thread Ben Pfaff
I don't understand why you want to do this by intercepting output ports. Define a new action to do what you want, then use that action. On Tue, Jan 27, 2015 at 04:16:34PM +0530, Sree Vidya S D wrote: > The thing is I want alternate packets to use different paths ... similar to > a loadbalancer >

Re: [ovs-dev] HOST to SWITCH packets

2015-01-27 Thread Sree Vidya S D
The thing is I want alternate packets to use different paths ... similar to a loadbalancer So the idea was like to embed all the paths in the header (say 3 paths) and use a random number (1- 3) for packet i and route the packet via that path On Tue, Jan 27, 2015 at 12:51 AM, Ben Pfaff wrote:

Re: [ovs-dev] HOST to SWITCH packets

2015-01-26 Thread Ben Pfaff
I don't understand why you want to do this by intercepting output ports. Define a new action to do what you want, then use that action. On Mon, Jan 26, 2015 at 11:54:48AM +0530, Sree Vidya S D wrote: > Hi Ben, > > thanks for responding! > > I am embedding multiple path information from source t

Re: [ovs-dev] HOST to SWITCH packets

2015-01-25 Thread Sree Vidya S D
Hi Ben, thanks for responding! I am embedding multiple path information from source to destination in ip and mac headers So I am sending flow mod messages from the controller to mininet In I use a random number to select one among the n path information I have embedded in the headers I unders

Re: [ovs-dev] HOST to SWITCH packets

2015-01-25 Thread Ben Pfaff
What's your actual goal? On Mon, Jan 26, 2015 at 12:50:16AM +0530, Sree Vidya S D wrote: > Thanks a lot Ben! > > But I need little more help over here. > > How do I get my modified packet ? Is that possible? > > On Mon, Jan 26, 2015 at 12:45 AM, Ben Pfaff wrote: > > > On Sun, Jan 25, 2015 at

Re: [ovs-dev] HOST to SWITCH packets

2015-01-25 Thread Sree Vidya S D
Thanks a lot Ben! But I need little more help over here. How do I get my modified packet ? Is that possible? On Mon, Jan 26, 2015 at 12:45 AM, Ben Pfaff wrote: > On Sun, Jan 25, 2015 at 11:33:15PM +0530, Sree Vidya S D wrote: > > In this particular function body theres a call to function > > >

Re: [ovs-dev] HOST to SWITCH packets

2015-01-25 Thread Ben Pfaff
On Sun, Jan 25, 2015 at 11:33:15PM +0530, Sree Vidya S D wrote: > In this particular function body theres a call to function > > ovs_dp_process_packet_with_key(skb,&key,false); ---2 > > So when the control returns from function 2 does skb contains the packet > with the actions applied ?? > > say

Re: [ovs-dev] HOST to SWITCH packets

2015-01-25 Thread Sree Vidya S D
Thanks Ben In this particular function body theres a call to function ovs_dp_process_packet_with_key(skb,&key,false); ---2 So when the control returns from function 2 does skb contains the packet with the actions applied ?? say i specify action as modify the mac header... in dat case does skb c

Re: [ovs-dev] HOST to SWITCH packets

2015-01-23 Thread Ben Pfaff
On Fri, Jan 23, 2015 at 01:47:40PM +0530, Sree Vidya S D wrote: > I am working with the > > "void ovs_dp_process_received_packet(struct vport *p, struct sk_buff *skb)" > > function in datapath.c > > If I am right this function deals with packets that is send from a switch > to another switch, d

Re: [ovs-dev] HOST to SWITCH packets

2015-01-23 Thread Jesse Gross
On Fri, Jan 23, 2015 at 12:17 AM, Sree Vidya S D wrote: > Hello > > I am working with the > > "void ovs_dp_process_received_packet(struct vport *p, struct sk_buff *skb)" > > function in datapath.c > > If I am right this function deals with packets that is send from a switch > to another switch, d

[ovs-dev] HOST to SWITCH packets

2015-01-23 Thread Sree Vidya S D
Hello I am working with the "void ovs_dp_process_received_packet(struct vport *p, struct sk_buff *skb)" function in datapath.c If I am right this function deals with packets that is send from a switch to another switch, does it deal with packets that are passed from a host to a switch? My sce