Home
last modified time | relevance | path

Searched full:ethertype (Results 1 – 25 of 167) sorted by relevance

1234567

/linux/drivers/net/ethernet/intel/ice/
H A Dice_fltr.c185 * ice_fltr_add_eth_list - add list of ethertype filters
195 * ice_fltr_remove_eth_list - remove list of ethertype filters
269 * ice_fltr_add_eth_to_list - add ethertype filter info to exsisting list
272 * @ethertype: ethertype of packet that matches filter
278 u16 ethertype, u16 flag, in ice_fltr_add_eth_to_list() argument
287 info.l_data.ethertype_mac.ethertype = ethertype; in ice_fltr_add_eth_to_list()
374 * ice_fltr_prepare_eth - add or remove ethertype filter
376 * @ethertype: ethertype of packet to be filtered
379 * @eth_action: pointer to add or remove ethertype function
382 ice_fltr_prepare_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag, in ice_fltr_prepare_eth() argument
[all …]
H A Dice_fltr.h41 ice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
44 ice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
/linux/tools/testing/selftests/net/forwarding/
H A Dno_forwarding.sh142 "$smac > $dmac, ethertype IPv4 (0x0800)"
145 "$smac > $MACV4_ALLNODES, ethertype IPv4 (0x0800).*: $H1_IPV4 > $IPV4_ALLNODES"
148 "$smac > $dmac, ethertype IPv6 (0x86dd).*8: $H1_IPV6 > $H2_IPV6"
151 "$smac > $MACV6_ALLNODES, ethertype IPv6 (0x86dd).*: $h1_ipv6_lladdr > $IPV6_ALLNODES"
155 "$smac > $dmac, ethertype 802.1Q (0x8100).*vlan $vid,.*length 4"
158 "$smac > $NON_IP_MC, ethertype 802.1Q (0x8100).*vlan $vid,.*length 4"
161 "$smac > $BC, ethertype 802.1Q (0x8100).*vlan $vid,.*length 4"
164 …"$smac > $dmac, ethertype 802.1Q (0x8100).*vlan $vid,.*ethertype IPv4 (0x0800), $H1_IPV4 > $H2_IPV…
167 …"$smac > $MACV4_ALLNODES, ethertype 802.1Q (0x8100).*vlan $vid,.*ethertype IPv4 (0x0800), $H1_IPV4…
170 …"$smac > $dmac, ethertype 802.1Q (0x8100).*vlan $vid,.*ethertype IPv6 (0x86dd), $H1_IPV6 > $H2_IPV…
[all …]
H A Dlocal_termination.sh267 "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \
271 "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \
276 "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \
280 "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \
286 "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \
290 "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \
296 "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \
300 "$smac > $UNKNOWN_MACV4_MC_ADDR2, ethertype IPv4 (0x0800)" \
304 "$smac > $UNKNOWN_MACV4_MC_ADDR3, ethertype IPv4 (0x0800)" \
308 "$smac > $JOINED_MACV6_MC_ADDR, ethertype IPv
[all...]
/linux/include/linux/mlx5/
H A Dfs_helpers.h53 u16 ethertype; in _mlx5_fs_is_outer_ipv_flow() local
57 ethertype = ETH_P_IP; in _mlx5_fs_is_outer_ipv_flow()
60 ethertype = ETH_P_IPV6; in _mlx5_fs_is_outer_ipv_flow()
67 ethertype) == 0xffff && in _mlx5_fs_is_outer_ipv_flow()
69 ethertype) == ethertype; in _mlx5_fs_is_outer_ipv_flow()
/linux/drivers/net/
H A Dbareudp.c43 __be16 ethertype; member
53 __be16 ethertype; member
83 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv()
101 } else if (bareudp->ethertype == htons(ETH_P_MPLS_UC)) { in bareudp_udp_encap_recv()
107 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
123 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
133 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
359 skb_set_inner_protocol(skb, bareudp->ethertype); in bareudp_xmit_skb()
443 if (bareudp->ethertype == proto) in bareudp_proto_valid()
449 if (bareudp->ethertype == htons(ETH_P_MPLS_UC) && in bareudp_proto_valid()
[all …]
/linux/Documentation/networking/
H A Dbareudp.rst29 a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc
31 This creates a bareudp tunnel device which tunnels L3 traffic with ethertype
43 a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype ipv4 multiproto
48 b) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc multiproto
/linux/net/dsa/
H A Dtag_rtl8_4.c15 * | Realtek EtherType [0x8899] | |
32 * EtherType | note that Realtek uses the same EtherType for
60 * The tag can be positioned before Ethertype, using tag "rtl8_4":
112 /* Set Realtek EtherType */ in rtl8_4_write_tag()
167 /* Parse Realtek EtherType */ in rtl8_4_read_tag()
171 "non-realtek ethertype 0x%04x\n", etype); in rtl8_4_read_tag()
245 /* Ethertype version */
H A Dtag_dsa.c3 * Regular and Ethertype DSA tagging
10 * the tag between the SA and the ethertype of the original
32 * CPU. This is done by ignoring 802.3, replacing the ethertype field
36 * Ethertype DSA
39 * proper ethertype field (which the mv88e6xxx driver sets to
210 /* The ethertype field is part of the DSA header. */ in dsa_rcv_ll()
292 * tag, and delete the ethertype (extra) if applicable. If the in dsa_rcv_ll()
293 * 'tagged' bit is cleared; delete the DSA tag, and ethertype in dsa_rcv_ll()
299 /* Insert 802.1Q ethertype and copy the VLAN-related in dsa_rcv_ll()
H A Dtag_mxl-gsw1xx.c19 * Dest MAC Src MAC special TAG EtherType
29 /* Word 0 = Ethertype -> 0x88C3 */
52 /* add space between MAC address and Ethertype */ in gsw1xx_tag_xmit()
100 * ethertype field. in gsw1xx_tag_rcv()
H A Dtag_mxl862xx.c19 /* Word 0 -> EtherType */
45 * Ethertype) in mxl862_tag_xmit()
96 * current ethertype field. in mxl862_tag_rcv()
H A Dtag_rtl4_a.c54 /* Set Ethertype */ in rtl4a_tag_xmit()
88 netdev_dbg(dev, "non-realtek ethertype 0x%04x\n", etype); in rtl4a_tag_rcv()
H A Dtag_yt921x.c12 * Tag Ethertype: CPU_TAG_TPID_TPID (default: ETH_P_YT921X = 0x9988)
99 "Unexpected EtherType 0x%04x\n", in yt921x_tag_rcv()
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_struct.h17 /*! This is used to store the 16 bit ethertype value used for
31 * 5: compare DA + ethertype
32 * 6: compare SA + ethertype
64 /*! The 16 bit Ethertype (in the clear) field used to compare with
153 * 1: enable comparison of Ethertype.
325 /*! This is used to store the 16 bit ethertype value used for
339 * 5: compare DA + ethertype
340 * 6: compare SA + ethertype
363 /*! The 16 bit Ethertype (in the clear) field used to compare with
417 * 1: enable comparison of Ethertype.
[all …]
/linux/Documentation/networking/device_drivers/ethernet/aquantia/
H A Datlantic.rst262 2. 16 L2 EtherType rules
280 - Locations 16 - 31 for L2 EtherType filters
322 from L2 Ethertype filter with UserPriority since both User Priority and VLAN ID
330 L2 EtherType filters allows filter packet by EtherType field or both EtherType
333 distinguish VLAN filter from L2 Ethertype filter with UserPriority since both
/linux/include/linux/net/intel/
H A Dvirtchnl.h587 * VIRTCHNL_VLAN_ETHERTYPE_8100 - This field supports 0x8100 ethertype.
588 * VIRTCHNL_VLAN_ETHERTYPE_88A8 - This field supports 0x88A8 ethertype.
589 * VIRTCHNL_VLAN_ETHERTYPE_9100 - This field supports 0x9100 ethertype.
603 * VIRTCHNL_ETHERTYPE_XOR - Used when only a single ethertype can be supported
614 * VIRTCHNL_OP_ENABLE_VLAN_STRIPPING_V2 the specified ethertype will override
682 * The ethertype(s) specified in the ethertype_init field are the ethertypes
686 * VLAN ethertype supported for inner VLAN filtering is
706 * if the PF supports a different ethertype for stripping and insertion.
708 * VIRTCHNL_ETHERTYPE_STRIPPING_MATCHES_INSERTION - The ethertype(s) specified
709 * for stripping affect the ethertype(s) specified for insertion and visa versa
[all …]
/linux/tools/testing/selftests/net/
H A Dbareudp.sh328 local ETHERTYPE="$1"; readonly ETHERTYPE
334 case "${ETHERTYPE}" in
363 …ip -netns "${NS1}" link add name bareudp_ns1 up type bareudp dstport 6635 ethertype "${ETHERTYPE}"…
364 …ip -netns "${NS2}" link add name bareudp_ns2 up type bareudp dstport 6635 ethertype "${ETHERTYPE}"…
H A Dnat6to4.bpf.c69 // Ethertype - if present - must be IPv6 in sched_cls_ingress6_nat_6_prog()
92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype in sched_cls_ingress6_nat_6_prog()
166 // Ethertype - if present - must be IPv4 in sched_cls_egress4_snat4_prog()
227 eth2.h_proto = bpf_htons(ETH_P_IPV6); // But replace the ethertype in sched_cls_egress4_snat4_prog()
/linux/net/netfilter/
H A Dnft_meta.c320 __be16 ethertype; in nft_meta_pktinfo_may_update() local
335 ethertype = veth->h_vlan_encapsulated_proto; in nft_meta_pktinfo_may_update()
338 if (!nf_flow_pppoe_proto(skb, &ethertype)) in nft_meta_pktinfo_may_update()
348 switch (ethertype) { in nft_meta_pktinfo_may_update()
361 pkt->ethertype = ethertype; in nft_meta_pktinfo_may_update()
378 nft_reg_store16(dest, (__force u16)pkt->ethertype); in nft_meta_get_eval()
H A Dnf_tables_offload.c57 struct nft_offload_ethertype ethertype = { in nft_flow_rule_transfer_vlan() local
69 match->key.vlan.vlan_tpid = ethertype.value; in nft_flow_rule_transfer_vlan()
70 match->mask.vlan.vlan_tpid = ethertype.mask; in nft_flow_rule_transfer_vlan()
80 match->key.vlan.vlan_tpid = ethertype.value; in nft_flow_rule_transfer_vlan()
81 match->mask.vlan.vlan_tpid = ethertype.mask; in nft_flow_rule_transfer_vlan()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_prs.c209 /* Set ethertype in tcam sw entry */
211 unsigned short ethertype) in mvpp2_prs_match_etype() argument
213 mvpp2_prs_tcam_data_byte_set(pe, offset + 0, ethertype >> 8, 0xff); in mvpp2_prs_match_etype()
214 mvpp2_prs_tcam_data_byte_set(pe, offset + 1, ethertype & 0xff, 0xff); in mvpp2_prs_match_etype()
527 /* Shift to ethertype */ in __mvpp2_prs_mac_promisc_set()
619 /* Set entry for dsa ethertype */
647 /* Set ethertype */ in mvpp2_prs_dsa_tag_ethertype_set()
653 /* Shift ethertype + 2 byte reserved + tag*/ in mvpp2_prs_dsa_tag_ethertype_set()
1266 /* None tagged EDSA ethertype entry - place holder*/ in mvpp2_prs_dsa_init()
1270 /* Tagged EDSA ethertype entry - place holder*/ in mvpp2_prs_dsa_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c297 static u8 mlx5_etype_to_ipv(u16 ethertype) in mlx5_etype_to_ipv() argument
299 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
302 if (ethertype == ETH_P_IPV6) in mlx5_etype_to_ipv()
325 outer_headers.ethertype); in mlx5_fs_ttc_set_match_ipv_outer()
327 outer_headers.ethertype, etype); in mlx5_fs_ttc_set_match_ipv_outer()
489 MLX5_SET(fte_match_param, mc, outer_headers.ethertype, 0); in mlx5_create_ttc_table_ipsec_groups()
509 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_ipsec_groups()
553 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_groups()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Drule.c658 static u8 hws_rule_ethertype_to_matcher_ipv(u32 ethertype) in hws_rule_ethertype_to_matcher_ipv() argument
660 switch (ethertype) { in hws_rule_ethertype_to_matcher_ipv()
692 outer_headers.ethertype); in hws_rule_check_outer_ip_version()
704 mlx5hws_err(ctx, "Rule matches on inconsistent outer ethertype and ip version\n"); in hws_rule_check_outer_ip_version()
731 inner_headers.ethertype); in hws_rule_check_inner_ip_version()
743 mlx5hws_err(ctx, "Rule matches on inconsistent inner ethertype and ip version\n"); in hws_rule_check_inner_ip_version()
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_rx.c221 /* No encapsulation header if EtherType < 0x600 (=length) */
228 u16 fc, ethertype; in libipw_is_eapol_frame() local
256 ethertype = (pos[6] << 8) | pos[7]; in libipw_is_eapol_frame()
257 if (ethertype == ETH_P_PAE) in libipw_is_eapol_frame()
334 u16 ethertype; in libipw_rx() local
704 ethertype = (payload[6] << 8) | payload[7]; in libipw_rx()
710 if (ethertype == ETH_P_PAE) { in libipw_rx()
725 "ethertype=0x%04x\n", dev->name, ethertype); in libipw_rx()
734 ethertype ! in libipw_rx()
[all...]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_ag_api.h67 * Set for frames containing an E-TAG (802.1BR Ethertype 893f)
75 * Set if frame contains an RTAG: IEEE 802.1CB (FRER Redundancy tag, Ethertype
141 * Set if frame has EtherType >= 0x600
171 * Set if frame has EtherType = 0x800 and IP version = 4
203 * Payload bytes 0-1 after the frame's EtherType
205 * Payload byte 4 after the frame's EtherType. This is specifically for PTP
208 * Bits 7, 2, and 1 from payload byte 6 after the frame's EtherType. This is
334 * Set if frame's EtherType = 0x8902
344 * Encoding of frame's EtherType: 0: Other, 1: Profinet, 2: OPC-UA, 3: Custom

1234567