diff options
author | Stanislav Zaikin <zstaseg@gmail.com> | 2022-07-21 19:06:26 +0200 |
---|---|---|
committer | Stanislav Zaikin <zstaseg@gmail.com> | 2023-01-23 21:01:06 +0100 |
commit | 139b2da5c533a84faca0ae1bf5b37c3185d9d4fb (patch) | |
tree | 872b69e16be5cd683aea0555fe157a8024644102 /src/vnet | |
parent | 3b5ab65bd3a821dd82acfc34069293ff39dc1ef7 (diff) |
vppapigen: enable codegen for stream message types
Enable codegen for C type from 'rpc A returns B stream C' notation
Type: improvement
Change-Id: I05cfce71c385d414d7b177a080009628bc8c8fad
Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/interface_api.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index 5766f2ca21f..288af78b2be 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -1228,24 +1228,20 @@ send_interface_tx_placement_details (vnet_hw_if_tx_queue_t **all_queues, n_bits = clib_bitmap_count_set_bits (bitmap); u32 n = n_bits * sizeof (u32); - /* - * FIXME: Use the REPLY_MACRO_DETAILS5_END once endian handler is registered - * and available. - */ - REPLY_MACRO_DETAILS5 ( - VL_API_SW_INTERFACE_TX_PLACEMENT_DETAILS, n, rp, context, ({ - rmp->sw_if_index = clib_host_to_net_u32 (hw_if->sw_if_index); - rmp->queue_id = clib_host_to_net_u32 (q[0]->queue_id); - rmp->shared = q[0]->shared_queue; - rmp->array_size = clib_host_to_net_u32 (n_bits); - - v = clib_bitmap_first_set (bitmap); - for (u32 i = 0; i < n_bits; i++) - { - rmp->threads[i] = clib_host_to_net_u32 (v); - v = clib_bitmap_next_set (bitmap, v + 1); - } - })); + REPLY_MACRO_DETAILS5_END (VL_API_SW_INTERFACE_TX_PLACEMENT_DETAILS, n, rp, + context, ({ + rmp->sw_if_index = hw_if->sw_if_index; + rmp->queue_id = q[0]->queue_id; + rmp->shared = q[0]->shared_queue; + rmp->array_size = n_bits; + + v = clib_bitmap_first_set (bitmap); + for (u32 i = 0; i < n_bits; i++) + { + rmp->threads[i] = v; + v = clib_bitmap_next_set (bitmap, v + 1); + } + })); } static void |