diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2020-04-14 13:33:28 -0700 |
---|---|---|
committer | William Tu <u9012063@gmail.com> | 2020-04-29 09:00:54 -0700 |
commit | 81f71381ff66b059aa9d19000ceded33139a5eca (patch) | |
tree | 424cc194e0362fdc5be7dd377c59aba1f7f1a6f2 /include/openvswitch/tun-metadata.h | |
parent | 5e76d41d52b0a86e1e351abc6b08920993eafc61 (diff) | |
download | openvswitch-81f71381ff66b059aa9d19000ceded33139a5eca.tar.gz |
ofp-actions: Add delete field action
This patch adds a new OpenFlow action, delete field, to delete a
field in packets. Currently, only the tun_metadata fields are
supported.
One use case to add this action is to support multiple versions
of geneve tunnel metadatas to be exchanged among different versions
of networks. For example, we may introduce tun_metadata2 to
replace old tun_metadata1, but still want to provide backward
compatibility to the older release. In this case, in the new
OpenFlow pipeline, we would like to support the case to receive a
packet with tun_metadata1, do some processing. And if the packet
is going to a switch in the newer release, we would like to delete
the value in tun_metadata1 and set a value into tun_metadata2.
Currently, ovs does not provide an action to remove a value in
tun_metadata if the value is present. This patch fulfills the gap
by adding the delete_field action. For example, the OpenFlow
syntax to delete tun_metadata1 is:
actions=delete_field:tun_metadata1
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'include/openvswitch/tun-metadata.h')
0 files changed, 0 insertions, 0 deletions