MCPcopy Create free account
hub / github.com/F-Stack/f-stack / acl_check_alg_arm

Function acl_check_alg_arm

dpdk/lib/acl/rte_acl.c:108–124  ·  view source on GitHub ↗

* Helper function for acl_check_alg. * Check support for ARM specific classify methods. */

Source from the content-addressed store, hash-verified

106 * Check support for ARM specific classify methods.
107 */
108static int
109acl_check_alg_arm(enum rte_acl_classify_alg alg)
110{
111 if (alg == RTE_ACL_CLASSIFY_NEON) {
112#if defined(RTE_ARCH_ARM64)
113 if (rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)
114 return 0;
115#elif defined(RTE_ARCH_ARM)
116 if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON) &&
117 rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)
118 return 0;
119#endif
120 return -ENOTSUP;
121 }
122
123 return -EINVAL;
124}
125
126/*
127 * Helper function for acl_check_alg.

Callers 1

acl_check_algFunction · 0.85

Calls 2

rte_cpu_get_flag_enabledFunction · 0.50

Tested by

no test coverage detected