From db14f5aff69311d13a0a90baa3567e92f3faa783 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 29 Jan 2018 10:43:33 -0800 Subject: Allow the provider of a midchain adjacency to pass context data that is returned in the fixup function Change-Id: I458e6e03b03e27775df33a2fd302743126d6ac44 Signed-off-by: Neale Ranns --- src/vnet/adj/adj_midchain.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/vnet/adj/adj_midchain.h') diff --git a/src/vnet/adj/adj_midchain.h b/src/vnet/adj/adj_midchain.h index 27ca1d3398d..65892314f40 100644 --- a/src/vnet/adj/adj_midchain.h +++ b/src/vnet/adj/adj_midchain.h @@ -31,15 +31,22 @@ * @param adj_index * The index of the neighbour adjacency. * - * @param post_rewrite_node - * The VLIB graph node that provides the post-encap fixup. - * where 'fixup' is e.g., correcting chksum, length, etc. + * @param fixup + * The function that will be invoked at paket switch time to 'fixup' + * the rewrite applied with necessary per-packet info (i.e. length, checksums). + * @param fixup_data + * Context data set by the caller that is provided as an argument in the + * fixup function. + * + * @param flags + * Flags controlling the adjacency behaviour * * @param rewrite * The rewrite. */ extern void adj_nbr_midchain_update_rewrite(adj_index_t adj_index, adj_midchain_fixup_t fixup, + const void *fixup_data, adj_flags_t flags, u8 *rewrite); -- cgit 1.2.3-korg