Re: [ovs-dev] Testing experimenter match

2016-01-19 Thread Raul Suarez Marin
uot;ofproto-dpif - ICMPv6" or "ofproto-dpif - Neighbor Discovery > set-field with checksum update". > > On Sun, Jan 17, 2016 at 08:29:25PM +0100, Raul Suarez Marin wrote: > > I was looking something similar to "make check" > > > > Kind regards, > >

Re: [ovs-dev] Testing experimenter match

2016-01-17 Thread Raul Suarez Marin
I was looking something similar to "make check" Kind regards, Raúl 2016-01-17 18:47 GMT+01:00 Ben Pfaff : > On Sun, Jan 17, 2016 at 10:44:23AM +0100, Raul Suarez Marin wrote: > > I am developing experimenter match and actions for OF1.3 in openvswitch > > 2.4.0. I alre

[ovs-dev] Testing experimenter match

2016-01-17 Thread Raul Suarez Marin
Hello, I am developing experimenter match and actions for OF1.3 in openvswitch 2.4.0. I already implemented it, but I am missing a way of testing if it works with real packets. There is any way to test that or I should have to start ovs and try it out with real packets in simulated scenarios? An

Re: [ovs-dev] datapath forwarding

2015-08-07 Thread Raul Suarez Marin
ur code isn't executing (are > you sure that your own custom version of the module is inserted into > the kernel?) > > On 6 August 2015 at 10:52, Raul Suarez Marin > wrote: > > Is there a way of adding messages myself and see them thorugh --verbose? > I > > was to

Re: [ovs-dev] datapath forwarding

2015-08-06 Thread Raul Suarez Marin
Is there a way of adding messages myself and see them thorugh --verbose? I was told that "printk()" did that but I'm not able to see it anywhere :( Thank you for your answer, Kind regards, Raúl 2015-08-05 22:40 GMT+02:00 Joe Stringer : > On 5 August 2015 at 13:02, Raul Sua

[ovs-dev] datapath forwarding

2015-08-05 Thread Raul Suarez Marin
Hello everyone, I am developing a new match option in the datapath. I implemented almost everything already, but I am missing something and I don't know what nor what is next step. Adding the flow directly to the datapath gives the following error: ovs-dpctl: updating flow table (Invalid argument

[ovs-dev] datapath forwarding

2015-08-03 Thread Raul Suarez Marin
Hello, I am developing a new match option for openvswitch and I would like that it runs through the datapath without need of user-space. I'm not really sure if I missed something but this is what happens: (1) First incomming packet is processed correctly (processed + stats updated) (2) Following

Re: [ovs-dev] Costumoized actions

2015-03-20 Thread Raul Suarez Marin
, you should not need to implement any new actions, as > you should be able to use the set_field action. > > Jarno > > > On Mar 19, 2015, at 2:38 PM, Raul Suarez Marin < > raul.suarez.ma...@gmail.com> wrote: > > Thanks Jarno for the hints! > > I found this function

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Raul Suarez Marin
nd a > class struct with the local function pointers in those files, just search > for “operate” in those files. > > Hope this helps, > > Jarno > > > On Mar 19, 2015, at 2:06 AM, Raul Suarez Marin < > raul.suarez.ma...@gmail.com> wrote: > > > > Hel

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Raul Suarez Marin
function is optional. It is only worthwhile to implement it if * 'dpif' can perform operations in batch faster than individually. */ void (*operate)(struct dpif *dpif, struct dpif_op **ops, size_t n_ops); Kind regards, Raúl Suárez 2015-03-18 21:26 GMT+01:00 Raul Suarez Marin : > H

Re: [ovs-dev] Costumoized actions

2015-03-18 Thread Raul Suarez Marin
really. I will be posting here updates so anyone trying to do this same thing can have a "clear" idea of what to do. Thanks again Ben for your help, hints and guidelines. Kind regards, Raúl Suárez 2015-03-12 16:06 GMT+01:00 Ben Pfaff : > On Thu, Mar 12, 2015 at 09:11:11AM +0100, Raul

Re: [ovs-dev] Customized match options => miniflow_extract()

2015-03-16 Thread Raul Suarez Marin
g miniflow allowed me to realize why the match was not going well, so "I am happy" that I did not understand it and had to go through debugging. Kind regards, Raúl 2015-03-14 20:58 GMT+01:00 Ben Pfaff : > On Thu, Mar 05, 2015 at 11:59:40PM +0100, Raul Suarez Marin wrote: > > I

[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

[ovs-dev] Customized match options => miniflow_extract()

2015-03-05 Thread Raul Suarez Marin
Hello, I need new match options for my openvswitch. I have already sorted out the flow_mod message handling and everything. Now, I need to find where the match is performed, but I cannot find it. Through debugging, I found that the matching is performed (or part of it) at miniflow_extract() at lib

Re: [ovs-dev] Fwd: Customized match options

2015-03-05 Thread Raul Suarez Marin
Thank you very much Ben, your help is appreciated 2015-03-05 2:33 GMT+01:00 Ben Pfaff : > On Wed, Mar 04, 2015 at 03:21:42PM -0800, Ben Pfaff wrote: > > On Thu, Mar 05, 2015 at 12:06:14AM +0100, Raul Suarez Marin wrote: > > > Thank you for your fast response. I configured my o

[ovs-dev] Fwd: Customized match options

2015-03-04 Thread Raul Suarez Marin
Hello, Thank you for your fast response. I configured my ovs with --enable-Werror and this allowed me to fix a couple warnings (unused variables). Sadly, looks like all changes that I should have done, are already done. The changes that the FAQ proposes are related to OF messages and flow entry i

[ovs-dev] Customized match options

2015-03-04 Thread Raul Suarez Marin
Hello, I need new match options for my openvswitch. I have already sorted out the flow_mod message handling and everything. Now, I need to find where the match is performed, but I cannot find it. Anyone has a clue on where packets are processed/matched. ANY clue is useful. Thank you for your sup

Re: [ovs-dev] OFPAT10_VENDOR and ofp-actions.c

2015-02-02 Thread Raul Suarez Marin
Solved. I finally know how it works. Sorry for the inconvenience. 2015-02-02 17:04 GMT+01:00 Raul Suarez Marin : > Hello, > > I am looking at decode_openflow10_action function at lib/ofp-actions.c. I > am trying to understand how the code is performed. I have been testing it, > bu

[ovs-dev] OFPAT10_VENDOR and ofp-actions.c

2015-02-02 Thread Raul Suarez Marin
} \ break; #include "ofp-util.def" f = fopen("/home/raul/file.txt", "ab+"); fprintf(f, " >WTF< 0x%x 0x%x (%d %d) (0x%x %d) (0x%x %d)\n", a->type, a->header.len, a-

[ovs-dev] Parse actions when received from FLOW_MOD message

2015-01-26 Thread Raul Suarez Marin
Hello, I am developing a new module for a controller, but I need to add an extra action to the openvswitch. I know that ovs 1.4 supports set-field actions, but that functionality does not work for me because I need to change data from the packet, not a header. Currently, I'm stucked at function o