/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | indir_table.c | 45 u8 ip_version; member 87 attr->ip_version && in mlx5_esw_indir_table_needed() 155 outer_headers.ip_version, 0xf); in mlx5_esw_indir_table_rule_get() 157 attr->ip_version); in mlx5_esw_indir_table_rule_get() 158 } else if (attr->ip_version) { in mlx5_esw_indir_table_rule_get() 168 if (attr->ip_version == 4) { in mlx5_esw_indir_table_rule_get() 174 } else if (attr->ip_version == 6) { in mlx5_esw_indir_table_rule_get() 304 if (attr->ip_version == 4) { in mlx5_create_indir_recirc_group() 410 e->ip_version = attr->ip_version; in mlx5_esw_indir_table_entry_create() 428 vport << 16 | attr->ip_version); in mlx5_esw_indir_table_entry_create() [all …]
|
/linux/drivers/infiniband/core/ |
A D | ud_header.c | 187 { STRUCT_FIELD(grh, ip_version), 320 int ip_version, in ib_ud_header_init() argument 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() 398 header->ipv4_present = ip_version == 4; in ib_ud_header_init() 498 if (header->grh.ip_version != 6) { in ib_ud_header_unpack() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
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()
|
/linux/drivers/net/wireguard/selftest/ |
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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | tc_tun_encap.c | 41 int ip_version; member 78 u8 ip_version; in mlx5e_tc_set_attr_rx_tun() local 87 if (ip_version == 4) { in mlx5e_tc_set_attr_rx_tun() 98 else if (ip_version == 6) { in mlx5e_tc_set_attr_rx_tun() 965 if (a->ip_version == 4 && b->ip_version == 4) in cmp_route_info() 968 else if (a->ip_version == 6 && b->ip_version == 6) in cmp_route_info() 1167 if (key.ip_version == 4) in mlx5e_attach_decap_route() 1224 key.ip_version = 4; in mlx5e_attach_encap_route() 1227 key.ip_version = 6; in mlx5e_attach_encap_route() 1592 key.ip_version = 4; in mlx5e_init_fib_work_ipv4() [all …]
|
A D | fs_tt_redirect.c | 69 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in fs_udp_set_dport_flow() 70 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, in fs_udp_set_dport_flow() 166 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_version); in fs_udp_create_groups()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
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() 204 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_version); in accel_fs_tcp_create_groups()
|
A D | ipsec_fs.c | 409 u8 ip_version = attrs->is_ipv6 ? 6 : 4; in setup_fte_common() local 414 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_common() 415 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, ip_version); in setup_fte_common() 430 if (ip_version == 4) { in setup_fte_common()
|
/linux/include/linux/mlx5/ |
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()
|
/linux/tools/testing/selftests/net/ |
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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
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() 453 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_version); in mlx5_create_inner_ttc_table_groups()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_ste_v0.c | 751 if (spec->ip_version) { in dr_ste_v0_build_eth_l2_src_dst_tag() 752 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v0_build_eth_l2_src_dst_tag() 754 spec->ip_version = 0; 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() 941 if (spec->ip_version) { in dr_ste_v0_build_eth_l2_src_or_dst_tag() 942 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v0_build_eth_l2_src_or_dst_tag() 944 spec->ip_version = 0; in dr_ste_v0_build_eth_l2_src_or_dst_tag() 947 spec->ip_version = 0; in dr_ste_v0_build_eth_l2_src_or_dst_tag() 1120 if (spec->ip_version) { in dr_ste_v0_build_eth_l2_tnl_tag() 1123 spec->ip_version = 0; in dr_ste_v0_build_eth_l2_tnl_tag() [all …]
|
A D | dr_ste_v1.c | 955 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v1_build_eth_l2_src_dst_tag() 957 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_dst_tag() 960 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_dst_tag() 961 } else if (spec->ip_version) { in dr_ste_v1_build_eth_l2_src_dst_tag() 1134 if (spec->ip_version == IP_VERSION_IPV4) { in dr_ste_v1_build_eth_l2_src_or_dst_tag() 1136 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_or_dst_tag() 1139 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_src_or_dst_tag() 1140 } else if (spec->ip_version) { in dr_ste_v1_build_eth_l2_src_or_dst_tag() 1305 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_tnl_tag() 1308 spec->ip_version = 0; in dr_ste_v1_build_eth_l2_tnl_tag() [all …]
|
/linux/net/caif/ |
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()
|
/linux/drivers/net/ethernet/emulex/benet/ |
A D | be_hw.h | 314 u8 ip_version; /* dword 1 */ member 348 u8 ip_version; /* dword 1 */ member
|
/linux/include/linux/qed/ |
A D | tcp_common.h | 77 u8 ip_version; member 143 u8 ip_version; member
|
A D | qed_nvmetcp_if.h | 58 u8 ip_version; member
|
/linux/include/rdma/ |
A D | ib_pack.h | 176 u8 ip_version; member 273 int ip_version,
|
/linux/drivers/infiniband/hw/qedr/ |
A D | qedr_iw_cm.c | 124 params->cm_info->ip_version == QED_TCP_IPV4) in qedr_iw_mpa_request() 588 cm_info->ip_version = QED_TCP_IPV4; in qedr_iw_connect() 603 in_params.cm_info.ip_version = QED_TCP_IPV6; in qedr_iw_connect() 689 iparams.ip_version = QED_TCP_IPV4; in qedr_iw_create_listen() 696 iparams.ip_version = QED_TCP_IPV6; in qedr_iw_create_listen()
|
/linux/drivers/media/platform/sti/hva/ |
A D | hva-hw.c | 392 hva->ip_version = hva_hw_get_ip_version(hva); in hva_hw_probe() 394 if (hva->ip_version == HVA_VERSION_UNKNOWN) { in hva_hw_probe() 400 hva->ip_version); in hva_hw_probe()
|
/linux/drivers/staging/gdm724x/ |
A D | gdm_lte.c | 571 char ip_version = 0; in gdm_lte_netif_rx() local 645 ip_version = buf[0] >> 4; in gdm_lte_netif_rx() 646 if (ip_version == IP_VERSION_4) { in gdm_lte_netif_rx() 649 } else if (ip_version == IP_VERSION_6) { in gdm_lte_netif_rx() 653 netdev_err(dev, "Unknown IP version %d\n", ip_version); in gdm_lte_netif_rx()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_nvmetcp.c | 328 p_tcp->ip_version = p_conn->ip_version; in qed_sp_nvmetcp_conn_offload() 329 if (p_tcp->ip_version == TCP_IPV6) { in qed_sp_nvmetcp_conn_offload() 706 con->ip_version = conn_info->ip_version; in qed_nvmetcp_offload_conn()
|
A D | qed_nvmetcp.h | 56 u8 ip_version; member
|
A D | qed_iscsi.c | 68 u8 ip_version; member 347 p_tcp->ip_version = p_conn->ip_version; in qed_sp_iscsi_conn_offload() 419 p_tcp2->ip_version = p_conn->ip_version; in qed_sp_iscsi_conn_offload() 1233 con->ip_version = conn_info->ip_version; in qed_iscsi_offload_conn()
|
A D | qed_iwarp.h | 156 u8 ip_version; member
|