| /dpdk/lib/node/ |
| H A D | pkt_cls.c | 34 uint8_t l0, l1, l2, l3, last_type; in pkt_cls_node_process() local 83 l3 = mbuf3->packet_type & in pkt_cls_node_process() 90 (last_type ^ l2) | (last_type ^ l3); in pkt_cls_node_process() 132 if (p_nxt[l3] == next_index) { in pkt_cls_node_process() 138 p_nxt[l3], from[3]); in pkt_cls_node_process() 142 if ((last_type != l3) && (l2 == l3) && in pkt_cls_node_process() 143 (next_index != p_nxt[l3])) { in pkt_cls_node_process() 153 next_index = p_nxt[l3]; in pkt_cls_node_process() 154 last_type = l3; in pkt_cls_node_process() 158 } else if (next_index == p_nxt[l3]) { in pkt_cls_node_process() [all …]
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_rxr.h | 335 uint32_t l3, pkt_type = 0, vlan = 0; in bnxt_parse_pkt_type_v2() local 355 l3 = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN; in bnxt_parse_pkt_type_v2() 357 l3 = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN; in bnxt_parse_pkt_type_v2() 359 l3 = RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN; in bnxt_parse_pkt_type_v2() 361 l3 = RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN; in bnxt_parse_pkt_type_v2() 366 pkt_type |= l3 | RTE_PTYPE_L4_ICMP; in bnxt_parse_pkt_type_v2() 372 pkt_type |= l3 | RTE_PTYPE_L4_TCP; in bnxt_parse_pkt_type_v2() 374 pkt_type |= l3 | RTE_PTYPE_INNER_L4_TCP; in bnxt_parse_pkt_type_v2() 378 pkt_type |= l3 | RTE_PTYPE_L4_UDP; in bnxt_parse_pkt_type_v2() 380 pkt_type |= l3 | RTE_PTYPE_INNER_L4_UDP; in bnxt_parse_pkt_type_v2() [all …]
|
| H A D | bnxt_rxr.c | 478 uint32_t l3; in bnxt_init_ptype_table() local 495 l3 = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN; in bnxt_init_ptype_table() 497 l3 = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN; in bnxt_init_ptype_table() 499 l3 = RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN; in bnxt_init_ptype_table() 506 pt[i] |= l3 | RTE_PTYPE_INNER_L4_ICMP; in bnxt_init_ptype_table() 508 pt[i] |= l3 | RTE_PTYPE_L4_ICMP; in bnxt_init_ptype_table() 512 pt[i] |= l3 | RTE_PTYPE_INNER_L4_TCP; in bnxt_init_ptype_table() 514 pt[i] |= l3 | RTE_PTYPE_L4_TCP; in bnxt_init_ptype_table() 518 pt[i] |= l3 | RTE_PTYPE_INNER_L4_UDP; in bnxt_init_ptype_table() 520 pt[i] |= l3 | RTE_PTYPE_L4_UDP; in bnxt_init_ptype_table() [all …]
|
| H A D | bnxt_vnic.c | 251 bool l3 = (hash_f & (RTE_ETH_RSS_IPV4 | RTE_ETH_RSS_IPV6)); in bnxt_rte_to_hwrm_hash_level() local 256 bool l3_only = l3 && !l4; in bnxt_rte_to_hwrm_hash_level() 257 bool l3_and_l4 = l3 && l4; in bnxt_rte_to_hwrm_hash_level()
|
| /dpdk/app/test/ |
| H A D | test_cksum.c | 98 uint32_t l3; in test_l4_cksum() local 113 l3 = packet_type & RTE_PTYPE_L3_MASK; in test_l4_cksum() 120 if (l3 == RTE_PTYPE_L3_IPV4 || l3 == RTE_PTYPE_L3_IPV4_EXT) { in test_l4_cksum() 177 } else if (l3 == RTE_PTYPE_L3_IPV6 || l3 == RTE_PTYPE_L3_IPV6_EXT) { in test_l4_cksum()
|
| H A D | test_mbuf.c | 1413 uint16_t l3; in test_tx_offload() member 1421 txof.l3 = rte_rand() % (1 << RTE_MBUF_L3_LEN_BITS); in test_tx_offload() 1434 txof.l2, txof.l3, txof.l4, txof.tso, txof.l3, txof.l2); in test_tx_offload() 1447 set_tx_offload(mb + i, txof.l2, txof.l3, txof.l4, in test_tx_offload() 1448 txof.tso, txof.l3, txof.l2); in test_tx_offload() 1461 mb[i].tx_offload = rte_mbuf_tx_offload(txof.l2, txof.l3, in test_tx_offload() 1462 txof.l4, txof.tso, txof.l3, txof.l2, 0); in test_tx_offload()
|
| H A D | test_cryptodev_security_ipsec.c | 332 test_ipsec_csum_init(void *ip, bool l3, bool l4) in test_ipsec_csum_init() argument 345 if (l3) in test_ipsec_csum_init()
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_fdir_filter.c | 2008 l3 = RTE_FLOW_ITEM_TYPE_IPV4; in ice_fdir_parse_pattern() 2094 l3 = RTE_FLOW_ITEM_TYPE_IPV6; in ice_fdir_parse_pattern() 2168 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in ice_fdir_parse_pattern() 2170 if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in ice_fdir_parse_pattern() 2220 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in ice_fdir_parse_pattern() 2222 if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in ice_fdir_parse_pattern() 2266 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in ice_fdir_parse_pattern() 2268 if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in ice_fdir_parse_pattern() 2313 l3 = RTE_FLOW_ITEM_TYPE_END; in ice_fdir_parse_pattern() 2336 l3 = RTE_FLOW_ITEM_TYPE_END; in ice_fdir_parse_pattern() [all …]
|
| H A D | ice_acl_filter.c | 660 enum rte_flow_item_type l3 = RTE_FLOW_ITEM_TYPE_END; in ice_acl_parse_pattern() local 714 l3 = RTE_FLOW_ITEM_TYPE_IPV4; in ice_acl_parse_pattern() 766 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in ice_acl_parse_pattern() 794 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4 && in ice_acl_parse_pattern() 803 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4 && in ice_acl_parse_pattern() 817 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in ice_acl_parse_pattern() 840 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4 && in ice_acl_parse_pattern() 849 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4 && in ice_acl_parse_pattern() 863 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in ice_acl_parse_pattern() 876 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4 && in ice_acl_parse_pattern() [all …]
|
| /dpdk/lib/net/ |
| H A D | rte_higig.h | 72 uint32_t l3:1; member 92 uint32_t l3:1;
|
| H A D | rte_net.c | 247 goto l3; /* fast path if packet is IPv4 */ in rte_net_get_ptype() 292 l3: in rte_net_get_ptype()
|
| /dpdk/drivers/net/iavf/ |
| H A D | iavf_fdir.c | 722 enum rte_flow_item_type l3 = RTE_FLOW_ITEM_TYPE_END; in iavf_fdir_parse_pattern() local 829 l3 = RTE_FLOW_ITEM_TYPE_IPV4; in iavf_fdir_parse_pattern() 936 l3 = RTE_FLOW_ITEM_TYPE_IPV6; in iavf_fdir_parse_pattern() 1072 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in iavf_fdir_parse_pattern() 1076 else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in iavf_fdir_parse_pattern() 1121 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in iavf_fdir_parse_pattern() 1125 else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in iavf_fdir_parse_pattern() 1159 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in iavf_fdir_parse_pattern() 1163 else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in iavf_fdir_parse_pattern()
|
| /dpdk/lib/ipsec/ |
| H A D | esp_outb.c | 442 uint32_t i, k, n, l2, l3; in esp_outb_trs_prepare() local 463 l3 = mb[i]->l3_len; in esp_outb_trs_prepare() 475 outb_cop_prepare(cop[k], sa, iv, &icv, l2 + l3, rc); in esp_outb_trs_prepare() 538 uint32_t l2, l3; in cpu_outb_pkt_prepare() local 558 l3 = mb[i]->l3_len; in cpu_outb_pkt_prepare() 561 l4ofs[k] = (l2 + l3) & cofs_mask; in cpu_outb_pkt_prepare()
|
| /dpdk/drivers/net/ngbe/ |
| H A D | ngbe_ptypes.c | 22 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument 24 RTE_PTYPE_L3_##l3 | \
|
| H A D | ngbe_ptypes.h | 97 u32 l3:4; /* outer internet protocol */ member
|
| /dpdk/drivers/net/i40e/ |
| H A D | i40e_flow.c | 2534 l3 = RTE_FLOW_ITEM_TYPE_IPV4; in i40e_flow_parse_fdir_pattern() 2690 l3 = RTE_FLOW_ITEM_TYPE_IPV6; in i40e_flow_parse_fdir_pattern() 2771 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in i40e_flow_parse_fdir_pattern() 2774 else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in i40e_flow_parse_fdir_pattern() 2809 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) { in i40e_flow_parse_fdir_pattern() 2830 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in i40e_flow_parse_fdir_pattern() 2833 else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) in i40e_flow_parse_fdir_pattern() 2864 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) { in i40e_flow_parse_fdir_pattern() 2949 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) in i40e_flow_parse_fdir_pattern() 2974 if (l3 == RTE_FLOW_ITEM_TYPE_IPV4) { in i40e_flow_parse_fdir_pattern() [all …]
|
| H A D | rte_pmd_i40e.c | 2127 uint32_t l2, l3, l4, tnl, il2, il3, il4; in check_invalid_pkt_type() local 2130 l3 = pkt_type & RTE_PTYPE_L3_MASK; in check_invalid_pkt_type() 2148 if (l3 && in check_invalid_pkt_type() 2149 l3 != RTE_PTYPE_L3_IPV4 && in check_invalid_pkt_type() 2150 l3 != RTE_PTYPE_L3_IPV4_EXT && in check_invalid_pkt_type() 2151 l3 != RTE_PTYPE_L3_IPV6 && in check_invalid_pkt_type() 2152 l3 != RTE_PTYPE_L3_IPV4_EXT_UNKNOWN && in check_invalid_pkt_type() 2153 l3 != RTE_PTYPE_L3_IPV6_EXT && in check_invalid_pkt_type() 2154 l3 != RTE_PTYPE_L3_IPV6_EXT_UNKNOWN) in check_invalid_pkt_type()
|
| /dpdk/drivers/net/qede/ |
| H A D | qede_filter.c | 762 bool l3 = false, l4 = false; in qede_flow_parse_pattern() local 804 l3 = true; in qede_flow_parse_pattern() 818 l3 = true; in qede_flow_parse_pattern() 874 if (!(l3 && l4)) { in qede_flow_parse_pattern()
|
| /dpdk/examples/l3fwd/ |
| H A D | l3fwd_em.c | 517 void *l3; in em_parse_ptype() local 524 l3 = (uint8_t *)eth_hdr + sizeof(struct rte_ether_hdr); in em_parse_ptype() 526 ipv4_hdr = (struct rte_ipv4_hdr *)l3; in em_parse_ptype() 537 ipv6_hdr = (struct rte_ipv6_hdr *)l3; in em_parse_ptype()
|
| /dpdk/drivers/net/enic/ |
| H A D | enic_fm_flow.c | 510 memcpy(&fm_data->l3.ip4, spec, sizeof(*spec)); in enic_fm_copy_item_ipv4() 511 memcpy(&fm_mask->l3.ip4, mask, sizeof(*mask)); in enic_fm_copy_item_ipv4() 538 memcpy(&fm_data->l3.ip6, spec, sizeof(struct rte_ipv6_hdr)); in enic_fm_copy_item_ipv6() 621 ip = (struct rte_ipv4_hdr *)&fm_mask->l3.ip4; in enic_fm_copy_item_sctp() 623 ip = (struct rte_ipv4_hdr *)&fm_data->l3.ip4; in enic_fm_copy_item_sctp() 628 ip = (struct rte_ipv6_hdr *)&fm_mask->l3.ip6; in enic_fm_copy_item_sctp() 630 ip = (struct rte_ipv6_hdr *)&fm_data->l3.ip6; in enic_fm_copy_item_sctp() 931 fm_data_to = &fm_data->l3.rawdata[0]; in enic_fm_copy_item_ecpri() 932 fm_mask_to = &fm_mask->l3.rawdata[0]; in enic_fm_copy_item_ecpri() 1029 hdr->l3.ip4.fk_saddr = 0xFFFFFFFF; in enic_fet_alloc() [all …]
|
| /dpdk/drivers/net/txgbe/ |
| H A D | txgbe_ptypes.h | 127 u32 l3:4; /* outer internet protocol */ member
|
| H A D | txgbe_ptypes.c | 33 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument 35 RTE_PTYPE_L3_##l3 | \
|
| /dpdk/drivers/net/enic/base/ |
| H A D | vnic_flowman.h | 146 } __rte_packed l3; member
|
| /dpdk/drivers/net/tap/ |
| H A D | rte_eth_tap.c | 311 uint32_t l3 = mbuf->packet_type & RTE_PTYPE_L3_MASK; in tap_verify_csum() local 329 if (l3 == RTE_PTYPE_L3_IPV4 || l3 == RTE_PTYPE_L3_IPV4_EXT) { in tap_verify_csum() 346 } else if (l3 == RTE_PTYPE_L3_IPV6) { in tap_verify_csum() 371 if (l3 == RTE_PTYPE_L3_IPV4 || l3 == RTE_PTYPE_L3_IPV4_EXT) { in tap_verify_csum()
|
| /dpdk/doc/guides/nics/ |
| H A D | hns3.rst | 215 actions rss types ipv4-tcp l3-src-only end queues end / end
|