/net/core/ |
D | netpoll.c | 65 #define np_info(np, fmt, ...) \ argument 66 pr_info("%s: " fmt, np->name, ##__VA_ARGS__) 67 #define np_err(np, fmt, ...) \ argument 68 pr_err("%s: " fmt, np->name, ##__VA_ARGS__) 69 #define np_notice(np, fmt, ...) \ argument 70 pr_notice("%s: " fmt, np->name, ##__VA_ARGS__) 269 static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve) in find_skb() argument 284 netpoll_poll_dev(np->dev); in find_skb() 307 void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, in netpoll_send_skb_on_dev() argument 317 npinfo = rcu_dereference_bh(np->dev->npinfo); in netpoll_send_skb_on_dev() [all …]
|
/net/ipv6/ |
D | ipv6_sockglue.c | 142 struct ipv6_pinfo *np = inet6_sk(sk); in do_ipv6_setsockopt() local 234 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt() 240 pktopt = xchg(&np->pktoptions, NULL); in do_ipv6_setsockopt() 265 np->rxopt.bits.rxinfo = valbool; in do_ipv6_setsockopt() 272 np->rxopt.bits.rxoinfo = valbool; in do_ipv6_setsockopt() 279 np->rxopt.bits.rxhlim = valbool; in do_ipv6_setsockopt() 286 np->rxopt.bits.rxohlim = valbool; in do_ipv6_setsockopt() 293 np->rxopt.bits.srcrt = valbool; in do_ipv6_setsockopt() 300 np->rxopt.bits.osrcrt = valbool; in do_ipv6_setsockopt() 307 np->rxopt.bits.hopopts = valbool; in do_ipv6_setsockopt() [all …]
|
D | datagram.c | 43 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_flow_key_init() local 48 fl6->saddr = np->saddr; in ip6_datagram_flow_key_init() 53 fl6->flowlabel = np->flow_label; in ip6_datagram_flow_key_init() 57 fl6->flowi6_oif = np->sticky_pktinfo.ipi6_ifindex; in ip6_datagram_flow_key_init() 60 fl6->flowi6_oif = np->mcast_oif; in ip6_datagram_flow_key_init() 72 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_datagram_dst_update() local 76 if (np->sndflow && (np->flow_label & IPV6_FLOWLABEL_MASK)) { in ip6_datagram_dst_update() 77 flowlabel = fl6_sock_lookup(sk, np->flow_label); in ip6_datagram_dst_update() 84 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in ip6_datagram_dst_update() 95 if (ipv6_addr_any(&np->saddr)) in ip6_datagram_dst_update() [all …]
|
D | ip6_flowlabel.c | 69 #define for_each_sk_fl_rcu(np, sfl) \ argument 70 for (sfl = rcu_dereference_bh(np->ipv6_fl_list); \ 262 struct ipv6_pinfo *np = inet6_sk(sk); in __fl6_sock_lookup() local 267 for_each_sk_fl_rcu(np, sfl) { in __fl6_sock_lookup() 283 struct ipv6_pinfo *np = inet6_sk(sk); in fl6_free_socklist() local 286 if (!rcu_access_pointer(np->ipv6_fl_list)) in fl6_free_socklist() 290 while ((sfl = rcu_dereference_protected(np->ipv6_fl_list, in fl6_free_socklist() 292 np->ipv6_fl_list = sfl->next; in fl6_free_socklist() 467 struct ipv6_pinfo *np = inet6_sk(sk); in mem_check() local 476 for_each_sk_fl_rcu(np, sfl) in mem_check() [all …]
|
D | af_inet6.c | 111 struct ipv6_pinfo *np; in inet6_create() local 205 inet_sk(sk)->pinet6 = np = inet6_sk_generic(sk); in inet6_create() 206 np->hop_limit = -1; in inet6_create() 207 np->mcast_hops = IPV6_DEFAULT_MCASTHOPS; in inet6_create() 208 np->mc_loop = 1; in inet6_create() 209 np->mc_all = 1; in inet6_create() 210 np->pmtudisc = IPV6_PMTUDISC_WANT; in inet6_create() 211 np->repflow = net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ESTABLISHED; in inet6_create() 279 struct ipv6_pinfo *np = inet6_sk(sk); in __inet6_bind() local 396 np->saddr = addr->sin6_addr; in __inet6_bind() [all …]
|
D | inet6_connection_sock.c | 33 const struct ipv6_pinfo *np = inet6_sk(sk); in inet6_csk_route_req() local 41 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in inet6_csk_route_req() 83 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_csk_route_socket() local 90 fl6->saddr = np->saddr; in inet6_csk_route_socket() 91 fl6->flowlabel = np->flow_label; in inet6_csk_route_socket() 101 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in inet6_csk_route_socket() 104 dst = __inet6_csk_dst_check(sk, np->dst_cookie); in inet6_csk_route_socket() 116 struct ipv6_pinfo *np = inet6_sk(sk); in inet6_csk_xmit() local 135 res = ip6_xmit(sk, skb, &fl6, sk->sk_mark, rcu_dereference(np->opt), in inet6_csk_xmit() 136 np->tclass, sk->sk_priority); in inet6_csk_xmit()
|
D | tcp_ipv6.c | 150 struct ipv6_pinfo *np = tcp_inet6_sk(sk); in tcp_v6_connect() local 168 if (np->sndflow) { in tcp_v6_connect() 222 np->flow_label = fl6.flowlabel; in tcp_v6_connect() 256 np->saddr = sk->sk_v6_rcv_saddr; in tcp_v6_connect() 266 fl6.saddr = saddr ? *saddr : np->saddr; in tcp_v6_connect() 273 opt = rcu_dereference_protected(np->opt, lockdep_sock_is_held(sk)); in tcp_v6_connect() 290 np->saddr = *saddr; in tcp_v6_connect() 315 secure_tcpv6_seq(np->saddr.s6_addr32, in tcp_v6_connect() 320 np->saddr.s6_addr32, in tcp_v6_connect() 367 struct ipv6_pinfo *np; in tcp_v6_err() local [all …]
|
D | ping.c | 50 struct ipv6_pinfo *np = inet6_sk(sk); in ping_v6_sendmsg() local 89 oif = np->sticky_pktinfo.ipi6_ifindex; in ping_v6_sendmsg() 92 oif = np->mcast_oif; in ping_v6_sendmsg() 94 oif = np->ucast_oif; in ping_v6_sendmsg() 107 fl6.saddr = np->saddr; in ping_v6_sendmsg() 116 ipcm6_init_sk(&ipc6, np); in ping_v6_sendmsg() 125 fl6.flowi6_oif = np->mcast_oif; in ping_v6_sendmsg() 127 fl6.flowi6_oif = np->ucast_oif; in ping_v6_sendmsg() 138 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in ping_v6_sendmsg()
|
D | raw.c | 245 struct ipv6_pinfo *np = inet6_sk(sk); in rawv6_bind() local 313 np->saddr = addr->sin6_addr; in rawv6_bind() 327 struct ipv6_pinfo *np = inet6_sk(sk); in rawv6_err() local 336 if (!np->recverr && sk->sk_state != TCP_ESTABLISHED) in rawv6_err() 342 harderr = (np->pmtudisc == IPV6_PMTUDISC_DO); in rawv6_err() 348 if (np->recverr) { in rawv6_err() 355 if (np->recverr || harderr) { in rawv6_err() 465 struct ipv6_pinfo *np = inet6_sk(sk); in rawv6_recvmsg() local 477 if (np->rxpmtu && np->rxopt.bits.rxpmtu) in rawv6_recvmsg() 517 if (np->rxopt.all) in rawv6_recvmsg() [all …]
|
D | anycast.c | 65 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_sock_ac_join() local 141 pac->acl_next = np->ipv6_ac_list; in ipv6_sock_ac_join() 142 np->ipv6_ac_list = pac; in ipv6_sock_ac_join() 157 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_sock_ac_drop() local 165 for (pac = np->ipv6_ac_list; pac; pac = pac->acl_next) { in ipv6_sock_ac_drop() 176 np->ipv6_ac_list = pac->acl_next; in ipv6_sock_ac_drop() 188 struct ipv6_pinfo *np = inet6_sk(sk); in ipv6_sock_ac_close() local 194 if (!np->ipv6_ac_list) in ipv6_sock_ac_close() 198 pac = np->ipv6_ac_list; in ipv6_sock_ac_close() 199 np->ipv6_ac_list = NULL; in ipv6_sock_ac_close()
|
D | ip6_output.c | 181 bool ip6_autoflowlabel(struct net *net, const struct ipv6_pinfo *np) in ip6_autoflowlabel() argument 183 if (!np->autoflowlabel_set) in ip6_autoflowlabel() 186 return np->autoflowlabel; in ip6_autoflowlabel() 199 const struct ipv6_pinfo *np = inet6_sk(sk); in ip6_xmit() local 245 if (np) in ip6_xmit() 246 hlimit = np->hop_limit; in ip6_xmit() 251 ip6_autoflowlabel(net, np), fl6)); in ip6_xmit() 307 struct ipv6_pinfo *np = inet6_sk(sk); in ip6_call_ra_chain() local 309 if (np && np->rtalert_isolate && in ip6_call_ra_chain() 767 struct ipv6_pinfo *np = skb->sk && !dev_recursion_level() ? in ip6_fragment() local [all …]
|
D | udp.c | 270 struct ipv6_pinfo *np = inet6_sk(sk); in udpv6_recvmsg() local 283 if (np->rxpmtu && np->rxopt.bits.rxpmtu) in udpv6_recvmsg() 366 if (np->rxopt.all) in udpv6_recvmsg() 374 if (np->rxopt.all) in udpv6_recvmsg() 495 struct ipv6_pinfo *np; in __udp6_lib_err() local 529 np = inet6_sk(sk); in __udp6_lib_err() 535 if (np->pmtudisc != IPV6_PMTUDISC_DONT) in __udp6_lib_err() 552 if (!np->recverr) { in __udp6_lib_err() 1219 struct ipv6_pinfo *np = inet6_sk(sk); in udpv6_sendmsg() local 1252 ipv6_addr_v4mapped(&np->saddr)) in udpv6_sendmsg() [all …]
|
D | syncookies.c | 133 struct ipv6_pinfo *np = inet6_sk(sk); in cookie_v6_check() local 190 np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo || in cookie_v6_check() 191 np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) { in cookie_v6_check() 229 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); in cookie_v6_check()
|
D | icmp.c | 430 struct ipv6_pinfo *np; in icmp6_send() local 539 np = inet6_sk(sk); in icmp6_send() 550 fl6.flowi6_oif = np->mcast_oif; in icmp6_send() 552 fl6.flowi6_oif = np->ucast_oif; in icmp6_send() 554 ipcm6_init_sk(&ipc6, np); in icmp6_send() 561 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmp6_send() 677 struct ipv6_pinfo *np; in icmpv6_echo_reply() local 724 np = inet6_sk(sk); in icmpv6_echo_reply() 727 fl6.flowi6_oif = np->mcast_oif; in icmpv6_echo_reply() 729 fl6.flowi6_oif = np->ucast_oif; in icmpv6_echo_reply() [all …]
|
/net/ncsi/ |
D | ncsi-manage.c | 34 struct ncsi_package *np; in ncsi_channel_is_last() local 37 NCSI_FOR_EACH_PACKAGE(ndp, np) in ncsi_channel_is_last() 38 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_channel_is_last() 52 struct ncsi_package *np; in ncsi_report_link() local 63 NCSI_FOR_EACH_PACKAGE(ndp, np) { in ncsi_report_link() 64 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_report_link() 90 struct ncsi_package *np = nc->package; in ncsi_channel_monitor() local 91 struct ncsi_dev_priv *ndp = np->ndp; in ncsi_channel_monitor() 120 nca.package = np->id; in ncsi_channel_monitor() 187 struct ncsi_channel *ncsi_find_channel(struct ncsi_package *np, in ncsi_find_channel() argument [all …]
|
D | ncsi-netlink.c | 98 struct ncsi_package *np; in ncsi_write_package_info() local 109 NCSI_FOR_EACH_PACKAGE(ndp, np) { in ncsi_write_package_info() 110 if (np->id != id) in ncsi_write_package_info() 115 nla_put_u32(skb, NCSI_PKG_ATTR_ID, np->id); in ncsi_write_package_info() 116 if ((0x1 << np->id) == ndp->package_whitelist) in ncsi_write_package_info() 123 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_write_package_info() 212 struct ncsi_package *np, *package; in ncsi_pkg_info_all_nl() local 235 NCSI_FOR_EACH_PACKAGE(ndp, np) in ncsi_pkg_info_all_nl() 236 if (np->id == package_id) in ncsi_pkg_info_all_nl() 237 package = np; in ncsi_pkg_info_all_nl() [all …]
|
D | internal.h | 341 #define NCSI_FOR_EACH_PACKAGE(ndp, np) \ argument 342 list_for_each_entry_rcu(np, &ndp->packages, node) 343 #define NCSI_FOR_EACH_CHANNEL(np, nc) \ argument 344 list_for_each_entry_rcu(nc, &np->channels, node) 350 struct ncsi_channel *ncsi_find_channel(struct ncsi_package *np, 352 struct ncsi_channel *ncsi_add_channel(struct ncsi_package *np, 358 void ncsi_remove_package(struct ncsi_package *np); 361 struct ncsi_package **np, 372 struct ncsi_package *np,
|
D | ncsi-rsp.c | 80 struct ncsi_package *np; in ncsi_rsp_handler_cis() local 85 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, &np, &nc); in ncsi_rsp_handler_cis() 91 nc = ncsi_add_channel(np, id); in ncsi_rsp_handler_cis() 101 struct ncsi_package *np; in ncsi_rsp_handler_sp() local 109 &np, NULL); in ncsi_rsp_handler_sp() 110 if (!np) { in ncsi_rsp_handler_sp() 115 np = ncsi_add_package(ndp, id); in ncsi_rsp_handler_sp() 116 if (!np) in ncsi_rsp_handler_sp() 127 struct ncsi_package *np; in ncsi_rsp_handler_dp() local 134 &np, NULL); in ncsi_rsp_handler_dp() [all …]
|
D | ncsi-netlink.h | 14 struct ncsi_package *np, 17 struct ncsi_package *np,
|
/net/dccp/ |
D | ipv6.c | 51 struct ipv6_pinfo *np = inet6_sk(sk); in dccp_v6_send_check() local 55 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &sk->sk_v6_daddr); in dccp_v6_send_check() 73 struct ipv6_pinfo *np; in dccp_v6_err() local 122 np = inet6_sk(sk); in dccp_v6_err() 126 struct dst_entry *dst = __sk_dst_check(sk, np->dst_cookie); in dccp_v6_err() 175 if (!sock_owned_by_user(sk) && np->recverr) { in dccp_v6_err() 191 struct ipv6_pinfo *np = inet6_sk(sk); in dccp_v6_send_response() local 210 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); in dccp_v6_send_response() 232 opt = rcu_dereference(np->opt); in dccp_v6_send_response() 233 err = ip6_xmit(sk, skb, &fl6, sk->sk_mark, opt, np->tclass, in dccp_v6_send_response() [all …]
|
/net/l2tp/ |
D | l2tp_ip6.c | 264 struct ipv6_pinfo *np = inet6_sk(sk); in l2tp_ip6_bind() local 341 np->saddr = addr->l2tp_addr; in l2tp_ip6_bind() 424 struct ipv6_pinfo *np = inet6_sk(sk); in l2tp_ip6_getname() local 436 if (np->sndflow) in l2tp_ip6_getname() 437 lsa->l2tp_flowinfo = np->flow_label; in l2tp_ip6_getname() 440 lsa->l2tp_addr = np->saddr; in l2tp_ip6_getname() 495 struct ipv6_pinfo *np = inet6_sk(sk); in l2tp_ip6_sendmsg() local 535 if (np->sndflow) { in l2tp_ip6_sendmsg() 561 fl6.flowlabel = np->flow_label; in l2tp_ip6_sendmsg() 588 opt = txopt_get(np); in l2tp_ip6_sendmsg() [all …]
|
/net/bridge/ |
D | br_device.c | 296 struct netpoll *np; in __br_netpoll_enable() local 299 np = kzalloc(sizeof(*p->np), GFP_KERNEL); in __br_netpoll_enable() 300 if (!np) in __br_netpoll_enable() 303 err = __netpoll_setup(np, p->dev); in __br_netpoll_enable() 305 kfree(np); in __br_netpoll_enable() 309 p->np = np; in __br_netpoll_enable() 345 struct netpoll *np = p->np; in br_netpoll_disable() local 347 if (!np) in br_netpoll_disable() 350 p->np = NULL; in br_netpoll_disable() 352 __netpoll_free(np); in br_netpoll_disable()
|
/net/wireless/ |
D | of.c | 77 struct device_node *np; in wiphy_read_of_freq_limits() local 87 np = dev_of_node(dev); in wiphy_read_of_freq_limits() 88 if (!np) in wiphy_read_of_freq_limits() 91 prop = of_find_property(np, "ieee80211-freq-limit", &len); in wiphy_read_of_freq_limits()
|
/net/sctp/ |
D | ipv6.c | 132 struct ipv6_pinfo *np; in sctp_v6_err() local 176 np = inet6_sk(sk); in sctp_v6_err() 178 if (!sock_owned_by_user(sk) && np->recverr) { in sctp_v6_err() 197 struct ipv6_pinfo *np = inet6_sk(sk); in sctp_v6_xmit() local 199 __u8 tclass = np->tclass; in sctp_v6_xmit() 217 res = ip6_xmit(sk, skb, fl6, sk->sk_mark, rcu_dereference(np->opt), in sctp_v6_xmit() 233 struct ipv6_pinfo *np = inet6_sk(sk); in sctp_v6_get_dst() local 252 if (np->sndflow && (fl6->flowlabel & IPV6_FLOWLABEL_MASK)) { in sctp_v6_get_dst() 275 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst() 330 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst() [all …]
|
/net/nsh/ |
D | nsh.c | 35 nh->np = next_proto; in nsh_push() 59 inner_proto = tun_p_to_eth_p(nh->np); in nsh_pop() 97 proto = tun_p_to_eth_p(nsh_hdr(skb)->np); in nsh_gso_segment()
|