acl: replace glibc internal __bswap_64 with clib 83/30783/6
authorNathan Moos <nmoos@cisco.com>
Fri, 15 Jan 2021 21:47:16 +0000 (13:47 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 20 Jan 2021 18:11:39 +0000 (18:11 +0000)
Type: fix

In order to build VPP as a package for an embedded Yocto-based
distribution, this patch replaces the use of the glibc internal
__bswap_64 function with the VPP function clib_net_to_host_u64, which is
provided by vppinfra.

Change-Id: I3ecc8525861dc3441bce2b51aa4c80f9a62d3051
Signed-off-by: Nathan Moos <nmoos@cisco.com>
src/plugins/acl/acl.c

index 3fbfcf6..ba4243c 100644 (file)
@@ -216,7 +216,8 @@ static void
     ntohs (VL_API_ACL_PLUGIN_GET_CONN_TABLE_MAX_ENTRIES_REPLY +
           am->msg_id_base);
   rmp->context = mp->context;
-  rmp->conn_table_max_entries = __bswap_64 (am->fa_conn_table_max_entries);
+  rmp->conn_table_max_entries =
+    clib_net_to_host_u64 (am->fa_conn_table_max_entries);
 
   vl_api_send_msg (rp, (u8 *) rmp);
 }