diff options
author | Jesse Gross <jesse@kernel.org> | 2016-06-28 18:14:53 -0700 |
---|---|---|
committer | Jesse Gross <jesse@kernel.org> | 2016-06-29 15:24:18 -0700 |
commit | 2eb791426a9f320ad2d3a2c72c2544dc5f4979de (patch) | |
tree | bbd0b754ea7feaeb4f8f677b5f9091b6156dbc0e /ofproto/ofproto-dpif-xlate.h | |
parent | a5a41e4acbd73afb18a3a3f976ba05607fdebd19 (diff) | |
download | openvswitch-2eb791426a9f320ad2d3a2c72c2544dc5f4979de.tar.gz |
bfd: Allow setting OAM bit when encapsulated in tunnel.
Some tunnel protocols, such as Geneve, have a bit in the tunnel
header to indicate that it is an OAM packet. This means that the
packet should be processed as a tunnel control frame and not be
passed onto connected links.
When BFD is used inside of a tunnel it is often used in this control
capacity, so this adds an option to enable marking the outer header
when the output port is a tunnel that supports the OAM concept. It is
also possible to use tunnels as point-to-point links that are simply
carrying BFD as payload, so this is not always turned on.
Conceptually, this may also apply to other types of packets locally
generated by the switch, most obviously CFM. However, BFD seems to
be most commonly used for this type of tunnel monitoring application
so this only adds the option to BFD for the time being to avoid
unnecessarily adding configuration knobs that might never get used.
Signed-off-by: Jesse Gross <jesse@kernel.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif-xlate.h')
-rw-r--r-- | ofproto/ofproto-dpif-xlate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-xlate.h b/ofproto/ofproto-dpif-xlate.h index 69f851844..7808a603e 100644 --- a/ofproto/ofproto-dpif-xlate.h +++ b/ofproto/ofproto-dpif-xlate.h @@ -211,7 +211,7 @@ enum ofperr xlate_resume(struct ofproto_dpif *, const struct ofputil_packet_in_private *, struct ofpbuf *odp_actions, enum slow_path_reason *); -int xlate_send_packet(const struct ofport_dpif *, struct dp_packet *); +int xlate_send_packet(const struct ofport_dpif *, bool oam, struct dp_packet *); struct xlate_cache *xlate_cache_new(void); void xlate_push_stats(struct xlate_cache *, const struct dpif_flow_stats *); |