Fix remaining 32-bit compile issues
Change-Id: I9664214652229b663c3e3ba7406b4ede96bfb123 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
committed by
Florin Coras
parent
b0972cbb35
commit
7bee80c823
@@ -263,9 +263,9 @@ define test
|
||||
TEST_DIR=$(WS_ROOT)/test \
|
||||
VPP_TEST_BUILD_DIR=$(BR)/build-$(2)-native \
|
||||
VPP_TEST_BIN=$(BR)/install-$(2)-native/vpp/bin/vpp \
|
||||
VPP_TEST_PLUGIN_PATH=$(BR)/install-$(2)-native/vpp/lib64/vpp_plugins \
|
||||
VPP_TEST_PLUGIN_PATH=$(wildcard $(BR)/install-$(2)-native/vpp/lib*/vpp_plugins) \
|
||||
VPP_TEST_INSTALL_PATH=$(BR)/install-$(2)-native/ \
|
||||
LD_LIBRARY_PATH=$(BR)/install-$(2)-native/vpp/lib64/ \
|
||||
LD_LIBRARY_PATH=$(subst $(subst ,, ),:,$(wildcard $(BR)/install-$(2)-native/vpp/lib*/)) \
|
||||
EXTENDED_TESTS=$(EXTENDED_TESTS) \
|
||||
PYTHON=$(PYTHON) \
|
||||
$(3)
|
||||
@@ -325,12 +325,12 @@ define run
|
||||
@echo "WARNING: STARTUP_CONF not defined or file doesn't exist."
|
||||
@echo " Running with minimal startup config: $(MINIMAL_STARTUP_CONF)\n"
|
||||
@cd $(STARTUP_DIR) && \
|
||||
sudo $(2) $(1)/vpp/bin/vpp $(MINIMAL_STARTUP_CONF) plugin_path $(1)/vpp/lib64/vpp_plugins
|
||||
sudo $(2) $(1)/vpp/bin/vpp $(MINIMAL_STARTUP_CONF) plugin_path $(wildcard $(1)/vpp/lib*/vpp_plugins)
|
||||
endef
|
||||
else
|
||||
define run
|
||||
@cd $(STARTUP_DIR) && \
|
||||
sudo $(2) $(1)/vpp/bin/vpp $(shell cat $(STARTUP_CONF) | sed -e 's/#.*//') plugin_path $(1)/vpp/lib64/vpp_plugins
|
||||
sudo $(2) $(1)/vpp/bin/vpp $(shell cat $(STARTUP_CONF) | sed -e 's/#.*//') plugin_path $(wildcard $(1)/vpp/lib*/vpp_plugins)
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
@@ -46,6 +46,11 @@ vpp_root_packages = vpp gmod
|
||||
# vpp_dpdk_lib_dir = /usr/lib
|
||||
# vpp_dpdk_shared_lib = yes
|
||||
|
||||
# load balancer plugin is not portable on 32 bit platform
|
||||
ifeq ($(MACHINE),i686)
|
||||
vpp_configure_args_vpp = --disable-lb-plugin
|
||||
endif
|
||||
|
||||
vpp_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
|
||||
-fstack-protector-all -fPIC -Werror
|
||||
vpp_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
|
||||
|
||||
@@ -455,8 +455,8 @@ vlib_buffer_pool_create (vlib_main_t * vm, unsigned num_mbufs,
|
||||
uword save_vpm_start, save_vpm_end, save_vpm_size;
|
||||
struct rte_mempool_memhdr *memhdr;
|
||||
|
||||
this_pool_start = ~0ULL;
|
||||
this_pool_end = 0LL;
|
||||
this_pool_start = ~0;
|
||||
this_pool_end = 0;
|
||||
|
||||
STAILQ_FOREACH (memhdr, &rmp->mem_list, next)
|
||||
{
|
||||
@@ -465,7 +465,7 @@ vlib_buffer_pool_create (vlib_main_t * vm, unsigned num_mbufs,
|
||||
if (((uword) memhdr->addr) < this_pool_start)
|
||||
this_pool_start = (uword) (memhdr->addr);
|
||||
}
|
||||
ASSERT (this_pool_start < ~0ULL && this_pool_end > 0);
|
||||
ASSERT (this_pool_start < ~0 && this_pool_end > 0);
|
||||
this_pool_size = this_pool_end - this_pool_start;
|
||||
|
||||
if (CLIB_DEBUG > 1)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* Please use supported DPDK driver instead.
|
||||
*/
|
||||
|
||||
#if __x86_64__
|
||||
#if __x86_64__ || __i386__
|
||||
#include <vppinfra/vector.h>
|
||||
|
||||
#ifndef CLIB_HAVE_VEC128
|
||||
@@ -2929,7 +2929,6 @@ ixge_set_next_node (ixge_rx_next_t next, char *name)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_PLUGIN_REGISTER () = {
|
||||
@@ -2937,8 +2936,10 @@ VLIB_PLUGIN_REGISTER () = {
|
||||
.default_disabled = 1,
|
||||
.description = "Intel 82599 Family Native Driver (experimental)",
|
||||
};
|
||||
#endif
|
||||
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/*
|
||||
* fd.io coding-style-patch-verification: ON
|
||||
*
|
||||
|
||||
+6
-5
@@ -491,7 +491,7 @@ svm_map_region (svm_map_region_args_t * a)
|
||||
return (0);
|
||||
}
|
||||
|
||||
rp = mmap ((void *) a->baseva, a->size,
|
||||
rp = mmap (uword_to_pointer (a->baseva, void *), a->size,
|
||||
PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, svm_fd, 0);
|
||||
|
||||
if (rp == (svm_region_t *) MAP_FAILED)
|
||||
@@ -533,9 +533,10 @@ svm_map_region (svm_map_region_args_t * a)
|
||||
rp->virtual_size = a->size;
|
||||
|
||||
rp->region_heap =
|
||||
mheap_alloc_with_flags ((void *) (a->baseva + MMAP_PAGESIZE),
|
||||
(a->pvt_heap_size != 0) ?
|
||||
a->pvt_heap_size : SVM_PVT_MHEAP_SIZE,
|
||||
mheap_alloc_with_flags (uword_to_pointer
|
||||
(a->baseva + MMAP_PAGESIZE, void *),
|
||||
(a->pvt_heap_size !=
|
||||
0) ? a->pvt_heap_size : SVM_PVT_MHEAP_SIZE,
|
||||
MHEAP_FLAG_DISABLE_VM);
|
||||
oldheap = svm_push_pvt_heap (rp);
|
||||
|
||||
@@ -661,7 +662,7 @@ svm_map_region (svm_map_region_args_t * a)
|
||||
a->size = rp->virtual_size;
|
||||
munmap (rp, MMAP_PAGESIZE);
|
||||
|
||||
rp = (void *) mmap ((void *) a->baseva, a->size,
|
||||
rp = (void *) mmap (uword_to_pointer (a->baseva, void *), a->size,
|
||||
PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED | MAP_FIXED, svm_fd, 0);
|
||||
if ((uword) rp == (uword) MAP_FAILED)
|
||||
|
||||
+2
-2
@@ -172,7 +172,7 @@ svm_map_region_nolock (svm_map_region_args_t * a)
|
||||
a->size = rp->virtual_size;
|
||||
munmap (rp, MMAP_PAGESIZE);
|
||||
|
||||
rp = (void *) mmap ((void *) a->baseva, a->size,
|
||||
rp = (void *) mmap (uword_to_pointer (a->baseva, void *), a->size,
|
||||
PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED | MAP_FIXED, svm_fd, 0);
|
||||
if ((uword) rp == (uword) MAP_FAILED)
|
||||
@@ -401,7 +401,7 @@ repair (char *chroot_path, int crash_root_region)
|
||||
a->size = root_rp->virtual_size;
|
||||
munmap (root_rp, MMAP_PAGESIZE);
|
||||
|
||||
root_rp = (void *) mmap ((void *) a->baseva, a->size,
|
||||
root_rp = (void *) mmap (uword_to_pointer (a->baseva, void *), a->size,
|
||||
PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED | MAP_FIXED, svm_fd, 0);
|
||||
if ((uword) root_rp == (uword) MAP_FAILED)
|
||||
|
||||
@@ -53,9 +53,9 @@ stmt: flist defn {$$ = set_flags($1, $2);}
|
||||
| defn {$$ = $1;}
|
||||
;
|
||||
|
||||
flist: flist flag {$$ = (YYSTYPE)(unsigned long long)
|
||||
((unsigned long long) $1
|
||||
| (unsigned long long) $2);}
|
||||
flist: flist flag {$$ = (YYSTYPE)(unsigned long)
|
||||
((unsigned long) $1
|
||||
| (unsigned long) $2);}
|
||||
| flag {$$ = $1;}
|
||||
;
|
||||
|
||||
|
||||
@@ -397,7 +397,7 @@ void node_define_generate (node_t *this, enum passid which, FILE *fp)
|
||||
fprintf(fp, ",\n");
|
||||
}
|
||||
indent_me(fp);
|
||||
fprintf (fp, "{\"crc\" : \"0x%08x\"}\n", (u32)(u64)CDATA3);
|
||||
fprintf (fp, "{\"crc\" : \"0x%08x\"}\n", (u32)(uword)CDATA3);
|
||||
indent -= 4;
|
||||
indent_me(fp);
|
||||
fprintf(fp, "]");
|
||||
@@ -1219,7 +1219,7 @@ void generate_msg_name_crc_list (YYSTYPE a1, FILE *fp)
|
||||
if (!(np->flags & NODE_FLAG_TYPEONLY)) {
|
||||
fprintf (fp, "\\\n_(VL_API_%s, %s, %08x) ",
|
||||
uppercase (np->data[0]), (i8 *) np->data[0],
|
||||
(u32)(u64)np->data[3]);
|
||||
(u32)(uword)np->data[3]);
|
||||
}
|
||||
}
|
||||
np = np->peer;
|
||||
|
||||
+12
-9
@@ -262,7 +262,8 @@ vl_api_application_attach_reply_t_handler (vl_api_application_attach_reply_t *
|
||||
}
|
||||
|
||||
utm->our_event_queue =
|
||||
(unix_shared_memory_queue_t *) mp->app_event_queue_address;
|
||||
uword_to_pointer (mp->app_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
utm->state = STATE_ATTACHED;
|
||||
}
|
||||
|
||||
@@ -524,8 +525,9 @@ vl_api_connect_uri_reply_t_handler (vl_api_connect_uri_reply_t * mp)
|
||||
return;
|
||||
}
|
||||
|
||||
utm->vpp_event_queue = (unix_shared_memory_queue_t *)
|
||||
mp->vpp_event_queue_address;
|
||||
utm->vpp_event_queue =
|
||||
uword_to_pointer (mp->vpp_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
|
||||
/*
|
||||
* Setup session
|
||||
@@ -534,9 +536,9 @@ vl_api_connect_uri_reply_t_handler (vl_api_connect_uri_reply_t * mp)
|
||||
pool_get (utm->sessions, session);
|
||||
session_index = session - utm->sessions;
|
||||
|
||||
rx_fifo = (svm_fifo_t *) mp->server_rx_fifo;
|
||||
rx_fifo = uword_to_pointer (mp->server_rx_fifo, svm_fifo_t *);
|
||||
rx_fifo->client_session_index = session_index;
|
||||
tx_fifo = (svm_fifo_t *) mp->server_tx_fifo;
|
||||
tx_fifo = uword_to_pointer (mp->server_tx_fifo, svm_fifo_t *);
|
||||
tx_fifo->client_session_index = session_index;
|
||||
|
||||
session->server_rx_fifo = rx_fifo;
|
||||
@@ -858,16 +860,17 @@ vl_api_accept_session_t_handler (vl_api_accept_session_t * mp)
|
||||
ip_str = format (0, "%U", format_ip46_address, &mp->ip, mp->is_ip4);
|
||||
clib_warning ("Accepted session from: %s:%d", ip_str,
|
||||
clib_net_to_host_u16 (mp->port));
|
||||
utm->vpp_event_queue = (unix_shared_memory_queue_t *)
|
||||
mp->vpp_event_queue_address;
|
||||
utm->vpp_event_queue =
|
||||
uword_to_pointer (mp->vpp_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
|
||||
/* Allocate local session and set it up */
|
||||
pool_get (utm->sessions, session);
|
||||
session_index = session - utm->sessions;
|
||||
|
||||
rx_fifo = (svm_fifo_t *) mp->server_rx_fifo;
|
||||
rx_fifo = uword_to_pointer (mp->server_rx_fifo, svm_fifo_t *);
|
||||
rx_fifo->client_session_index = session_index;
|
||||
tx_fifo = (svm_fifo_t *) mp->server_tx_fifo;
|
||||
tx_fifo = uword_to_pointer (mp->server_tx_fifo, svm_fifo_t *);
|
||||
tx_fifo->client_session_index = session_index;
|
||||
|
||||
session->server_rx_fifo = rx_fifo;
|
||||
|
||||
@@ -232,7 +232,8 @@ vl_api_application_attach_reply_t_handler (vl_api_application_attach_reply_t *
|
||||
}
|
||||
|
||||
utm->our_event_queue =
|
||||
(unix_shared_memory_queue_t *) mp->app_event_queue_address;
|
||||
uword_to_pointer (mp->app_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -581,7 +582,8 @@ send_reply:
|
||||
|
||||
vec_free (a->segment_name);
|
||||
|
||||
client_q = (unix_shared_memory_queue_t *) mp->client_queue_address;
|
||||
client_q =
|
||||
uword_to_pointer (mp->client_queue_address, unix_shared_memory_queue_t *);
|
||||
vl_msg_api_send_shmem (client_q, (u8 *) & rmp);
|
||||
}
|
||||
|
||||
@@ -608,14 +610,15 @@ vl_api_accept_session_t_handler (vl_api_accept_session_t * mp)
|
||||
if (start_time == 0.0)
|
||||
start_time = clib_time_now (&utm->clib_time);
|
||||
|
||||
utm->vpp_event_queue = (unix_shared_memory_queue_t *)
|
||||
mp->vpp_event_queue_address;
|
||||
utm->vpp_event_queue =
|
||||
uword_to_pointer (mp->vpp_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
|
||||
pool_get (utm->sessions, session);
|
||||
|
||||
rx_fifo = (svm_fifo_t *) mp->server_rx_fifo;
|
||||
rx_fifo = uword_to_pointer (mp->server_rx_fifo, svm_fifo_t *);
|
||||
rx_fifo->client_session_index = session - utm->sessions;
|
||||
tx_fifo = (svm_fifo_t *) mp->server_tx_fifo;
|
||||
tx_fifo = uword_to_pointer (mp->server_tx_fifo, svm_fifo_t *);
|
||||
tx_fifo->client_session_index = session - utm->sessions;
|
||||
|
||||
session->server_rx_fifo = rx_fifo;
|
||||
|
||||
@@ -1037,7 +1037,7 @@ vl_api_cli_reply_t_handler (vl_api_cli_reply_t * mp)
|
||||
i32 retval = ntohl (mp->retval);
|
||||
|
||||
vam->retval = retval;
|
||||
vam->shmem_result = (u8 *) mp->reply_in_shmem;
|
||||
vam->shmem_result = uword_to_pointer (mp->reply_in_shmem, u8 *);
|
||||
vam->result_ready = 1;
|
||||
}
|
||||
|
||||
@@ -1058,7 +1058,7 @@ vl_api_cli_reply_t_handler_json (vl_api_cli_reply_t * mp)
|
||||
pthread_mutex_lock (&am->vlib_rp->mutex);
|
||||
oldheap = svm_push_data_heap (am->vlib_rp);
|
||||
|
||||
reply = (u8 *) (mp->reply_in_shmem);
|
||||
reply = uword_to_pointer (mp->reply_in_shmem, u8 *);
|
||||
vec_free (reply);
|
||||
|
||||
svm_pop_heap (oldheap);
|
||||
@@ -2405,7 +2405,7 @@ static void vl_api_get_node_graph_reply_t_handler
|
||||
if (retval != 0)
|
||||
return;
|
||||
|
||||
reply = (u8 *) (mp->reply_in_shmem);
|
||||
reply = uword_to_pointer (mp->reply_in_shmem, u8 *);
|
||||
pvt_copy = vec_dup (reply);
|
||||
|
||||
/* Toss the shared-memory original... */
|
||||
@@ -2456,7 +2456,7 @@ static void vl_api_get_node_graph_reply_t_handler_json
|
||||
vat_json_object_add_int (&node, "retval", ntohl (mp->retval));
|
||||
vat_json_object_add_uint (&node, "reply_in_shmem", mp->reply_in_shmem);
|
||||
|
||||
reply = (u8 *) (mp->reply_in_shmem);
|
||||
reply = uword_to_pointer (mp->reply_in_shmem, u8 *);
|
||||
|
||||
/* Toss the shared-memory original... */
|
||||
pthread_mutex_lock (&am->vlib_rp->mutex);
|
||||
@@ -4959,7 +4959,7 @@ exec (vat_main_t * vam)
|
||||
svm_pop_heap (oldheap);
|
||||
pthread_mutex_unlock (&am->vlib_rp->mutex);
|
||||
|
||||
mp->cmd_in_shmem = (u64) cmd;
|
||||
mp->cmd_in_shmem = pointer_to_uword (cmd);
|
||||
S (mp);
|
||||
timeout = vat_time_now (vam) + 10.0;
|
||||
|
||||
|
||||
+1
-1
@@ -1125,7 +1125,7 @@ cpu_config (vlib_main_t * vm, unformat_input_t * input)
|
||||
|
||||
VLIB_EARLY_CONFIG_FUNCTION (cpu_config, "cpu");
|
||||
|
||||
#if !defined (__x86_64__) && !defined (__aarch64__) && !defined (__powerpc64__) && !defined(__arm__)
|
||||
#if !defined (__x86_64__) && !defined (__i386__) && !defined (__aarch64__) && !defined (__powerpc64__) && !defined(__arm__)
|
||||
void
|
||||
__sync_fetch_and_add_8 (void)
|
||||
{
|
||||
|
||||
@@ -137,7 +137,7 @@ vl_api_memclnt_create_reply_t_handler (vl_api_memclnt_create_reply_t * mp)
|
||||
am->msg_index_by_name_and_crc = hash_create_string (0, sizeof (uword));
|
||||
|
||||
/* Recreate the vnet-side API message handler table */
|
||||
tblv = (u8 *) mp->message_table;
|
||||
tblv = uword_to_pointer (mp->message_table, u8 *);
|
||||
serialize_open_vector (sm, tblv);
|
||||
unserialize_integer (sm, &nmsgs, sizeof (u32));
|
||||
|
||||
|
||||
@@ -216,7 +216,8 @@ vl_api_memclnt_create_t_handler (vl_api_memclnt_create_t * mp)
|
||||
am->shmem_hdr->application_restarts);
|
||||
rp->context = mp->context;
|
||||
rp->response = ntohl (rv);
|
||||
rp->message_table = (u64) am->serialized_message_table_in_shmem;
|
||||
rp->message_table =
|
||||
pointer_to_uword (am->serialized_message_table_in_shmem);
|
||||
|
||||
vl_msg_api_send_shmem (q, (u8 *) & rp);
|
||||
}
|
||||
|
||||
@@ -719,7 +719,7 @@ vhost_user_log_dirty_pages_2 (vhost_user_intf_t * vui,
|
||||
}
|
||||
if (is_host_address)
|
||||
{
|
||||
addr = (u64) map_user_mem (vui, (uword) addr);
|
||||
addr = pointer_to_uword (map_user_mem (vui, (uword) addr));
|
||||
}
|
||||
if (PREDICT_FALSE ((addr + len - 1) / VHOST_LOG_PAGE / 8 >= vui->log_size))
|
||||
{
|
||||
|
||||
@@ -247,7 +247,7 @@ vnet_application_attach (vnet_app_attach_args_t * a)
|
||||
a->session_cb_vft)))
|
||||
return rv;
|
||||
|
||||
a->app_event_queue_address = (u64) app->event_queue;
|
||||
a->app_event_queue_address = pointer_to_uword (app->event_queue);
|
||||
sm = segment_manager_get (app->first_segment_manager);
|
||||
segment_manager_get_segment_info (sm->segment_indices[0],
|
||||
&seg_name, &a->segment_size);
|
||||
|
||||
@@ -102,9 +102,9 @@ send_session_accept_callback (stream_session_t * s)
|
||||
tc = tp_vft->get_connection (s->connection_index, s->thread_index);
|
||||
mp->listener_handle = listen_session_get_handle (listener);
|
||||
mp->handle = stream_session_handle (s);
|
||||
mp->server_rx_fifo = (u64) s->server_rx_fifo;
|
||||
mp->server_tx_fifo = (u64) s->server_tx_fifo;
|
||||
mp->vpp_event_queue_address = (u64) vpp_queue;
|
||||
mp->server_rx_fifo = pointer_to_uword (s->server_rx_fifo);
|
||||
mp->server_tx_fifo = pointer_to_uword (s->server_tx_fifo);
|
||||
mp->vpp_event_queue_address = pointer_to_uword (vpp_queue);
|
||||
mp->port = tc->rmt_port;
|
||||
mp->is_ip4 = tc->is_ip4;
|
||||
clib_memcpy (&mp->ip, &tc->rmt_ip, sizeof (tc->rmt_ip));
|
||||
@@ -172,10 +172,10 @@ send_session_connected_callback (u32 app_index, u32 api_context,
|
||||
if (!is_fail)
|
||||
{
|
||||
vpp_queue = session_manager_get_vpp_event_queue (s->thread_index);
|
||||
mp->server_rx_fifo = (u64) s->server_rx_fifo;
|
||||
mp->server_tx_fifo = (u64) s->server_tx_fifo;
|
||||
mp->server_rx_fifo = pointer_to_uword (s->server_rx_fifo);
|
||||
mp->server_tx_fifo = pointer_to_uword (s->server_tx_fifo);
|
||||
mp->handle = stream_session_handle (s);
|
||||
mp->vpp_event_queue_address = (u64) vpp_queue;
|
||||
mp->vpp_event_queue_address = pointer_to_uword (vpp_queue);
|
||||
mp->retval = 0;
|
||||
}
|
||||
else
|
||||
@@ -225,7 +225,7 @@ redirect_connect_callback (u32 server_api_client_index, void *mp_arg)
|
||||
}
|
||||
|
||||
/* Tell the server the client's API queue address, so it can reply */
|
||||
mp->client_queue_address = (u64) client_q;
|
||||
mp->client_queue_address = pointer_to_uword (client_q);
|
||||
app = application_lookup (mp->client_index);
|
||||
if (!app)
|
||||
{
|
||||
|
||||
@@ -274,11 +274,12 @@ vl_api_connect_uri_reply_t_handler (vl_api_connect_uri_reply_t * mp)
|
||||
return;
|
||||
}
|
||||
|
||||
tm->our_event_queue = (unix_shared_memory_queue_t *)
|
||||
mp->vpp_event_queue_address;
|
||||
|
||||
tm->vpp_event_queue = (unix_shared_memory_queue_t *)
|
||||
mp->vpp_event_queue_address;
|
||||
tm->our_event_queue =
|
||||
uword_to_pointer (mp->vpp_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
tm->vpp_event_queue =
|
||||
uword_to_pointer (mp->vpp_event_queue_address,
|
||||
unix_shared_memory_queue_t *);
|
||||
|
||||
/*
|
||||
* Setup session
|
||||
@@ -288,9 +289,11 @@ vl_api_connect_uri_reply_t_handler (vl_api_connect_uri_reply_t * mp)
|
||||
session_index = session - tm->sessions;
|
||||
session->bytes_to_receive = session->bytes_to_send = tm->bytes_to_send;
|
||||
|
||||
session->server_rx_fifo = (svm_fifo_t *) mp->server_rx_fifo;
|
||||
session->server_rx_fifo =
|
||||
uword_to_pointer (mp->server_rx_fifo, svm_fifo_t *);
|
||||
session->server_rx_fifo->client_session_index = session_index;
|
||||
session->server_tx_fifo = (svm_fifo_t *) mp->server_tx_fifo;
|
||||
session->server_tx_fifo =
|
||||
uword_to_pointer (mp->server_tx_fifo, svm_fifo_t *);
|
||||
session->server_tx_fifo->client_session_index = session_index;
|
||||
session->vpp_session_handle = mp->handle;
|
||||
|
||||
@@ -321,7 +324,7 @@ create_api_loopback (tclient_main_t * tm)
|
||||
memset (mp, 0, sizeof (*mp));
|
||||
mp->_vl_msg_id = VL_API_MEMCLNT_CREATE;
|
||||
mp->context = 0xFEEDFACE;
|
||||
mp->input_queue = (u64) tm->vl_input_queue;
|
||||
mp->input_queue = pointer_to_uword (tm->vl_input_queue);
|
||||
strncpy ((char *) mp->name, "tcp_tester", sizeof (mp->name) - 1);
|
||||
|
||||
vl_api_memclnt_create_t_handler (mp);
|
||||
|
||||
@@ -244,7 +244,7 @@ create_api_loopback (vlib_main_t * vm)
|
||||
memset (mp, 0, sizeof (*mp));
|
||||
mp->_vl_msg_id = VL_API_MEMCLNT_CREATE;
|
||||
mp->context = 0xFEEDFACE;
|
||||
mp->input_queue = (u64) bsm->vl_input_queue;
|
||||
mp->input_queue = pointer_to_uword (bsm->vl_input_queue);
|
||||
strncpy ((char *) mp->name, "tcp_test_server", sizeof (mp->name) - 1);
|
||||
|
||||
vl_api_memclnt_create_t_handler (mp);
|
||||
|
||||
@@ -304,7 +304,7 @@ mheap_small_object_cache_mask (mheap_small_object_cache_t * c, uword bin)
|
||||
uword mask;
|
||||
|
||||
/* $$$$ ELIOT FIXME: add Altivec version of this routine */
|
||||
#if !defined (CLIB_HAVE_VEC128) || defined (__ALTIVEC__)
|
||||
#if !defined (CLIB_HAVE_VEC128) || defined (__ALTIVEC__) || defined (__i386__)
|
||||
mask = 0;
|
||||
#else
|
||||
u8x16 b = u8x16_splat (bin);
|
||||
|
||||
Reference in New Issue
Block a user