Home
last modified time | relevance | path

Searched refs:eth_proto (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/samples/bpf/
H A Dxdp_redirect_cpu_kern.c116 u16 *eth_proto, u64 *l3_offset) in parse_eth()
152 *eth_proto = ntohs(eth_type); in parse_eth()
332 u16 eth_proto = 0; in xdp_prognum3_proto_separate() local
345 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum3_proto_separate()
349 switch (eth_proto) { in xdp_prognum3_proto_separate()
400 u16 eth_proto = 0; in xdp_prognum4_ddos_filter_pktgen() local
414 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum4_ddos_filter_pktgen()
418 switch (eth_proto) { in xdp_prognum4_ddos_filter_pktgen()
520 u16 eth_proto = 0; in xdp_prognum5_lb_hash_ip_pairs() local
539 if (!(parse_eth(eth, data_end, &eth_proto, in xdp_prognum5_lb_hash_ip_pairs()
115 parse_eth(struct ethhdr *eth, void *data_end, u16 *eth_proto, u64 *l3_offset) parse_eth() argument
[all...]
H 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H 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()
357 /* don't update iph->daddr, since it will overwrite old eth_proto 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()
825 __u32 eth_proto; balancer_ingress_v6() local
[all...]
H A Dtest_sk_lookup_kern.c23 void *data_end, __u16 eth_proto, in get_tuple()
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()
22 get_tuple(void *data, __u64 nh_off, void *data_end, __u16 eth_proto, bool *ipv4) get_tuple() argument
H A 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()
H 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()
H A Dfexit_bpf2bpf.c123 __u32 eth_proto; in new_get_skb_ifindex() local
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H 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()
357 /* don't update iph->daddr, since it will overwrite old eth_proto in encap_v4()
763 __u32 eth_proto; in balancer_ingress_v4() local
769 eth_proto = bpf_ntohs(eth->eth_proto); in balancer_ingress_v4()
770 if (eth_proto == ETH_P_IP) in balancer_ingress_v4()
782 __u32 eth_proto; in balancer_ingress_v6() local
788 eth_proto in balancer_ingress_v6()
[all...]
H A Dtest_sk_lookup_kern.c22 void *data_end, __u16 eth_proto, in get_tuple()
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()
21 get_tuple(void *data, __u64 nh_off, void *data_end, __u16 eth_proto, bool *ipv4) get_tuple() argument
H A Dtest_l4lb_noinline_dynptr.c165 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()
H 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()
H 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A 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 in ptys_get_active_port()
698 ptys2ethtool_update_link_modes(unsigned long *link_modes, u32 eth_proto, enum ethtool_report report) ptys2ethtool_update_link_modes() argument
748 u32 eth_proto; ethtool_get_ptys_link_ksettings() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c562 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys2ethtool_update_supported_port() local
564 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys2ethtool_update_supported_port()
568 } else if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys2ethtool_update_supported_port()
575 } else if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys2ethtool_update_supported_port()
587 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_oper); in ptys_get_active_port() local
589 if (!eth_proto) /* link down */ in ptys_get_active_port()
590 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); 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 in ptys_get_active_port()
705 ptys2ethtool_update_link_modes(unsigned long *link_modes, u32 eth_proto, enum ethtool_report report) ptys2ethtool_update_link_modes() argument
751 u32 eth_proto; ethtool_get_ptys_link_ksettings() local
[all...]
/kernel/linux/linux-6.6/samples/bpf/
H 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c28 __be16 eth_proto; member
395 tpos->tuple.eth_proto == skb->protocol && in qede_arfs_htbl_key_search()
514 n->tuple.eth_proto = skb->protocol; in qede_rx_flow_steer()
1351 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry()
1412 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size()
1428 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp()
1429 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp()
1443 eth->h_proto = t->eth_proto; in qede_flow_build_ipv4_hdr()
1470 if (a->eth_proto != htons(ETH_P_IPV6) || in qede_flow_spec_ipv6_cmp()
1471 b->eth_proto ! in qede_flow_spec_ipv6_cmp()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c28 __be16 eth_proto; member
395 tpos->tuple.eth_proto == skb->protocol && in qede_arfs_htbl_key_search()
514 n->tuple.eth_proto = skb->protocol; in qede_rx_flow_steer()
1342 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry()
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()
1461 if (a->eth_proto != htons(ETH_P_IPV6) || in qede_flow_spec_ipv6_cmp()
1462 b->eth_proto ! in qede_flow_spec_ipv6_cmp()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dtc_conntrack.h42 __be16 eth_proto; member
H A Dtc_conntrack.c143 "Conntrack eth_proto is not exact-match; mask %04x\n", in efx_tc_ct_parse_match()
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()
151 "Conntrack eth_proto is not IPv%u, is %04x\n", in efx_tc_ct_parse_match()
152 ipv, ntohs(conn->eth_proto)); in efx_tc_ct_parse_match()
176 "Conntrack missing eth_proto, ip_proto\n"); in efx_tc_ct_parse_match()
H A Dmae.c359 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()
1586 match->value.eth_proto);
1588 match->mask.eth_proto);
1883 bool ipv6 = conn->eth_proto == htons(ETH_P_IPV6); in efx_mae_populate_ct_key()
1886 rc = TABLE_POPULATE_KEY(key, ct, eth_proto, conn->eth_proto); in efx_mae_populate_ct_key()
1915 bool ipv6 = conn->eth_proto == htons(ETH_P_IPV6); in efx_mae_insert_ct()
2079 match->value.eth_proto);
[all...]
H A Dtc.h92 __be16 eth_proto; member
/kernel/linux/linux-5.10/drivers/staging/ks7010/
H A Dks_hostif.c338 unsigned short eth_proto; in hostif_data_indication_wpa() local
349 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication_wpa()
366 eth_proto, priv->rx_size); in hostif_data_indication_wpa()
1065 unsigned short eth_proto; in hostif_data_request() local
1152 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_request()
1155 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1166 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1194 if (eth_proto == ETH_P_PAE) in hostif_data_request()
1210 if (eth_proto == ETH_P_PAE && in hostif_data_request()
/kernel/linux/linux-6.6/drivers/staging/ks7010/
H A Dks_hostif.c333 unsigned short eth_proto; in hostif_data_indication_wpa() local
344 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication_wpa()
361 eth_proto, priv->rx_size); in hostif_data_indication_wpa()
1056 unsigned short eth_proto; in hostif_data_request() local
1143 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_request()
1146 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1157 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1185 if (eth_proto == ETH_P_PAE) in hostif_data_request()
1201 if (eth_proto == ETH_P_PAE && in hostif_data_request()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c885 static u8 get_connector_port(struct mlx5_core_dev *mdev, u32 eth_proto, u8 connector_type) in get_connector_port() argument
890 if (eth_proto & in get_connector_port()
898 if (eth_proto & in get_connector_port()
905 if (eth_proto & in get_connector_port()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c953 static u8 get_connector_port(struct mlx5_core_dev *mdev, u32 eth_proto, u8 connector_type) in get_connector_port() argument
958 if (eth_proto & in get_connector_port()
966 if (eth_proto & in get_connector_port()
973 if (eth_proto & in get_connector_port()

Completed in 33 milliseconds

12