Home
last modified time | relevance | path

Searched refs:eth_proto (Results 1 – 15 of 15) sorted by relevance

/linux-6.3-rc2/samples/bpf/
A Dxdp_redirect_cpu.bpf.c53 u16 *eth_proto, u64 *l3_offset) in parse_eth() argument
91 *eth_proto = bpf_ntohs(eth_type); in parse_eth()
263 u16 eth_proto = 0; in xdp_prognum3_proto_separate() local
274 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum3_proto_separate()
278 switch (eth_proto) { in xdp_prognum3_proto_separate()
329 u16 eth_proto = 0; in xdp_prognum4_ddos_filter_pktgen() local
341 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum4_ddos_filter_pktgen()
345 switch (eth_proto) { in xdp_prognum4_ddos_filter_pktgen()
445 u16 eth_proto = 0; in xdp_prognum5_lb_hash_ip_pairs() local
463 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum5_lb_hash_ip_pairs()
[all …]
A Dtc_l2_redirect_kern.c48 static __always_inline bool is_vip_addr(__be16 eth_proto, __be32 daddr) in is_vip_addr() argument
50 if (eth_proto == htons(ETH_P_IP)) in is_vip_addr()
52 else if (eth_proto == htons(ETH_P_IPV6)) in is_vip_addr()
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_xdp_noinline.c213 unsigned short eth_proto; member
301 new_eth->eth_proto = 56710; in encap_v6()
349 new_eth->eth_proto = 8; in encap_v4()
385 new_eth->eth_proto = 8; in decap_v6()
387 new_eth->eth_proto = 56710; in decap_v6()
405 new_eth->eth_proto = 8; in decap_v4()
806 __u32 eth_proto; in balancer_ingress_v4() local
812 eth_proto = bpf_ntohs(eth->eth_proto); in balancer_ingress_v4()
813 if (eth_proto == ETH_P_IP) in balancer_ingress_v4()
825 __u32 eth_proto; in balancer_ingress_v6() local
[all …]
A Dtest_sk_lookup_kern.c22 void *data_end, __u16 eth_proto, in get_tuple() argument
29 if (eth_proto == bpf_htons(ETH_P_IP)) { in get_tuple()
38 } else if (eth_proto == bpf_htons(ETH_P_IPV6)) { in get_tuple()
A Dtest_l4lb.c167 unsigned short eth_proto; member
457 __u32 eth_proto; in balancer_ingress() local
463 eth_proto = eth->eth_proto; in balancer_ingress()
464 if (eth_proto == bpf_htons(ETH_P_IP)) in balancer_ingress()
466 else if (eth_proto == bpf_htons(ETH_P_IPV6)) in balancer_ingress()
A Dtest_l4lb_noinline.c163 unsigned short eth_proto; member
456 __u32 eth_proto; in balancer_ingress() local
462 eth_proto = eth->eth_proto; in balancer_ingress()
463 if (eth_proto == bpf_htons(ETH_P_IP)) in balancer_ingress()
465 else if (eth_proto == bpf_htons(ETH_P_IPV6)) in balancer_ingress()
A Dfexit_bpf2bpf.c123 __u32 eth_proto; in new_get_skb_ifindex() local
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c564 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys2ethtool_update_supported_port()
589 if (!eth_proto) /* link down */ in ptys_get_active_port()
592 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_active_port()
598 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_SR) in ptys_get_active_port()
605 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_active_port()
706 u32 eth_proto, in ptys2ethtool_update_link_modes() argument
711 if (eth_proto & MLX4_PROT_MASK(i)) in ptys2ethtool_update_link_modes()
751 u32 eth_proto; in ethtool_get_ptys_link_ksettings() local
784 eth_proto, SUPPORTED); in ethtool_get_ptys_link_ksettings()
788 eth_proto, ADVERTISED); in ethtool_get_ptys_link_ksettings()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qede/
A Dqede_filter.c28 __be16 eth_proto; member
514 n->tuple.eth_proto = skb->protocol; in qede_rx_flow_steer()
1403 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size()
1419 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp()
1420 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp()
1434 eth->h_proto = t->eth_proto; in qede_flow_build_ipv4_hdr()
1481 eth->h_proto = t->eth_proto; in qede_flow_build_ipv6_hdr()
1784 tuple->eth_proto = htons(ETH_P_IPV6); in qede_flow_parse_tcp_v6()
1794 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_tcp_v4()
1804 tuple->eth_proto = htons(ETH_P_IPV6); in qede_flow_parse_udp_v6()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Dtc.h34 __be16 eth_proto; member
A Dtc.c203 MAP_KEY_AND_MASK(BASIC, basic, n_proto, eth_proto); in efx_tc_flower_parse_match()
205 if (!IS_ALL_ONES(match->mask.eth_proto) || in efx_tc_flower_parse_match()
206 !(match->value.eth_proto == htons(ETH_P_IP) || in efx_tc_flower_parse_match()
207 match->value.eth_proto == htons(ETH_P_IPV6))) in efx_tc_flower_parse_match()
A Dmae.c412 if (CHECK(ETHER_TYPE, eth_proto) || in efx_mae_match_check_caps()
859 match->value.eth_proto); in efx_mae_populate_match_criteria()
861 match->mask.eth_proto); in efx_mae_populate_match_criteria()
/linux-6.3-rc2/drivers/staging/ks7010/
A Dks_hostif.c334 unsigned short eth_proto; in hostif_data_indication_wpa() local
345 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication_wpa()
362 eth_proto, priv->rx_size); in hostif_data_indication_wpa()
1057 unsigned short eth_proto; in hostif_data_request() local
1144 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_request()
1147 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1158 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1186 if (eth_proto == ETH_P_PAE) in hostif_data_request()
1202 if (eth_proto == ETH_P_PAE && in hostif_data_request()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Den_ethtool.c948 static u8 get_connector_port(struct mlx5_core_dev *mdev, u32 eth_proto, u8 connector_type) in get_connector_port() argument
953 if (eth_proto & in get_connector_port()
961 if (eth_proto & in get_connector_port()
968 if (eth_proto & in get_connector_port()
/linux-6.3-rc2/drivers/net/ethernet/sun/
A Dniu.c6561 u16 eth_proto, eth_proto_inner; in niu_compute_tx_flags() local
6566 eth_proto = be16_to_cpu(ehdr->h_proto); in niu_compute_tx_flags()
6567 eth_proto_inner = eth_proto; in niu_compute_tx_flags()
6568 if (eth_proto == ETH_P_8021Q) { in niu_compute_tx_flags()
6616 ((eth_proto == ETH_P_8021Q) ? TXHDR_VLAN : 0) | in niu_compute_tx_flags()

Completed in 45 milliseconds