Home
last modified time | relevance | path

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

/f-stack/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.c289 uint16_t eth_type; in reply_to_icmp_echo_rqsts() local
317 eth_type = RTE_BE_TO_CPU_16(eth_h->ether_type); in reply_to_icmp_echo_rqsts()
325 if (eth_type == RTE_ETHER_TYPE_VLAN) { in reply_to_icmp_echo_rqsts()
329 eth_type = rte_be_to_cpu_16(vlan_h->eth_proto); in reply_to_icmp_echo_rqsts()
337 printf(" type=0x%04x\n", eth_type); in reply_to_icmp_echo_rqsts()
341 if (eth_type == RTE_ETHER_TYPE_ARP) { in reply_to_icmp_echo_rqsts()
409 if (eth_type != RTE_ETHER_TYPE_IPV4) { in reply_to_icmp_echo_rqsts()
H A Dutil.c66 uint16_t eth_type; in dump_pkt_burst() local
91 eth_type = RTE_BE_TO_CPU_16(eth_hdr->ether_type); in dump_pkt_burst()
125 eth_type, (unsigned int) mb->pkt_len, in dump_pkt_burst()
/f-stack/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 …]
/f-stack/dpdk/drivers/net/dpaa2/
H A Ddpaa2_mux.c140 uint16_t eth_type; in rte_pmd_dpaa2_mux_flow_create() local
149 eth_type = rte_constant_bswap16(spec->type); in rte_pmd_dpaa2_mux_flow_create()
150 memcpy((void *)key_iova, (const void *)&eth_type, in rte_pmd_dpaa2_mux_flow_create()
H A Ddpaa2_flow.c606 rte_be16_t eth_type; member
621 rte_be16_t eth_type; in dpaa2_flow_proto_discrimination_rule() local
646 eth_type = proto.eth_type; in dpaa2_flow_proto_discrimination_rule()
647 memcpy((void *)key_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
649 eth_type = 0xffff; in dpaa2_flow_proto_discrimination_rule()
650 memcpy((void *)mask_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
673 eth_type = proto.eth_type; in dpaa2_flow_proto_discrimination_rule()
674 memcpy((void *)key_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
676 eth_type = 0xffff; in dpaa2_flow_proto_discrimination_rule()
677 memcpy((void *)mask_iova, (const void *)(&eth_type), in dpaa2_flow_proto_discrimination_rule()
[all …]
/f-stack/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()
/f-stack/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_pktgen.c278 inst->regs->eth_type = x; in ark_pktgen_set_eth_type()
H A Dark_pktchkr.c281 inst->cregs->eth_type = x; in ark_pktchkr_set_eth_type()
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dptpclient.rst209 uint16_t eth_type;
212 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type);
214 if (eth_type == PTP_PROTOCOL) {
/f-stack/dpdk/examples/ptpclient/
H A Dptpclient.c567 uint16_t eth_type; in parse_ptp_frames() local
570 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); in parse_ptp_frames()
572 if (eth_type == PTP_PROTOCOL) { in parse_ptp_frames()
/f-stack/dpdk/drivers/net/bnxt/tf_ulp/
H A Dulp_rte_parser.c652 uint16_t eth_type = 0; in ulp_rte_eth_hdr_handler() local
679 eth_type = eth_spec->type; in ulp_rte_eth_hdr_handler()
711 ulp_rte_l2_proto_type_update(params, eth_type, inner_flag); in ulp_rte_eth_hdr_handler()
729 uint16_t eth_type = 0; in ulp_rte_vlan_hdr_handler() local
751 eth_type = vlan_spec->inner_type; in ulp_rte_vlan_hdr_handler()
846 ulp_rte_l2_proto_type_update(params, eth_type, inner_flag); in ulp_rte_vlan_hdr_handler()
/f-stack/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_niccfg.h665 struct pa_u16_s eth_type; /* ethernet type/length 16bit */ member
713 u8 eth_type; member
/f-stack/freebsd/mips/nlm/dev/net/
H A Dnae.c909 uint32_t l2proto, uint32_t eth_type) in nlm_setup_l3ctable_even() argument
917 (eth_type & 0xffff); in nlm_setup_l3ctable_even()
/f-stack/dpdk/app/test/
H A Dtest_bpf.c1040 uint16_t eth_type; in test_jump2_check() local
1046 eth_type = vlan_hdr->eth_proto; in test_jump2_check()
1049 eth_type = eth_hdr->ether_type; in test_jump2_check()
1053 if (eth_type == htons(0x0800)) { in test_jump2_check()
/f-stack/lib/
H A Dff_dpdk_if.c1011 struct rte_flow_item_eth eth_type = {.type = RTE_BE16(0x0806)}; in init_flow() local
1020 pattern_[0].spec = &eth_type; in init_flow()
/f-stack/dpdk/doc/guides/nics/
H A Dtap.rst110 - eth: src and dst (with variable masks), and eth_type (0xffff mask).