diff options
author | Damjan Marion <dmarion@me.com> | 2018-11-10 10:23:00 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-11-13 12:17:49 +0000 |
commit | a3d5986a35743a3ca1020155bed8267b5246d155 (patch) | |
tree | 45ce2a42124cab924ddd622862294e0147c54745 /src/vlib/node_funcs.h | |
parent | b11175d797c11880d19442f178db5df526ca1256 (diff) |
vlib rename vlib_frame_args(...) to vlib_frame_scalar_args(..)
Typically we have scalar_size == 0, so it doesn't matter
but vlib_frame_args was providing pointer to scalar frame
data, not vector data. To avoid future confusion function
is renamed to vlib_frame_scalar_args(...)
Change-Id: I48b75523b46d487feea24f3f3cb10c528dde516f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/node_funcs.h')
-rw-r--r-- | src/vlib/node_funcs.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vlib/node_funcs.h b/src/vlib/node_funcs.h index 3304d0f0d9f..13614aa14cd 100644 --- a/src/vlib/node_funcs.h +++ b/src/vlib/node_funcs.h @@ -271,9 +271,6 @@ vlib_frame_vector_args (vlib_frame_t * f) /** \brief Get pointer to frame scalar data. - @warning This is almost certainly not the function you wish to call. - See @ref vlib_frame_vector_args instead. - @param f vlib_frame_t pointer @return arbitrary node scalar data @@ -281,7 +278,7 @@ vlib_frame_vector_args (vlib_frame_t * f) @sa vlib_frame_vector_args */ always_inline void * -vlib_frame_args (vlib_frame_t * f) +vlib_frame_scalar_args (vlib_frame_t * f) { return vlib_frame_vector_args (f) - f->scalar_size; } |