Home
last modified time | relevance | path

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

123

/linux/drivers/infiniband/core/
H A Dud_header.c187 { 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()
397 header->grh_present = grh_present || (ip_version == 6); in ib_ud_header_init()
398 header->ipv4_present = ip_version == 4; in ib_ud_header_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfs_tracepoint.c79 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/include/linux/mlx5/
H A Dfs_helpers.h73 ip_version) == 0xf && in _mlx5_fs_is_outer_ipv_flow()
75 ip_version) == version; in _mlx5_fs_is_outer_ipv_flow()
/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c86 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_accel/
H A Dfs_tcp.c33 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()
/linux/tools/testing/selftests/net/
H A Drxtimestamp.c295 bool run_test_case(struct socket_type *s, int test_num, char ip_version, in run_test_case() argument
310 if (ip_version == '4') { in run_test_case()
323 printf("Starting testcase %d over ipv%c...\n", test_num, ip_version); in run_test_case()
363 ip_version); in run_test_case()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c43 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 == 6) in cmp_route_info()
1118 if (key->ip_version == 4) in hash_route_info()
1308 key.ip_version = attr->tun_ip_version; in mlx5e_attach_decap_route()
[all …]
H A Dfs_tt_redirect.c69 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()
165 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/steering/
H A Ddr_ste_v0.c724 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 = 0; in dr_ste_v0_build_eth_l2_src_or_dst_tag()
[all …]
H A Ddr_ste_v1.c1115 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 == IP_VERSION_IPV6) { in dr_ste_v1_build_eth_l2_src_or_dst_tag()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c292 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in mlx5_generate_ttc_rule()
293 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, ipv); in mlx5_generate_ttc_rule()
391 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ip_version); in mlx5_create_ttc_table_groups()
470 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_version); in mlx5_generate_inner_ttc_rule()
471 MLX5_SET(fte_match_param, spec->match_value, inner_headers.ip_version, ipv); in mlx5_generate_inner_ttc_rule()
554 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_version); in mlx5_create_inner_ttc_table_groups()
/linux/net/caif/
H A Dchnl_net.c61 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/include/linux/qed/
H A Dtcp_common.h77 u8 ip_version; member
143 u8 ip_version; member
H A Dqed_nvmetcp_if.h58 u8 ip_version; member
H A Dqed_iscsi_if.h63 u8 ip_version; member
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_hw.h314 u8 ip_version; /* dword 1 */ member
348 u8 ip_version; /* dword 1 */ member
/linux/tools/testing/selftests/net/netfilter/
H A Dnf_conntrack_packetdrill.sh47 timeout "$PDRILL_TIMEOUT" unshare -n packetdrill --ip_version="$ipver" --mtu=$mtu \
/linux/include/rdma/
H A Dib_pack.h181 u8 ip_version; member
278 int ip_version,
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_iw_cm.c124 params->cm_info->ip_version == QED_TCP_IPV4) in qedr_iw_mpa_request()
589 cm_info->ip_version = QED_TCP_IPV4; in qedr_iw_connect()
604 in_params.cm_info.ip_version = QED_TCP_IPV6; in qedr_iw_connect()
690 iparams.ip_version = QED_TCP_IPV4; in qedr_iw_create_listen()
697 iparams.ip_version = QED_TCP_IPV6; in qedr_iw_create_listen()
/linux/drivers/staging/gdm724x/
H A Dgdm_lte.c571 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/media/platform/st/sti/hva/
H A Dhva-hw.c392 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/net/ethernet/qlogic/qed/
H A Dqed_nvmetcp.c328 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()
H A Dqed_nvmetcp.h56 u8 ip_version; member
H A Dqed_iscsi.c68 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()
1234 con->ip_version = conn_info->ip_version; in qed_iscsi_offload_conn()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_mcast.c787 MLX5_SET_TO_ONES(fte_match_param, match, outer_headers.ip_version); in mlx5_esw_bridge_ingress_igmp_fg_create()
827 MLX5_SET_TO_ONES(fte_match_param, match, outer_headers.ip_version); in mlx5_esw_bridge_ingress_mld_fg_create()
899 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, outer_headers.ip_version); in mlx5_esw_bridge_ingress_igmp_fh_create()
900 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.ip_version, 4); in mlx5_esw_bridge_ingress_igmp_fh_create()
931 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, outer_headers.ip_version); in mlx5_esw_bridge_ingress_mld_fh_create()
932 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.ip_version, 6); in mlx5_esw_bridge_ingress_mld_fh_create()

123