Re: [ovs-dev] Costumoized actions

2015-03-20 Thread Raul Suarez Marin
Hello! At the end I could make it work. I followed the steps of the actions regarding ARP. I changed where to perform the commit_action function and moved it to commit_set_nw_action. Now works perfectly. I do not know what behaviour changes perform this change I did, but the thing that matters is

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Jarno Rajahalme
Any custom actions need to be supported by the datapaths, otherwise they fail flow setup validation. Linux datapath (kernel module) is part of the linux kernel sources, but if you need to try out something you can test your feature with the userspace datapath first, then maybe with the ova-tree

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Raul Suarez Marin
Thanks Jarno for the hints! I found this function looking for ", struct dpif_op " term in every file. static void dpif_linux_operate(struct dpif *dpif_, struct dpif_op **ops, size_t n_ops) The main lines in that function of my interest are: dpif_linux_encode_execute(dpif->dp_ifindex, execute, &a

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Jarno Rajahalme
Raúl, The dip class functions are implemented by the different dip classes. Linux and Windows data paths are interfaced by lib/dpif-netlink.c and the userspace datapath is implemented in lib/dpif-netlink.c. You’ll find a class struct with the local function pointers in those files, just search

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Raul Suarez Marin
Hello again, At lib/dpif.c in function "dpif_operate" there is a line that is being called. dpif->dpif_class->operate(dpif, ops, chunk); This is possibly the actions are performed, but I have no clue how to know what function this line leads to. In lib/dpif-provider.h I can find the definition f

Re: [ovs-dev] Costumoized actions

2015-03-18 Thread Raul Suarez Marin
Hello Ben, Thank you for your answer. Let me correct myself when I said I adapated parts of "handle_upcalls", I realized I just added debugging lines only (my bad). I am trying to do the ovs-vswitchd ofproto/trace command but I am getting failed connection attempts because "address family is not s

Re: [ovs-dev] Costumoized actions

2015-03-12 Thread Ben Pfaff
On Thu, Mar 12, 2015 at 09:11:11AM +0100, Raul Suarez Marin wrote: > I am trying to develop new actions for openvswitch, I have done all my work > but looks like it does not work. > > What I have done: > -> Enable ovs to read and parse new actions, so they appear on ovs-ofctl > dump-flows command.

[ovs-dev] Costumoized actions

2015-03-12 Thread Raul Suarez Marin
Hello everyone, I am trying to develop new actions for openvswitch, I have done all my work but looks like it does not work. What I have done: -> Enable ovs to read and parse new actions, so they appear on ovs-ofctl dump-flows command. -> Adapted required parts of "handle_upcalls" function at ofp