Home
last modified time | relevance | path

Searched refs:next_proto (Results 1 – 23 of 23) sorted by relevance

/dpdk/app/test-pmd/
H A D5tswap.c90 uint16_t next_proto; in pkt_burst_5tuple_swap() local
144 next_proto = h.ipv4->next_proto_id; in pkt_burst_5tuple_swap()
149 next_proto = h.ipv6->proto; in pkt_burst_5tuple_swap()
156 if (next_proto == IPPROTO_UDP) { in pkt_burst_5tuple_swap()
159 } else if (next_proto == IPPROTO_TCP) { in pkt_burst_5tuple_swap()
H A Dcmdline_flow.c10621 update_fields(uint8_t *buf, struct rte_flow_item *item, uint16_t next_proto) in update_fields() argument
10634 if (next_proto) in update_fields()
10635 eth->ether_type = rte_cpu_to_be_16(next_proto); in update_fields()
10641 if (next_proto && ipv4->next_proto_id == 0) in update_fields()
10642 ipv4->next_proto_id = (uint8_t)next_proto; in update_fields()
10646 if (next_proto && ipv6->proto == 0) in update_fields()
10647 ipv6->proto = (uint8_t)next_proto; in update_fields()
/dpdk/drivers/net/ice/base/
H A Dice_pg_cam.c19 ice_info(hw, "\tnext_proto = 0x%08x\n", key->next_proto); in _pg_cam_key_dump()
155 key->next_proto = (*(u32 *)&data[5] >> 1); in _pg_cam_key_init()
156 key->next_proto |= ((u32)(data[9] & 0x1) << 31); in _pg_cam_key_init()
311 item->key.next_proto != key->next_proto) in _pg_cam_match()
H A Dice_pg_cam.h22 u32 next_proto; member
H A Dice_parser_rt.c234 rt->pg_key.next_proto = _pk_build(rt, &imem->np_kb); in _imem_pgk_init()
256 rt->pg_key.next_proto); in _imem_pgk_init()
292 rt->pg_key.next_proto = _pk_build(rt, &bst->np_kb); in _bst_pgk_init()
314 rt->pg_key.next_proto); in _bst_pgk_init()
/dpdk/lib/net/
H A Drte_ip.h799 int next_proto; in rte_ipv6_get_next_ext() local
803 next_proto = *p++; in rte_ipv6_get_next_ext()
810 next_proto = *p++; in rte_ipv6_get_next_ext()
815 next_proto = *p; in rte_ipv6_get_next_ext()
823 return next_proto; in rte_ipv6_get_next_ext()
H A Drte_esp.h33 uint8_t next_proto; /**< IPv4 or IPv6 or next layer header */ member
/dpdk/lib/ipsec/
H A Drte_ipsec_sa.h42 uint8_t next_proto; /**< next header protocol */ member
H A Dsa.c200 if (prm->tun.next_proto == IPPROTO_IPIP) in fill_sa_type()
202 else if (prm->tun.next_proto == IPPROTO_IPV6) in fill_sa_type()
286 sa->proto = prm->tun.next_proto; in esp_inb_tun_init()
356 sa->proto = prm->tun.next_proto; in esp_outb_tun_init()
H A Desp_inb.c486 espt.next_proto != proto); in tun_process_check()
676 l2, hl[i] - l2, espt[i].next_proto); in trs_process()
H A Desp_outb.c228 espt->next_proto = sa->proto; in outb_tun_pkt_prepare()
425 espt->next_proto = np; in outb_trs_pkt_prepare()
/dpdk/drivers/net/iavf/
H A Diavf_ipsec_crypto.h97 uint8_t next_proto; /* Next Protocol (8b/1B) */ member
H A Diavf_ipsec_crypto.c1165 md->next_proto = esp_tail->next_proto; in iavf_ipsec_crypto_pkt_metadata_set()
H A Diavf_rxtx.c2471 ((uint64_t)md->next_proto << in iavf_fill_ipsec_desc()
/dpdk/app/test/
H A Dtest_cryptodev_security_ipsec.c337 uint8_t next_proto; in test_ipsec_csum_init() local
343 next_proto = ipv4->next_proto_id; in test_ipsec_csum_init()
349 next_proto = ((struct rte_ipv6_hdr *)ip)->proto; in test_ipsec_csum_init()
353 switch (next_proto) { in test_ipsec_csum_init()
H A Dtest_ipsec_perf.c174 prm->tun.next_proto = IPPROTO_IPIP; in fill_ipsec_param()
H A Dtest_ipsec.c601 .next_proto = IPPROTO_IPIP, in setup_test_string_tunneled()
711 prm->tun.next_proto = IPPROTO_IPIP; in fill_ipsec_param()
/dpdk/drivers/net/i40e/
H A Di40e_fdir.c746 uint8_t next_proto, uint8_t len, uint16_t *ether_type) in fill_ip6_head() argument
757 fdir_input->flow.ipv6_flow.proto : next_proto; in fill_ip6_head()
777 uint8_t next_proto, uint8_t len, uint16_t *ether_type) in fill_ip4_head() argument
792 fdir_input->flow.ip4_flow.proto : next_proto; in fill_ip4_head()
817 static const uint8_t next_proto[] = { in i40e_flow_fdir_fill_eth_ip_head() local
877 next_proto[pctype], len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
884 next_proto[pctype], len, in i40e_flow_fdir_fill_eth_ip_head()
/dpdk/examples/ipsec-secgw/
H A Dipsec-secgw.c424 int next_proto; in prepare_one_packet() local
433 next_proto = iph6->proto; in prepare_one_packet()
438 while (next_proto != IPPROTO_ESP && l3len < pkt->data_len && in prepare_one_packet()
439 (next_proto = rte_ipv6_get_next_ext(p + l3len, in prepare_one_packet()
440 next_proto, &ext_len)) >= 0) in prepare_one_packet()
449 switch (next_proto) { in prepare_one_packet()
H A Dsa.c1467 prm->tun.next_proto = rc; in fill_ipsec_sa_prm()
1472 prm->tun.next_proto = rc; in fill_ipsec_sa_prm()
/dpdk/lib/ethdev/
H A Drte_flow.h1703 uint32_t next_proto:8; member
1712 .next_proto = 0xff,
/dpdk/drivers/net/mlx5/
H A Dmlx5_flow.c2482 uint8_t next_proto = 0xFF; in mlx5_flow_validate_item_ipv4() local
2497 if (next_proto == IPPROTO_IPIP || next_proto == IPPROTO_IPV6) in mlx5_flow_validate_item_ipv4()
2588 uint8_t next_proto = 0xFF; in mlx5_flow_validate_item_ipv6() local
2600 next_proto = spec->hdr.proto; in mlx5_flow_validate_item_ipv6()
2602 if (next_proto == IPPROTO_IPIP || next_proto == IPPROTO_IPV6) in mlx5_flow_validate_item_ipv6()
2609 if (next_proto == IPPROTO_HOPOPTS || in mlx5_flow_validate_item_ipv6()
2610 next_proto == IPPROTO_ROUTING || in mlx5_flow_validate_item_ipv6()
2611 next_proto == IPPROTO_FRAGMENT || in mlx5_flow_validate_item_ipv6()
2612 next_proto == IPPROTO_ESP || in mlx5_flow_validate_item_ipv6()
2613 next_proto == IPPROTO_AH || in mlx5_flow_validate_item_ipv6()
[all …]
/dpdk/doc/guides/prog_guide/
H A Drte_flow.rst1400 - ``next_proto``: indicates protocol type of encap data (8 bits).
1403 - Default ``mask`` matches mdtype, next_proto, spi, sindex.