1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2022 StarFive
3 * Copyright(c) 2022 SiFive
4 * Copyright(c) 2022 Semihalf
7 #ifndef _RTE_LPM_SCALAR_H_
8 #define _RTE_LPM_SCALAR_H_
17 rte_lpm_lookupx4(const struct rte_lpm *lpm, xmm_t ip, uint32_t hop[4],
23 ret = rte_lpm_lookup(lpm, ((rte_xmm_t)ip).u32[0], &nh);
24 hop[0] = (ret == 0) ? nh : defv;
25 ret = rte_lpm_lookup(lpm, ((rte_xmm_t)ip).u32[1], &nh);
26 hop[1] = (ret == 0) ? nh : defv;
27 ret = rte_lpm_lookup(lpm, ((rte_xmm_t)ip).u32[2], &nh);
28 hop[2] = (ret == 0) ? nh : defv;
29 ret = rte_lpm_lookup(lpm, ((rte_xmm_t)ip).u32[3], &nh);
30 hop[3] = (ret == 0) ? nh : defv;
37 #endif /* _RTE_LPM_SCALAR_H_ */