[ovs-discuss] in-kernel flow table in the datapath

Sridhar Samudrala samudrala.sridhar at gmail.com
Sat Feb 4 01:20:51 UTC 2012

I am trying out openvswitch 1.4.0 with the upstream 3.3.0-rc2 kernel.

I removed the default table flow table entry and added the following 2
flow table entries matching the br0 mac address as dl_src or dl_dst

# ovs-ofctl del-flows br0
# ovs-ofctl add-flow br0 idle_timeout=0,dl_src=00:1b:21:84:4e:48,action=normal
# ovs-ofctl add-flow br0 idle_timeout=0,dl_dst=00:1b:21:84:4e:48,action=normal

# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=329.501s, table=0, n_packets=177, n_bytes=10658,
dl_dst=00:1b:21:84:4e:48 actions=NORMAL
 cookie=0x0, duration=337.386s, table=0, n_packets=3, n_bytes=182,
dl_src=00:1b:21:84:4e:48 actions=NORMAL

After i do a ping, i can see the in-kernel flow table entries that get added

# ovs-dpctl dump-flows br0
packets:0, bytes:0, used:never, actions:0
packets:0, bytes:0, used:never, actions:1
packets:0, bytes:0, used:never, actions:1
packets:0, bytes:0, used:never, actions:0

But they get expired within a few secs. What is the timeout period?
I was expecting that with idle_timeout=0, the in-kernel flow table
entries stay until they are deleted.
Is it possible to make the in-kernel flow table entries permanent
until they are deleted with any other options?


More information about the discuss mailing list