From 63f2c7d70136761e24b19cca1f09d9cbdde66b69 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 9 Feb 2022 13:47:29 +0000 Subject: bfd: Add an update API that has create new or modify existing semantics Type: improvement helps keep the agents stateless Signed-off-by: Neale Ranns Change-Id: I3588f13c081e24f5a8083b490eb02856361e4ccb --- src/vnet/bfd/bfd_api.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/vnet/bfd/bfd_api.h') diff --git a/src/vnet/bfd/bfd_api.h b/src/vnet/bfd/bfd_api.h index 2a6c69b78b6..f051e6b679c 100644 --- a/src/vnet/bfd/bfd_api.h +++ b/src/vnet/bfd/bfd_api.h @@ -44,6 +44,15 @@ bfd_udp_add_session (u32 sw_if_index, const ip46_address_t * local_addr, u8 detect_mult, u8 is_authenticated, u32 conf_key_id, u8 bfd_key_id); +/** + * @brief create a new or modify and existing bfd session + */ +vnet_api_error_t +bfd_udp_upd_session (u32 sw_if_index, const ip46_address_t *local_addr, + const ip46_address_t *peer_addr, u32 desired_min_tx_usec, + u32 required_min_rx_usec, u8 detect_mult, + u8 is_authenticated, u32 conf_key_id, u8 bfd_key_id); + /** * @brief modify existing session */ -- cgit 1.2.3-korg