aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2023-06-06 12:05:30 -0400
committerAndrew Yourtchenko <ayourtch@gmail.com>2023-06-13 13:36:21 +0000
commitc4d0f47faef33ff882642fc5de75d46719b98d5d (patch)
tree798e2bb8c53dd2d9cc4f71fdc071d38ea5fc5ccf /src/vnet
parenta175d8d8f7eebcdd54248238f4e7d962793653ba (diff)
vppapigen: fix crash with autoendian arrays
Type: fix Ticket: VPP-2078 Change-Id: I418269632bdfc823c5f0ba7652957277276d294d Signed-off-by: Dave Wallace <dwallacelf@gmail.com> (cherry picked from commit 39c40fa349505b584472678318ef8548ab203aed)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/interface_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c
index 807c908731d..5b48fea02eb 100644
--- a/src/vnet/interface_api.c
+++ b/src/vnet/interface_api.c
@@ -1214,7 +1214,7 @@ out:
static void
send_interface_tx_placement_details (vnet_hw_if_tx_queue_t **all_queues,
u32 index, vl_api_registration_t *rp,
- u32 native_context)
+ u32 context)
{
vnet_main_t *vnm = vnet_get_main ();
vl_api_sw_interface_tx_placement_details_t *rmp;
@@ -1223,7 +1223,6 @@ send_interface_tx_placement_details (vnet_hw_if_tx_queue_t **all_queues,
uword *bitmap = q[0]->threads;
u32 hw_if_index = q[0]->hw_if_index;
vnet_hw_interface_t *hw_if = vnet_get_hw_interface (vnm, hw_if_index);
- u32 context = clib_host_to_net_u32 (native_context);
n_bits = clib_bitmap_count_set_bits (bitmap);
u32 n = n_bits * sizeof (u32);