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/examples/vlib/main_stub.c | |
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/examples/vlib/main_stub.c')
-rw-r--r-- | src/examples/vlib/main_stub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/vlib/main_stub.c b/src/examples/vlib/main_stub.c index 3b19c53f720..c5c19aaa01a 100644 --- a/src/examples/vlib/main_stub.c +++ b/src/examples/vlib/main_stub.c @@ -50,7 +50,7 @@ static u8 * format_my_node_frame (u8 * s, va_list * va) { vlib_frame_t *f = va_arg (*va, vlib_frame_t *); - my_frame_t *g = vlib_frame_args (f); + my_frame_t *g = vlib_frame_scalar_args (f); int i; s = format (s, "scalar %d, vector { ", g->scalar); @@ -82,7 +82,7 @@ my_func (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) { vlib_frame_t *next = vlib_get_next_frame (vm, rt, /* next index */ 0); n_left = VLIB_FRAME_SIZE - next->n_vectors; - y = vlib_frame_args (next); + y = vlib_frame_scalar_args (next); y->scalar = serial++; } else |