/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | ud_header.c | 187 { STRUCT_FIELD(grh, ip_version), 310 * @ip_version: if non-zero, IP header, V4 or V6, will be included 320 int ip_version, in ib_ud_header_init() 327 grh_present = grh_present && !ip_version; in ib_ud_header_init() 333 if (udp_present && ip_version != 4 && ip_version != 6) in ib_ud_header_init() 355 if (ip_version == 6 || grh_present) { in ib_ud_header_init() 356 header->grh.ip_version = 6; in ib_ud_header_init() 367 if (ip_version == 4) { in ib_ud_header_init() 379 if (udp_present && ip_version) in ib_ud_header_init() 315 ib_ud_header_init(int payload_bytes, int lrh_present, int eth_present, int vlan_present, int grh_present, int ip_version, int udp_present, int immediate_present, struct ib_ud_header *header) ib_ud_header_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | ud_header.c | 187 { STRUCT_FIELD(grh, ip_version), 310 * @ip_version: if non-zero, IP header, V4 or V6, will be included 320 int ip_version, in ib_ud_header_init() 327 grh_present = grh_present && !ip_version; in ib_ud_header_init() 333 if (udp_present && ip_version != 4 && ip_version != 6) in ib_ud_header_init() 355 if (ip_version == 6 || grh_present) { in ib_ud_header_init() 356 header->grh.ip_version = 6; in ib_ud_header_init() 367 if (ip_version == 4) { in ib_ud_header_init() 379 if (udp_present && ip_version) in ib_ud_header_init() 315 ib_ud_header_init(int payload_bytes, int lrh_present, int eth_present, int vlan_present, int grh_present, int ip_version, int udp_present, int immediate_present, struct ib_ud_header *header) ib_ud_header_init() argument [all...] |
/kernel/linux/linux-6.6/include/linux/mlx5/ |
H A D | fs_helpers.h | 73 ip_version) == 0xf && in _mlx5_fs_is_outer_ipv_flow() 75 ip_version) == version; in _mlx5_fs_is_outer_ipv_flow()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 79 MASK_VAL_L2(u8, ip_version, ip_version); in print_lyr_2_4_hdrs() 86 (ip_version.m == 0xf && ip_version.v == 4)) { in print_lyr_2_4_hdrs() 99 (ip_version.m == 0xf && ip_version.v == 6)) { in print_lyr_2_4_hdrs()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 79 MASK_VAL_L2(u8, ip_version, ip_version); in print_lyr_2_4_hdrs() 86 (ip_version.m == 0xf && ip_version.v == 4)) { in print_lyr_2_4_hdrs() 99 (ip_version.m == 0xf && ip_version.v == 6)) { in print_lyr_2_4_hdrs()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/selftest/ |
H A D | allowedips.c | 86 u8 ip_version; member 127 if (node->ip_version == 4) { in horrible_mask_self() 129 } else if (node->ip_version == 6) { in horrible_mask_self() 159 if (other->ip_version == node->ip_version && in horrible_insert_ordered() 190 node->ip_version = 4; in horrible_allowedips_insert_v4() 207 node->ip_version = 6; in horrible_allowedips_insert_v6() 220 if (node->ip_version == 4 && horrible_match_v4(node, ip)) in horrible_allowedips_lookup_v4() 232 if (node->ip_version == 6 && horrible_match_v6(node, ip)) in horrible_allowedips_lookup_v6()
|
/kernel/linux/linux-6.6/drivers/net/wireguard/selftest/ |
H A D | allowedips.c | 86 u8 ip_version; member 127 if (node->ip_version == 4) { in horrible_mask_self() 129 } else if (node->ip_version == 6) { in horrible_mask_self() 159 if (other->ip_version == node->ip_version && in horrible_insert_ordered() 190 node->ip_version = 4; in horrible_allowedips_insert_v4() 207 node->ip_version = 6; in horrible_allowedips_insert_v6() 220 if (node->ip_version == 4 && horrible_match_v4(node, ip)) in horrible_allowedips_lookup_v4() 232 if (node->ip_version == 6 && horrible_match_v6(node, ip)) in horrible_allowedips_lookup_v6()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste_v0.c | 724 DR_STE_SET_ONES(eth_l2_src_dst, bit_mask, l3_type, mask, ip_version); in dr_ste_v0_build_eth_l2_src_dst_bit_mask() 754 if (spec->ip_version) { in dr_ste_v0_build_eth_l2_src_dst_tag() 755 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v0_build_eth_l2_src_dst_tag() 757 spec->ip_version = 0; in dr_ste_v0_build_eth_l2_src_dst_tag() 758 } else if (spec->ip_version == IP_VERSION_IPV6) { in dr_ste_v0_build_eth_l2_src_dst_tag() 760 spec->ip_version = 0; in dr_ste_v0_build_eth_l2_src_dst_tag() 892 DR_STE_SET_ONES(eth_l2_src, bit_mask, l3_type, mask, ip_version); in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() 944 if (spec->ip_version) { in dr_ste_v0_build_eth_l2_src_or_dst_tag() 945 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v0_build_eth_l2_src_or_dst_tag() 947 spec->ip_version in dr_ste_v0_build_eth_l2_src_or_dst_tag() [all...] |
H A D | dr_ste_v1.c | 1115 DR_STE_SET_ONES(eth_l2_src_dst_v1, bit_mask, l3_type, mask, ip_version); in dr_ste_v1_build_eth_l2_src_dst_bit_mask() 1138 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v1_build_eth_l2_src_dst_tag() 1140 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_dst_tag() 1141 } else if (spec->ip_version == IP_VERSION_IPV6) { in dr_ste_v1_build_eth_l2_src_dst_tag() 1143 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_dst_tag() 1144 } else if (spec->ip_version) { in dr_ste_v1_build_eth_l2_src_dst_tag() 1266 DR_STE_SET_ONES(eth_l2_src_v1, bit_mask, l3_type, mask, ip_version); in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() 1317 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v1_build_eth_l2_src_or_dst_tag() 1319 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_or_dst_tag() 1320 } else if (spec->ip_version in dr_ste_v1_build_eth_l2_src_or_dst_tag() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_encap.c | 43 int ip_version; member 80 u8 ip_version; in mlx5e_tc_set_attr_rx_tun() local 87 ip_version = mlx5e_tc_get_ip_version(spec, true); in mlx5e_tc_set_attr_rx_tun() 89 if (ip_version == 4) { in mlx5e_tc_set_attr_rx_tun() 100 else if (ip_version == 6) { in mlx5e_tc_set_attr_rx_tun() 118 flow->attr->tun_ip_version = ip_version; in mlx5e_tc_set_attr_rx_tun() 1107 if (a->ip_version == 4 && b->ip_version == 4) in cmp_route_info() 1110 else if (a->ip_version == 6 && b->ip_version in cmp_route_info() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.c | 33 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv4_flow() 34 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 4); in accel_fs_tcp_set_ipv4_flow() 52 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv6_flow() 53 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 6); in accel_fs_tcp_set_ipv6_flow() 205 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_version); in accel_fs_tcp_create_groups()
|
H A D | ipsec_fs.c | 408 u8 ip_version = attrs->is_ipv6 ? 6 : 4; in setup_fte_common() local 412 /* ip_version */ in setup_fte_common() 413 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_common() 414 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, ip_version); in setup_fte_common() 429 if (ip_version == 4) { in setup_fte_common()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.c | 33 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv4_flow() 34 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 4); in accel_fs_tcp_set_ipv4_flow() 52 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv6_flow() 53 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 6); in accel_fs_tcp_set_ipv6_flow() 201 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_version); in accel_fs_tcp_create_groups()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
H A D | fs_helpers.h | 113 ip_version) == 0xf && in _mlx5_fs_is_outer_ipv_flow() 115 ip_version) == version; in _mlx5_fs_is_outer_ipv_flow()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | fs_ttc.c | 217 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in mlx5_generate_ttc_rule() 218 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, ipv); in mlx5_generate_ttc_rule() 314 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ip_version); in mlx5_create_ttc_table_groups() 376 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_version); in mlx5_generate_inner_ttc_rule() 377 MLX5_SET(fte_match_param, spec->match_value, inner_headers.ip_version, ipv); in mlx5_generate_inner_ttc_rule() 455 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_version); in mlx5_create_inner_ttc_table_groups()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste.c | 797 DR_STE_SET_MASK(eth_l2_src_dst, bit_mask, l3_type, mask, ip_version); in dr_ste_build_eth_l2_src_des_bit_mask() 881 spec->ip_version = MLX5_GET(fte_match_set_lyr_2_4, mask, ip_version); in dr_ste_copy_mask_spec() 1067 if (spec->ip_version) { in dr_ste_build_eth_l2_src_des_tag() 1068 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_build_eth_l2_src_des_tag() 1070 spec->ip_version = 0; in dr_ste_build_eth_l2_src_des_tag() 1071 } else if (spec->ip_version == IP_VERSION_IPV6) { in dr_ste_build_eth_l2_src_des_tag() 1073 spec->ip_version = 0; in dr_ste_build_eth_l2_src_des_tag() 1075 pr_info("Unsupported ip_version value\n"); in dr_ste_build_eth_l2_src_des_tag() 1266 DR_STE_SET_MASK(eth_l2_src, bit_mask, l3_type, mask, ip_version); in dr_ste_build_eth_l2_src_or_dst_bit_mask() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | rxtimestamp.c | 277 bool run_test_case(struct socket_type *s, int test_num, char ip_version, in run_test_case() argument 292 if (ip_version == '4') { in run_test_case() 305 printf("Starting testcase %d over ipv%c...\n", test_num, ip_version); in run_test_case() 345 ip_version); in run_test_case()
|
/kernel/linux/linux-5.10/net/caif/ |
H A D | chnl_net.c | 61 const u8 *ip_version; in chnl_recv_cb() local 79 ip_version = skb_header_pointer(skb, 0, 1, &buf); in chnl_recv_cb() 80 if (!ip_version) { in chnl_recv_cb() 85 switch (*ip_version >> 4) { in chnl_recv_cb()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | rxtimestamp.c | 277 bool run_test_case(struct socket_type *s, int test_num, char ip_version, in run_test_case() argument 292 if (ip_version == '4') { in run_test_case() 305 printf("Starting testcase %d over ipv%c...\n", test_num, ip_version); in run_test_case() 345 ip_version); in run_test_case()
|
/kernel/linux/linux-6.6/net/caif/ |
H A D | chnl_net.c | 61 const u8 *ip_version; in chnl_recv_cb() local 77 ip_version = skb_header_pointer(skb, 0, 1, &buf); in chnl_recv_cb() 78 if (!ip_version) { in chnl_recv_cb() 83 switch (*ip_version >> 4) { in chnl_recv_cb()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/ |
H A D | be_hw.h | 314 u8 ip_version; /* dword 1 */ member 348 u8 ip_version; /* dword 1 */ member
|
/kernel/linux/linux-5.10/include/linux/qed/ |
H A D | tcp_common.h | 77 u8 ip_version; member 143 u8 ip_version; member
|
/kernel/linux/linux-5.10/include/rdma/ |
H A D | ib_pack.h | 176 u8 ip_version; member 273 int ip_version,
|
/kernel/linux/linux-6.6/include/linux/qed/ |
H A D | tcp_common.h | 77 u8 ip_version; member 143 u8 ip_version; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/emulex/benet/ |
H A D | be_hw.h | 314 u8 ip_version; /* dword 1 */ member 348 u8 ip_version; /* dword 1 */ member
|