* Helper function for acl_check_alg. * Check support for PPC specific classify methods. */
| 128 | * Check support for PPC specific classify methods. |
| 129 | */ |
| 130 | static int |
| 131 | acl_check_alg_ppc(enum rte_acl_classify_alg alg) |
| 132 | { |
| 133 | if (alg == RTE_ACL_CLASSIFY_ALTIVEC) { |
| 134 | #if defined(RTE_ARCH_PPC_64) |
| 135 | if (rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) |
| 136 | return 0; |
| 137 | #endif |
| 138 | return -ENOTSUP; |
| 139 | } |
| 140 | |
| 141 | return -EINVAL; |
| 142 | } |
| 143 | |
| 144 | #ifdef CC_AVX512_SUPPORT |
| 145 | static int |
no test coverage detected