src/dpdk/lib/librte_acl/rte_acl.c
static int
acl_check_alg_ppc(enum rte_acl_classify_alg alg)
{
	if (alg == RTE_ACL_CLASSIFY_ALTIVEC) {
#if defined(RTE_ARCH_PPC_64)
		if (rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)
			return 0;
#endif
		return -ENOTSUP;
	}

	return -EINVAL;
}
/*
 * Helper function for acl_check_alg.
 * Check support for PPC specific classify methods.
 */
Helper function for acl_check_alg.
Check support for PPC specific classify methods.
Helper function for acl_check_alg . Check support for PPC specific classify methods .
static int
acl_check_alg_ppc(enum rte_acl_classify_alg alg)
{
	if (alg == RTE_ACL_CLASSIFY_ALTIVEC) {
#if defined(RTE_ARCH_PPC_64)
		if (rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)
			return 0;
#endif
		return -ENOTSUP;
	}
	return -EINVAL;
}
static int acl_check_alg_ppc ( enum rte_acl_classify_alg alg ) { if ( alg == RTE_ACL_CLASSIFY_ALTIVEC ) { #if defined ( RTE_ARCH_PPC_64 ) if ( rte_vect_get_max_simd_bitwidth ( ) >= RTE_VECT_SIMD_128 ) return 0 ; #endif return - ENOTSUP ; } return - EINVAL ; }
Helper function for acl_check_alg.
Helper function for acl_check_alg .