/drivers/infiniband/core/ |
D | uverbs_std_types_flow_action.c | 130 const struct ib_uverbs_flow_ipv6_filter ipv6 = { in parse_esp_ip() local 142 struct ib_uverbs_flow_ipv6_filter ipv6; in parse_esp_ip() member 153 sizeof(ipv6.reserved) != sizeof(ipv6)); in parse_esp_ip() 171 if (len > sizeof(user_val.ipv6) && in parse_esp_ip() 172 !ib_is_buffer_cleared(val_ptr + sizeof(user_val.ipv6), in parse_esp_ip() 173 len - sizeof(user_val.ipv6))) in parse_esp_ip() 176 val_len = min_t(size_t, len, sizeof(user_val.ipv6)); in parse_esp_ip() 177 ret = copy_from_user(&user_val.ipv6, val_ptr, in parse_esp_ip() 182 user_pmask = &ipv6; in parse_esp_ip()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls.c | 43 MLX5_SET(tls_flow, flow, ipv6, 0); in mlx5e_tls_set_ipv4_flow() 55 MLX5_SET(tls_flow, flow, ipv6, 1); in mlx5e_tls_set_ipv6_flow() 56 memcpy(MLX5_ADDR_OF(tls_flow, flow, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in mlx5e_tls_set_ipv6_flow() 57 &sk->sk_v6_daddr, MLX5_FLD_SZ_BYTES(ipv6_layout, ipv6)); in mlx5e_tls_set_ipv6_flow() 58 memcpy(MLX5_ADDR_OF(tls_flow, flow, src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tls_set_ipv6_flow() 59 &np->saddr, MLX5_FLD_SZ_BYTES(ipv6_layout, ipv6)); in mlx5e_tls_set_ipv6_flow()
|
D | fs_tcp.c | 55 outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6), in accel_fs_tcp_set_ipv6_flow() 58 outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in accel_fs_tcp_set_ipv6_flow() 61 outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6), in accel_fs_tcp_set_ipv6_flow() 64 outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in accel_fs_tcp_set_ipv6_flow() 227 src_ipv4_src_ipv6.ipv6_layout.ipv6), in accel_fs_tcp_create_groups() 230 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in accel_fs_tcp_create_groups()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 368 fl6.daddr = tun_key->u.ipv6.dst; in mlx5e_tc_tun_create_header_ipv6() 369 fl6.saddr = tun_key->u.ipv6.src; in mlx5e_tc_tun_create_header_ipv6() 575 src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse() 577 ipv6)); in mlx5e_tc_tun_parse() 579 src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse() 581 ipv6)); in mlx5e_tc_tun_parse() 584 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse() 586 ipv6)); in mlx5e_tc_tun_parse() 588 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse() 590 ipv6)); in mlx5e_tc_tun_parse()
|
/drivers/net/ |
D | geneve.c | 159 ipv6_addr_equal(&addr6, &node->geneve->cfg.info.key.u.ipv6.dst)) in geneve6_lookup() 438 static struct socket *geneve_create_sock(struct net *net, bool ipv6, in geneve_create_sock() argument 447 if (ipv6) { in geneve_create_sock() 562 bool ipv6, bool ipv6_rx_csum) in geneve_socket_create() argument 574 sock = geneve_create_sock(net, ipv6, port, ipv6_rx_csum); in geneve_socket_create() 646 static int geneve_sock_add(struct geneve_dev *geneve, bool ipv6) in geneve_sock_add() argument 655 gs = geneve_find_sock(gn, ipv6 ? AF_INET6 : AF_INET, geneve->cfg.info.key.tp_dst); in geneve_sock_add() 661 gs = geneve_socket_create(net, geneve->cfg.info.key.tp_dst, ipv6, in geneve_sock_add() 669 if (ipv6) { in geneve_sock_add() 690 bool ipv4, ipv6; in geneve_open() local [all …]
|
D | netconsole.c | 275 if (nt->np.ipv6) in local_ip_show() 285 if (nt->np.ipv6) in remote_ip_show() 492 nt->np.ipv6 = true; in local_ip_store() 496 if (!nt->np.ipv6) { in local_ip_store() 528 nt->np.ipv6 = true; in remote_ip_store() 532 if (!nt->np.ipv6) { in remote_ip_store()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_vcap.c | 487 struct ocelot_vcap_key_ipv6 *ipv6 = NULL; in is2_entry_set() local 515 ipv6 = &filter->key.ipv6; in is2_entry_set() 516 ttl = ipv6->ttl; in is2_entry_set() 519 proto = ipv6->proto; in is2_entry_set() 520 ds = ipv6->ds; in is2_entry_set() 521 ip_data = &ipv6->data; in is2_entry_set() 523 val = ipv6->sip.value[i + 8]; in is2_entry_set() 524 msk = ipv6->sip.mask[i + 8]; in is2_entry_set() 533 sport = &ipv6->sport; in is2_entry_set() 534 dport = &ipv6->dport; in is2_entry_set() [all …]
|
/drivers/net/netdevsim/ |
D | fib.c | 44 struct nsim_per_fib_data ipv6; member 102 entry = &fib_data->ipv6.fib; in nsim_fib_get_val() 105 entry = &fib_data->ipv6.rules; in nsim_fib_get_val() 127 entry = &fib_data->ipv6.fib; in nsim_fib_set_max() 130 entry = &fib_data->ipv6.rules; in nsim_fib_set_max() 169 err = nsim_fib_rule_account(&data->ipv6.rules, add, extack); in nsim_fib_rule_event() 599 err = nsim_fib_account(&data->ipv6.fib, true, extack); in nsim_fib6_rt_add() 616 nsim_fib_account(&data->ipv6.fib, false, extack); in nsim_fib6_rt_add() 694 nsim_fib_account(&data->ipv6.fib, false, extack); in nsim_fib6_rt_remove() 800 nsim_fib_account(&data->ipv6.fib, false, NULL); in nsim_fib6_rt_free() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_rx.c | 40 struct ipv6hdr *ipv6; in mwifiex_discard_gratuitous_arp() local 54 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 58 if (!memcmp(&ipv6->saddr, &ipv6->daddr, in mwifiex_discard_gratuitous_arp()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 84 struct nfp_flower_ipv6 ipv6; member 156 u32 *key_layer_two, int *key_size, bool ipv6, in nfp_flower_calc_opt_layer() argument 160 (ipv6 && enc_opts->len > NFP_FL_MAX_GENEVE_OPT_KEY_V6)) { in nfp_flower_calc_opt_layer() 178 enum nfp_flower_tun_type *tun_type, bool ipv6, in nfp_flower_calc_udp_tun_layer() argument 188 if (ipv6) { in nfp_flower_calc_udp_tun_layer() 212 if (ipv6) { in nfp_flower_calc_udp_tun_layer() 226 ipv6, extack); in nfp_flower_calc_udp_tun_layer() 630 memset(&merge->ipv6, 0xff, in nfp_flower_update_merge_with_actions() 657 merge->ipv6.ipv6_src.in6_u.u6_addr32[i] |= in nfp_flower_update_merge_with_actions() 658 ipv6_add->ipv6[i].mask; in nfp_flower_update_merge_with_actions() [all …]
|
D | tunnel_conf.c | 73 struct in6_addr ipv6; member 294 ipv6_add = &payload->tun_info[i].ipv6; in nfp_tunnel_keep_alive_v6() 530 bool ipv6 = false; in nfp_tun_neigh_event_handler() local 546 ipv6 = true; in nfp_tun_neigh_event_handler() 548 if (ipv6) in nfp_tun_neigh_event_handler() 561 if ((ipv6 && !nfp_tun_has_route_v6(app, &flow6.daddr)) || in nfp_tun_neigh_event_handler() 562 (!ipv6 && !nfp_tun_has_route_v4(app, &flow4.daddr))) in nfp_tun_neigh_event_handler() 566 if (ipv6) { in nfp_tun_neigh_event_handler() 792 nfp_tunnel_add_ipv6_off(struct nfp_app *app, struct in6_addr *ipv6) in nfp_tunnel_add_ipv6_off() argument 799 if (!memcmp(&entry->ipv6_addr, ipv6, sizeof(*ipv6))) { in nfp_tunnel_add_ipv6_off() [all …]
|
D | action.c | 405 bool ipv6 = ip_tunnel_info_af(ip_tun) == AF_INET6; in nfp_fl_set_tun() local 412 if (!IS_ENABLED(CONFIG_IPV6) && ipv6) in nfp_fl_set_tun() 415 if (ipv6 && !(priv->flower_ext_feats & NFP_FL_FEATS_IPV6_TUN)) in nfp_fl_set_tun() 442 } else if (ipv6) { in nfp_fl_set_tun() 447 flow.daddr = ip_tun->key.u.ipv6.dst; in nfp_fl_set_tun() 454 set_tun->ttl = net->ipv6.devconf_all->hop_limit; in nfp_fl_set_tun() 494 if (ipv6) { in nfp_fl_set_tun() 496 pre_tun->ipv6_dst = ip_tun->key.u.ipv6.dst; in nfp_fl_set_tun() 636 ip6->ipv6[word].mask |= mask; in nfp_fl_set_ip6_helper() 637 ip6->ipv6[word].exact &= ~mask; in nfp_fl_set_ip6_helper() [all …]
|
D | match.c | 448 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_udp_tun() 465 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_gre_tun() 573 dst = &gre_match->ipv6.dst; in nfp_flower_compile_flow_match() 617 dst = &udp_match->ipv6.dst; in nfp_flower_compile_flow_match()
|
D | cmsg.h | 173 } ipv6[4]; member 475 struct nfp_flower_tun_ipv6 ipv6; member 542 struct nfp_flower_tun_ipv6 ipv6; member
|
/drivers/net/ethernet/intel/ice/ |
D | ice_txrx_lib.c | 88 bool ipv4, ipv6; in ice_rx_csum() local 112 ipv6 = (decoded.outer_ip == ICE_RX_PTYPE_OUTER_IP) && in ice_rx_csum() 119 if (ipv6 && (rx_status0 & (BIT(ICE_RX_FLEX_DESC_STATUS0_IPV6EXADD_S)))) in ice_rx_csum()
|
/drivers/net/ipa/ |
D | ipa_cmd.h | 67 bool route, bool ipv6, bool hashed); 81 bool ipv6, bool hashed) in ipa_cmd_table_valid() argument
|
D | ipa_table.c | 151 ipa_table_valid_one(struct ipa *ipa, bool route, bool ipv6, bool hashed) in ipa_table_valid_one() argument 158 if (ipv6) in ipa_table_valid_one() 166 if (ipv6) in ipa_table_valid_one() 175 if (!ipa_cmd_table_valid(ipa, mem, route, ipv6, hashed)) in ipa_table_valid_one() 187 ipv6 ? '6' : '4', hashed ? "hashed " : "", in ipa_table_valid_one()
|
/drivers/staging/gdm724x/ |
D | gdm_lte.c | 174 static __sum16 icmp6_checksum(struct ipv6hdr *ipv6, u16 *ptr, int len) in icmp6_checksum() argument 193 memcpy(&pseudo_header.ph.ph_src, &ipv6->saddr.in6_u.u6_addr8, 16); in icmp6_checksum() 194 memcpy(&pseudo_header.ph.ph_dst, &ipv6->daddr.in6_u.u6_addr8, 16); in icmp6_checksum() 195 pseudo_header.ph.ph_len = be16_to_cpu(ipv6->payload_len); in icmp6_checksum() 196 pseudo_header.ph.ph_nxt = ipv6->nexthdr; in icmp6_checksum() 342 struct ipv6hdr *ipv6; in gdm_lte_tx_nic_type() local 381 ipv6 = network_data; in gdm_lte_tx_nic_type() 383 if (ipv6->nexthdr == IPPROTO_ICMPV6) /* Check NDP request */ { in gdm_lte_tx_nic_type() 388 } else if (ipv6->nexthdr == IPPROTO_UDP) /* Check DHCPv6 */ { in gdm_lte_tx_nic_type()
|
/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fs_tracepoint.c | 111 src_ipv4_src_ipv6.ipv6_layout.ipv6), in print_lyr_2_4_hdrs() 115 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in print_lyr_2_4_hdrs() 119 src_ipv4_src_ipv6.ipv6_layout.ipv6), in print_lyr_2_4_hdrs() 123 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in print_lyr_2_4_hdrs()
|
/drivers/infiniband/hw/mlx5/ |
D | fs.c | 322 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv6.mask, LAST_IPV6_FIELD)) in parse_flow_attr() 338 src_ipv4_src_ipv6.ipv6_layout.ipv6), in parse_flow_attr() 339 &ib_spec->ipv6.mask.src_ip, in parse_flow_attr() 340 sizeof(ib_spec->ipv6.mask.src_ip)); in parse_flow_attr() 342 src_ipv4_src_ipv6.ipv6_layout.ipv6), in parse_flow_attr() 343 &ib_spec->ipv6.val.src_ip, in parse_flow_attr() 344 sizeof(ib_spec->ipv6.val.src_ip)); in parse_flow_attr() 346 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in parse_flow_attr() 347 &ib_spec->ipv6.mask.dst_ip, in parse_flow_attr() 348 sizeof(ib_spec->ipv6.mask.dst_ip)); in parse_flow_attr() [all …]
|
/drivers/net/ethernet/netronome/nfp/crypto/ |
D | tls.c | 278 bool ipv6; in nfp_net_tls_add() local 295 ipv6 = true; in nfp_net_tls_add() 302 ipv6 = false; in nfp_net_tls_add() 324 nfp_net_tls_set_ipver_vlan(front, ipv6 ? 6 : 4); in nfp_net_tls_add() 327 if (ipv6) in nfp_net_tls_add()
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.h | 66 unsigned int *idx, int use_ts, int ipv6) in cxgb_best_mtu() argument 68 unsigned short hdr_size = (ipv6 ? in cxgb_best_mtu()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_arfs.c | 251 src_ipv4_src_ipv6.ipv6_layout.ipv6), in arfs_create_groups() 254 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in arfs_create_groups() 504 outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6), in arfs_add_rule() 508 outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in arfs_add_rule() 512 outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6), in arfs_add_rule() 516 outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in arfs_add_rule()
|
/drivers/scsi/fnic/ |
D | cq_enet_desc.h | 100 u8 *ipv6, u8 *ipv4, u8 *ipv4_fragment, u8 *fcs_ok) in cq_enet_rq_desc_dec() argument 160 *ipv6 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ? 1 : 0; in cq_enet_rq_desc_dec()
|
/drivers/net/ethernet/cisco/enic/ |
D | cq_enet_desc.h | 111 u8 *ipv6, u8 *ipv4, u8 *ipv4_fragment, u8 *fcs_ok) in cq_enet_rq_desc_dec() argument 178 *ipv6 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ? 1 : 0; in cq_enet_rq_desc_dec()
|