Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H 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()
H A Dtest_assign_reuse.c38 if (ctx->ip_protocol == IPPROTO_TCP) { in reuse_accept()
44 } else if (ctx->ip_protocol == IPPROTO_UDP) { in reuse_accept()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H 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()
200 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in accel_fs_tcp_create_groups()
H A Dipsec_fs.c1210 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_esp()
1211 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_ESP); in setup_fte_esp()
1299 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, spec->match_criteria, ip_protocol); in setup_fte_upper_proto_match()
1300 MLX5_SET(fte_match_set_lyr_2_4, spec->match_value, ip_protocol, upspec->proto); in setup_fte_upper_proto_match()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c69 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_gretap()
70 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_GRE); in mlx5e_tc_tun_parse_gretap()
H 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()
164 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in fs_udp_create_groups()
H A Dtc_tun.c982 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_udp_ports()
983 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_UDP); in mlx5e_tc_tun_parse_udp_ports()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c210 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c255 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5_fs_ttc_set_match_proto()
256 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, proto); in mlx5_fs_ttc_set_match_proto()
411 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ip_protocol); in mlx5_create_ttc_table_groups()
421 MLX5_SET(fte_match_param, mc, outer_headers.ip_protocol, 0); in mlx5_create_ttc_table_groups()
572 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_protocol); in mlx5_create_inner_ttc_table_groups()
582 MLX5_SET(fte_match_param, mc, inner_headers.ip_protocol, 0); in mlx5_create_inner_ttc_table_groups()
H A Dipsec_fs_roce.c53 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in ipsec_fs_roce_setup_udp_dport()
54 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in ipsec_fs_roce_setup_udp_dport()
747 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in mlx5_ipsec_fs_roce_rx_create()
/linux/tools/testing/selftests/bpf/
H A Dtest_select_reuseport_common.h25 __u32 ip_protocol; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dselect_reuseport.c247 expected.ip_protocol = IPPROTO_TCP; in check_data()
250 expected.ip_protocol = IPPROTO_UDP; in check_data()
280 result.eth_protocol, result.ip_protocol, in check_data()
283 expected.eth_protocol, expected.ip_protocol, in check_data()
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfs_tracepoint.c139 PRINT_MASKED_VAL_L2(u8, ip_protocol, ip_protocol, p, "%02x"); in print_lyr_2_4_hdrs()
/linux/drivers/net/ethernet/realtek/rtase/
H A Drtase_main.c1210 u8 ip_protocol; in rtase_tx_csum() local
1215 ip_protocol = ip_hdr(skb)->protocol; in rtase_tx_csum()
1220 ip_protocol = ipv6_hdr(skb)->nexthdr; in rtase_tx_csum()
1224 ip_protocol = IPPROTO_RAW; in rtase_tx_csum()
1228 if (ip_protocol == IPPROTO_TCP) in rtase_tx_csum()
1230 else if (ip_protocol == IPPROTO_UDP) in rtase_tx_csum()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_mcast.c788 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()
/linux/drivers/net/ethernet/realtek/
H A Dr8169_main.c4338 u8 ip_protocol; in rtl8169_tso_csum_v2() local
4343 ip_protocol = ip_hdr(skb)->protocol; in rtl8169_tso_csum_v2()
4348 ip_protocol = ipv6_hdr(skb)->nexthdr; in rtl8169_tso_csum_v2()
4352 ip_protocol = IPPROTO_RAW; in rtl8169_tso_csum_v2()
4356 if (ip_protocol == IPPROTO_TCP) in rtl8169_tso_csum_v2()
4358 else if (ip_protocol == IPPROTO_UDP) in rtl8169_tso_csum_v2()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v1.c1096 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()
1406 DR_STE_SET_TAG(eth_l4_v1, tag, protocol, spec, ip_protocol); in dr_ste_v1_build_eth_ipv6_l3_l4_tag()
/linux/include/uapi/linux/
H A Dbpf.h6540 __u32 ip_protocol; /* IP protocol. e.g. IPPROTO_TCP, IPPROTO_UDP */ member
/linux/tools/include/uapi/linux/
H A Dbpf.h6540 __u32 ip_protocol; /* IP protocol. e.g. IPPROTO_TCP, IPPROTO_UDP */ member
/linux/drivers/net/usb/
H A Dr8152.c2315 u8 ip_protocol; in r8152_tx_csum() local
2328 ip_protocol = ip_hdr(skb)->protocol; in r8152_tx_csum()
2333 ip_protocol = ipv6_hdr(skb)->nexthdr; in r8152_tx_csum()
2337 ip_protocol = IPPROTO_RAW; in r8152_tx_csum()
2341 if (ip_protocol == IPPROTO_TCP) in r8152_tx_csum()
2343 else if (ip_protocol == IPPROTO_UDP) in r8152_tx_csum()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c813 req->ip_protocol = CFA_DECAP_FILTER_ALLOC_REQ_IP_PROTOCOL_UDP; in hwrm_cfa_decap_filter_alloc()
H A Dbnxt_hsi.h7983 u8 ip_protocol; member
8173 u8 ip_protocol; member
H A Dbnxt.c6203 req->ip_protocol = keys->basic.ip_proto; in bnxt_hwrm_cfa_ntuple_filter_alloc()
/linux/net/core/
H A Dfilter.c11401 case bpf_ctx_range(struct sk_reuseport_md, ip_protocol): in sk_reuseport_is_valid_access()
11453 case offsetof(struct sk_reuseport_md, ip_protocol): in sk_reuseport_convert_ctx_access()
/linux/include/linux/mlx5/
H A Dmlx5_ifc.h568 u8 ip_protocol[0x8]; member