Hi,
I am trying to configure the cookie value(0x0 - 0xffffffffffffffff) for 
packet-in msg .
If the value isn't given explicitly, 0xffffffffffffffff needs to be set.
Controller add flowing category flows as table-miss, send to controller, mirror 
to controller .
As default behaviour of OVS also OF1.3 spec, when packet-hit flows above, 
packet-in will be send 
to controller with cookie value is copied from cookie of the flow that packet 
hit. 
OVS already support cookie value in packet-in. 
But i want "Cookie value for each case has to be configurable" 
For example following cookie value for each kind of flow is configured as below 
via CLI(will read the data which are set by user and save in ovsdb(may be other 
place)), then
Table-miss: 0x3, mirror to controller 0x4, send to controller 0x5 like this .


I have some question . In function 

Struct ofbuf *
ofputil_encode_packet_in()
{

.
.
.
.
if (protocol == OFPUTIL_P_OF13_OXM) {
    opi->cookie = pin->cokkie;
}
.
.
.
.
}

I was thinking to change the cookie value from here if reason hits. Two of the 
reason table miss and send to controller are coming here and setting the cookie 
.
But for third case it is still reason comes send to controller .As i saw the 
Reason enum data structure, in there, no mirror(output action : controller + 
outport)reason.

Could you please suggest about whole test case, how can i implement this 
feature ? How can i locate the packet-in as mirror to controller ?

Thanks 



_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to