Home
last modified time | relevance | path

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

/Linux-v4.19/samples/bpf/
Dxdp_redirect_cpu_kern.c113 u16 *eth_proto, u64 *l3_offset) in parse_eth() argument
149 *eth_proto = ntohs(eth_type); in parse_eth()
329 u16 eth_proto = 0; in xdp_prognum3_proto_separate() local
342 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum3_proto_separate()
346 switch (eth_proto) { in xdp_prognum3_proto_separate()
397 u16 eth_proto = 0; in xdp_prognum4_ddos_filter_pktgen() local
411 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum4_ddos_filter_pktgen()
415 switch (eth_proto) { in xdp_prognum4_ddos_filter_pktgen()
517 u16 eth_proto = 0; in xdp_prognum5_lb_hash_ip_pairs() local
536 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum5_lb_hash_ip_pairs()
[all …]
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-v4.19/tools/testing/selftests/bpf/
Dtest_xdp_noinline.c224 unsigned short eth_proto; member
312 new_eth->eth_proto = 56710; in encap_v6()
360 new_eth->eth_proto = 8; in encap_v4()
396 new_eth->eth_proto = 8; in decap_v6()
398 new_eth->eth_proto = 56710; in decap_v6()
416 new_eth->eth_proto = 8; in decap_v4()
817 __u32 eth_proto; in balancer_ingress() local
823 eth_proto = eth->eth_proto; in balancer_ingress()
824 if (eth_proto == 8) in balancer_ingress()
826 else if (eth_proto == 56710) in balancer_ingress()
Dtest_l4lb.c169 unsigned short eth_proto; member
459 __u32 eth_proto; in balancer_ingress() local
465 eth_proto = eth->eth_proto; in balancer_ingress()
466 if (eth_proto == bpf_htons(ETH_P_IP)) in balancer_ingress()
468 else if (eth_proto == bpf_htons(ETH_P_IPV6)) in balancer_ingress()
Dtest_l4lb_noinline.c165 unsigned short eth_proto; member
459 __u32 eth_proto; in balancer_ingress() local
465 eth_proto = eth->eth_proto; in balancer_ingress()
466 if (eth_proto == bpf_htons(ETH_P_IP)) in balancer_ingress()
468 else if (eth_proto == bpf_htons(ETH_P_IPV6)) in balancer_ingress()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c553 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys2ethtool_update_supported_port() local
555 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys2ethtool_update_supported_port()
559 } else if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys2ethtool_update_supported_port()
566 } else if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys2ethtool_update_supported_port()
578 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_oper); in ptys_get_active_port() local
580 if (!eth_proto) /* link down */ in ptys_get_active_port()
581 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys_get_active_port()
583 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_active_port()
589 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_SR) in ptys_get_active_port()
596 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_active_port()
[all …]
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c53 __be16 eth_proto; member
417 tpos->tuple.eth_proto == skb->protocol && in qede_arfs_htbl_key_search()
536 n->tuple.eth_proto = skb->protocol; in qede_rx_flow_steer()
1424 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry()
1485 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size()
1501 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp()
1502 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp()
1516 eth->h_proto = t->eth_proto; in qede_flow_build_ipv4_hdr()
1543 if (a->eth_proto != htons(ETH_P_IPV6) || in qede_flow_spec_ipv6_cmp()
1544 b->eth_proto != htons(ETH_P_IPV6)) in qede_flow_spec_ipv6_cmp()
[all …]
/Linux-v4.19/net/ipv4/
Dxfrm4_state.c77 .eth_proto = htons(ETH_P_IP),
/Linux-v4.19/drivers/staging/ks7010/
Dks_hostif.c276 unsigned short eth_proto; in hostif_data_indication_wpa() local
287 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication_wpa()
302 eth_proto, priv->rx_size); in hostif_data_indication_wpa()
1004 unsigned short eth_proto; in hostif_data_request() local
1092 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_request()
1095 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1106 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1131 if (eth_proto == ETH_P_PAE) in hostif_data_request()
1147 if (eth_proto == ETH_P_PAE && in hostif_data_request()
/Linux-v4.19/net/ipv6/
Dxfrm6_state.c174 .eth_proto = htons(ETH_P_IPV6),
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c677 static u8 get_connector_port(u32 eth_proto, u8 connector_type) in get_connector_port() argument
682 if (eth_proto & in get_connector_port()
690 if (eth_proto & in get_connector_port()
697 if (eth_proto & in get_connector_port()
/Linux-v4.19/net/xfrm/
Dxfrm_input.c218 skb->protocol = inner_mode->afinfo->eth_proto; in xfrm_prepare_input()
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c6547 u16 eth_proto, eth_proto_inner; in niu_compute_tx_flags() local
6552 eth_proto = be16_to_cpu(ehdr->h_proto); in niu_compute_tx_flags()
6553 eth_proto_inner = eth_proto; in niu_compute_tx_flags()
6554 if (eth_proto == ETH_P_8021Q) { in niu_compute_tx_flags()
6602 ((eth_proto == ETH_P_8021Q) ? TXHDR_VLAN : 0) | in niu_compute_tx_flags()
/Linux-v4.19/include/net/
Dxfrm.h346 __be16 eth_proto; member