]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/ofproto-dpif-xlate.c
ofproto-dpif-xlate: Allow translating without side-effects.
authorJarno Rajahalme <jarno@ovn.org>
Wed, 14 Sep 2016 23:51:27 +0000 (16:51 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Wed, 14 Sep 2016 23:51:27 +0000 (16:51 -0700)
commitdf70a7731c6d50458e46c865975d569dd3909212
tree6dec6638bddd3d640ab133b74500883ef5855391
parent2c7ee5248496896b3794df1d8635b70370097847
ofproto-dpif-xlate: Allow translating without side-effects.

Extend 'may_learn' attribute to also control the treatment of
FIN_TIMEOUT action and asynchronous messages (packet ins,
continuations), so that when 'may_learn' is 'false' and
'resubmit_stats' is 'NULL', no OpenFlow-visible side effects are
generated by the translation.

Correspondingly, add support for one-time asynchronous messages to
xlate cache, so that all side-effects of the translation may be
executed at a later stage.  This will be useful for bundle commits.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif-xlate-cache.c
ofproto/ofproto-dpif-xlate-cache.h
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif-xlate.h