Home
last modified time | relevance | path

Searched refs:eth_type (Results 1 – 17 of 17) sorted by relevance

/dpdk/app/test-pmd/
H A Dieee1588fwd.c99 uint16_t eth_type; in ieee1588_packet_fwd() local
115 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); in ieee1588_packet_fwd()
118 if (eth_type == RTE_ETHER_TYPE_1588) { in ieee1588_packet_fwd()
125 fs->rx_port, eth_type, in ieee1588_packet_fwd()
131 if (eth_type != RTE_ETHER_TYPE_1588) { in ieee1588_packet_fwd()
H A Dicmpecho.c288 uint16_t eth_type; in reply_to_icmp_echo_rqsts() local
316 eth_type = RTE_BE_TO_CPU_16(eth_h->ether_type); in reply_to_icmp_echo_rqsts()
324 if (eth_type == RTE_ETHER_TYPE_VLAN) { in reply_to_icmp_echo_rqsts()
328 eth_type = rte_be_to_cpu_16(vlan_h->eth_proto); in reply_to_icmp_echo_rqsts()
336 printf(" type=0x%04x\n", eth_type); in reply_to_icmp_echo_rqsts()
340 if (eth_type == RTE_ETHER_TYPE_ARP) { in reply_to_icmp_echo_rqsts()
408 if (eth_type != RTE_ETHER_TYPE_IPV4) { in reply_to_icmp_echo_rqsts()
H A Dutil.c77 uint16_t eth_type; in dump_pkt_burst() local
107 eth_type = RTE_BE_TO_CPU_16(eth_hdr->ether_type); in dump_pkt_burst()
154 eth_type, (unsigned int) mb->pkt_len, in dump_pkt_burst()
/dpdk/drivers/net/tap/
H A Dtap_flow.c137 uint16_t eth_type; member
536 info->eth_type = spec->type; in tap_flow_create_eth()
584 if (info->eth_type) in tap_flow_create_vlan()
644 if (info->eth_type && info->eth_type != htons(ETH_P_IP)) in tap_flow_create_ipv4()
652 if (!info->eth_type) in tap_flow_create_ipv4()
700 if (info->eth_type && info->eth_type != htons(ETH_P_IPV6)) in tap_flow_create_ipv6()
708 if (!info->eth_type) in tap_flow_create_ipv6()
1038 .eth_type = 0, in priv_flow_process()
1125 data.eth_type ? in priv_flow_process()
1127 } else if (data.eth_type) { in priv_flow_process()
[all …]
/dpdk/drivers/net/hinic/
H A Dhinic_pmd_tx.c784 u16 eth_type; in hinic_analyze_tx_info() local
787 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); in hinic_analyze_tx_info()
789 if (eth_type == RTE_ETHER_TYPE_VLAN) { in hinic_analyze_tx_info()
792 eth_type = rte_be_to_cpu_16(vlan_hdr->eth_proto); in hinic_analyze_tx_info()
797 if (eth_type == RTE_ETHER_TYPE_IPV4) { in hinic_analyze_tx_info()
801 } else if (eth_type == RTE_ETHER_TYPE_IPV6) { in hinic_analyze_tx_info()
814 u16 eth_type = 0; in hinic_analyze_outer_ip_vxlan() local
817 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); in hinic_analyze_outer_ip_vxlan()
819 if (eth_type == RTE_ETHER_TYPE_VLAN) { in hinic_analyze_outer_ip_vxlan()
824 if (eth_type == RTE_ETHER_TYPE_IPV4) { in hinic_analyze_outer_ip_vxlan()
[all …]
H A Dhinic_pmd_flow.c1795 lacp_rule.eth_type = PA_ETH_TYPE_OTHER; in hinic_set_lacp_tcam()
1796 lacp_rule.l2_header.eth_type.val16 = 0x8809; in hinic_set_lacp_tcam()
1797 lacp_rule.l2_header.eth_type.mask16 = 0xffff; in hinic_set_lacp_tcam()
1818 bgp_rule.eth_type = PA_ETH_TYPE_IPV4; /* Eth type is IPV4 */ in hinic_set_bgp_dport_tcam()
1846 bgp_rule.eth_type = PA_ETH_TYPE_IPV4; in hinic_set_bgp_sport_tcam()
1874 vrrp_rule.eth_type = PA_ETH_TYPE_IPV4; in hinic_set_vrrp_tcam()
/dpdk/drivers/net/dpaa2/
H A Ddpaa2_mux.c144 uint16_t eth_type; in rte_pmd_dpaa2_mux_flow_create() local
153 eth_type = rte_constant_bswap16(spec->type); in rte_pmd_dpaa2_mux_flow_create()
154 memcpy((void *)key_iova, (const void *)&eth_type, in rte_pmd_dpaa2_mux_flow_create()
H A Ddpaa2_flow.c613 rte_be16_t eth_type; member
628 rte_be16_t eth_type; in dpaa2_flow_proto_discrimination_rule() local
653 eth_type = proto.eth_type; in dpaa2_flow_proto_discrimination_rule()
654 memcpy((void *)key_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
656 eth_type = 0xffff; in dpaa2_flow_proto_discrimination_rule()
657 memcpy((void *)mask_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
680 eth_type = proto.eth_type; in dpaa2_flow_proto_discrimination_rule()
681 memcpy((void *)key_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
683 eth_type = 0xffff; in dpaa2_flow_proto_discrimination_rule()
684 memcpy((void *)mask_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
[all …]
/dpdk/drivers/net/ark/
H A Dark_pktchkr.h54 uint32_t eth_type; member
H A Dark_pktgen.h40 uint32_t eth_type; member
H A Dark_pktchkr.c277 inst->cregs->eth_type = x; in ark_pktchkr_set_eth_type()
H A Dark_pktgen.c273 inst->regs->eth_type = x; in ark_pktgen_set_eth_type()
/dpdk/examples/ptpclient/
H A Dptpclient.c579 uint16_t eth_type; in parse_ptp_frames() local
582 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); in parse_ptp_frames()
584 if (eth_type == PTP_PROTOCOL) { in parse_ptp_frames()
/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_niccfg.h656 struct pa_u16_s eth_type; /* ethernet type/length 16bit */ member
704 u8 eth_type; member
/dpdk/drivers/net/bnxt/tf_ulp/
H A Dulp_rte_parser.c758 uint16_t eth_type = 0; in ulp_rte_eth_hdr_handler() local
770 eth_type = eth_spec->type; in ulp_rte_eth_hdr_handler()
820 ulp_rte_l2_proto_type_update(params, eth_type, inner_flag); in ulp_rte_eth_hdr_handler()
838 uint16_t eth_type = 0; in ulp_rte_vlan_hdr_handler() local
847 eth_type = vlan_spec->inner_type; in ulp_rte_vlan_hdr_handler()
973 ulp_rte_l2_proto_type_update(params, eth_type, inner_flag); in ulp_rte_vlan_hdr_handler()
/dpdk/app/test/
H A Dtest_bpf.c1068 uint16_t eth_type; in test_jump2_check() local
1074 eth_type = vlan_hdr->eth_proto; in test_jump2_check()
1077 eth_type = eth_hdr->ether_type; in test_jump2_check()
1081 if (eth_type == htons(0x0800)) { in test_jump2_check()
/dpdk/doc/guides/nics/
H A Dtap.rst110 - eth: src and dst (with variable masks), and eth_type (0xffff mask).