/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | ls1088a_serdes.c | 10 u8 ip_protocol; member 62 while (ptr->ip_protocol) { in serdes_get_number() 77 return ptr->ip_protocol; in serdes_get_number() 92 while (ptr->ip_protocol) { in serdes_get_prtcl() 93 if (ptr->ip_protocol == cfg) in serdes_get_prtcl() 110 while (ptr->ip_protocol) { in is_serdes_prtcl_valid() 111 if (ptr->ip_protocol == prtcl) in is_serdes_prtcl_valid() 116 if (!ptr->ip_protocol) in is_serdes_prtcl_valid()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_select_reuseport_kern.c | 80 data_check.ip_protocol = reuse_md->ip_protocol; in _select_by_skb_data() 105 if (data_check.ip_protocol == IPPROTO_TCP) { in _select_by_skb_data() 126 } else if (data_check.ip_protocol == IPPROTO_UDP) { in _select_by_skb_data()
|
H A D | test_assign_reuse.c | 38 if (ctx->ip_protocol == IPPROTO_TCP) { in reuse_accept() 44 } else if (ctx->ip_protocol == IPPROTO_UDP) { in reuse_accept()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | fs_ttc.c | 210 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in mlx5_generate_ttc_rule() 211 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, proto); in mlx5_generate_ttc_rule() 312 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ip_protocol); in mlx5_create_ttc_table_groups() 327 MLX5_SET(fte_match_param, mc, outer_headers.ip_protocol, 0); in mlx5_create_ttc_table_groups() 382 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_protocol); in mlx5_generate_inner_ttc_rule() 383 MLX5_SET(fte_match_param, spec->match_value, inner_headers.ip_protocol, proto); in mlx5_generate_inner_ttc_rule() 454 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_protocol); in mlx5_create_inner_ttc_table_groups() 466 MLX5_SET(fte_match_param, mc, inner_headers.ip_protocol, 0); in mlx5_create_inner_ttc_table_groups()
|
H A D | ipsec_fs_roce.c | 40 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in ipsec_fs_roce_setup_udp_dport() 41 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in ipsec_fs_roce_setup_udp_dport() 274 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in mlx5_ipsec_fs_roce_rx_create()
|
H A D | macsec_fs.c | 1283 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in macsec_fs_rx_roce_jump_to_rdma_groups_create() 1339 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in macsec_fs_rx_roce_jump_to_rdma_rules_create() 1340 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in macsec_fs_rx_roce_jump_to_rdma_rules_create()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_gre.c | 65 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_gretap() 66 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_GRE); in mlx5e_tc_tun_parse_gretap()
|
H A D | fs_tt_redirect.c | 67 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in fs_udp_set_dport_flow() 68 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in fs_udp_set_dport_flow() 164 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in fs_udp_create_groups()
|
H A D | tc_tun.c | 972 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_udp_ports() 973 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_UDP); in mlx5e_tc_tun_parse_udp_ports()
|
H A D | tc_ct.c | 383 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match() 385 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in mlx5_tc_ct_set_tuple_match()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.c | 31 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv4_flow() 32 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_TCP); in accel_fs_tcp_set_ipv4_flow() 50 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv6_flow() 51 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_TCP); in accel_fs_tcp_set_ipv6_flow() 200 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in accel_fs_tcp_create_groups()
|
H A D | ipsec_fs.c | 972 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_esp() 973 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_ESP); in setup_fte_esp() 1061 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, spec->match_criteria, ip_protocol); in setup_fte_upper_proto_match() 1062 MLX5_SET(fte_match_set_lyr_2_4, spec->match_value, ip_protocol, upspec->proto); in setup_fte_upper_proto_match()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 210 MLX5E_FTE_SET(headers_c, ip_protocol, 0xffff); in set_tcp() 211 MLX5E_FTE_SET(headers_v, ip_protocol, IPPROTO_TCP); in set_tcp() 228 MLX5E_FTE_SET(headers_c, ip_protocol, 0xffff); in set_udp() 229 MLX5E_FTE_SET(headers_v, ip_protocol, IPPROTO_UDP); in set_udp() 268 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->proto); in parse_ip4() 269 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->proto); in parse_ip4() 283 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6() 284 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->l4_proto); in parse_ip6()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_select_reuseport_common.h | 25 __u32 ip_protocol; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | ct_fs_smfs.c | 57 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5_ct_fs_smfs_fill_mask() 327 outer_headers.ip_protocol) == IPPROTO_TCP; in mlx5_ct_fs_smfs_ct_rule_add() 329 outer_headers.ip_protocol) == IPPROTO_GRE; in mlx5_ct_fs_smfs_ct_rule_add()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | select_reuseport.c | 257 expected.ip_protocol = IPPROTO_TCP; in check_data() 260 expected.ip_protocol = IPPROTO_UDP; in check_data() 290 result.eth_protocol, result.ip_protocol, in check_data() 293 expected.eth_protocol, expected.ip_protocol, in check_data()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 139 PRINT_MASKED_VAL_L2(u8, ip_protocol, ip_protocol, p, "%02x"); in print_lyr_2_4_hdrs()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_mcast.c | 788 MLX5_SET_TO_ONES(fte_match_param, match, outer_headers.ip_protocol); in mlx5_esw_bridge_ingress_igmp_fg_create() 901 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, outer_headers.ip_protocol); in mlx5_esw_bridge_ingress_igmp_fh_create() 902 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.ip_protocol, IPPROTO_IGMP); in mlx5_esw_bridge_ingress_igmp_fh_create()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 69 ip_protocol); in set_proto() 71 ip_protocol); in set_proto() 73 MLX5_SET(fte_match_set_lyr_2_4, outer_c, ip_protocol, mask); in set_proto() 74 MLX5_SET(fte_match_set_lyr_2_4, outer_v, ip_protocol, val); in set_proto() 403 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in parse_flow_attr() 405 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in parse_flow_attr()
|
/openbmc/qemu/hw/net/ |
H A D | rtl8139.c | 2080 uint8_t ip_protocol = 0; in rtl8139_cplus_transmit_one() local 2116 ip_protocol = ip->ip_p; in rtl8139_cplus_transmit_one() 2134 if ((txdw0 & CP_TX_LGSEN) && ip_protocol == IP_PROTO_TCP) in rtl8139_cplus_transmit_one() 2273 if ((txdw0 & CP_TX_TCPCS) && ip_protocol == IP_PROTO_TCP) in rtl8139_cplus_transmit_one() 2293 else if ((txdw0 & CP_TX_UDPCS) && ip_protocol == IP_PROTO_UDP) in rtl8139_cplus_transmit_one()
|
/openbmc/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 4218 u8 ip_protocol; in rtl8169_tso_csum_v2() local 4223 ip_protocol = ip_hdr(skb)->protocol; in rtl8169_tso_csum_v2() 4228 ip_protocol = ipv6_hdr(skb)->nexthdr; in rtl8169_tso_csum_v2() 4232 ip_protocol = IPPROTO_RAW; in rtl8169_tso_csum_v2() 4236 if (ip_protocol == IPPROTO_TCP) in rtl8169_tso_csum_v2() 4238 else if (ip_protocol == IPPROTO_UDP) in rtl8169_tso_csum_v2()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste.c | 874 spec->ip_protocol = IFC_GET_CLR(fte_match_set_lyr_2_4, mask, ip_protocol, clr); in dr_ste_copy_mask_spec()
|
H A D | dr_ste_v0.c | 856 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, protocol, spec, ip_protocol); in dr_ste_v0_build_eth_l3_ipv4_5_tuple_tag() 1185 DR_STE_SET_TAG(eth_l4, tag, protocol, spec, ip_protocol); in dr_ste_v0_build_eth_ipv6_l3_l4_tag()
|
H A D | dr_matcher.c | 18 return (spec->ip_protocol || spec->frag || spec->tcp_flags || in dr_mask_is_l3_base_set()
|
H A D | dr_ste_v1.c | 1232 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple_v1, tag, protocol, spec, ip_protocol); in dr_ste_v1_build_eth_l3_ipv4_5_tuple_tag() 1542 DR_STE_SET_TAG(eth_l4_v1, tag, protocol, spec, ip_protocol); in dr_ste_v1_build_eth_ipv6_l3_l4_tag()
|