Home
last modified time | relevance | path

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

123456789

/linux-6.14.4/drivers/net/ethernet/intel/ice/
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 …]
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-6.14.4/tools/testing/selftests/net/forwarding/
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 …]
Dlocal_termination.sh248 "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \
252 "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \
257 "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \
261 "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \
267 "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \
271 "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \
277 "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \
281 "$smac > $UNKNOWN_MACV4_MC_ADDR2, ethertype IPv4 (0x0800)" \
285 "$smac > $UNKNOWN_MACV4_MC_ADDR3, ethertype IPv4 (0x0800)" \
289 "$smac > $JOINED_MACV6_MC_ADDR, ethertype IPv6 (0x86dd)" \
[all …]
/linux-6.14.4/include/linux/mlx5/
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-6.14.4/drivers/net/
Dbareudp.c42 __be16 ethertype; member
52 __be16 ethertype; member
82 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv()
100 } else if (bareudp->ethertype == htons(ETH_P_MPLS_UC)) { in bareudp_udp_encap_recv()
106 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
122 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
132 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
361 skb_set_inner_protocol(skb, bareudp->ethertype); in bareudp_xmit_skb()
444 if (bareudp->ethertype == proto) in bareudp_proto_valid()
450 if (bareudp->ethertype == htons(ETH_P_MPLS_UC) && in bareudp_proto_valid()
[all …]
/linux-6.14.4/Documentation/networking/
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-6.14.4/net/dsa/
Dtag_rtl8_4.c15 * | Realtek EtherType [0x8899] | |
32 * EtherType | note that Realtek uses the same EtherType for
57 * The tag can be positioned before Ethertype, using tag "rtl8_4":
109 /* Set Realtek EtherType */ in rtl8_4_write_tag()
161 /* Parse Realtek EtherType */ in rtl8_4_read_tag()
165 "non-realtek ethertype 0x%04x\n", etype); in rtl8_4_read_tag()
229 /* Ethertype version */
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()
287 * tag, and delete the ethertype (extra) if applicable. If the in dsa_rcv_ll()
288 * 'tagged' bit is cleared; delete the DSA tag, and ethertype in dsa_rcv_ll()
294 /* Insert 802.1Q ethertype and copy the VLAN-related in dsa_rcv_ll()
Dtag.h301 * what the DSA conduit perceives as the EtherType (the beginning of the L3
302 * protocol). Since DSA EtherType header taggers treat the EtherType as part of
303 * the DSA tag itself, and the EtherType is 2 bytes in length, the DSA header
304 * is located 2 bytes behind skb->data. Note that EtherType in this context
305 * means the first 2 bytes of the DSA header, not the encapsulated EtherType
313 /* On TX, skb->data points to the MAC header, which means that EtherType
314 * header taggers start exactly where the EtherType is (the EtherType is
Dtag_rtl4_a.c54 /* Set Ethertype */ in rtl4a_tag_xmit()
86 netdev_dbg(dev, "non-realtek ethertype 0x%04x\n", etype); in rtl4a_tag_rcv()
/linux-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c78 MASK_VAL_L2(u16, ethertype, ethertype); in print_lyr_2_4_hdrs()
83 PRINT_MASKED_VAL(ethertype, p, "%04x"); in print_lyr_2_4_hdrs()
85 if ((ethertype.m == 0xffff && ethertype.v == ETH_P_IP) || in print_lyr_2_4_hdrs()
98 } else if ((ethertype.m == 0xffff && ethertype.v == ETH_P_IPV6) || in print_lyr_2_4_hdrs()
/linux-6.14.4/drivers/net/ethernet/aquantia/atlantic/macsec/
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-6.14.4/Documentation/netlink/specs/
Dovs_flow.yaml313 name: mpls-ethertype
317 Ethertype to set in the encapsulating ethernet frame. The only values
318 ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC,
331 name: mpls-ethertype
335 Ethertype to set in the encapsulating ethernet frame. The only values
336 ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC,
489 name: ethertype
648 label stack. Set the ethertype of the encapsulating frame to either
654 doc: ethertype
/linux-6.14.4/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_llh.h456 /* set vlan inner ethertype */
459 /* set vlan outer ethertype */
497 /* set ethertype filter enable */
501 /* set ethertype user-priority enable */
506 /* set ethertype rx queue enable */
511 /* set ethertype rx queue */
515 /* set ethertype user-priority */
520 /* set ethertype management queue */
524 /* set ethertype filter action */
528 /* set ethertype filter */
/linux-6.14.4/include/linux/avf/
Dvirtchnl.h523 * VIRTCHNL_VLAN_ETHERTYPE_8100 - This field supports 0x8100 ethertype.
524 * VIRTCHNL_VLAN_ETHERTYPE_88A8 - This field supports 0x88A8 ethertype.
525 * VIRTCHNL_VLAN_ETHERTYPE_9100 - This field supports 0x9100 ethertype.
539 * VIRTCHNL_ETHERTYPE_XOR - Used when only a single ethertype can be supported
550 * VIRTCHNL_OP_ENABLE_VLAN_STRIPPING_V2 the specified ethertype will override
618 * The ethertype(s) specified in the ethertype_init field are the ethertypes
622 * VLAN ethertype supported for inner VLAN filtering is
642 * if the PF supports a different ethertype for stripping and insertion.
644 * VIRTCHNL_ETHERTYPE_STRIPPING_MATCHES_INSERTION - The ethertype(s) specified
645 * for stripping affect the ethertype(s) specified for insertion and visa versa
[all …]
/linux-6.14.4/net/atm/
Dlec.h55 * ATM LAN Emulation supports both LLC & Dix Ethernet EtherType
58 * 1. Dix Ethernet EtherType frames encoded by placing EtherType
/linux-6.14.4/Documentation/networking/device_drivers/ethernet/aquantia/
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-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
Ddr_types.h527 /* Incoming packet Ethertype - this is the Ethertype
531 u32 ethertype:16; member
592 * This field should be qualified by an appropriate ethertype
597 * This field should be qualified by an appropriate ethertype
602 * This field should be qualified by an appropriate ethertype
607 * This field should be qualified by an appropriate ethertype
612 * This field should be qualified by an appropriate ethertype
617 * This field should be qualified by an appropriate ethertype
622 * This field should be qualified by an appropriate ethertype
627 * This field should be qualified by an appropriate ethertype
/linux-6.14.4/tools/testing/selftests/net/
Dbareudp.sh360 local ETHERTYPE="$1"; readonly ETHERTYPE
366 case "${ETHERTYPE}" in
395 …ip -netns "${NS1}" link add name bareudp_ns1 up type bareudp dstport 6635 ethertype "${ETHERTYPE}"…
396 …ip -netns "${NS2}" link add name bareudp_ns2 up type bareudp dstport 6635 ethertype "${ETHERTYPE}"…
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-6.14.4/include/linux/
Dif_vlan.h312 * @ethertype: ether type to check
316 static inline bool eth_type_vlan(__be16 ethertype) in eth_type_vlan() argument
318 switch (ethertype) { in eth_type_vlan()
592 * __vlan_get_protocol_offset() - get protocol EtherType.
598 * Returns: the EtherType of the packet, regardless of whether it is
646 * vlan_get_protocol - get protocol EtherType.
649 * Returns: the EtherType of the packet, regardless of whether it is
/linux-6.14.4/drivers/net/ethernet/marvell/mvpp2/
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-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_ttc.c230 static u8 mlx5_etype_to_ipv(u16 ethertype) in mlx5_etype_to_ipv() argument
232 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
235 if (ethertype == ETH_P_IPV6) in mlx5_etype_to_ipv()
296 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5_generate_ttc_rule()
297 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype); in mlx5_generate_ttc_rule()
393 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in mlx5_create_ttc_table_groups()
/linux-6.14.4/net/netfilter/
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()

123456789