* Helper function for acl_check_alg. * Check support for ARM specific classify methods. */
| 106 | * Check support for ARM specific classify methods. |
| 107 | */ |
| 108 | static int |
| 109 | acl_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. |
no test coverage detected