Home
last modified time | relevance | path

Searched refs:ptypes (Results 1 – 22 of 22) sorted by relevance

/dpdk/lib/node/
H A Dethdev_rx.c148 uint32_t ptypes[MAX_PTYPES]; in ethdev_ptype_setup() local
152 rc = rte_eth_dev_get_supported_ptypes(port, RTE_PTYPE_L3_MASK, ptypes, in ethdev_ptype_setup()
155 if (ptypes[i] & RTE_PTYPE_L3_IPV4) in ethdev_ptype_setup()
157 if (ptypes[i] & RTE_PTYPE_L3_IPV6) in ethdev_ptype_setup()
/dpdk/drivers/net/gve/base/
H A Dgve.h37 struct gve_ptype ptypes[GVE_NUM_PTYPES]; member
/dpdk/drivers/net/cnxk/
H A Dcnxk_lookup.c17 static const uint32_t ptypes[] = { in cnxk_nix_supported_ptypes_get() local
54 *no_of_elements = RTE_DIM(ptypes); in cnxk_nix_supported_ptypes_get()
55 return ptypes; in cnxk_nix_supported_ptypes_get()
/dpdk/drivers/net/ngbe/
H A Dngbe_ptypes.c97 static u32 ptypes[] = { in ngbe_get_supported_ptypes() local
116 *no_of_elements = RTE_DIM(ptypes); in ngbe_get_supported_ptypes()
117 return ptypes; in ngbe_get_supported_ptypes()
/dpdk/examples/l3fwd/
H A Dl3fwd_lpm.c674 uint32_t ptypes[ret]; in lpm_check_ptype()
676 ret = rte_eth_dev_get_supported_ptypes(portid, ptype_mask, ptypes, ret); in lpm_check_ptype()
678 if (ptypes[i] & RTE_PTYPE_L3_IPV4) in lpm_check_ptype()
680 if (ptypes[i] & RTE_PTYPE_L3_IPV6) in lpm_check_ptype()
669 uint32_t ptypes[ret]; lpm_check_ptype() local
H A Dl3fwd_em.c490 uint32_t ptypes[ret]; in em_check_ptype() local
492 ret = rte_eth_dev_get_supported_ptypes(portid, ptype_mask, ptypes, ret); in em_check_ptype()
494 switch (ptypes[i]) { in em_check_ptype()
/dpdk/examples/ip_fragmentation/
H A Dmain.c659 uint32_t ptypes[ret]; in check_ptype()
661 ret = rte_eth_dev_get_supported_ptypes(portid, ptype_mask, ptypes, ret); in check_ptype()
663 if (ptypes[i] & RTE_PTYPE_L3_IPV4) in check_ptype()
665 if (ptypes[i] & RTE_PTYPE_L3_IPV6) in check_ptype()
660 uint32_t ptypes[ret]; check_ptype() local
/dpdk/drivers/net/mlx4/
H A Dmlx4_ethdev.c939 static const uint32_t ptypes[] = { in mlx4_dev_supported_ptypes_get() local
966 *no_of_elements = RTE_DIM(ptypes); in mlx4_dev_supported_ptypes_get()
967 return ptypes; in mlx4_dev_supported_ptypes_get()
/dpdk/drivers/net/ionic/
H A Dionic_rxtx.c660 static const uint32_t ptypes[] = { in ionic_dev_supported_ptypes_get() local
671 *no_of_elements = RTE_DIM(ptypes); in ionic_dev_supported_ptypes_get()
672 return ptypes; in ionic_dev_supported_ptypes_get()
/dpdk/lib/ethdev/
H A Drte_ethdev.c2054 eth_dev_buffer_split_get_supported_hdrs_helper(uint16_t port_id, uint32_t **ptypes) in rte_eth_rx_queue_check_split()
2062 *ptypes = malloc(sizeof(uint32_t) * cnt); in rte_eth_rx_queue_check_split()
2063 if (*ptypes == NULL) in rte_eth_rx_queue_check_split()
2066 cnt = rte_eth_buffer_split_get_supported_hdr_ptypes(port_id, *ptypes, cnt); in rte_eth_rx_queue_check_split()
2068 free(*ptypes); in rte_eth_rx_queue_check_split()
2069 *ptypes = NULL; in rte_eth_rx_queue_check_split()
2086 uint32_t *ptypes; in rte_eth_rx_queue_check_split()
2103 ptypes = NULL;
2104 ptype_cnt = eth_dev_buffer_split_get_supported_hdrs_helper(port_id, &ptypes); in rte_eth_rx_queue_check_mempools()
2164 if ((prev_proto_hdrs | proto_hdr) == ptypes[ in rte_eth_rx_queue_setup()
1967 eth_dev_buffer_split_get_supported_hdrs_helper(uint16_t port_id,uint32_t ** ptypes) eth_dev_buffer_split_get_supported_hdrs_helper() argument
1999 uint32_t *ptypes; rte_eth_rx_queue_check_split() local
3855 rte_eth_dev_get_supported_ptypes(uint16_t port_id,uint32_t ptype_mask,uint32_t * ptypes,int num) rte_eth_dev_get_supported_ptypes() argument
6900 rte_eth_buffer_split_get_supported_hdr_ptypes(uint16_t port_id,uint32_t * ptypes,int num) rte_eth_buffer_split_get_supported_hdr_ptypes() argument
[all...]
H A Dethdev_trace.h600 uint32_t ptypes),
604 rte_trace_point_emit_u32(ptypes);
1306 uint32_t ptypes),
1309 rte_trace_point_emit_u32(ptypes);
H A Drte_ethdev.h3569 * function is decided, to obtain correct supported ptypes.
3571 * if a given PMD does not report what ptypes it supports, then the supported
3577 * @param ptypes
3580 * Size of the array pointed by param ptypes.
3582 * - (>=0) Number of supported ptypes. If the number of types exceeds num,
3583 * only num entries will be filled into the ptypes array, but the full
3584 * count of supported ptypes will be returned.
3589 uint32_t *ptypes, int num)
3595 * Application can use this function to set only specific ptypes that it's
3613 * Size of the array pointed by param ptypes
[all...]
/dpdk/drivers/net/txgbe/
H A Dtxgbe_ptypes.c191 static u32 ptypes[] = { in txgbe_get_supported_ptypes() local
210 *no_of_elements = RTE_DIM(ptypes); in txgbe_get_supported_ptypes()
211 return ptypes; in txgbe_get_supported_ptypes()
/dpdk/examples/ipsec-secgw/
H A Dipsec-secgw.c1793 uint32_t ptypes[nb_ptypes]; in check_ptype()
1795 nb_ptypes = rte_eth_dev_get_supported_ptypes(portid, mask, ptypes, nb_ptypes); in check_ptype()
1797 if (RTE_ETH_IS_IPV4_HDR(ptypes[i])) in check_ptype()
1799 if (RTE_ETH_IS_IPV6_HDR(ptypes[i])) in check_ptype()
1801 if ((ptypes[i] & RTE_PTYPE_TUNNEL_MASK) == RTE_PTYPE_TUNNEL_ESP) in check_ptype()
1803 if ((ptypes[i] & RTE_PTYPE_L4_MASK) == RTE_PTYPE_L4_UDP) in check_ptype()
2039 /* Check if required ptypes are supported */ in port_init()
2100 /* Register Rx callback if ptypes are not supported */ in port_init()
1788 uint32_t ptypes[nb_ptypes]; check_ptype() local
/dpdk/drivers/net/mana/
H A Dmana.c400 static const uint32_t ptypes[] = { in mana_supported_ptypes() local
409 *no_of_elements = RTE_DIM(ptypes); in mana_supported_ptypes()
410 return ptypes; in mana_supported_ptypes()
/dpdk/examples/l3fwd-power/
H A Dmain.c2219 uint32_t ptypes[ret]; in check_ptype()
2221 ret = rte_eth_dev_get_supported_ptypes(portid, ptype_mask, ptypes, ret); in check_ptype()
2223 if (ptypes[i] & RTE_PTYPE_L3_IPV4) in check_ptype()
2226 if (ptypes[i] & RTE_PTYPE_L3_IPV6) in check_ptype()
2886 "PMD can not provide needed ptypes\n"); in main()
2204 uint32_t ptypes[ret]; check_ptype() local
/dpdk/drivers/net/sfc/
H A Dsfc_rx.c200 static const uint32_t ptypes[] = { in sfc_efx_supported_ptypes_get() local
208 *no_of_elements = RTE_DIM(ptypes); in sfc_efx_supported_ptypes_get()
209 return ptypes; in sfc_efx_supported_ptypes_get()
/dpdk/drivers/net/atlantic/
H A Datl_ethdev.c1138 static const uint32_t ptypes[] = { in atl_dev_supported_ptypes_get() local
1151 *no_of_elements = RTE_DIM(ptypes); in atl_dev_supported_ptypes_get()
1152 return ptypes; in atl_dev_supported_ptypes_get()
/dpdk/drivers/net/cxgbe/
H A Dcxgbe_ethdev.c1156 static const uint32_t ptypes[] = { in cxgbe_dev_supported_ptypes_get() local
1162 *no_of_elements = RTE_DIM(ptypes); in cxgbe_dev_supported_ptypes_get()
1163 return ptypes; in cxgbe_dev_supported_ptypes_get()
/dpdk/doc/guides/rel_notes/
H A Drelease_19_11.rst265 * **Updated testpmd with a command for ptypes.**
267 * Added a console command to testpmd app, ``show port (port_id) ptypes`` which
268 gives ability to print port supported ptypes in different protocol layers.
H A Drelease_16_04.rst435 really set it. For those devices that don't set ptypes, add an option to parse it.
/dpdk/drivers/net/qede/
H A Dqede_ethdev.c2060 static const uint32_t ptypes[] = { in qede_dev_supported_ptypes_get() local
2084 *no_of_elements = RTE_DIM(ptypes); in qede_dev_supported_ptypes_get()
2085 return ptypes; in qede_dev_supported_ptypes_get()