Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_vlan.c59 __u16 eth_type; in parse_eth_frame() local
67 eth_type = eth->h_proto; in parse_eth_frame()
70 if (eth_type == bpf_htons(ETH_P_8021Q) in parse_eth_frame()
71 || eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth_frame()
78 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame()
83 if (eth_type == bpf_htons(ETH_P_8021Q) in parse_eth_frame()
84 || eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth_frame()
91 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame()
95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */ in parse_eth_frame()
/linux/include/net/
H A Dmpls.h19 static inline bool eth_p_mpls(__be16 eth_type) in eth_p_mpls() argument
21 return eth_type == htons(ETH_P_MPLS_UC) || in eth_p_mpls()
22 eth_type == htons(ETH_P_MPLS_MC); in eth_p_mpls()
H A Derspan.h181 __be16 eth_type; in erspan_build_header() member
275 __be16 eth_type; in erspan_build_header_v2() member
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_struct.h20 u32 eth_type; member
67 u32 eth_type; member
328 u32 eth_type; member
366 u32 eth_type; member
590 u32 eth_type; member
678 u32 eth_type; member
H A Dmacsec_api.c276 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_prectlf_record()
329 rec->eth_type = packed_record[3]; in get_ingress_prectlf_record()
372 packed_record[5] = rec->eth_type & 0xFFFF; in set_ingress_preclass_record()
486 rec->eth_type = packed_record[5]; in get_ingress_preclass_record()
887 packed_record[2] = rec->eth_type & 0xFFFF; in set_ingress_postclass_record()
991 rec->eth_type = packed_record[2]; in get_ingress_postclass_record()
1076 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_postctlf_record()
1130 rec->eth_type = packed_record[3]; in get_ingress_postctlf_record()
1167 packed_record[3] = rec->eth_type & 0xFFFF; in set_egress_ctlf_record()
1217 rec->eth_type = packed_record[3]; in get_egress_ctlf_record()
[all …]
/linux/net/openvswitch/
H A Dflow_netlink.c1151 __be16 eth_type; in parse_eth_type_from_nlattrs()
1153 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in parse_eth_type_from_nlattrs() local
1156 eth_type = htons(0xffff); in parse_eth_type_from_nlattrs()
1157 } else if (!eth_proto_is_802_3(eth_type)) { in parse_eth_type_from_nlattrs()
1159 ntohs(eth_type), ETH_P_802_3_MIN); in parse_eth_type_from_nlattrs()
1163 SW_FLOW_KEY_PUT(match, eth.type, eth_type, is_mask); in parse_eth_type_from_nlattrs()
1949 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
1951 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) || in ovs_nla_put_vlan() local
2552 __be16 eth_type, __be16 vlan_tci,
2559 __be16 eth_type, __be1 in validate_and_copy_sample()
2561 validate_and_copy_sample(struct net * net,const struct nlattr * attr,const struct sw_flow_key * key,struct sw_flow_actions ** sfa,__be16 eth_type,__be16 vlan_tci,u32 mpls_label_count,bool log,bool last,u32 depth) validate_and_copy_sample() argument
2639 validate_and_copy_dec_ttl(struct net * net,const struct nlattr * attr,const struct sw_flow_key * key,struct sw_flow_actions ** sfa,__be16 eth_type,__be16 vlan_tci,u32 mpls_label_count,bool log,u32 depth) validate_and_copy_dec_ttl() argument
2711 validate_and_copy_clone(struct net * net,const struct nlattr * attr,const struct sw_flow_key * key,struct sw_flow_actions ** sfa,__be16 eth_type,__be16 vlan_tci,u32 mpls_label_count,bool log,bool last,u32 depth) validate_and_copy_clone() argument
2922 validate_set(const struct nlattr * a,const struct sw_flow_key * flow_key,struct sw_flow_actions ** sfa,bool * skip_copy,u8 mac_proto,__be16 eth_type,bool masked,bool log) validate_set() argument
3127 validate_and_copy_check_pkt_len(struct net * net,const struct nlattr * attr,const struct sw_flow_key * key,struct sw_flow_actions ** sfa,__be16 eth_type,__be16 vlan_tci,u32 mpls_label_count,bool log,bool last,u32 depth) validate_and_copy_check_pkt_len() argument
3263 __ovs_nla_copy_actions(struct net * net,const struct nlattr * attr,const struct sw_flow_key * key,struct sw_flow_actions ** sfa,__be16 eth_type,__be16 vlan_tci,u32 mpls_label_count,bool log,u32 depth) __ovs_nla_copy_actions() argument
[all...]
/linux/net/sched/
H A Dact_skbmod.c77 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act()
122 u16 eth_type = 0; in tcf_skbmod_init() local
147 eth_type = nla_get_u16(tb[TCA_SKBMOD_ETYPE]); in tcf_skbmod_init()
211 p->eth_type = htons(eth_type); in tcf_skbmod_init()
267 nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type))) in tcf_skbmod_dump()
H A Dact_ife.c594 p->eth_type = ife_type; in tcf_ife_init()
674 if (nla_put(skb, TCA_IFE_TYPE, 2, &p->eth_type)) in tcf_ife_dump()
866 oethh->h_proto = htons(p->eth_type); in tcf_ife_encode()
/linux/drivers/net/ethernet/rocker/
H A Drocker_ofdpa.c47 __be16 eth_type; member
56 __be16 eth_type; member
80 __be16 eth_type; member
357 entry->key.term_mac.eth_type)) in ofdpa_cmd_flow_tbl_add_term_mac()
387 entry->key.ucast_routing.eth_type)) in ofdpa_cmd_flow_tbl_add_ucast_routing()
462 entry->key.acl.eth_type)) in ofdpa_cmd_flow_tbl_add_acl()
471 switch (ntohs(entry->key.acl.eth_type)) { in ofdpa_cmd_flow_tbl_add_acl()
883 __be16 eth_type, const u8 *eth_dst, in ofdpa_flow_tbl_term_mac() argument
907 entry->key.term_mac.eth_type = eth_type; in ofdpa_flow_tbl_term_mac()
972 ofdpa_flow_tbl_ucast4_routing(struct ofdpa_port * ofdpa_port,__be16 eth_type,__be32 dst,__be32 dst_mask,u32 priority,enum rocker_of_dpa_table_id goto_tbl,u32 group_id,struct fib_info * fi,int flags) ofdpa_flow_tbl_ucast4_routing() argument
1002 ofdpa_flow_tbl_acl(struct ofdpa_port * ofdpa_port,int flags,u32 in_pport,u32 in_pport_mask,const u8 * eth_src,const u8 * eth_src_mask,const u8 * eth_dst,const u8 * eth_dst_mask,__be16 eth_type,__be16 vlan_id,__be16 vlan_id_mask,u8 ip_proto,u8 ip_proto_mask,u8 ip_tos,u8 ip_tos_mask,u32 group_id) ofdpa_flow_tbl_acl() argument
1249 __be16 eth_type = htons(ETH_P_IP); ofdpa_port_ipv4_neigh() local
1529 __be16 eth_type; global() member
2008 __be16 eth_type; ofdpa_port_router_mac() local
2259 __be16 eth_type = htons(ETH_P_IP); ofdpa_port_fib_ipv4() local
[all...]
/linux/Documentation/networking/
H A Dopenvswitch.rst89 eth_type(0x0800), ipv4(src=172.16.0.20, dst=172.18.0.52, proto=17, tos=0,
94 in_port(1), eth(...), eth_type(0x0800), ipv4(...), tcp(...)
172 eth(...), eth_type(0x8100)
180 eth(...), vlan(vid=10, pcp=0), eth_type(0x0800), ip(proto=6, ...), tcp(...)
195 eth(...), eth_type(0x8100), vlan(vid=10, pcp=0), encap(eth_type(0x0800),
198 Notice how the "eth_type", "ip", and "tcp" flow key attributes are
201 and therefore will not misinterpret them. (Also, the outer eth_type
223 eth(...), eth_type(0x0800), ip(proto=6, ...), tcp(src=0, dst=0)
230 eth(...), eth_type(0x8100), vlan(0), encap()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcommon.h67 __be16 eth_type; member
H A Dwmi.c201 llc_hdr->eth_type = type; in ath6kl_wmi_dix_2_dot3()
332 if (llc_hdr->eth_type == htons(ip_type)) { in ath6kl_wmi_implicit_create_pstream()
420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove()
468 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot3_2_dix()
H A Dtxrx.c141 ether_type = be16_to_cpu(llc_hdr->eth_type); in ath6kl_process_uapsdq()
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c108 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr()
115 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr()
H A Docrdma_sli.h1896 __be16 eth_type; member
1902 __be16 eth_type; member
/linux/include/net/tc_act/
H A Dtc_ife.h14 u16 eth_type; member
/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_mdb.sh1011 local eth_type
1017 eth_type="ipv4"
1020 eth_type="ipv6"
1024 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp src_ip $src \
1130 local eth_type
1137 eth_type="ipv4"
1140 eth_type="ipv6"
1152 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp \
1155 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp \
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c1683 int eth_type; in qed_iwarp_parse_rx_pkt() local
1687 eth_type = ntohs(ethh->h_proto); in qed_iwarp_parse_rx_pkt()
1688 if (eth_type == ETH_P_8021Q) { in qed_iwarp_parse_rx_pkt()
1692 eth_type = ntohs(vethh->h_vlan_encapsulated_proto); in qed_iwarp_parse_rx_pkt()
1710 eth_type, ethh->h_source); in qed_iwarp_parse_rx_pkt()
1717 if (eth_type == ETH_P_IP) { in qed_iwarp_parse_rx_pkt()
1731 } else if (eth_type == ETH_P_IPV6) { in qed_iwarp_parse_rx_pkt()
1752 DP_NOTICE(p_hwfn, "Unexpected ethertype on ll2 %x\n", eth_type); in qed_iwarp_parse_rx_pkt()
/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_hci.h1196 __be16 eth_type; member
1213 .eth_type = cpu_to_be16(_eth_type), .tci = cpu_to_be16(_tci), \
/linux/drivers/net/ethernet/ti/icssm/
H A Dicssm_prueth_switch.c1018 fw_name = pru_firmwares->fw_name[prueth->eth_type]; in icssm_prueth_sw_boot_prus()
1020 fw_name1 = pru_firmwares->fw_name[prueth->eth_type]; in icssm_prueth_sw_boot_prus()
H A Dicssm_prueth.c313 * based on eth_type
876 fw_name = pru_firmwares->fw_name[prueth->eth_type]; in icssm_emac_set_boot_pru()
878 netdev_err(ndev, "eth_type %d not supported\n", in icssm_emac_set_boot_pru()
879 prueth->eth_type); in icssm_emac_set_boot_pru()
1126 prueth->eth_type = mode; in icssm_prueth_change_mode()
1520 /* by default eth_type is EMAC */ in icssm_prueth_netdev_init()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c702 pre_class_record.eth_type = ETH_P_MACSEC; in aq_set_rxsc()
1518 tx_ctlf_rec.eth_type = ctl_ether_types[index]; in aq_macsec_enable()
1526 rx_prectlf_rec.eth_type = ctl_ether_types[index]; in aq_macsec_enable()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1833 int eth_type; in t1_start_xmit() local
1838 eth_type = skb_network_offset(skb) == ETH_HLEN ? in t1_start_xmit()
1846 hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type, in t1_start_xmit()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c1195 int eth_type; in write_tx_pkt_wr() local
1201 eth_type = skb_network_offset(skb) == ETH_HLEN ? in write_tx_pkt_wr()
1203 tso_info |= V_LSO_ETH_TYPE(eth_type) | in write_tx_pkt_wr()
/linux/drivers/net/wireless/ath/ath12k/
H A Dwow.c167 size_t r1042_eth_ofs = offsetof(struct rfc1042_hdr, eth_type); in ath12k_wow_convert_8023_to_80211()