| /f-stack/dpdk/lib/librte_net/ |
| H A D | rte_arp.c | 34 eth_hdr->ether_type = RTE_BE16(RTE_ETHER_TYPE_RARP); in rte_net_make_rarp_packet() 38 rarp->arp_hardware = RTE_BE16(RTE_ARP_HRD_ETHER); in rte_net_make_rarp_packet() 39 rarp->arp_protocol = RTE_BE16(RTE_ETHER_TYPE_IPV4); in rte_net_make_rarp_packet() 42 rarp->arp_opcode = RTE_BE16(RTE_ARP_OP_REVREQUEST); in rte_net_make_rarp_packet()
|
| /f-stack/dpdk/lib/librte_ethdev/ |
| H A D | rte_flow.h | 749 .type = RTE_BE16(0x0000), 779 .tci = RTE_BE16(0x0fff), 780 .inner_type = RTE_BE16(0x0000), 882 .src_port = RTE_BE16(0xffff), 883 .dst_port = RTE_BE16(0xffff), 901 .src_port = RTE_BE16(0xffff), 902 .dst_port = RTE_BE16(0xffff), 920 .src_port = RTE_BE16(0xffff), 921 .dst_port = RTE_BE16(0xffff), 1035 .protocol = RTE_BE16(0xffff), [all …]
|
| /f-stack/dpdk/app/test-flow-perf/ |
| H A D | actions_gen.c | 355 set_tp.port = RTE_BE16(tp & 0xffff); in add_set_src_tp() 377 set_tp.port = RTE_BE16(tp & 0xffff); in add_set_dst_tp() 545 eth_hdr.ether_type = RTE_BE16(RTE_ETHER_TYPE_VLAN); in add_ether_header() 547 eth_hdr.ether_type = RTE_BE16(RTE_ETHER_TYPE_IPV4); in add_ether_header() 549 eth_hdr.ether_type = RTE_BE16(RTE_ETHER_TYPE_IPV6); in add_ether_header() 567 vlan_hdr.vlan_tci = RTE_BE16(vlan_value); in add_vlan_header() 570 vlan_hdr.eth_proto = RTE_BE16(RTE_ETHER_TYPE_IPV4); in add_vlan_header() 572 vlan_hdr.eth_proto = RTE_BE16(RTE_ETHER_TYPE_IPV6); in add_vlan_header() 636 udp_hdr.dst_port = RTE_BE16(RTE_GENEVE_UDP_PORT); in add_udp_header() 638 udp_hdr.dst_port = RTE_BE16(RTE_GTPU_UDP_PORT); in add_udp_header() [all …]
|
| H A D | items_gen.c | 49 vlan_spec.tci = RTE_BE16(vlan_value); in add_vlan() 50 vlan_mask.tci = RTE_BE16(0xffff); in add_vlan() 206 gre_spec.protocol = RTE_BE16(proto); in add_gre() 207 gre_mask.protocol = RTE_BE16(0xffff); in add_gre()
|
| /f-stack/dpdk/app/test-pmd/ |
| H A D | 5tswap.c | 136 while (proto == RTE_BE16(RTE_ETHER_TYPE_VLAN) || in pkt_burst_5tuple_swap() 137 proto == RTE_BE16(RTE_ETHER_TYPE_QINQ)) { in pkt_burst_5tuple_swap() 142 if (proto == RTE_BE16(RTE_ETHER_TYPE_IPV4)) { in pkt_burst_5tuple_swap() 147 } else if (proto == RTE_BE16(RTE_ETHER_TYPE_IPV6)) { in pkt_burst_5tuple_swap()
|
| /f-stack/dpdk/lib/librte_eal/include/generic/ |
| H A D | rte_byteorder.h | 86 #define RTE_BE16(v) (rte_be16_t)(v) macro 93 #define RTE_BE16(v) (rte_be16_t)(RTE_STATIC_BSWAP16(v)) macro
|
| /f-stack/dpdk/drivers/net/sfc/ |
| H A D | sfc_mae.c | 460 RTE_BE16(RTE_ETHER_TYPE_VLAN), in sfc_mae_rule_process_pattern_data() 463 RTE_BE16(RTE_ETHER_TYPE_QINQ), in sfc_mae_rule_process_pattern_data() 464 RTE_BE16(RTE_ETHER_TYPE_QINQ1), in sfc_mae_rule_process_pattern_data() 465 RTE_BE16(RTE_ETHER_TYPE_QINQ2), in sfc_mae_rule_process_pattern_data() 466 RTE_BE16(RTE_ETHER_TYPE_QINQ3), in sfc_mae_rule_process_pattern_data() 494 if (ethertypes[ethertype_idx].mask != RTE_BE16(0xffff)) { in sfc_mae_rule_process_pattern_data() 518 et->mask = RTE_BE16(0xffff); in sfc_mae_rule_process_pattern_data() 521 } else if (et->mask != RTE_BE16(0xffff) || in sfc_mae_rule_process_pattern_data() 1062 rte_be16_t ethertype_ipv4_be = RTE_BE16(RTE_ETHER_TYPE_IPV4); in sfc_mae_rule_parse_item_ipv4() 1082 pdata->innermost_ethertype_restriction.mask = RTE_BE16(0xffff); in sfc_mae_rule_parse_item_ipv4() [all …]
|
| H A D | sfc_flow.c | 389 .inner_type = RTE_BE16(0xffff), in sfc_flow_parse_vlan() 968 .protocol = RTE_BE16(0xffff), in sfc_flow_parse_geneve()
|
| /f-stack/dpdk/drivers/net/mlx4/ |
| H A D | mlx4_flow.c | 305 if (mask->tci != RTE_BE16(0x0fff)) { in mlx4_flow_merge_vlan() 596 .tci = RTE_BE16(0x0fff), 620 .src_port = RTE_BE16(0xffff), 621 .dst_port = RTE_BE16(0xffff), 632 .src_port = RTE_BE16(0xffff), 633 .dst_port = RTE_BE16(0xffff), 1312 .tci = RTE_BE16(0x0fff), in mlx4_flow_internal() 1421 eth->mask.vlan_tag != RTE_BE16(0x0fff))) in mlx4_flow_internal()
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_flow_dv.c | 1643 .tci = RTE_BE16(UINT16_MAX), in flow_dv_validate_item_vlan() 1644 .inner_type = RTE_BE16(UINT16_MAX), in flow_dv_validate_item_vlan() 1908 .frag_data = RTE_BE16(0xffff), in flow_dv_validate_item_ipv6_frag_ext() 2086 .inner_type = RTE_BE16(0xffff), in flow_dev_get_vlan_info_from_items() 3373 proto = RTE_BE16(eth->ether_type); in flow_dv_zero_encap_udp_csum() 3378 proto = RTE_BE16(vlan->eth_proto); in flow_dv_zero_encap_udp_csum() 6342 .type = RTE_BE16(0xffff), in flow_dv_translate_item_eth() 6732 .frag_data = RTE_BE16(0xffff), in flow_dv_translate_item_ipv6_frag_ext() 7004 .c_rsvd0_ver = RTE_BE16(0x2000), in flow_dv_translate_item_nvgre() 7008 .c_rsvd0_ver = RTE_BE16(0xB000), in flow_dv_translate_item_nvgre() [all …]
|
| H A D | mlx5_txpp.c | 409 es->inline_hdr_sz = RTE_BE16(MLX5_TXPP_TEST_PKT_SIZE); in mlx5_txpp_fill_wqe_clock_queue() 425 ip_hdr->total_length = RTE_BE16(MLX5_TXPP_TEST_PKT_SIZE - in mlx5_txpp_fill_wqe_clock_queue() 440 udp_hdr->src_port = RTE_BE16(9); /* RFC863 Discard. */ in mlx5_txpp_fill_wqe_clock_queue() 441 udp_hdr->dst_port = RTE_BE16(9); in mlx5_txpp_fill_wqe_clock_queue() 442 udp_hdr->dgram_len = RTE_BE16(MLX5_TXPP_TEST_PKT_SIZE - in mlx5_txpp_fill_wqe_clock_queue()
|
| H A D | mlx5_flow.c | 132 if (ether_type_m != RTE_BE16(0xFFFF)) in mlx5_flow_expand_rss_item_complete() 151 if (ether_type_m != RTE_BE16(0xFFFF)) in mlx5_flow_expand_rss_item_complete() 1751 .hdr.icmp_ident = RTE_BE16(0xffff), in mlx5_flow_validate_item_icmp() 1752 .hdr.icmp_seq_nb = RTE_BE16(0xffff), in mlx5_flow_validate_item_icmp() 1809 .type = RTE_BE16(0xffff), in mlx5_flow_validate_item_eth() 1865 .tci = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_vlan() 1866 .inner_type = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_vlan() 2477 .c_rsvd0_ver = RTE_BE16(0xB000), in mlx5_flow_validate_item_gre() 2478 .protocol = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_gre() 2549 .protocol = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_geneve() [all …]
|
| H A D | mlx5_rxtx.c | 1354 RTE_BE16(MLX5_CQE_VLAN_STRIPPED); in rxq_cq_to_mbuf() 1357 RTE_BE16(MLX5_CQE_VLAN_STRIPPED); in rxq_cq_to_mbuf() 1580 while (proto == RTE_BE16(RTE_ETHER_TYPE_VLAN) || in mlx5_lro_update_hdr() 1581 proto == RTE_BE16(RTE_ETHER_TYPE_QINQ)) { in mlx5_lro_update_hdr() 1585 if (proto == RTE_BE16(RTE_ETHER_TYPE_IPV4)) { in mlx5_lro_update_hdr() 2394 es->inline_hdr_sz = RTE_BE16(MLX5_ESEG_MIN_INLINE_SIZE); in mlx5_tx_eseg_dmin()
|
| /f-stack/lib/ |
| H A D | ff_dpdk_if.c | 922 .src_port = RTE_BE16(0x0000), in create_tcp_flow() 923 .dst_port = RTE_BE16(0xffff), in create_tcp_flow() 964 .src_port = RTE_BE16(0xffff), in create_tcp_flow() 965 .dst_port = RTE_BE16(0x0000), in create_tcp_flow() 1011 struct rte_flow_item_eth eth_type = {.type = RTE_BE16(0x0806)}; in init_flow() 1013 .type = RTE_BE16(0xffff) in init_flow()
|
| /f-stack/dpdk/drivers/net/dpaa2/ |
| H A D | dpaa2_flow.c | 98 .type = RTE_BE16(0xffff), 102 .tci = RTE_BE16(0xffff), 130 .src_port = RTE_BE16(0xffff), 131 .dst_port = RTE_BE16(0xffff), 137 .src_port = RTE_BE16(0xffff), 138 .dst_port = RTE_BE16(0xffff), 144 .src_port = RTE_BE16(0xffff), 145 .dst_port = RTE_BE16(0xffff), 150 .protocol = RTE_BE16(0xffff),
|
| /f-stack/dpdk/lib/librte_eventdev/ |
| H A D | rte_event_eth_rx_adapter.c | 623 case RTE_BE16(RTE_ETHER_TYPE_IPV4): in rxa_mtoip() 627 case RTE_BE16(RTE_ETHER_TYPE_IPV6): in rxa_mtoip() 631 case RTE_BE16(RTE_ETHER_TYPE_VLAN): in rxa_mtoip() 634 case RTE_BE16(RTE_ETHER_TYPE_IPV4): in rxa_mtoip() 637 case RTE_BE16(RTE_ETHER_TYPE_IPV6): in rxa_mtoip()
|
| /f-stack/dpdk/drivers/net/bnxt/ |
| H A D | bnxt_flow.c | 216 eth_mask->type != RTE_BE16(0xffff)) { in bnxt_validate_and_parse_flow_type() 294 vlan_mask->tci == RTE_BE16(0x0fff)) { in bnxt_validate_and_parse_flow_type() 298 RTE_BE16(0x0fff)); in bnxt_validate_and_parse_flow_type() 309 vlan_mask->inner_type != RTE_BE16(0xffff)) { in bnxt_validate_and_parse_flow_type()
|
| /f-stack/dpdk/drivers/net/hinic/ |
| H A D | hinic_pmd_flow.c | 1923 if (filter->filter_info.dst_port == RTE_BE16(BGP_DPORT_ID) && in hinic_filter_info_init() 1927 RTE_BE16(BGP_DPORT_ID) && in hinic_filter_info_init() 2039 if (filter->filter_info.dst_port == RTE_BE16(BGP_DPORT_ID)) { in hinic_add_5tuple_filter() 2053 RTE_BE16(BGP_DPORT_ID)) { in hinic_add_5tuple_filter() 2112 if (filter->filter_info.dst_port == RTE_BE16(BGP_DPORT_ID)) in hinic_remove_5tuple_filter() 2115 else if (filter->filter_info.src_port == RTE_BE16(BGP_DPORT_ID)) in hinic_remove_5tuple_filter()
|
| /f-stack/dpdk/drivers/net/iavf/ |
| H A D | iavf_fdir.c | 523 if (eth_mask->type != RTE_BE16(0xffff)) { in iavf_fdir_parse_pattern()
|
| /f-stack/dpdk/drivers/net/enic/ |
| H A D | enic_flow.c | 919 udp->dst_port = RTE_BE16(4789); in enic_copy_item_vxlan_v2()
|
| H A D | enic_fm_flow.c | 1529 if (vlan->ethertype != RTE_BE16(RTE_ETHER_TYPE_VLAN)) { in enic_fm_copy_action()
|
| /f-stack/dpdk/drivers/net/tap/ |
| H A D | tap_flow.c | 592 if (mask->inner_type != RTE_BE16(0xffff)) in tap_flow_create_vlan()
|
| /f-stack/dpdk/drivers/net/ice/ |
| H A D | ice_fdir_filter.c | 1691 if (eth_mask->type == RTE_BE16(0xffff) && in ice_fdir_parse_pattern()
|
| /f-stack/dpdk/drivers/net/i40e/ |
| H A D | i40e_flow.c | 2527 if (eth_mask->type != RTE_BE16(0xffff)) { in i40e_flow_parse_fdir_pattern() 2580 if (vlan_mask->inner_type != RTE_BE16(0xffff)) { in i40e_flow_parse_fdir_pattern()
|
| /f-stack/dpdk/drivers/net/bonding/ |
| H A D | rte_eth_bond_pmd.c | 127 .type = RTE_BE16(RTE_ETHER_TYPE_SLOW),
|