Home
last modified time | relevance | path

Searched refs:RTE_BE16 (Results 1 – 25 of 29) sorted by relevance

12

/dpdk/lib/net/
H A Drte_arp.c33 eth_hdr->ether_type = RTE_BE16(RTE_ETHER_TYPE_RARP); in rte_net_make_rarp_packet()
37 rarp->arp_hardware = RTE_BE16(RTE_ARP_HRD_ETHER); in rte_net_make_rarp_packet()
38 rarp->arp_protocol = RTE_BE16(RTE_ETHER_TYPE_IPV4); in rte_net_make_rarp_packet()
41 rarp->arp_opcode = RTE_BE16(RTE_ARP_OP_REVREQUEST); in rte_net_make_rarp_packet()
/dpdk/app/test-pmd/
H A D5tswap.c136 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()
H A Dicmpecho.c476 cksum += ~RTE_BE16(RTE_IP_ICMP_ECHO_REQUEST << 8) & 0xffff; in reply_to_icmp_echo_rqsts()
477 cksum += RTE_BE16(RTE_IP_ICMP_ECHO_REPLY << 8); in reply_to_icmp_echo_rqsts()
/dpdk/lib/ethdev/
H A Drte_flow.h939 .hdr.vlan_tci = RTE_BE16(0x0fff),
940 .hdr.eth_proto = RTE_BE16(0x0000),
1042 .src_port = RTE_BE16(0xffff),
1043 .dst_port = RTE_BE16(0xffff),
1061 .src_port = RTE_BE16(0xffff),
1062 .dst_port = RTE_BE16(0xffff),
1080 .src_port = RTE_BE16(0xffff),
1081 .dst_port = RTE_BE16(0xffff),
1205 .protocol = RTE_BE16(0xffff),
1615 .proto_id = RTE_BE16(0xffff),
[all …]
/dpdk/app/test-flow-perf/
H A Dactions_gen.c350 set_tp[para.core_idx].port = RTE_BE16(tp & 0xffff); in add_set_src_tp()
372 set_tp[para.core_idx].port = RTE_BE16(tp & 0xffff); in add_set_dst_tp()
540 eth_hdr.ether_type = RTE_BE16(RTE_ETHER_TYPE_VLAN); in add_ether_header()
542 eth_hdr.ether_type = RTE_BE16(RTE_ETHER_TYPE_IPV4); in add_ether_header()
544 eth_hdr.ether_type = RTE_BE16(RTE_ETHER_TYPE_IPV6); in add_ether_header()
562 vlan_hdr.vlan_tci = RTE_BE16(vlan_value); in add_vlan_header()
565 vlan_hdr.eth_proto = RTE_BE16(RTE_ETHER_TYPE_IPV4); in add_vlan_header()
567 vlan_hdr.eth_proto = RTE_BE16(RTE_ETHER_TYPE_IPV6); in add_vlan_header()
631 udp_hdr.dst_port = RTE_BE16(RTE_GENEVE_UDP_PORT); in add_udp_header()
633 udp_hdr.dst_port = RTE_BE16(RTE_GTPU_UDP_PORT); in add_udp_header()
[all …]
H A Ditems_gen.c40 .tci = RTE_BE16(VLAN_VALUE), in add_vlan()
43 .tci = RTE_BE16(0xffff), in add_vlan()
176 .protocol = RTE_BE16(RTE_ETHER_TYPE_TEB), in add_gre()
179 .protocol = RTE_BE16(0xffff), in add_gre()
/dpdk/lib/eal/include/generic/
H A Drte_byteorder.h86 #define RTE_BE16(v) (rte_be16_t)(v) macro
93 #define RTE_BE16(v) (rte_be16_t)(RTE_STATIC_BSWAP16(v)) macro
/dpdk/drivers/net/mlx4/
H A Dmlx4_flow.c305 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),
1314 .tci = RTE_BE16(0x0fff), in mlx4_flow_internal()
1423 eth->mask.vlan_tag != RTE_BE16(0x0fff))) in mlx4_flow_internal()
/dpdk/drivers/net/sfc/
H A Dsfc_mae.c1298 RTE_BE16(RTE_ETHER_TYPE_VLAN), in sfc_mae_rule_process_pattern_data()
1301 RTE_BE16(RTE_ETHER_TYPE_QINQ), in sfc_mae_rule_process_pattern_data()
1302 RTE_BE16(RTE_ETHER_TYPE_QINQ1), in sfc_mae_rule_process_pattern_data()
1303 RTE_BE16(RTE_ETHER_TYPE_QINQ2), in sfc_mae_rule_process_pattern_data()
1304 RTE_BE16(RTE_ETHER_TYPE_QINQ3), in sfc_mae_rule_process_pattern_data()
1341 if (tpid_m == RTE_BE16(0)) { in sfc_mae_rule_process_pattern_data()
1351 if (tpid_m != RTE_BE16(0xffff)) { in sfc_mae_rule_process_pattern_data()
1381 et->mask = RTE_BE16(0xffff); in sfc_mae_rule_process_pattern_data()
1383 } else if (et->mask != RTE_BE16(0xffff) || in sfc_mae_rule_process_pattern_data()
3456 *ethertypep = RTE_BE16(RTE_ETHER_TYPE_QINQ); in sfc_mae_rule_parse_action_vxlan_encap()
[all …]
H A Dsfc_flow.c398 .inner_type = RTE_BE16(0xffff), in sfc_flow_parse_vlan()
977 .protocol = RTE_BE16(0xffff), in sfc_flow_parse_geneve()
/dpdk/drivers/net/mlx5/
H A Dmlx5_rx.c767 RTE_BE16(MLX5_CQE_VLAN_STRIPPED); in rxq_cq_to_mbuf()
770 RTE_BE16(MLX5_CQE_VLAN_STRIPPED); in rxq_cq_to_mbuf()
996 while (proto == RTE_BE16(RTE_ETHER_TYPE_VLAN) || in mlx5_lro_update_hdr()
997 proto == RTE_BE16(RTE_ETHER_TYPE_QINQ)) { in mlx5_lro_update_hdr()
1001 if (proto == RTE_BE16(RTE_ETHER_TYPE_IPV4)) { in mlx5_lro_update_hdr()
H A Dmlx5_flow_dv.c1486 mask[1] = RTE_BE16(0xffff); in mlx5_flow_field_id_to_modify_info()
1516 mask[1] = RTE_BE16(0xffff); in mlx5_flow_field_id_to_modify_info()
2236 .tci = RTE_BE16(UINT16_MAX), in flow_dv_validate_item_vlan()
2573 .frag_data = RTE_BE16(0xffff), in flow_dv_validate_item_ipv6_frag_ext()
2806 .inner_type = RTE_BE16(0xffff), in flow_dev_get_vlan_info_from_items()
4275 proto = RTE_BE16(eth->ether_type); in flow_dv_zero_encap_udp_csum()
8267 .type = RTE_BE16(0xffff), in flow_dv_translate_item_eth()
8661 .frag_data = RTE_BE16(0xffff), in flow_dv_translate_item_ipv6_frag_ext()
9092 .c_rsvd0_ver = RTE_BE16(0x2000), in flow_dv_translate_item_nvgre()
9096 .c_rsvd0_ver = RTE_BE16(0xB000), in flow_dv_translate_item_nvgre()
[all …]
H A Dmlx5_txpp.c327 es->inline_hdr_sz = RTE_BE16(MLX5_TXPP_TEST_PKT_SIZE); in mlx5_txpp_fill_wqe_clock_queue()
343 ip_hdr->total_length = RTE_BE16(MLX5_TXPP_TEST_PKT_SIZE - in mlx5_txpp_fill_wqe_clock_queue()
358 udp_hdr->src_port = RTE_BE16(9); /* RFC863 Discard. */ in mlx5_txpp_fill_wqe_clock_queue()
359 udp_hdr->dst_port = RTE_BE16(9); in mlx5_txpp_fill_wqe_clock_queue()
360 udp_hdr->dgram_len = RTE_BE16(MLX5_TXPP_TEST_PKT_SIZE - in mlx5_txpp_fill_wqe_clock_queue()
H A Dmlx5_flow.c2253 .hdr.icmp_ident = RTE_BE16(0xffff), in mlx5_flow_validate_item_icmp()
2254 .hdr.icmp_seq_nb = RTE_BE16(0xffff), in mlx5_flow_validate_item_icmp()
2311 .type = RTE_BE16(0xffff), in mlx5_flow_validate_item_eth()
2371 .tci = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_vlan()
2372 .inner_type = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_vlan()
3072 .checksum = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_gre_option()
3163 .c_rsvd0_ver = RTE_BE16(0xB000), in mlx5_flow_validate_item_gre()
3164 .protocol = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_gre()
3235 .protocol = RTE_BE16(UINT16_MAX), in mlx5_flow_validate_item_geneve()
3330 .option_class = RTE_BE16(0xffff), in mlx5_flow_validate_item_geneve_opt()
[all …]
H A Dmlx5_flow_flex.c1020 struct rte_flow_item_eth eth = { .hdr.ether_type = RTE_BE16(0xFFFF) }; in mlx5_flex_arc_in_eth()
1036 struct rte_flow_item_udp udp = { .hdr.dst_port = RTE_BE16(0xFFFF) }; in mlx5_flex_arc_in_udp()
H A Dmlx5_flow_verbs.c1275 if (ether_type == RTE_BE16(RTE_ETHER_TYPE_VLAN)) in flow_verbs_validate()
/dpdk/drivers/net/dpaa2/
H A Ddpaa2_flow.c105 .type = RTE_BE16(0xffff),
109 .tci = 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),
151 .src_port = RTE_BE16(0xffff),
152 .dst_port = RTE_BE16(0xffff),
157 .protocol = RTE_BE16(0xffff),
/dpdk/drivers/net/hinic/
H A Dhinic_pmd_flow.c1923 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()
/dpdk/drivers/net/bnxt/
H A Dbnxt_flow.c220 eth_mask->type != RTE_BE16(0xffff)) { in bnxt_validate_and_parse_flow_type()
303 vlan_mask->tci == RTE_BE16(0x0fff)) { in bnxt_validate_and_parse_flow_type()
307 RTE_BE16(0x0fff)); in bnxt_validate_and_parse_flow_type()
318 vlan_mask->inner_type != RTE_BE16(0xffff)) { in bnxt_validate_and_parse_flow_type()
/dpdk/lib/eventdev/
H A Drte_event_eth_rx_adapter.c704 case RTE_BE16(RTE_ETHER_TYPE_IPV4): in rxa_mtoip()
708 case RTE_BE16(RTE_ETHER_TYPE_IPV6): in rxa_mtoip()
712 case RTE_BE16(RTE_ETHER_TYPE_VLAN): in rxa_mtoip()
715 case RTE_BE16(RTE_ETHER_TYPE_IPV4): in rxa_mtoip()
718 case RTE_BE16(RTE_ETHER_TYPE_IPV6): in rxa_mtoip()
/dpdk/drivers/net/enic/
H A Denic_flow.c919 udp->dst_port = RTE_BE16(4789); in enic_copy_item_vxlan_v2()
/dpdk/drivers/net/iavf/
H A Diavf_fdir.c799 if (eth_mask->type != RTE_BE16(0xffff)) { in iavf_fdir_parse_pattern()
/dpdk/drivers/net/tap/
H A Dtap_flow.c592 if (mask->inner_type != RTE_BE16(0xffff)) in tap_flow_create_vlan()
/dpdk/drivers/net/i40e/
H A Di40e_flow.c2450 if (eth_mask->type != RTE_BE16(0xffff)) { in i40e_flow_parse_fdir_pattern()
2503 if (vlan_mask->inner_type != RTE_BE16(0xffff)) { in i40e_flow_parse_fdir_pattern()
/dpdk/drivers/net/ice/
H A Dice_fdir_filter.c1981 if (eth_mask->type == RTE_BE16(0xffff) && in ice_fdir_parse_pattern()

12