| /Linux-v5.4/samples/bpf/ |
| D | xdp_redirect_cpu_kern.c | 113 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, ð_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, ð_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, ð_proto, &l3_offset))) in xdp_prognum5_lb_hash_ip_pairs() [all …]
|
| D | tc_l2_redirect_kern.c | 48 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-v5.4/tools/testing/selftests/bpf/progs/ |
| D | test_sk_lookup_kern.c | 23 void *data_end, __u16 eth_proto, in get_tuple() argument 30 if (eth_proto == bpf_htons(ETH_P_IP)) { in get_tuple() 39 } else if (eth_proto == bpf_htons(ETH_P_IPV6)) { in get_tuple()
|
| D | test_xdp_noinline.c | 213 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() local 812 eth_proto = bpf_ntohs(eth->eth_proto); in balancer_ingress() 813 if (eth_proto == ETH_P_IP) in balancer_ingress() 815 else if (eth_proto == ETH_P_IPV6) in balancer_ingress()
|
| D | test_l4lb.c | 169 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()
|
| D | test_l4lb_noinline.c | 165 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-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
| D | en_ethtool.c | 553 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-v5.4/drivers/net/ethernet/qlogic/qede/ |
| D | qede_filter.c | 53 __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-v5.4/drivers/staging/ks7010/ |
| D | ks_hostif.c | 339 unsigned short eth_proto; in hostif_data_indication_wpa() local 350 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication_wpa() 367 eth_proto, priv->rx_size); in hostif_data_indication_wpa() 1070 unsigned short eth_proto; in hostif_data_request() local 1157 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_request() 1160 if (eth_proto == ETH_P_PAE && in hostif_data_request() 1171 if (eth_proto == ETH_P_PAE && in hostif_data_request() 1199 if (eth_proto == ETH_P_PAE) in hostif_data_request() 1215 if (eth_proto == ETH_P_PAE && in hostif_data_request()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en_ethtool.c | 845 static u8 get_connector_port(u32 eth_proto, u8 connector_type, bool ext) in get_connector_port() argument 850 if (eth_proto & in get_connector_port() 858 if (eth_proto & in get_connector_port() 865 if (eth_proto & in get_connector_port()
|
| /Linux-v5.4/drivers/net/ethernet/sun/ |
| D | niu.c | 6545 u16 eth_proto, eth_proto_inner; in niu_compute_tx_flags() local 6550 eth_proto = be16_to_cpu(ehdr->h_proto); in niu_compute_tx_flags() 6551 eth_proto_inner = eth_proto; in niu_compute_tx_flags() 6552 if (eth_proto == ETH_P_8021Q) { in niu_compute_tx_flags() 6600 ((eth_proto == ETH_P_8021Q) ? TXHDR_VLAN : 0) | in niu_compute_tx_flags()
|