[ovs-discuss] Unable to set ofp_flow_mod_flags value
Manpreet Singh
er.manpreet25 at gmail.com
Mon Sep 21 03:58:26 UTC 2015
Hi Ben,
Thanks!! for reply but i am again try to elaborate the flag behavior as per
my understanding.
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. */
};
On Thu, Sep 17, 2015 at 11:16 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Thu, Sep 17, 2015 at 11:09:57PM +0530, Manpreet Singh wrote:
> > I am new to OVS. I want to know how to set following ofp_flow_mod_flags
> in
> > OVS-2.3.2
> > - OFPFF_CHECK_OVERLAP (value=2)
> > - OFPFF_RESET_COUNTS (value=4)
>
> Why? Those "flags" only affect what a flow_mod does. They aren't part
> of the state of a flow.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150921/f3fa87d7/attachment-0002.html>
More information about the discuss
mailing list