diff options
author | Florin Coras <fcoras@cisco.com> | 2018-06-22 15:29:38 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-06-25 20:43:44 +0000 |
commit | adb5bd5344cd7b422c0c08e6434ad8642b897502 (patch) | |
tree | 93f2ed26f808ff73882436ea4702eb0eedc2f765 /src/vpp/api/test_client.c | |
parent | c474feea962bcde3b5eece0ff2be8d3fd8019093 (diff) |
tw: add light weight timer update function
Because it avoids pool putting/getting the timer, this function is
somewhat faster than stopping and restarting a timer.
Change-Id: Id99ed9d356b0b1f7e12facfe8da193e1cd30b3ec
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vpp/api/test_client.c')
-rw-r--r-- | src/vpp/api/test_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vpp/api/test_client.c b/src/vpp/api/test_client.c index f0feee046e1..98cc18e3f0a 100644 --- a/src/vpp/api/test_client.c +++ b/src/vpp/api/test_client.c @@ -918,15 +918,15 @@ add_del_proxy_arp (test_main_t * tm, int is_add) mp->_vl_msg_id = ntohs (VL_API_PROXY_ARP_ADD_DEL); mp->client_index = tm->my_client_index; mp->context = 0xdeadbeef; - mp->vrf_id = ntohl (11); + mp->proxy.vrf_id = ntohl (11); mp->is_add = is_add; /* proxy fib 11, 1.1.1.1 -> 1.1.1.10 */ tmp = ntohl (0x01010101); - clib_memcpy (mp->low_address, &tmp, 4); + clib_memcpy (mp->proxy.low_address, &tmp, 4); tmp = ntohl (0x0101010a); - clib_memcpy (mp->hi_address, &tmp, 4); + clib_memcpy (mp->proxy.hi_address, &tmp, 4); vl_msg_api_send_shmem (tm->vl_input_queue, (u8 *) & mp); } |