| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_xdp_noinline.c | 214 unsigned short eth_proto; member 302 new_eth->eth_proto = 56710; in encap_v6() 358 new_eth->eth_proto = 8; in encap_v4() 779 __u32 eth_proto; in balancer_ingress_v4() local 785 eth_proto = bpf_ntohs(eth->eth_proto); in balancer_ingress_v4() 786 if (eth_proto == ETH_P_IP) in balancer_ingress_v4() 798 __u32 eth_proto; in balancer_ingress_v6() local 804 eth_proto = bpf_ntohs(eth->eth_proto); in balancer_ingress_v6() 805 if (eth_proto == ETH_P_IPV6) in balancer_ingress_v6()
|
| A D | test_sk_lookup_kern.c | 22 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 D | test_l4lb.c | 167 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 D | test_l4lb_noinline.c | 163 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 D | test_l4lb_noinline_dynptr.c | 165 unsigned short eth_proto; member 463 __u32 eth_proto; in balancer_ingress() local 473 eth_proto = eth->eth_proto; in balancer_ingress() 474 if (eth_proto == bpf_htons(ETH_P_IP)) in balancer_ingress() 476 else if (eth_proto == bpf_htons(ETH_P_IPV6)) in balancer_ingress()
|
| /linux/samples/bpf/ |
| A 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/drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_ethtool.c | 545 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys2ethtool_update_supported_port() 570 if (!eth_proto) /* link down */ in ptys_get_active_port() 573 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_active_port() 579 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_SR) in ptys_get_active_port() 586 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_active_port() 687 u32 eth_proto, in ptys2ethtool_update_link_modes() argument 692 if (eth_proto & MLX4_PROT_MASK(i)) in ptys2ethtool_update_link_modes() 732 u32 eth_proto; in ethtool_get_ptys_link_ksettings() local 765 eth_proto, SUPPORTED); in ethtool_get_ptys_link_ksettings() 769 eth_proto, ADVERTISED); in ethtool_get_ptys_link_ksettings() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| A D | qede_filter.c | 28 __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() 1794 tuple->eth_proto = htons(ETH_P_IPV6); in qede_flow_parse_tcp_v6() 1804 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_tcp_v4() 1814 tuple->eth_proto = htons(ETH_P_IPV6); in qede_flow_parse_udp_v6() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | tc_conntrack.h | 42 __be16 eth_proto; member
|
| A D | tc_conntrack.c | 147 conn->eth_proto = fm.key->n_proto; in efx_tc_ct_parse_match() 148 if (conn->eth_proto != (ipv == 4 ? htons(ETH_P_IP) in efx_tc_ct_parse_match() 152 ipv, ntohs(conn->eth_proto)); in efx_tc_ct_parse_match() 404 if (conn->eth_proto != htons(ETH_P_IP)) { in efx_tc_ct_replace()
|
| A D | mae.c | 359 rc = TABLE_HOOK_KEY(meta_ct, eth_proto, ETHER_TYPE); in efx_mae_table_hook_ct() 679 if (CHECK(ETHER_TYPE, eth_proto) || in efx_mae_match_check_caps() 774 if (CHECK(ENC_ETHER_TYPE, eth_proto) || in efx_mae_match_check_caps_lhs() 1587 match->value.eth_proto); in efx_mae_populate_lhs_match_criteria() 1589 match->mask.eth_proto); in efx_mae_populate_lhs_match_criteria() 1939 bool ipv6 = conn->eth_proto == htons(ETH_P_IPV6); in efx_mae_populate_ct_key() 1942 rc = TABLE_POPULATE_KEY(key, ct, eth_proto, conn->eth_proto); in efx_mae_populate_ct_key() 1971 bool ipv6 = conn->eth_proto == htons(ETH_P_IPV6); in efx_mae_insert_ct() 2135 match->value.eth_proto); in efx_mae_populate_match_criteria() 2137 match->mask.eth_proto); in efx_mae_populate_match_criteria()
|
| A D | tc.h | 94 __be16 eth_proto; member
|
| A D | tc.c | 304 MAP_KEY_AND_MASK(BASIC, basic, n_proto, eth_proto); in efx_tc_flower_parse_match() 306 if (!IS_ALL_ONES(match->mask.eth_proto) || in efx_tc_flower_parse_match() 307 !(match->value.eth_proto == htons(ETH_P_IP) || in efx_tc_flower_parse_match() 308 match->value.eth_proto == htons(ETH_P_IPV6))) in efx_tc_flower_parse_match() 948 return match->mask.eth_proto || in efx_tc_flower_flhs_needs_ar()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_ethtool.c | 1136 static u8 get_connector_port(struct mlx5_core_dev *mdev, u32 eth_proto, u8 connector_type) in get_connector_port() argument 1141 if (eth_proto & in get_connector_port() 1149 if (eth_proto & in get_connector_port() 1156 if (eth_proto & in get_connector_port()
|
| /linux/drivers/net/ethernet/sun/ |
| A D | niu.c | 6561 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()
|