Home
last modified time | relevance | path

Searched refs:ip_protocol (Results 1 – 25 of 29) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
A Dtest_select_reuseport_kern.c80 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dfs_ttc.c210 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()
452 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_protocol); in mlx5_create_inner_ttc_table_groups()
464 MLX5_SET(fte_match_param, mc, inner_headers.ip_protocol, 0); in mlx5_create_inner_ttc_table_groups()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dfs_tcp.c31 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()
203 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in accel_fs_tcp_create_groups()
A Dipsec_fs.c422 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_common()
423 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_ESP); in setup_fte_common()
/linux/include/linux/mlx5/
A Dfs_helpers.h57 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, ip_protocol) == 0xff && in _mlx5_fs_is_outer_ipproto_flow()
58 MLX5_GET(fte_match_set_lyr_2_4, headers_v, ip_protocol) == match; in _mlx5_fs_is_outer_ipproto_flow()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_gre.c65 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()
A Dfs_tt_redirect.c67 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()
165 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in fs_udp_create_groups()
A Dtc_tun.c971 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_udp_ports()
972 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_UDP); in mlx5e_tc_tun_parse_udp_ports()
A Dtc_ct.c340 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match()
342 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in mlx5_tc_ct_set_tuple_match()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c197 MLX5E_FTE_SET(headers_c, ip_protocol, 0xffff); in set_tcp()
198 MLX5E_FTE_SET(headers_v, ip_protocol, IPPROTO_TCP); in set_tcp()
215 MLX5E_FTE_SET(headers_c, ip_protocol, 0xffff); in set_udp()
216 MLX5E_FTE_SET(headers_v, ip_protocol, IPPROTO_UDP); in set_udp()
255 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->proto); in parse_ip4()
256 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->proto); in parse_ip4()
270 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6()
271 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->l4_proto); in parse_ip6()
A Den_tc.c2366 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in __parse_cls_flower()
2368 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in __parse_cls_flower()
3246 ip_proto = MLX5_GET(fte_match_set_lyr_2_4, headers_v, ip_protocol); in modify_header_match_supported()
/linux/tools/testing/selftests/bpf/
A Dtest_select_reuseport_common.h25 __u32 ip_protocol; member
/linux/tools/testing/selftests/bpf/prog_tests/
A Dselect_reuseport.c267 expected.ip_protocol = IPPROTO_TCP; in check_data()
270 expected.ip_protocol = IPPROTO_UDP; in check_data()
300 result.eth_protocol, result.ip_protocol, in check_data()
303 expected.eth_protocol, expected.ip_protocol, in check_data()
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
A Dfs_tracepoint.c139 PRINT_MASKED_VAL_L2(u8, ip_protocol, ip_protocol, p, "%02x"); in print_lyr_2_4_hdrs()
/linux/drivers/infiniband/hw/mlx5/
A Dfs.c70 ip_protocol); in set_proto()
72 ip_protocol); in set_proto()
74 MLX5_SET(fte_match_set_lyr_2_4, outer_c, ip_protocol, mask); in set_proto()
75 MLX5_SET(fte_match_set_lyr_2_4, outer_v, ip_protocol, val); in set_proto()
422 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in parse_flow_attr()
424 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in parse_flow_attr()
/linux/drivers/net/ethernet/realtek/
A Dr8169_main.c4163 u8 ip_protocol; in rtl8169_tso_csum_v2() local
4168 ip_protocol = ip_hdr(skb)->protocol; in rtl8169_tso_csum_v2()
4173 ip_protocol = ipv6_hdr(skb)->nexthdr; in rtl8169_tso_csum_v2()
4177 ip_protocol = IPPROTO_RAW; in rtl8169_tso_csum_v2()
4181 if (ip_protocol == IPPROTO_TCP) in rtl8169_tso_csum_v2()
4183 else if (ip_protocol == IPPROTO_UDP) in rtl8169_tso_csum_v2()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Ddr_ste.c753 spec->ip_protocol = IFC_GET_CLR(fte_match_set_lyr_2_4, mask, ip_protocol, clr); in dr_ste_copy_mask_spec()
A Ddr_ste_v0.c853 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()
1181 DR_STE_SET_TAG(eth_l4, tag, protocol, spec, ip_protocol); in dr_ste_v0_build_eth_ipv6_l3_l4_tag()
A Ddr_ste_v1.c1049 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()
1358 DR_STE_SET_TAG(eth_l4_v1, tag, protocol, spec, ip_protocol); in dr_ste_v1_build_eth_ipv6_l3_l4_tag()
A Ddr_matcher.c30 return (spec->ip_protocol || spec->frag || spec->tcp_flags || in dr_mask_is_l3_base_set()
A Ddr_types.h535 u32 ip_protocol:8; /* IP protocol */ member
/linux/tools/include/uapi/linux/
A Dbpf.h5589 __u32 ip_protocol; /* IP protocol. e.g. IPPROTO_TCP, IPPROTO_UDP */ member
/linux/include/uapi/linux/
A Dbpf.h5589 __u32 ip_protocol; /* IP protocol. e.g. IPPROTO_TCP, IPPROTO_UDP */ member
/linux/drivers/net/usb/
A Dr8152.c2198 u8 ip_protocol; in r8152_tx_csum() local
2211 ip_protocol = ip_hdr(skb)->protocol; in r8152_tx_csum()
2216 ip_protocol = ipv6_hdr(skb)->nexthdr; in r8152_tx_csum()
2220 ip_protocol = IPPROTO_RAW; in r8152_tx_csum()
2224 if (ip_protocol == IPPROTO_TCP) in r8152_tx_csum()
2226 else if (ip_protocol == IPPROTO_UDP) in r8152_tx_csum()
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_tc.c809 req->ip_protocol = CFA_DECAP_FILTER_ALLOC_REQ_IP_PROTOCOL_UDP; in hwrm_cfa_decap_filter_alloc()

Completed in 689 milliseconds

12