From: Nathan Moos Date: Fri, 15 Jan 2021 21:47:16 +0000 (-0800) Subject: acl: replace glibc internal __bswap_64 with clib X-Git-Tag: v21.10-rc0~697 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=fce561226f0941bd144543741fe1f21326c01b87;p=vpp.git acl: replace glibc internal __bswap_64 with clib 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 --- diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index 3fbfcf692ad..ba4243c6926 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -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); }