/net/core/ |
D | netpoll.c | 69 #define np_info(np, fmt, ...) \ argument 70 pr_info("%s: " fmt, np->name, ##__VA_ARGS__) 71 #define np_err(np, fmt, ...) \ argument 72 pr_err("%s: " fmt, np->name, ##__VA_ARGS__) 73 #define np_notice(np, fmt, ...) \ argument 74 pr_notice("%s: " fmt, np->name, ##__VA_ARGS__) 319 static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve) in find_skb() argument 334 netpoll_poll_dev(np->dev); in find_skb() 357 void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, in netpoll_send_skb_on_dev() argument 368 npinfo = rcu_dereference_bh(np->dev->npinfo); in netpoll_send_skb_on_dev() [all …]
|
D | neighbour.c | 136 struct neighbour __rcu **np; in neigh_forced_gc() local 138 np = &nht->hash_buckets[i]; in neigh_forced_gc() 139 while ((n = rcu_dereference_protected(*np, in neigh_forced_gc() 148 rcu_assign_pointer(*np, in neigh_forced_gc() 158 np = &n->next; in neigh_forced_gc() 209 struct neighbour __rcu **np = &nht->hash_buckets[i]; in neigh_flush_dev() local 211 while ((n = rcu_dereference_protected(*np, in neigh_flush_dev() 214 np = &n->next; in neigh_flush_dev() 217 rcu_assign_pointer(*np, in neigh_flush_dev() 636 struct pneigh_entry *n, **np; in pneigh_delete() local [all …]
|
/net/ipv6/ |
D | ipv6_sockglue.c | 129 struct ipv6_pinfo *np = inet6_sk(sk); in do_ipv6_setsockopt() local 179 !ipv6_addr_v4mapped(&np->daddr)) { in do_ipv6_setsockopt() 218 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt() 224 pktopt = xchg(&np->pktoptions, NULL); in do_ipv6_setsockopt() 243 np->ipv6only = valbool; in do_ipv6_setsockopt() 250 np->rxopt.bits.rxinfo = valbool; in do_ipv6_setsockopt() 257 np->rxopt.bits.rxoinfo = valbool; in do_ipv6_setsockopt() 264 np->rxopt.bits.rxhlim = valbool; in do_ipv6_setsockopt() 271 np->rxopt.bits.rxohlim = valbool; in do_ipv6_setsockopt() 278 np->rxopt.bits.srcrt = valbool; in do_ipv6_setsockopt() [all …]
|
D | datagram.c | 47 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_connect() local 70 if (np->sndflow) { in ip6_datagram_connect() 110 ipv6_addr_set_v4mapped(inet->inet_daddr, &np->daddr); in ip6_datagram_connect() 112 if (ipv6_addr_any(&np->saddr) || in ip6_datagram_connect() 113 ipv6_mapped_addr_any(&np->saddr)) in ip6_datagram_connect() 114 ipv6_addr_set_v4mapped(inet->inet_saddr, &np->saddr); in ip6_datagram_connect() 116 if (ipv6_addr_any(&np->rcv_saddr) || in ip6_datagram_connect() 117 ipv6_mapped_addr_any(&np->rcv_saddr)) { in ip6_datagram_connect() 119 &np->rcv_saddr); in ip6_datagram_connect() 139 sk->sk_bound_dev_if = np->mcast_oif; in ip6_datagram_connect() [all …]
|
D | af_inet6.c | 117 struct ipv6_pinfo *np; in inet6_create() local 218 inet_sk(sk)->pinet6 = np = inet6_sk_generic(sk); in inet6_create() 219 np->hop_limit = -1; in inet6_create() 220 np->mcast_hops = IPV6_DEFAULT_MCASTHOPS; in inet6_create() 221 np->mc_loop = 1; in inet6_create() 222 np->pmtudisc = IPV6_PMTUDISC_WANT; in inet6_create() 223 np->ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create() 280 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_bind() local 320 if (np->ipv6only) { in inet6_bind() 382 np->rcv_saddr = addr->sin6_addr; in inet6_bind() [all …]
|
D | ping.c | 109 struct ipv6_pinfo *np = inet6_sk(sk); in ping_v6_sendmsg() local 141 daddr = &np->daddr; in ping_v6_sendmsg() 148 oif = np->sticky_pktinfo.ipi6_ifindex; in ping_v6_sendmsg() 151 oif = np->mcast_oif; in ping_v6_sendmsg() 153 oif = np->ucast_oif; in ping_v6_sendmsg() 166 fl6.saddr = np->saddr; in ping_v6_sendmsg() 176 fl6.flowi6_oif = np->mcast_oif; in ping_v6_sendmsg() 178 fl6.flowi6_oif = np->ucast_oif; in ping_v6_sendmsg() 185 np = inet6_sk(sk); in ping_v6_sendmsg() 186 if (!np) in ping_v6_sendmsg() [all …]
|
D | inet6_connection_sock.c | 74 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_csk_route_req() local 82 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in inet6_csk_route_req() 171 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_csk_addr2sockaddr() local 175 sin6->sin6_addr = np->daddr; in inet6_csk_addr2sockaddr() 203 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_csk_route_socket() local 209 fl6->daddr = np->daddr; in inet6_csk_route_socket() 210 fl6->saddr = np->saddr; in inet6_csk_route_socket() 211 fl6->flowlabel = np->flow_label; in inet6_csk_route_socket() 221 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in inet6_csk_route_socket() 224 dst = __inet6_csk_dst_check(sk, np->dst_cookie); in inet6_csk_route_socket() [all …]
|
D | ip6_output.c | 183 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_xmit() local 227 if (np) in ip6_xmit() 228 hlimit = np->hop_limit; in ip6_xmit() 529 struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL; in ip6_fragment() local 561 if (np && np->frag_size < mtu) { in ip6_fragment() 562 if (np->frag_size) in ip6_fragment() 563 mtu = np->frag_size; in ip6_fragment() 823 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_sk_dst_check() local 852 if (ip6_rt_check(&rt->rt6i_dst, &fl6->daddr, np->daddr_cache) || in ip6_sk_dst_check() 854 ip6_rt_check(&rt->rt6i_src, &fl6->saddr, np->saddr_cache) || in ip6_sk_dst_check() [all …]
|
D | udp.c | 135 struct ipv6_pinfo *np = inet6_sk(sk); in compute_score() local 144 if (!ipv6_addr_any(&np->rcv_saddr)) { in compute_score() 145 if (!ipv6_addr_equal(&np->rcv_saddr, daddr)) in compute_score() 149 if (!ipv6_addr_any(&np->daddr)) { in compute_score() 150 if (!ipv6_addr_equal(&np->daddr, saddr)) in compute_score() 173 struct ipv6_pinfo *np = inet6_sk(sk); in compute_score2() local 176 if (!ipv6_addr_equal(&np->rcv_saddr, daddr)) in compute_score2() 184 if (!ipv6_addr_any(&np->daddr)) { in compute_score2() 185 if (!ipv6_addr_equal(&np->daddr, saddr)) in compute_score2() 366 struct ipv6_pinfo *np = inet6_sk(sk); in udpv6_recvmsg() local [all …]
|
D | raw.c | 78 struct ipv6_pinfo *np = inet6_sk(sk); in __raw_v6_lookup() local 83 if (!ipv6_addr_any(&np->daddr) && in __raw_v6_lookup() 84 !ipv6_addr_equal(&np->daddr, rmt_addr)) in __raw_v6_lookup() 90 if (!ipv6_addr_any(&np->rcv_saddr)) { in __raw_v6_lookup() 91 if (ipv6_addr_equal(&np->rcv_saddr, loc_addr)) in __raw_v6_lookup() 241 struct ipv6_pinfo *np = inet6_sk(sk); in rawv6_bind() local 300 np->rcv_saddr = addr->sin6_addr; in rawv6_bind() 302 np->saddr = addr->sin6_addr; in rawv6_bind() 316 struct ipv6_pinfo *np = inet6_sk(sk); in rawv6_err() local 325 if (!np->recverr && sk->sk_state != TCP_ESTABLISHED) in rawv6_err() [all …]
|
D | tcp_ipv6.c | 133 struct ipv6_pinfo *np = inet6_sk(sk); in tcp_v6_connect() local 151 if (np->sndflow) { in tcp_v6_connect() 195 !ipv6_addr_equal(&np->daddr, &usin->sin6_addr)) { in tcp_v6_connect() 201 np->daddr = usin->sin6_addr; in tcp_v6_connect() 202 np->flow_label = fl6.flowlabel; in tcp_v6_connect() 238 ipv6_addr_set_v4mapped(inet->inet_saddr, &np->saddr); in tcp_v6_connect() 240 &np->rcv_saddr); in tcp_v6_connect() 246 if (!ipv6_addr_any(&np->rcv_saddr)) in tcp_v6_connect() 247 saddr = &np->rcv_saddr; in tcp_v6_connect() 250 fl6.daddr = np->daddr; in tcp_v6_connect() [all …]
|
D | ip6_flowlabel.c | 76 #define for_each_sk_fl_rcu(np, sfl) \ argument 77 for (sfl = rcu_dereference_bh(np->ipv6_fl_list); \ 252 struct ipv6_pinfo *np = inet6_sk(sk); in fl6_sock_lookup() local 257 for_each_sk_fl_rcu(np, sfl) { in fl6_sock_lookup() 274 struct ipv6_pinfo *np = inet6_sk(sk); in fl6_free_socklist() local 277 if (!rcu_access_pointer(np->ipv6_fl_list)) in fl6_free_socklist() 281 while ((sfl = rcu_dereference_protected(np->ipv6_fl_list, in fl6_free_socklist() 283 np->ipv6_fl_list = sfl->next; in fl6_free_socklist() 448 struct ipv6_pinfo *np = inet6_sk(sk); in mem_check() local 456 for_each_sk_fl_rcu(np, sfl) in mem_check() [all …]
|
D | inet6_hashtables.c | 143 const struct ipv6_pinfo *np = inet6_sk(sk); in compute_score() local 146 if (!ipv6_addr_any(&np->rcv_saddr)) { in compute_score() 147 if (!ipv6_addr_equal(&np->rcv_saddr, daddr)) in compute_score() 239 const struct ipv6_pinfo *np = inet6_sk(sk); in __inet6_check_established() local 240 const struct in6_addr *daddr = &np->rcv_saddr; in __inet6_check_established() 241 const struct in6_addr *saddr = &np->daddr; in __inet6_check_established() 315 const struct ipv6_pinfo *np = inet6_sk(sk); in inet6_sk_port_offset() local 316 return secure_ipv6_port_ephemeral(np->rcv_saddr.s6_addr32, in inet6_sk_port_offset() 317 np->daddr.s6_addr32, in inet6_sk_port_offset()
|
D | icmp.c | 389 struct ipv6_pinfo *np; in icmp6_send() local 477 np = inet6_sk(sk); in icmp6_send() 488 fl6.flowi6_oif = np->mcast_oif; in icmp6_send() 490 fl6.flowi6_oif = np->ucast_oif; in icmp6_send() 497 hlimit = np->mcast_hops; in icmp6_send() 499 hlimit = np->hop_limit; in icmp6_send() 520 np->tclass, NULL, &fl6, (struct rt6_info *)dst, in icmp6_send() 521 MSG_DONTWAIT, np->dontfrag); in icmp6_send() 549 struct ipv6_pinfo *np; in icmpv6_echo_reply() local 583 np = inet6_sk(sk); in icmpv6_echo_reply() [all …]
|
D | anycast.c | 59 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_sock_ac_join() local 132 pac->acl_next = np->ipv6_ac_list; in ipv6_sock_ac_join() 133 np->ipv6_ac_list = pac; in ipv6_sock_ac_join() 150 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_sock_ac_drop() local 157 for (pac = np->ipv6_ac_list; pac; pac = pac->acl_next) { in ipv6_sock_ac_drop() 170 np->ipv6_ac_list = pac->acl_next; in ipv6_sock_ac_drop() 186 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_sock_ac_close() local 192 if (!np->ipv6_ac_list) in ipv6_sock_ac_close() 196 pac = np->ipv6_ac_list; in ipv6_sock_ac_close() 197 np->ipv6_ac_list = NULL; in ipv6_sock_ac_close()
|
D | syncookies.c | 155 struct ipv6_pinfo *np = inet6_sk(sk); in cookie_v6_check() local 203 np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo || in cookie_v6_check() 204 np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) { in cookie_v6_check() 240 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); in cookie_v6_check()
|
/net/dccp/ |
D | ipv6.c | 66 struct ipv6_pinfo *np = inet6_sk(sk); in dccp_v6_send_check() local 70 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &np->daddr); in dccp_v6_send_check() 88 struct ipv6_pinfo *np; in dccp_v6_err() local 131 np = inet6_sk(sk); in dccp_v6_err() 134 struct dst_entry *dst = __sk_dst_check(sk, np->dst_cookie); in dccp_v6_err() 204 if (!sock_owned_by_user(sk) && np->recverr) { in dccp_v6_err() 219 struct ipv6_pinfo *np = inet6_sk(sk); in dccp_v6_send_response() local 238 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); in dccp_v6_send_response() 257 err = ip6_xmit(sk, skb, &fl6, rcu_dereference(np->opt), in dccp_v6_send_response() 258 np->tclass); in dccp_v6_send_response() [all …]
|
D | minisocks.c | 58 const struct ipv6_pinfo *np = inet6_sk(sk); in dccp_time_wait() local 63 tw6->tw_v6_daddr = np->daddr; in dccp_time_wait() 64 tw6->tw_v6_rcv_saddr = np->rcv_saddr; in dccp_time_wait() 65 tw->tw_ipv6only = np->ipv6only; in dccp_time_wait()
|
/net/l2tp/ |
D | l2tp_ip6.c | 261 struct ipv6_pinfo *np = inet6_sk(sk); in l2tp_ip6_bind() local 335 np->rcv_saddr = addr->l2tp_addr; in l2tp_ip6_bind() 336 np->saddr = addr->l2tp_addr; in l2tp_ip6_bind() 414 struct ipv6_pinfo *np = inet6_sk(sk); in l2tp_ip6_getname() local 425 lsa->l2tp_addr = np->daddr; in l2tp_ip6_getname() 426 if (np->sndflow) in l2tp_ip6_getname() 427 lsa->l2tp_flowinfo = np->flow_label; in l2tp_ip6_getname() 429 if (ipv6_addr_any(&np->rcv_saddr)) in l2tp_ip6_getname() 430 lsa->l2tp_addr = np->saddr; in l2tp_ip6_getname() 432 lsa->l2tp_addr = np->rcv_saddr; in l2tp_ip6_getname() [all …]
|
D | l2tp_netlink.c | 247 struct ipv6_pinfo *np = NULL; in l2tp_nl_tunnel_send() local 291 np = inet6_sk(sk); in l2tp_nl_tunnel_send() 306 if (np) { in l2tp_nl_tunnel_send() 307 if (nla_put(skb, L2TP_ATTR_IP6_SADDR, sizeof(np->saddr), in l2tp_nl_tunnel_send() 308 &np->saddr) || in l2tp_nl_tunnel_send() 309 nla_put(skb, L2TP_ATTR_IP6_DADDR, sizeof(np->daddr), in l2tp_nl_tunnel_send() 310 &np->daddr)) in l2tp_nl_tunnel_send()
|
/net/bridge/ |
D | br_device.c | 244 struct netpoll *np; in br_netpoll_enable() local 247 np = kzalloc(sizeof(*p->np), gfp); in br_netpoll_enable() 249 if (!np) in br_netpoll_enable() 252 err = __netpoll_setup(np, p->dev, gfp); in br_netpoll_enable() 254 kfree(np); in br_netpoll_enable() 258 p->np = np; in br_netpoll_enable() 266 struct netpoll *np = p->np; in br_netpoll_disable() local 268 if (!np) in br_netpoll_disable() 271 p->np = NULL; in br_netpoll_disable() 273 __netpoll_free_async(np); in br_netpoll_disable()
|
/net/sctp/ |
D | ipv6.c | 155 struct ipv6_pinfo *np; in sctp_v6_err() local 197 np = inet6_sk(sk); in sctp_v6_err() 199 if (!sock_owned_by_user(sk) && np->recverr) { in sctp_v6_err() 217 struct ipv6_pinfo *np = inet6_sk(sk); in sctp_v6_xmit() local 230 fl6.flowlabel = np->flow_label; in sctp_v6_xmit() 237 if (np->opt && np->opt->srcrt) { in sctp_v6_xmit() 238 struct rt0_hdr *rt0 = (struct rt0_hdr *) np->opt->srcrt; in sctp_v6_xmit() 251 return ip6_xmit(sk, skb, &fl6, np->opt, np->tclass); in sctp_v6_xmit() 656 struct ipv6_pinfo *newnp, *np = inet6_sk(sk); in sctp_v6_create_accept_sk() local 675 memcpy(newnp, np, sizeof(struct ipv6_pinfo)); in sctp_v6_create_accept_sk()
|
/net/ipv4/ |
D | ping.c | 206 struct ipv6_pinfo *np = inet6_sk(sk); in ping_lookup() local 213 if (!ipv6_addr_any(&np->rcv_saddr) && in ping_lookup() 214 !ipv6_addr_equal(&np->rcv_saddr, in ping_lookup() 385 struct ipv6_pinfo *np = inet6_sk(sk); in ping_set_saddr() local 386 np->rcv_saddr = np->saddr = addr->sin6_addr; in ping_set_saddr() 399 struct ipv6_pinfo *np = inet6_sk(sk); in ping_clear_saddr() local 400 memset(&np->rcv_saddr, 0, sizeof(np->rcv_saddr)); in ping_clear_saddr() 401 memset(&np->saddr, 0, sizeof(np->saddr)); in ping_clear_saddr() 906 struct ipv6_pinfo *np = inet6_sk(sk); in ping_recvmsg() local 916 if (np->sndflow) in ping_recvmsg()
|
/net/8021q/ |
D | vlan_dev.c | 226 struct vlan_priority_tci_mapping *np; in vlan_dev_set_egress_priority() local 245 np = kmalloc(sizeof(struct vlan_priority_tci_mapping), GFP_KERNEL); in vlan_dev_set_egress_priority() 246 if (!np) in vlan_dev_set_egress_priority() 249 np->next = mp; in vlan_dev_set_egress_priority() 250 np->priority = skb_prio; in vlan_dev_set_egress_priority() 251 np->vlan_qos = vlan_qos; in vlan_dev_set_egress_priority() 252 vlan->egress_priority_map[skb_prio & 0xF] = np; in vlan_dev_set_egress_priority()
|
/net/dsa/ |
D | dsa.c | 365 struct device_node *np = pdev->dev.of_node; in dsa_of_probe() local 376 mdio = of_parse_phandle(np, "dsa,mii-bus", 0); in dsa_of_probe() 384 ethernet = of_parse_phandle(np, "dsa,ethernet", 0); in dsa_of_probe() 398 pd->nr_chips = of_get_child_count(np); in dsa_of_probe() 410 for_each_available_child_of_node(np, child) { in dsa_of_probe()
|