Home
last modified time | relevance | path

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

1234

/drivers/net/ethernet/mediatek/
Dmtk_ppe_debugfs.c12 bool ipv6; member
49 mtk_print_addr(struct seq_file *m, u32 *addr, bool ipv6) in mtk_print_addr() argument
54 if (!ipv6) { in mtk_print_addr()
67 mtk_print_addr(m, ai->src, ai->ipv6); in mtk_print_addr_info()
71 mtk_print_addr(m, ai->dest, ai->ipv6); in mtk_print_addr_info()
115 ai.src_port = &entry->ipv6.src_port; in mtk_ppe_debugfs_foe_show()
116 ai.dest_port = &entry->ipv6.dest_port; in mtk_ppe_debugfs_foe_show()
120 ai.src = &entry->ipv6.src_ip; in mtk_ppe_debugfs_foe_show()
121 ai.dest = &entry->ipv6.dest_ip; in mtk_ppe_debugfs_foe_show()
122 ai.ipv6 = true; in mtk_ppe_debugfs_foe_show()
[all …]
Dmtk_ppe.c94 hv1 = e->ipv6.src_ip[3] ^ e->ipv6.dest_ip[3]; in mtk_ppe_hash_entry()
95 hv1 ^= e->ipv6.ports; in mtk_ppe_hash_entry()
97 hv2 = e->ipv6.src_ip[2] ^ e->ipv6.dest_ip[2]; in mtk_ppe_hash_entry()
98 hv2 ^= e->ipv6.dest_ip[0]; in mtk_ppe_hash_entry()
100 hv3 = e->ipv6.src_ip[1] ^ e->ipv6.dest_ip[1]; in mtk_ppe_hash_entry()
101 hv3 ^= e->ipv6.src_ip[0]; in mtk_ppe_hash_entry()
126 return &entry->ipv6.l2; in mtk_foe_entry_l2()
137 return &entry->ipv6.ib2; in mtk_foe_entry_ib2()
168 entry->ipv6.ports = ports_pad; in mtk_foe_entry_prepare()
171 entry->ipv6.ib2 = val; in mtk_foe_entry_prepare()
[all …]
/drivers/infiniband/core/
Duverbs_std_types_flow_action.c128 const struct ib_uverbs_flow_ipv6_filter ipv6 = { in parse_esp_ip() local
140 struct ib_uverbs_flow_ipv6_filter ipv6; in parse_esp_ip() member
151 sizeof(ipv6.reserved) != sizeof(ipv6)); in parse_esp_ip()
169 if (len > sizeof(user_val.ipv6) && in parse_esp_ip()
170 !ib_is_buffer_cleared(val_ptr + sizeof(user_val.ipv6), in parse_esp_ip()
171 len - sizeof(user_val.ipv6))) in parse_esp_ip()
174 val_len = min_t(size_t, len, sizeof(user_val.ipv6)); in parse_esp_ip()
175 ret = copy_from_user(&user_val.ipv6, val_ptr, in parse_esp_ip()
180 user_pmask = &ipv6; in parse_esp_ip()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls.c43 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()
Dfs_tcp.c55 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/
Dgeneve.c160 ipv6_addr_equal(&addr6, &node->geneve->cfg.info.key.u.ipv6.dst)) in geneve6_lookup()
439 static struct socket *geneve_create_sock(struct net *net, bool ipv6, in geneve_create_sock() argument
448 if (ipv6) { in geneve_create_sock()
564 bool ipv6, bool ipv6_rx_csum) in geneve_socket_create() argument
576 sock = geneve_create_sock(net, ipv6, port, ipv6_rx_csum); in geneve_socket_create()
648 static int geneve_sock_add(struct geneve_dev *geneve, bool ipv6) in geneve_sock_add() argument
657 gs = geneve_find_sock(gn, ipv6 ? AF_INET6 : AF_INET, geneve->cfg.info.key.tp_dst); in geneve_sock_add()
663 gs = geneve_socket_create(net, geneve->cfg.info.key.tp_dst, ipv6, in geneve_sock_add()
671 if (ipv6) { in geneve_sock_add()
692 bool ipv4, ipv6; in geneve_open() local
[all …]
Dnetconsole.c276 if (nt->np.ipv6) in local_ip_show()
286 if (nt->np.ipv6) in remote_ip_show()
493 nt->np.ipv6 = true; in local_ip_store()
497 if (!nt->np.ipv6) { in local_ip_store()
529 nt->np.ipv6 = true; in remote_ip_store()
533 if (!nt->np.ipv6) { in remote_ip_store()
/drivers/net/ethernet/mscc/
Docelot_vcap.c487 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/wireless/marvell/mwifiex/
Dsta_rx.c40 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/mellanox/mlx5/core/en/
Dtc_tun.c501 attr.fl.fl6.daddr = tun_key->u.ipv6.dst; in mlx5e_tc_tun_create_header_ipv6()
502 attr.fl.fl6.saddr = tun_key->u.ipv6.src; in mlx5e_tc_tun_create_header_ipv6()
615 attr.fl.fl6.daddr = tun_key->u.ipv6.dst; in mlx5e_tc_tun_update_header_ipv6()
616 attr.fl.fl6.saddr = tun_key->u.ipv6.src; in mlx5e_tc_tun_update_header_ipv6()
858 src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse()
860 ipv6)); in mlx5e_tc_tun_parse()
862 src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse()
864 ipv6)); in mlx5e_tc_tun_parse()
867 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in mlx5e_tc_tun_parse()
869 ipv6)); in mlx5e_tc_tun_parse()
[all …]
/drivers/staging/gdm724x/
Dgdm_lte.c174 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/netronome/nfp/flower/
Doffload.c87 struct nfp_flower_ipv6 ipv6; member
155 u32 *key_layer_two, int *key_size, bool ipv6, in nfp_flower_calc_opt_layer() argument
159 (ipv6 && enc_opts->len > NFP_FL_MAX_GENEVE_OPT_KEY_V6)) { in nfp_flower_calc_opt_layer()
177 enum nfp_flower_tun_type *tun_type, bool ipv6, in nfp_flower_calc_udp_tun_layer() argument
187 if (ipv6) { in nfp_flower_calc_udp_tun_layer()
211 if (ipv6) { in nfp_flower_calc_udp_tun_layer()
225 ipv6, extack); in nfp_flower_calc_udp_tun_layer()
628 memset(&merge->ipv6, 0xff, in nfp_flower_update_merge_with_actions()
655 merge->ipv6.ipv6_src.in6_u.u6_addr32[i] |= in nfp_flower_update_merge_with_actions()
656 ipv6_add->ipv6[i].mask; in nfp_flower_update_merge_with_actions()
[all …]
Dtunnel_conf.c73 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 …]
Daction.c405 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 …]
Dmatch.c493 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_udp_tun()
507 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_gre_tun()
622 dst = &gre_match->ipv6.dst; in nfp_flower_compile_flow_match()
658 dst = &udp_match->ipv6.dst; in nfp_flower_compile_flow_match()
/drivers/net/ethernet/intel/ice/
Dice_txrx_lib.c101 bool ipv4, ipv6; in ice_rx_csum() local
125 ipv6 = (decoded.outer_ip == ICE_RX_PTYPE_OUTER_IP) && in ice_rx_csum()
132 if (ipv6 && (rx_status0 & (BIT(ICE_RX_FLEX_DESC_STATUS0_IPV6EXADD_S)))) in ice_rx_csum()
/drivers/net/netdevsim/
Dfib.c47 struct nsim_per_fib_data ipv6; member
147 entry = &fib_data->ipv6.fib; in nsim_fib_get_val()
150 entry = &fib_data->ipv6.rules; in nsim_fib_get_val()
175 entry = &fib_data->ipv6.fib; in nsim_fib_set_max()
178 entry = &fib_data->ipv6.rules; in nsim_fib_set_max()
218 err = nsim_fib_rule_account(&data->ipv6.rules, add, extack); in nsim_fib_rule_event()
700 nsim_fib_account(&data->ipv6.fib, false); in nsim_fib6_rt_add()
713 err = nsim_fib_account(&data->ipv6.fib, false); in nsim_fib6_rt_replace()
948 err = nsim_fib_account(&data->ipv6.fib, true); in nsim_fib6_prepare_event()
955 nsim_fib_account(&data->ipv6.fib, false); in nsim_fib6_prepare_event()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c111 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/
Dfs.c322 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/intel/i40e/
Di40e_txrx.c174 struct ipv6hdr ipv6 = {}; in i40e_create_dummy_packet() local
189 ipv6.nexthdr = l4proto; in i40e_create_dummy_packet()
190 ipv6.version = 0x6; in i40e_create_dummy_packet()
192 memcpy(&ipv6.saddr.in6_u.u6_addr32, data->src_ip6, in i40e_create_dummy_packet()
194 memcpy(&ipv6.daddr.in6_u.u6_addr32, data->dst_ip6, in i40e_create_dummy_packet()
217 memcpy(tmp, &ipv6, sizeof(ipv6)); in i40e_create_dummy_packet()
218 tmp += sizeof(ipv6); in i40e_create_dummy_packet()
595 enum ip_ver { ipv6 = 0, ipv4 = 1 }; in i40e_add_del_fdir() enumerator
610 ret = i40e_add_del_fdir_tcp(vsi, input, add, ipv6); in i40e_add_del_fdir()
613 ret = i40e_add_del_fdir_udp(vsi, input, add, ipv6); in i40e_add_del_fdir()
[all …]
/drivers/net/ethernet/netronome/nfp/crypto/
Dtls.c278 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/
Dlibcxgb_cm.h66 unsigned int *idx, int use_ts, int ipv6) in cxgb_best_mtu() argument
68 unsigned short hdr_size = (ipv6 ? in cxgb_best_mtu()
/drivers/scsi/fnic/
Dcq_enet_desc.h100 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/
Dcq_enet_desc.h111 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()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c282 src_ipv4_src_ipv6.ipv6_layout.ipv6), in arfs_create_groups()
285 dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in arfs_create_groups()
542 outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6), in arfs_add_rule()
546 outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in arfs_add_rule()
550 outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6), in arfs_add_rule()
554 outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in arfs_add_rule()

1234