[ovs-discuss] Unable to set ofp_flow_mod_flags value

Manpreet Singh er.manpreet25 at gmail.com
Tue Sep 29 16:37:58 UTC 2015


Hi All,

I am adding flow entry from controller with values table_id=2, priority=22,
flags=1 match=(in_port=2)

and action=(output=4) then dump-flows i have get the following details:



cookie=0x0, duration=3.646s, table=1, n_packets=0, n_bytes=0,
send_flow_rem priority=22,in_port=1
actions=output:2



Able to see send_flow_rem flag in dump-flows



Doing same for flags=8 and flag=16 and getting following details using
dump-flows:



cookie=0x0, duration=16.703s, table=1, n_packets=0, n_bytes=0,
no_packet_counts priority=22,in_port=1 actions=output:2



cookie=0x0, duration=3.117s, table=1, n_packets=0, n_bytes=0,
no_byte_counts priority=22,in_port=1
actions=output:2



When i am setting flags=2 and flags=4 using controller with same procedure
as above then using dump flows getting

following details:



cookie=0x0, duration=3.613s, table=3, n_packets=0, n_bytes=0,
priority=22,in_port=1 actions=output:2



cookie=0x0, duration=3.613s, table=3, n_packets=0, n_bytes=0,
priority=22,in_port=1 actions=output:2



Unable to see overlap and reset_counts flag value in dump-flows.



For Reference:



enum ofp_flow_mod_flags {

OFPFF_SEND_FLOW_REM = 1 << 0, /* Send flow removed message when flow
 expires or is deleted. */

OFPFF_CHECK_OVERLAP = 1 << 1, /* Check for overlapping entries first. */

OFPFF_RESET_COUNTS = 1 << 2, /* Reset flow packet and byte counts. */

OFPFF_NO_PKT_COUNTS = 1 << 3, /* Don't keep track of packet count. */

OFPFF_NO_BYT_COUNTS = 1 << 4, /* Don't keep track of byte count. */

};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150929/8aa1f749/attachment-0002.html>


More information about the discuss mailing list