net               361 crypto/af_alg.c static int alg_create(struct net *net, struct socket *sock, int protocol,
net               373 crypto/af_alg.c 	sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto, kern);
net               187 crypto/crypto_user_base.c 	struct net *net = sock_net(in_skb->sk);
net               221 crypto/crypto_user_base.c 	return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid);
net               424 crypto/crypto_user_base.c 	struct net *net = sock_net(skb->sk);
net               455 crypto/crypto_user_base.c 			err = netlink_dump_start(net->crypto_nlsk, skb, nlh, &c);
net               479 crypto/crypto_user_base.c static int __net_init crypto_netlink_init(struct net *net)
net               485 crypto/crypto_user_base.c 	net->crypto_nlsk = netlink_kernel_create(net, NETLINK_CRYPTO, &cfg);
net               486 crypto/crypto_user_base.c 	return net->crypto_nlsk == NULL ? -ENOMEM : 0;
net               489 crypto/crypto_user_base.c static void __net_exit crypto_netlink_exit(struct net *net)
net               491 crypto/crypto_user_base.c 	netlink_kernel_release(net->crypto_nlsk);
net               492 crypto/crypto_user_base.c 	net->crypto_nlsk = NULL;
net               302 crypto/crypto_user_stat.c 	struct net *net = sock_net(in_skb->sk);
net               336 crypto/crypto_user_stat.c 	return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid);
net              3286 drivers/base/core.c 		struct net_device *net = to_net_dev(dev);
net              3290 drivers/base/core.c 				"DEVICE=n%u", net->ifindex);
net               217 drivers/firewire/net.c static int fwnet_header_create(struct sk_buff *skb, struct net_device *net,
net               226 drivers/firewire/net.c 	if (net->flags & (IFF_LOOPBACK | IFF_NOARP)) {
net               227 drivers/firewire/net.c 		memset(h->h_dest, 0, net->addr_len);
net               229 drivers/firewire/net.c 		return net->hard_header_len;
net               233 drivers/firewire/net.c 		memcpy(h->h_dest, daddr, net->addr_len);
net               235 drivers/firewire/net.c 		return net->hard_header_len;
net               238 drivers/firewire/net.c 	return -net->hard_header_len;
net               244 drivers/firewire/net.c 	struct net_device *net;
net               249 drivers/firewire/net.c 	net = neigh->dev;
net               252 drivers/firewire/net.c 	memcpy(h->h_dest, neigh->ha, net->addr_len);
net               264 drivers/firewire/net.c 		const struct net_device *net, const unsigned char *haddr)
net               266 drivers/firewire/net.c 	memcpy((u8 *)hh->hh_data + HH_DATA_OFF(FWNET_HLEN), haddr, net->addr_len);
net               361 drivers/firewire/net.c static struct fwnet_partial_datagram *fwnet_pd_new(struct net_device *net,
net               379 drivers/firewire/net.c 	new->skb = dev_alloc_skb(dg_size + LL_RESERVED_SPACE(net));
net               383 drivers/firewire/net.c 	skb_reserve(new->skb, LL_RESERVED_SPACE(net));
net               487 drivers/firewire/net.c static int fwnet_finish_incoming_packet(struct net_device *net,
net               506 drivers/firewire/net.c 	dev = netdev_priv(net);
net               508 drivers/firewire/net.c 	skb->dev = net;
net               516 drivers/firewire/net.c 	if (dev_hard_header(skb, net, ether_type,
net               517 drivers/firewire/net.c 			   is_broadcast ? net->broadcast : net->dev_addr,
net               527 drivers/firewire/net.c 			if (memcmp(eth->h_dest, net->broadcast,
net               528 drivers/firewire/net.c 				   net->addr_len) == 0)
net               535 drivers/firewire/net.c 			if (memcmp(eth->h_dest, net->dev_addr, net->addr_len))
net               551 drivers/firewire/net.c 		net->stats.rx_errors++;
net               552 drivers/firewire/net.c 		net->stats.rx_dropped++;
net               554 drivers/firewire/net.c 		net->stats.rx_packets++;
net               555 drivers/firewire/net.c 		net->stats.rx_bytes += skb->len;
net               561 drivers/firewire/net.c 	net->stats.rx_errors++;
net               562 drivers/firewire/net.c 	net->stats.rx_dropped++;
net               574 drivers/firewire/net.c 	struct net_device *net = dev->netdev;
net               601 drivers/firewire/net.c 		skb = dev_alloc_skb(len + LL_RESERVED_SPACE(net));
net               603 drivers/firewire/net.c 			net->stats.rx_dropped++;
net               607 drivers/firewire/net.c 		skb_reserve(skb, LL_RESERVED_SPACE(net));
net               610 drivers/firewire/net.c 		return fwnet_finish_incoming_packet(net, skb, source_node_id,
net               651 drivers/firewire/net.c 		pd = fwnet_pd_new(net, peer, datagram_label,
net               666 drivers/firewire/net.c 			pd = fwnet_pd_new(net, peer, datagram_label,
net               699 drivers/firewire/net.c 		return fwnet_finish_incoming_packet(net, skb, source_node_id,
net              1207 drivers/firewire/net.c static int fwnet_open(struct net_device *net)
net              1209 drivers/firewire/net.c 	struct fwnet_device *dev = netdev_priv(net);
net              1216 drivers/firewire/net.c 	netif_start_queue(net);
net              1226 drivers/firewire/net.c static int fwnet_stop(struct net_device *net)
net              1228 drivers/firewire/net.c 	struct fwnet_device *dev = netdev_priv(net);
net              1230 drivers/firewire/net.c 	netif_stop_queue(net);
net              1236 drivers/firewire/net.c static netdev_tx_t fwnet_tx(struct sk_buff *skb, struct net_device *net)
net              1239 drivers/firewire/net.c 	struct fwnet_device *dev = netdev_priv(net);
net              1361 drivers/firewire/net.c 	net->stats.tx_dropped++;
net              1362 drivers/firewire/net.c 	net->stats.tx_errors++;
net              1384 drivers/firewire/net.c static void fwnet_init_dev(struct net_device *net)
net              1386 drivers/firewire/net.c 	net->header_ops		= &fwnet_header_ops;
net              1387 drivers/firewire/net.c 	net->netdev_ops		= &fwnet_netdev_ops;
net              1388 drivers/firewire/net.c 	net->watchdog_timeo	= 2 * HZ;
net              1389 drivers/firewire/net.c 	net->flags		= IFF_BROADCAST | IFF_MULTICAST;
net              1390 drivers/firewire/net.c 	net->features		= NETIF_F_HIGHDMA;
net              1391 drivers/firewire/net.c 	net->addr_len		= FWNET_ALEN;
net              1392 drivers/firewire/net.c 	net->hard_header_len	= FWNET_HLEN;
net              1393 drivers/firewire/net.c 	net->type		= ARPHRD_IEEE1394;
net              1394 drivers/firewire/net.c 	net->tx_queue_len	= FWNET_TX_QUEUE_LEN;
net              1395 drivers/firewire/net.c 	net->ethtool_ops	= &fwnet_ethtool_ops;
net              1447 drivers/firewire/net.c 	struct net_device *net;
net              1457 drivers/firewire/net.c 		net = dev->netdev;
net              1461 drivers/firewire/net.c 	net = alloc_netdev(sizeof(*dev), "firewire%d", NET_NAME_UNKNOWN,
net              1463 drivers/firewire/net.c 	if (net == NULL) {
net              1469 drivers/firewire/net.c 	SET_NETDEV_DEV(net, card->device);
net              1470 drivers/firewire/net.c 	dev = netdev_priv(net);
net              1481 drivers/firewire/net.c 	dev->netdev = net;
net              1493 drivers/firewire/net.c 	net->mtu = 1500U;
net              1494 drivers/firewire/net.c 	net->min_mtu = ETH_MIN_MTU;
net              1495 drivers/firewire/net.c 	net->max_mtu = 4096U;
net              1498 drivers/firewire/net.c 	ha = (union fwnet_hwaddr *)net->dev_addr;
net              1505 drivers/firewire/net.c 	memset(net->broadcast, -1, net->addr_len);
net              1507 drivers/firewire/net.c 	ret = register_netdev(net);
net              1512 drivers/firewire/net.c 	dev_notice(&net->dev, "IP over IEEE 1394 on card %s\n",
net              1517 drivers/firewire/net.c 		unregister_netdev(net);
net              1521 drivers/firewire/net.c 		free_netdev(net);
net              1567 drivers/firewire/net.c 	struct net_device *net;
net              1572 drivers/firewire/net.c 	net = dev->netdev;
net              1577 drivers/firewire/net.c 		unregister_netdev(net);
net              1586 drivers/firewire/net.c 		free_netdev(net);
net               245 drivers/infiniband/core/addr.c rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in)
net               252 drivers/infiniband/core/addr.c 		dev = __ip_dev_find(net,
net               260 drivers/infiniband/core/addr.c 		for_each_netdev_rcu(net, dev) {
net               261 drivers/infiniband/core/addr.c 			if (ipv6_chk_addr(net,
net               280 drivers/infiniband/core/addr.c 		dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if);
net               289 drivers/infiniband/core/addr.c 	dev = rdma_find_ndev_for_src_ip_rcu(dev_addr->net, addr);
net               400 drivers/infiniband/core/addr.c 	rt = ip_route_output_key(addr->net, &fl4);
net               430 drivers/infiniband/core/addr.c 	dst = ipv6_stub->ipv6_dst_lookup_flow(addr->net, NULL, &fl6, NULL);
net               538 drivers/infiniband/core/addr.c 	addr->net = dev_net(ndev);
net               545 drivers/infiniband/core/addr.c 	addr->net = &init_net;
net               561 drivers/infiniband/core/addr.c 	if (!addr->net) {
net               742 drivers/infiniband/core/addr.c 	dev_addr.net = &init_net;
net               826 drivers/infiniband/core/addr.c 	dev_addr.net = &init_net;
net               200 drivers/infiniband/core/cma.c static struct cma_pernet *cma_pernet(struct net *net)
net               202 drivers/infiniband/core/cma.c 	return net_generic(net, cma_pernet_id);
net               206 drivers/infiniband/core/cma.c struct xarray *cma_pernet_xa(struct net *net, enum rdma_ucm_port_space ps)
net               208 drivers/infiniband/core/cma.c 	struct cma_pernet *pernet = cma_pernet(net);
net               248 drivers/infiniband/core/cma.c static int cma_ps_alloc(struct net *net, enum rdma_ucm_port_space ps,
net               251 drivers/infiniband/core/cma.c 	struct xarray *xa = cma_pernet_xa(net, ps);
net               256 drivers/infiniband/core/cma.c static struct rdma_bind_list *cma_ps_find(struct net *net,
net               259 drivers/infiniband/core/cma.c 	struct xarray *xa = cma_pernet_xa(net, ps);
net               264 drivers/infiniband/core/cma.c static void cma_ps_remove(struct net *net, enum rdma_ucm_port_space ps,
net               267 drivers/infiniband/core/cma.c 	struct xarray *xa = cma_pernet_xa(net, ps);
net               619 drivers/infiniband/core/cma.c 	if (!rdma_dev_access_netns(device, id_priv->id.route.addr.dev_addr.net))
net               629 drivers/infiniband/core/cma.c 		ndev = dev_get_by_index(dev_addr->net, bound_if_index);
net               875 drivers/infiniband/core/cma.c struct rdma_cm_id *__rdma_create_id(struct net *net,
net               904 drivers/infiniband/core/cma.c 	id_priv->id.route.addr.dev_addr.net = get_net(net);
net              1617 drivers/infiniband/core/cma.c 	if (net_eq(dev_net(net_dev), addr->dev_addr.net) &&
net              1788 drivers/infiniband/core/cma.c 	struct net *net = id_priv->id.route.addr.dev_addr.net;
net              1796 drivers/infiniband/core/cma.c 		cma_ps_remove(net, bind_list->ps, bind_list->port);
net              1809 drivers/infiniband/core/cma.c 		ndev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if);
net              1876 drivers/infiniband/core/cma.c 	put_net(id_priv->id.route.addr.dev_addr.net);
net              2018 drivers/infiniband/core/cma.c 	id = __rdma_create_id(listen_id->route.addr.dev_addr.net,
net              2075 drivers/infiniband/core/cma.c 	struct net *net = listen_id->route.addr.dev_addr.net;
net              2079 drivers/infiniband/core/cma.c 	id = __rdma_create_id(net, listen_id->event_handler, listen_id->context,
net              2354 drivers/infiniband/core/cma.c 	new_cm_id = __rdma_create_id(listen_id->id.route.addr.dev_addr.net,
net              2473 drivers/infiniband/core/cma.c 	struct net *net = id_priv->id.route.addr.dev_addr.net;
net              2479 drivers/infiniband/core/cma.c 	id = __rdma_create_id(net, cma_listen_handler, id_priv, id_priv->id.ps,
net              2758 drivers/infiniband/core/cma.c 	ndev = dev_get_by_index(addr->dev_addr.net,
net              3280 drivers/infiniband/core/cma.c 	ret = cma_ps_alloc(id_priv->id.route.addr.dev_addr.net, ps, bind_list,
net              3339 drivers/infiniband/core/cma.c 	struct net *net = id_priv->id.route.addr.dev_addr.net;
net              3341 drivers/infiniband/core/cma.c 	inet_get_local_port_range(net, &low, &high);
net              3349 drivers/infiniband/core/cma.c 		bind_list = cma_ps_find(net, ps, (unsigned short)rover);
net              3422 drivers/infiniband/core/cma.c 	bind_list = cma_ps_find(id_priv->id.route.addr.dev_addr.net, ps, snum);
net              3617 drivers/infiniband/core/cma.c 			struct net *net = id_priv->id.route.addr.dev_addr.net;
net              3619 drivers/infiniband/core/cma.c 			id_priv->afonly = net->ipv6.sysctl.bindv6only;
net              4183 drivers/infiniband/core/cma.c 			dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if);
net              4380 drivers/infiniband/core/cma.c 		ndev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if);
net              4513 drivers/infiniband/core/cma.c 	    (net_eq(dev_net(ndev), dev_addr->net)) &&
net              4690 drivers/infiniband/core/cma.c static int cma_init_net(struct net *net)
net              4692 drivers/infiniband/core/cma.c 	struct cma_pernet *pernet = cma_pernet(net);
net              4702 drivers/infiniband/core/cma.c static void cma_exit_net(struct net *net)
net              4704 drivers/infiniband/core/cma.c 	struct cma_pernet *pernet = cma_pernet(net);
net                67 drivers/infiniband/core/core_priv.h 	possible_net_t net;
net                75 drivers/infiniband/core/core_priv.h static inline struct rdma_dev_net *rdma_net_to_dev_net(struct net *net)
net                77 drivers/infiniband/core/core_priv.h 	return net_generic(net, rdma_dev_net_id);
net               314 drivers/infiniband/core/core_priv.h struct ib_device *ib_device_get_by_index(const struct net *net, u32 index);
net               143 drivers/infiniband/core/device.c bool rdma_dev_access_netns(const struct ib_device *dev, const struct net *net)
net               146 drivers/infiniband/core/device.c 		net_eq(read_pnet(&dev->coredev.rdma_net), net));
net               260 drivers/infiniband/core/device.c static int rdma_dev_change_netns(struct ib_device *device, struct net *cur_net,
net               261 drivers/infiniband/core/device.c 				 struct net *net);
net               310 drivers/infiniband/core/device.c struct ib_device *ib_device_get_by_index(const struct net *net, u32 index)
net               317 drivers/infiniband/core/device.c 		if (!rdma_dev_access_netns(device, net)) {
net               544 drivers/infiniband/core/device.c 			      struct ib_device *dev, struct net *net)
net               560 drivers/infiniband/core/device.c 	write_pnet(&coredev->rdma_net, net);
net               874 drivers/infiniband/core/device.c 	if (net_eq(read_pnet(&rnet->net),
net               900 drivers/infiniband/core/device.c 	rdma_init_coredev(cdev, device, read_pnet(&rnet->net));
net              1056 drivers/infiniband/core/device.c static void rdma_dev_exit_net(struct net *net)
net              1058 drivers/infiniband/core/device.c 	struct rdma_dev_net *rnet = rdma_net_to_dev_net(net);
net              1085 drivers/infiniband/core/device.c 		rdma_dev_change_netns(dev, net, &init_net);
net              1096 drivers/infiniband/core/device.c static __net_init int rdma_dev_init_net(struct net *net)
net              1098 drivers/infiniband/core/device.c 	struct rdma_dev_net *rnet = rdma_net_to_dev_net(net);
net              1103 drivers/infiniband/core/device.c 	write_pnet(&rnet->net, net);
net              1110 drivers/infiniband/core/device.c 	if (net_eq(net, &init_net))
net              1133 drivers/infiniband/core/device.c 		rdma_dev_exit_net(net);
net              1578 drivers/infiniband/core/device.c static int rdma_dev_change_netns(struct ib_device *device, struct net *cur_net,
net              1579 drivers/infiniband/core/device.c 				 struct net *net)
net              1604 drivers/infiniband/core/device.c 	write_pnet(&device->coredev.rdma_net, net);
net              1645 drivers/infiniband/core/device.c 	struct net *net;
net              1648 drivers/infiniband/core/device.c 	net = get_net_ns_by_fd(ns_fd);
net              1649 drivers/infiniband/core/device.c 	if (IS_ERR(net)) {
net              1650 drivers/infiniband/core/device.c 		ret = PTR_ERR(net);
net              1654 drivers/infiniband/core/device.c 	if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN)) {
net              1673 drivers/infiniband/core/device.c 	ret = rdma_dev_change_netns(dev, current->nsproxy->net_ns, net);
net              1676 drivers/infiniband/core/device.c 	put_net(net);
net              1680 drivers/infiniband/core/device.c 	put_net(net);
net               262 drivers/infiniband/core/netlink.c int rdma_nl_unicast(struct net *net, struct sk_buff *skb, u32 pid)
net               264 drivers/infiniband/core/netlink.c 	struct rdma_dev_net *rnet = rdma_net_to_dev_net(net);
net               272 drivers/infiniband/core/netlink.c int rdma_nl_unicast_wait(struct net *net, struct sk_buff *skb, __u32 pid)
net               274 drivers/infiniband/core/netlink.c 	struct rdma_dev_net *rnet = rdma_net_to_dev_net(net);
net               282 drivers/infiniband/core/netlink.c int rdma_nl_multicast(struct net *net, struct sk_buff *skb,
net               285 drivers/infiniband/core/netlink.c 	struct rdma_dev_net *rnet = rdma_net_to_dev_net(net);
net               311 drivers/infiniband/core/netlink.c 	struct net *net = read_pnet(&rnet->net);
net               317 drivers/infiniband/core/netlink.c 	nls = netlink_kernel_create(net, NETLINK_RDMA, &cfg);
net               281 drivers/infiniband/core/nldev.c 			  const struct net *net)
net               322 drivers/infiniband/core/nldev.c 	if (netdev && net_eq(dev_net(netdev), net)) {
net               477 drivers/infiniband/core/roce_gid_mgmt.c 	struct net *net;
net               485 drivers/infiniband/core/roce_gid_mgmt.c 	for_each_net(net)
net               486 drivers/infiniband/core/roce_gid_mgmt.c 		for_each_netdev(net, ndev) {
net                95 drivers/infiniband/hw/bnxt_re/main.c 	bp = netdev_priv(en_dev->net);
net               112 drivers/infiniband/hw/bnxt_re/main.c 	bp = netdev_priv(rdev->en_dev->net);
net               235 drivers/infiniband/sw/rxe/rxe_net.c static struct socket *rxe_setup_udp_tunnel(struct net *net, __be16 port,
net               253 drivers/infiniband/sw/rxe/rxe_net.c 	err = udp_sock_create(net, &udp_cfg, &sock);
net               263 drivers/infiniband/sw/rxe/rxe_net.c 	setup_udp_tunnel_sock(net, sock, &tnl_cfg);
net               290 drivers/infiniband/ulp/ipoib/ipoib_main.c 	struct net *net = dev_net(dev);
net               302 drivers/infiniband/ulp/ipoib/ipoib_main.c 		ret_addr = inet_confirm_addr(net, in_dev, 0,
net               312 drivers/infiniband/ulp/ipoib/ipoib_main.c 		    ipv6_chk_addr(net, &addr_in6->sin6_addr, dev, 1))
net                96 drivers/infiniband/ulp/ipoib/ipoib_netlink.c static int ipoib_new_child_link(struct net *src_net, struct net_device *dev,
net               345 drivers/infiniband/ulp/srp/ib_srp.c 	new_cm_id = rdma_create_id(target->net, srp_rdma_cm_handler, ch,
net              1112 drivers/infiniband/ulp/srp/ib_srp.c 	kobj_ns_drop(KOBJ_NS_TYPE_NET, target->net);
net              3461 drivers/infiniband/ulp/srp/ib_srp.c static int srp_parse_in(struct net *net, struct sockaddr_storage *sa,
net              3477 drivers/infiniband/ulp/srp/ib_srp.c 	ret = inet_pton_with_scope(net, AF_INET, addr, port_str, sa);
net              3482 drivers/infiniband/ulp/srp/ib_srp.c 			ret = inet_pton_with_scope(net, AF_INET6, addr + 1,
net              3491 drivers/infiniband/ulp/srp/ib_srp.c static int srp_parse_options(struct net *net, const char *buf,
net              3597 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_parse_in(net, &target->rdma_cm.src.ss, p,
net              3614 drivers/infiniband/ulp/srp/ib_srp.c 			ret = srp_parse_in(net, &target->rdma_cm.dst.ss, p,
net              3800 drivers/infiniband/ulp/srp/ib_srp.c 	target->net		= kobj_ns_grab_current(KOBJ_NS_TYPE_NET);
net              3822 drivers/infiniband/ulp/srp/ib_srp.c 	ret = srp_parse_options(target->net, buf, target);
net              4016 drivers/infiniband/ulp/srp/ib_srp.c 			kobj_ns_drop(KOBJ_NS_TYPE_NET, target->net);
net               208 drivers/infiniband/ulp/srp/ib_srp.h 	struct net		*net;
net               593 drivers/isdn/mISDN/socket.c data_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
net               600 drivers/isdn/mISDN/socket.c 	sk = sk_alloc(net, PF_ISDN, GFP_KERNEL, &mISDN_proto, kern);
net               751 drivers/isdn/mISDN/socket.c base_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
net               760 drivers/isdn/mISDN/socket.c 	sk = sk_alloc(net, PF_ISDN, GFP_KERNEL, &mISDN_proto, kern);
net               776 drivers/isdn/mISDN/socket.c mISDN_sock_create(struct net *net, struct socket *sock, int proto, int kern)
net               782 drivers/isdn/mISDN/socket.c 		err = base_sock_create(net, sock, proto, kern);
net               796 drivers/isdn/mISDN/socket.c 		err = data_sock_create(net, sock, proto, kern);
net               165 drivers/media/common/videobuf2/videobuf2-dvb.c 	result = dvb_net_init(adapter, &dvb->net, &dvb->demux.dmx);
net               323 drivers/media/common/videobuf2/videobuf2-dvb.c 		if (fe->dvb.net.dvbdev) {
net               324 drivers/media/common/videobuf2/videobuf2-dvb.c 			dvb_net_release(&fe->dvb.net);
net                87 drivers/media/dvb-core/dvb_net.c 	struct net_device *net;
net              1219 drivers/media/dvb-core/dvb_net.c 	struct net_device *dev = priv->net;
net              1260 drivers/media/dvb-core/dvb_net.c 	struct net_device *dev = priv->net;
net              1345 drivers/media/dvb-core/dvb_net.c 	struct net_device *net;
net              1355 drivers/media/dvb-core/dvb_net.c 	net = alloc_netdev(sizeof(struct dvb_net_priv), "dvb",
net              1357 drivers/media/dvb-core/dvb_net.c 	if (!net)
net              1361 drivers/media/dvb-core/dvb_net.c 		snprintf(net->name, IFNAMSIZ, "dvb%d%u%d",
net              1365 drivers/media/dvb-core/dvb_net.c 		snprintf(net->name, IFNAMSIZ, "dvb%d_%d",
net              1368 drivers/media/dvb-core/dvb_net.c 	net->addr_len = 6;
net              1369 drivers/media/dvb-core/dvb_net.c 	memcpy(net->dev_addr, dvbnet->dvbdev->adapter->proposed_mac, 6);
net              1371 drivers/media/dvb-core/dvb_net.c 	dvbnet->device[if_num] = net;
net              1373 drivers/media/dvb-core/dvb_net.c 	priv = netdev_priv(net);
net              1374 drivers/media/dvb-core/dvb_net.c 	priv->net = net;
net              1387 drivers/media/dvb-core/dvb_net.c 	net->base_addr = pid;
net              1389 drivers/media/dvb-core/dvb_net.c 	if ((result = register_netdev(net)) < 0) {
net              1391 drivers/media/dvb-core/dvb_net.c 		free_netdev(net);
net              1394 drivers/media/dvb-core/dvb_net.c 	pr_info("created network interface %s\n", net->name);
net              1401 drivers/media/dvb-core/dvb_net.c 	struct net_device *net = dvbnet->device[num];
net              1406 drivers/media/dvb-core/dvb_net.c 	priv = netdev_priv(net);
net              1410 drivers/media/dvb-core/dvb_net.c 	dvb_net_stop(net);
net              1413 drivers/media/dvb-core/dvb_net.c 	pr_info("removed network interface %s\n", net->name);
net              1414 drivers/media/dvb-core/dvb_net.c 	unregister_netdev(net);
net              1417 drivers/media/dvb-core/dvb_net.c 	free_netdev(net);
net               452 drivers/media/pci/saa7164/saa7164-dvb.c 	dvb_net_init(&dvb->adapter, &dvb->net, &dvb->demux.dmx);
net               511 drivers/media/pci/saa7164/saa7164-dvb.c 	dvb_net_release(&dvb->net);
net               237 drivers/media/pci/saa7164/saa7164.h 	struct dvb_net net;
net               494 drivers/media/usb/au0828/au0828-dvb.c 	dvb_net_init(&dvb->adapter, &dvb->net, &dvb->demux.dmx);
net               506 drivers/media/usb/au0828/au0828-dvb.c 	dvb_net_release(&dvb->net);
net               542 drivers/media/usb/au0828/au0828-dvb.c 	dvb_net_release(&dvb->net);
net                93 drivers/media/usb/au0828/au0828.h 	struct dvb_net net;
net                63 drivers/media/usb/cx231xx/cx231xx-dvb.c 	struct dvb_net net;
net               559 drivers/media/usb/cx231xx/cx231xx-dvb.c 	dvb_net_init(&dvb->adapter, &dvb->net, &dvb->demux.dmx);
net               568 drivers/media/usb/cx231xx/cx231xx-dvb.c 	dvb_net_release(&dvb->net);
net               593 drivers/media/usb/cx231xx/cx231xx-dvb.c 	dvb_net_release(&dvb->net);
net                96 drivers/media/usb/em28xx/em28xx-dvb.c 	struct dvb_net             net;
net              1081 drivers/media/usb/em28xx/em28xx-dvb.c 	dvb_net_init(&dvb->adapter, &dvb->net, &dvb->demux.dmx);
net              1094 drivers/media/usb/em28xx/em28xx-dvb.c 	dvb_net_release(&dvb->net);
net              1119 drivers/media/usb/em28xx/em28xx-dvb.c 	dvb_net_release(&dvb->net);
net              3523 drivers/net/bonding/bond_main.c 	struct net *net;
net              3580 drivers/net/bonding/bond_main.c 	net = dev_net(bond_dev);
net              3582 drivers/net/bonding/bond_main.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              3585 drivers/net/bonding/bond_main.c 	slave_dev = __dev_get_by_name(net, ifr->ifr_slave);
net              4837 drivers/net/bonding/bond_main.c int bond_create(struct net *net, const char *name)
net              4863 drivers/net/bonding/bond_main.c 	dev_net_set(bond_dev, net);
net              4878 drivers/net/bonding/bond_main.c static int __net_init bond_net_init(struct net *net)
net              4880 drivers/net/bonding/bond_main.c 	struct bond_net *bn = net_generic(net, bond_net_id);
net              4882 drivers/net/bonding/bond_main.c 	bn->net = net;
net              4891 drivers/net/bonding/bond_main.c static void __net_exit bond_net_exit(struct net *net)
net              4893 drivers/net/bonding/bond_main.c 	struct bond_net *bn = net_generic(net, bond_net_id);
net               448 drivers/net/bonding/bond_netlink.c static int bond_newlink(struct net *src_net, struct net_device *bond_dev,
net               296 drivers/net/bonding/bond_procfs.c 		bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net);
net               309 drivers/net/bonding/bond_procfs.c 		remove_proc_entry(DRV_NAME, bn->net->proc_net);
net                96 drivers/net/bonding/bond_sysfs.c 		rv = bond_create(bn->net, ifname);
net               779 drivers/net/bonding/bond_sysfs.c 					  bn->net);
net               792 drivers/net/bonding/bond_sysfs.c 		if (__dev_get_by_name(bn->net,
net               806 drivers/net/bonding/bond_sysfs.c 	netdev_class_remove_file_ns(&bn->class_attr_bonding_masters, bn->net);
net              1395 drivers/net/caif/caif_hsi.c static int caif_hsi_newlink(struct net *src_net, struct net_device *dev,
net              1208 drivers/net/can/dev.c static int can_newlink(struct net *src_net, struct net_device *dev,
net               401 drivers/net/can/m_can/m_can.c 			netdev_warn(cdev->net, "Failed to init module\n");
net               420 drivers/net/can/m_can/m_can.c static void m_can_clean(struct net_device *net)
net               422 drivers/net/can/m_can/m_can.c 	struct m_can_classdev *cdev = netdev_priv(net);
net               427 drivers/net/can/m_can/m_can.c 		net->stats.tx_errors++;
net               432 drivers/net/can/m_can/m_can.c 		can_free_echo_skb(cdev->net, putidx);
net              1289 drivers/net/can/m_can/m_can.c 	struct net_device *dev = m_can_dev->net;
net              1415 drivers/net/can/m_can/m_can.c 	struct net_device *dev = cdev->net;
net              1563 drivers/net/can/m_can/m_can.c 			netif_stop_queue(cdev->net);
net              1757 drivers/net/can/m_can/m_can.c 	class_dev->net = net_dev;
net              1782 drivers/net/can/m_can/m_can.c 	ret = register_m_can_dev(m_can_dev->net);
net              1785 drivers/net/can/m_can/m_can.c 			m_can_dev->net->name, ret);
net              1789 drivers/net/can/m_can/m_can.c 	devm_can_led_init(m_can_dev->net);
net              1791 drivers/net/can/m_can/m_can.c 	of_can_transceiver(m_can_dev->net);
net              1794 drivers/net/can/m_can/m_can.c 		 KBUILD_MODNAME, m_can_dev->net->irq, m_can_dev->version);
net              1805 drivers/net/can/m_can/m_can.c 		free_candev(m_can_dev->net);
net              1860 drivers/net/can/m_can/m_can.c 	unregister_candev(m_can_dev->net);
net              1864 drivers/net/can/m_can/m_can.c 	free_candev(m_can_dev->net);
net                75 drivers/net/can/m_can/m_can.h 	struct net_device *net;
net               101 drivers/net/can/m_can/m_can_platform.c 	mcan_class->net->irq = irq;
net               110 drivers/net/can/m_can/m_can_platform.c 	platform_set_drvdata(pdev, mcan_class->net);
net               454 drivers/net/can/m_can/tcan4x5x.c 	mcan_class->net->irq = spi->irq;
net               481 drivers/net/can/m_can/tcan4x5x.c 	netdev_info(mcan_class->net, "TCAN4X5X successfully initialized.\n");
net                40 drivers/net/can/softing/softing.h 	struct net_device *net[2];
net               443 drivers/net/can/softing/softing_fw.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               444 drivers/net/can/softing/softing_fw.c 		netdev = card->net[j];
net               481 drivers/net/can/softing/softing_fw.c 			&& (softing_error_reporting(card->net[0])
net               482 drivers/net/can/softing/softing_fw.c 				!= softing_error_reporting(card->net[1]))) {
net               489 drivers/net/can/softing/softing_fw.c 		netdev = card->net[0];
net               529 drivers/net/can/softing/softing_fw.c 		netdev = card->net[1];
net               628 drivers/net/can/softing/softing_fw.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               631 drivers/net/can/softing/softing_fw.c 		netdev = card->net[j];
net               659 drivers/net/can/softing/softing_fw.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               660 drivers/net/can/softing/softing_fw.c 		netdev = card->net[j];
net               117 drivers/net/can/softing/softing_main.c 		for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               118 drivers/net/can/softing/softing_main.c 			if (card->net[j])
net               119 drivers/net/can/softing/softing_main.c 				netif_stop_queue(card->net[j]);
net               176 drivers/net/can/softing/softing_main.c 		for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               177 drivers/net/can/softing/softing_main.c 			netdev = card->net[j];
net               210 drivers/net/can/softing/softing_main.c 	netdev = card->net[0];
net               212 drivers/net/can/softing/softing_main.c 		netdev = card->net[1];
net               334 drivers/net/can/softing/softing_main.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               337 drivers/net/can/softing/softing_main.c 		netdev = card->net[(j + offset + 1) % card->pdat->nbus];
net               733 drivers/net/can/softing/softing_main.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               734 drivers/net/can/softing/softing_main.c 		if (!card->net[j])
net               736 drivers/net/can/softing/softing_main.c 		softing_netdev_cleanup(card->net[j]);
net               737 drivers/net/can/softing/softing_main.c 		card->net[j] = NULL;
net               760 drivers/net/can/softing/softing_main.c 	if (pdat->nbus > ARRAY_SIZE(card->net)) {
net               806 drivers/net/can/softing/softing_main.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               807 drivers/net/can/softing/softing_main.c 		card->net[j] = netdev =
net               815 drivers/net/can/softing/softing_main.c 		priv = netdev_priv(card->net[j]);
net               820 drivers/net/can/softing/softing_main.c 			card->net[j] = NULL;
net               830 drivers/net/can/softing/softing_main.c 	for (j = 0; j < ARRAY_SIZE(card->net); ++j) {
net               831 drivers/net/can/softing/softing_main.c 		if (!card->net[j])
net               833 drivers/net/can/softing/softing_main.c 		softing_netdev_cleanup(card->net[j]);
net               146 drivers/net/can/spi/hi311x.c 	struct net_device *net;
net               174 drivers/net/can/spi/hi311x.c static void hi3110_clean(struct net_device *net)
net               176 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               179 drivers/net/can/spi/hi311x.c 		net->stats.tx_errors++;
net               182 drivers/net/can/spi/hi311x.c 		can_free_echo_skb(priv->net, 0);
net               320 drivers/net/can/spi/hi311x.c 	skb = alloc_can_skb(priv->net, &frame);
net               322 drivers/net/can/spi/hi311x.c 		priv->net->stats.rx_dropped++;
net               352 drivers/net/can/spi/hi311x.c 	priv->net->stats.rx_packets++;
net               353 drivers/net/can/spi/hi311x.c 	priv->net->stats.rx_bytes += frame->can_dlc;
net               355 drivers/net/can/spi/hi311x.c 	can_led_event(priv->net, CAN_LED_EVENT_RX);
net               366 drivers/net/can/spi/hi311x.c 					  struct net_device *net)
net               368 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               376 drivers/net/can/spi/hi311x.c 	if (can_dropped_invalid_skb(net, skb))
net               379 drivers/net/can/spi/hi311x.c 	netif_stop_queue(net);
net               386 drivers/net/can/spi/hi311x.c static int hi3110_do_set_mode(struct net_device *net, enum can_mode mode)
net               388 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               392 drivers/net/can/spi/hi311x.c 		hi3110_clean(net);
net               407 drivers/net/can/spi/hi311x.c static int hi3110_get_berr_counter(const struct net_device *net,
net               410 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               451 drivers/net/can/spi/hi311x.c static int hi3110_do_set_bittiming(struct net_device *net)
net               453 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               476 drivers/net/can/spi/hi311x.c static int hi3110_setup(struct net_device *net)
net               478 drivers/net/can/spi/hi311x.c 	hi3110_do_set_bittiming(net);
net               539 drivers/net/can/spi/hi311x.c static int hi3110_stop(struct net_device *net)
net               541 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               544 drivers/net/can/spi/hi311x.c 	close_candev(net);
net               558 drivers/net/can/spi/hi311x.c 	hi3110_clean(net);
net               568 drivers/net/can/spi/hi311x.c 	can_led_event(net, CAN_LED_EVENT_STOP);
net               578 drivers/net/can/spi/hi311x.c 	struct net_device *net = priv->net;
net               584 drivers/net/can/spi/hi311x.c 			hi3110_clean(net);
net               589 drivers/net/can/spi/hi311x.c 			can_put_echo_skb(priv->tx_skb, net, 0);
net               601 drivers/net/can/spi/hi311x.c 	struct net_device *net = priv->net;
net               606 drivers/net/can/spi/hi311x.c 		hi3110_setup(net);
net               610 drivers/net/can/spi/hi311x.c 			netif_device_attach(net);
net               611 drivers/net/can/spi/hi311x.c 			hi3110_clean(net);
net               613 drivers/net/can/spi/hi311x.c 			netif_wake_queue(net);
net               624 drivers/net/can/spi/hi311x.c 		hi3110_setup(net);
net               625 drivers/net/can/spi/hi311x.c 		hi3110_clean(net);
net               627 drivers/net/can/spi/hi311x.c 		netif_wake_queue(net);
net               636 drivers/net/can/spi/hi311x.c 	struct net_device *net = priv->net;
net               667 drivers/net/can/spi/hi311x.c 			skb = alloc_can_err_skb(net, &cf);
net               677 drivers/net/can/spi/hi311x.c 			can_change_state(net, cf, tx_state, rx_state);
net               681 drivers/net/can/spi/hi311x.c 				can_bus_off(net);
net               698 drivers/net/can/spi/hi311x.c 				skb = alloc_can_err_skb(net, &cf);
net               704 drivers/net/can/spi/hi311x.c 				priv->net->stats.rx_errors++;
net               718 drivers/net/can/spi/hi311x.c 				netdev_dbg(priv->net, "Bus Error\n");
net               724 drivers/net/can/spi/hi311x.c 			net->stats.tx_packets++;
net               725 drivers/net/can/spi/hi311x.c 			net->stats.tx_bytes += priv->tx_len - 1;
net               726 drivers/net/can/spi/hi311x.c 			can_led_event(net, CAN_LED_EVENT_TX);
net               728 drivers/net/can/spi/hi311x.c 				can_get_echo_skb(net, 0);
net               731 drivers/net/can/spi/hi311x.c 			netif_wake_queue(net);
net               741 drivers/net/can/spi/hi311x.c static int hi3110_open(struct net_device *net)
net               743 drivers/net/can/spi/hi311x.c 	struct hi3110_priv *priv = netdev_priv(net);
net               748 drivers/net/can/spi/hi311x.c 	ret = open_candev(net);
net               779 drivers/net/can/spi/hi311x.c 	ret = hi3110_setup(net);
net               787 drivers/net/can/spi/hi311x.c 	can_led_event(net, CAN_LED_EVENT_OPEN);
net               788 drivers/net/can/spi/hi311x.c 	netif_wake_queue(net);
net               800 drivers/net/can/spi/hi311x.c 	close_candev(net);
net               833 drivers/net/can/spi/hi311x.c 	struct net_device *net;
net               850 drivers/net/can/spi/hi311x.c 	net = alloc_candev(sizeof(struct hi3110_priv), HI3110_TX_ECHO_SKB_MAX);
net               851 drivers/net/can/spi/hi311x.c 	if (!net)
net               860 drivers/net/can/spi/hi311x.c 	net->netdev_ops = &hi3110_netdev_ops;
net               861 drivers/net/can/spi/hi311x.c 	net->flags |= IFF_ECHO;
net               863 drivers/net/can/spi/hi311x.c 	priv = netdev_priv(net);
net               877 drivers/net/can/spi/hi311x.c 	priv->net = net;
net               917 drivers/net/can/spi/hi311x.c 	SET_NETDEV_DEV(net, &spi->dev);
net               928 drivers/net/can/spi/hi311x.c 	ret = register_candev(net);
net               932 drivers/net/can/spi/hi311x.c 	devm_can_led_init(net);
net               933 drivers/net/can/spi/hi311x.c 	netdev_info(net, "%x successfully initialized.\n", priv->model);
net               945 drivers/net/can/spi/hi311x.c 	free_candev(net);
net               954 drivers/net/can/spi/hi311x.c 	struct net_device *net = priv->net;
net               956 drivers/net/can/spi/hi311x.c 	unregister_candev(net);
net               963 drivers/net/can/spi/hi311x.c 	free_candev(net);
net               972 drivers/net/can/spi/hi311x.c 	struct net_device *net = priv->net;
net               980 drivers/net/can/spi/hi311x.c 	if (netif_running(net)) {
net               981 drivers/net/can/spi/hi311x.c 		netif_device_detach(net);
net               203 drivers/net/can/spi/mcp251x.c 	struct net_device *net;
net               240 drivers/net/can/spi/mcp251x.c static void mcp251x_clean(struct net_device *net)
net               242 drivers/net/can/spi/mcp251x.c 	struct mcp251x_priv *priv = netdev_priv(net);
net               245 drivers/net/can/spi/mcp251x.c 		net->stats.tx_errors++;
net               248 drivers/net/can/spi/mcp251x.c 		can_free_echo_skb(priv->net, 0);
net               413 drivers/net/can/spi/mcp251x.c 	skb = alloc_can_skb(priv->net, &frame);
net               416 drivers/net/can/spi/mcp251x.c 		priv->net->stats.rx_dropped++;
net               447 drivers/net/can/spi/mcp251x.c 	priv->net->stats.rx_packets++;
net               448 drivers/net/can/spi/mcp251x.c 	priv->net->stats.rx_bytes += frame->can_dlc;
net               450 drivers/net/can/spi/mcp251x.c 	can_led_event(priv->net, CAN_LED_EVENT_RX);
net               461 drivers/net/can/spi/mcp251x.c 					   struct net_device *net)
net               463 drivers/net/can/spi/mcp251x.c 	struct mcp251x_priv *priv = netdev_priv(net);
net               471 drivers/net/can/spi/mcp251x.c 	if (can_dropped_invalid_skb(net, skb))
net               474 drivers/net/can/spi/mcp251x.c 	netif_stop_queue(net);
net               481 drivers/net/can/spi/mcp251x.c static int mcp251x_do_set_mode(struct net_device *net, enum can_mode mode)
net               483 drivers/net/can/spi/mcp251x.c 	struct mcp251x_priv *priv = netdev_priv(net);
net               487 drivers/net/can/spi/mcp251x.c 		mcp251x_clean(net);
net               536 drivers/net/can/spi/mcp251x.c static int mcp251x_do_set_bittiming(struct net_device *net)
net               538 drivers/net/can/spi/mcp251x.c 	struct mcp251x_priv *priv = netdev_priv(net);
net               559 drivers/net/can/spi/mcp251x.c static int mcp251x_setup(struct net_device *net, struct spi_device *spi)
net               561 drivers/net/can/spi/mcp251x.c 	mcp251x_do_set_bittiming(net);
net               634 drivers/net/can/spi/mcp251x.c static int mcp251x_stop(struct net_device *net)
net               636 drivers/net/can/spi/mcp251x.c 	struct mcp251x_priv *priv = netdev_priv(net);
net               639 drivers/net/can/spi/mcp251x.c 	close_candev(net);
net               653 drivers/net/can/spi/mcp251x.c 	mcp251x_clean(net);
net               663 drivers/net/can/spi/mcp251x.c 	can_led_event(net, CAN_LED_EVENT_STOP);
net               668 drivers/net/can/spi/mcp251x.c static void mcp251x_error_skb(struct net_device *net, int can_id, int data1)
net               673 drivers/net/can/spi/mcp251x.c 	skb = alloc_can_err_skb(net, &frame);
net               679 drivers/net/can/spi/mcp251x.c 		netdev_err(net, "cannot allocate error skb\n");
net               688 drivers/net/can/spi/mcp251x.c 	struct net_device *net = priv->net;
net               694 drivers/net/can/spi/mcp251x.c 			mcp251x_clean(net);
net               702 drivers/net/can/spi/mcp251x.c 			can_put_echo_skb(priv->tx_skb, net, 0);
net               714 drivers/net/can/spi/mcp251x.c 	struct net_device *net = priv->net;
net               719 drivers/net/can/spi/mcp251x.c 		mcp251x_setup(net, spi);
net               724 drivers/net/can/spi/mcp251x.c 			netif_device_attach(net);
net               725 drivers/net/can/spi/mcp251x.c 			mcp251x_clean(net);
net               727 drivers/net/can/spi/mcp251x.c 			netif_wake_queue(net);
net               737 drivers/net/can/spi/mcp251x.c 		mcp251x_clean(net);
net               738 drivers/net/can/spi/mcp251x.c 		netif_wake_queue(net);
net               739 drivers/net/can/spi/mcp251x.c 		mcp251x_error_skb(net, CAN_ERR_RESTARTED, 0);
net               748 drivers/net/can/spi/mcp251x.c 	struct net_device *net = priv->net;
net               835 drivers/net/can/spi/mcp251x.c 					net->stats.rx_over_errors++;
net               836 drivers/net/can/spi/mcp251x.c 					net->stats.rx_errors++;
net               839 drivers/net/can/spi/mcp251x.c 					net->stats.rx_over_errors++;
net               840 drivers/net/can/spi/mcp251x.c 					net->stats.rx_errors++;
net               845 drivers/net/can/spi/mcp251x.c 			mcp251x_error_skb(net, can_id, data1);
net               852 drivers/net/can/spi/mcp251x.c 				can_bus_off(net);
net               862 drivers/net/can/spi/mcp251x.c 			net->stats.tx_packets++;
net               863 drivers/net/can/spi/mcp251x.c 			net->stats.tx_bytes += priv->tx_len - 1;
net               864 drivers/net/can/spi/mcp251x.c 			can_led_event(net, CAN_LED_EVENT_TX);
net               866 drivers/net/can/spi/mcp251x.c 				can_get_echo_skb(net, 0);
net               869 drivers/net/can/spi/mcp251x.c 			netif_wake_queue(net);
net               876 drivers/net/can/spi/mcp251x.c static int mcp251x_open(struct net_device *net)
net               878 drivers/net/can/spi/mcp251x.c 	struct mcp251x_priv *priv = netdev_priv(net);
net               883 drivers/net/can/spi/mcp251x.c 	ret = open_candev(net);
net               919 drivers/net/can/spi/mcp251x.c 	ret = mcp251x_setup(net, spi);
net               926 drivers/net/can/spi/mcp251x.c 	can_led_event(net, CAN_LED_EVENT_OPEN);
net               928 drivers/net/can/spi/mcp251x.c 	netif_wake_queue(net);
net               940 drivers/net/can/spi/mcp251x.c 	close_candev(net);
net               990 drivers/net/can/spi/mcp251x.c 	struct net_device *net;
net              1008 drivers/net/can/spi/mcp251x.c 	net = alloc_candev(sizeof(struct mcp251x_priv), TX_ECHO_SKB_MAX);
net              1009 drivers/net/can/spi/mcp251x.c 	if (!net)
net              1016 drivers/net/can/spi/mcp251x.c 	net->netdev_ops = &mcp251x_netdev_ops;
net              1017 drivers/net/can/spi/mcp251x.c 	net->flags |= IFF_ECHO;
net              1019 drivers/net/can/spi/mcp251x.c 	priv = netdev_priv(net);
net              1029 drivers/net/can/spi/mcp251x.c 	priv->net = net;
net              1073 drivers/net/can/spi/mcp251x.c 	SET_NETDEV_DEV(net, &spi->dev);
net              1086 drivers/net/can/spi/mcp251x.c 	ret = register_candev(net);
net              1090 drivers/net/can/spi/mcp251x.c 	devm_can_led_init(net);
net              1092 drivers/net/can/spi/mcp251x.c 	netdev_info(net, "MCP%x successfully initialized.\n", priv->model);
net              1102 drivers/net/can/spi/mcp251x.c 	free_candev(net);
net              1111 drivers/net/can/spi/mcp251x.c 	struct net_device *net = priv->net;
net              1113 drivers/net/can/spi/mcp251x.c 	unregister_candev(net);
net              1119 drivers/net/can/spi/mcp251x.c 	free_candev(net);
net              1128 drivers/net/can/spi/mcp251x.c 	struct net_device *net = priv->net;
net              1135 drivers/net/can/spi/mcp251x.c 	if (netif_running(net)) {
net              1136 drivers/net/can/spi/mcp251x.c 		netif_device_detach(net);
net               118 drivers/net/can/usb/esd_usb2.c 	u8 net;
net               128 drivers/net/can/usb/esd_usb2.c 	u8 net;
net               138 drivers/net/can/usb/esd_usb2.c 	u8 net;
net               147 drivers/net/can/usb/esd_usb2.c 	u8 net;
net               155 drivers/net/can/usb/esd_usb2.c 	u8 net;
net               402 drivers/net/can/usb/esd_usb2.c 			if (msg->msg.rx.net >= dev->net_count) {
net               407 drivers/net/can/usb/esd_usb2.c 			esd_usb2_rx_can_msg(dev->nets[msg->msg.rx.net], msg);
net               411 drivers/net/can/usb/esd_usb2.c 			if (msg->msg.txdone.net >= dev->net_count) {
net               416 drivers/net/can/usb/esd_usb2.c 			esd_usb2_tx_done_msg(dev->nets[msg->msg.txdone.net],
net               632 drivers/net/can/usb/esd_usb2.c 	msg->msg.filter.net = priv->index;
net               739 drivers/net/can/usb/esd_usb2.c 	msg->msg.tx.net = priv->index;
net               843 drivers/net/can/usb/esd_usb2.c 	msg->msg.filter.net = priv->index;
net               853 drivers/net/can/usb/esd_usb2.c 	msg->msg.setbaud.net = priv->index;
net               926 drivers/net/can/usb/esd_usb2.c 	msg->msg.setbaud.net = priv->index;
net               156 drivers/net/can/vxcan.c static int vxcan_newlink(struct net *net, struct net_device *dev,
net               162 drivers/net/can/vxcan.c 	struct net *peer_net;
net               196 drivers/net/can/vxcan.c 	peer_net = rtnl_link_get_net(net, tbp);
net               276 drivers/net/can/vxcan.c static struct net *vxcan_get_link_net(const struct net_device *dev)
net                30 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 	struct net_device *dev = edev->net;
net                66 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 	struct net_device *dev = edev->net;
net               114 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 	struct net_device *dev = edev->net;
net               177 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 	struct net_device *dev = edev->net;
net               228 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 	struct net_device *dev = edev->net;
net               430 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 	struct net_device *dev = edev->net;
net               470 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c 		edev->net = dev;
net                59 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h 	struct net_device *net;
net               444 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_core_dev *mlx5e_hairpin_get_mdev(struct net *net, int ifindex)
net               449 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	netdev = __dev_get_by_index(net, ifindex);
net               251 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	if (!net_eq(info->net, &init_net))
net              1613 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 		acl_block = mlxsw_sp_acl_block_create(mlxsw_sp, f->net);
net               658 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	struct net *net;
net               668 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 						     struct net *net);
net               209 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c 						     struct net *net)
net               218 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c 	block->net = net;
net               160 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 	ingress_dev = __dev_get_by_index(block->net,
net               985 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	struct net *net = dev_net(ol_dev);
net               987 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return __dev_get_by_index(net, tun->parms.link);
net              2530 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c static int mlxsw_sp_router_schedule_work(struct net *net,
net              2537 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (!net_eq(net, &init_net))
net              6204 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (rule->iifindex == info->net->loopback_dev->ifindex)
net              6241 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (!net_eq(info->net, &init_net) ||
net               310 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	rt = ip_route_output_key(tun->net, &fl4);
net               416 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 	dst = ip6_route_output(t->net, NULL, &fl6);
net               434 drivers/net/ethernet/netronome/nfp/flower/action.c 		struct net *net = dev_net(netdev);
net               445 drivers/net/ethernet/netronome/nfp/flower/action.c 		rt = ip_route_output_key(net, &flow);
net               451 drivers/net/ethernet/netronome/nfp/flower/action.c 			set_tun->ttl = net->ipv4.sysctl_ip_default_ttl;
net              2748 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	struct net_device *net = to_net_dev(dev);
net              2749 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	struct netxen_adapter *adapter = netdev_priv(net);
net              2773 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	struct net_device *net = to_net_dev(dev);
net              2777 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter = netdev_priv(net);
net               107 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c static int rmnet_newlink(struct net *src_net, struct net_device *dev,
net              2192 drivers/net/ethernet/rocker/rocker_main.c 	if (!net_eq(info->net, &init_net))
net               361 drivers/net/fjes/fjes_trace.h #define TRACE_INCLUDE_PATH ../../../drivers/net/fjes
net                57 drivers/net/geneve.c 	struct net	   *net;	/* netns for packet i/o */
net               373 drivers/net/geneve.c 				 !net_eq(geneve->net, dev_net(geneve->dev)))) {
net               440 drivers/net/geneve.c static struct socket *geneve_create_sock(struct net *net, bool ipv6,
net               461 drivers/net/geneve.c 	err = udp_sock_create(net, &udp_conf, &sock);
net               563 drivers/net/geneve.c static struct geneve_sock *geneve_socket_create(struct net *net, __be16 port,
net               566 drivers/net/geneve.c 	struct geneve_net *gn = net_generic(net, geneve_net_id);
net               576 drivers/net/geneve.c 	sock = geneve_create_sock(net, ipv6, port, ipv6_rx_csum);
net               599 drivers/net/geneve.c 	setup_udp_tunnel_sock(net, sock, &tunnel_cfg);
net               650 drivers/net/geneve.c 	struct net *net = geneve->net;
net               651 drivers/net/geneve.c 	struct geneve_net *gn = net_generic(net, geneve_net_id);
net               663 drivers/net/geneve.c 	gs = geneve_socket_create(net, geneve->info.key.tp_dst, ipv6,
net               806 drivers/net/geneve.c 	rt = ip_route_output_key(geneve->net, fl4);
net               856 drivers/net/geneve.c 	dst = ipv6_stub->ipv6_dst_lookup_flow(geneve->net, gs6->sock->sk, fl6,
net               878 drivers/net/geneve.c 	bool xnet = !net_eq(geneve->net, dev_net(geneve->dev));
net               895 drivers/net/geneve.c 	sport = udp_flow_src_port(geneve->net, skb, 1, USHRT_MAX, true);
net               931 drivers/net/geneve.c 			    !net_eq(geneve->net, dev_net(geneve->dev)),
net               941 drivers/net/geneve.c 	bool xnet = !net_eq(geneve->net, dev_net(geneve->dev));
net               956 drivers/net/geneve.c 	sport = udp_flow_src_port(geneve->net, skb, 1, USHRT_MAX, true);
net              1065 drivers/net/geneve.c 	info->key.tp_src = udp_flow_src_port(geneve->net, skb,
net              1107 drivers/net/geneve.c 	struct net *net = dev_net(dev);
net              1108 drivers/net/geneve.c 	struct geneve_net *gn = net_generic(net, geneve_net_id);
net              1257 drivers/net/geneve.c static int geneve_configure(struct net *net, struct net_device *dev,
net              1263 drivers/net/geneve.c 	struct geneve_net *gn = net_generic(net, geneve_net_id);
net              1274 drivers/net/geneve.c 	geneve->net = net;
net              1508 drivers/net/geneve.c 		struct rtable *rt = ip_route_output_key(geneve->net, &fl4);
net              1523 drivers/net/geneve.c 		rt = rt6_lookup(geneve->net, &info->key.u.ipv6.dst, NULL, 0,
net              1540 drivers/net/geneve.c static int geneve_newlink(struct net *net, struct net_device *dev,
net              1557 drivers/net/geneve.c 	err = geneve_configure(net, dev, extack, &info, metadata,
net              1757 drivers/net/geneve.c struct net_device *geneve_dev_create_fb(struct net *net, const char *name,
net              1767 drivers/net/geneve.c 	dev = rtnl_create_link(net, name, name_assign_type,
net              1773 drivers/net/geneve.c 	err = geneve_configure(net, dev, NULL, &info,
net              1820 drivers/net/geneve.c static __net_init int geneve_init_net(struct net *net)
net              1822 drivers/net/geneve.c 	struct geneve_net *gn = net_generic(net, geneve_net_id);
net              1829 drivers/net/geneve.c static void geneve_destroy_tunnels(struct net *net, struct list_head *head)
net              1831 drivers/net/geneve.c 	struct geneve_net *gn = net_generic(net, geneve_net_id);
net              1836 drivers/net/geneve.c 	for_each_netdev_safe(net, dev, aux)
net              1845 drivers/net/geneve.c 		if (!net_eq(dev_net(geneve->dev), net))
net              1852 drivers/net/geneve.c 	struct net *net;
net              1856 drivers/net/geneve.c 	list_for_each_entry(net, net_list, exit_list)
net              1857 drivers/net/geneve.c 		geneve_destroy_tunnels(net, &list);
net              1863 drivers/net/geneve.c 	list_for_each_entry(net, net_list, exit_list) {
net              1864 drivers/net/geneve.c 		const struct geneve_net *gn = net_generic(net, geneve_net_id);
net               653 drivers/net/gtp.c static int gtp_newlink(struct net *src_net, struct net_device *dev,
net               881 drivers/net/gtp.c static struct gtp_dev *gtp_find_dev(struct net *src_net, struct nlattr *nla[])
net               885 drivers/net/gtp.c 	struct net *net;
net               891 drivers/net/gtp.c 		net = get_net_ns_by_fd(nla_get_u32(nla[GTPA_NET_NS_FD]));
net               893 drivers/net/gtp.c 		net = get_net(src_net);
net               895 drivers/net/gtp.c 	if (IS_ERR(net))
net               899 drivers/net/gtp.c 	dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK]));
net               903 drivers/net/gtp.c 	put_net(net);
net              1102 drivers/net/gtp.c static struct pdp_ctx *gtp_find_pdp_by_link(struct net *net,
net              1107 drivers/net/gtp.c 	gtp = gtp_find_dev(net, nla);
net              1127 drivers/net/gtp.c static struct pdp_ctx *gtp_find_pdp(struct net *net, struct nlattr *nla[])
net              1132 drivers/net/gtp.c 		pctx = gtp_find_pdp_by_link(net, nla);
net              1253 drivers/net/gtp.c 	struct net *net = sock_net(skb->sk);
net              1257 drivers/net/gtp.c 	gn = net_generic(net, gtp_net_id);
net              1342 drivers/net/gtp.c static int __net_init gtp_net_init(struct net *net)
net              1344 drivers/net/gtp.c 	struct gtp_net *gn = net_generic(net, gtp_net_id);
net              1350 drivers/net/gtp.c static void __net_exit gtp_net_exit(struct net *net)
net              1352 drivers/net/gtp.c 	struct gtp_net *gn = net_generic(net, gtp_net_id);
net               188 drivers/net/hyperv/hyperv_net.h int netvsc_send(struct net_device *net,
net               193 drivers/net/hyperv/hyperv_net.h void netvsc_linkstatus_callback(struct net_device *net,
net               195 drivers/net/hyperv/hyperv_net.h int netvsc_recv_callback(struct net_device *net,
net                62 drivers/net/hyperv/netvsc_drv.c static void netvsc_change_rx_flags(struct net_device *net, int change)
net                64 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net                72 drivers/net/hyperv/netvsc_drv.c 		inc = (net->flags & IFF_PROMISC) ? 1 : -1;
net                77 drivers/net/hyperv/netvsc_drv.c 		inc = (net->flags & IFF_ALLMULTI) ? 1 : -1;
net                82 drivers/net/hyperv/netvsc_drv.c static void netvsc_set_rx_mode(struct net_device *net)
net                84 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net                91 drivers/net/hyperv/netvsc_drv.c 		dev_uc_sync(vf_netdev, net);
net                92 drivers/net/hyperv/netvsc_drv.c 		dev_mc_sync(vf_netdev, net);
net               110 drivers/net/hyperv/netvsc_drv.c static int netvsc_open(struct net_device *net)
net               112 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net               118 drivers/net/hyperv/netvsc_drv.c 	netif_carrier_off(net);
net               123 drivers/net/hyperv/netvsc_drv.c 		netdev_err(net, "unable to open device (ret %d).\n", ret);
net               129 drivers/net/hyperv/netvsc_drv.c 		netif_carrier_on(net);
net               130 drivers/net/hyperv/netvsc_drv.c 		netvsc_tx_enable(nvdev, net);
net               140 drivers/net/hyperv/netvsc_drv.c 			netdev_warn(net,
net               196 drivers/net/hyperv/netvsc_drv.c static int netvsc_close(struct net_device *net)
net               198 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *net_device_ctx = netdev_priv(net);
net               204 drivers/net/hyperv/netvsc_drv.c 	netvsc_tx_disable(nvdev, net);
net               212 drivers/net/hyperv/netvsc_drv.c 		netdev_err(net, "unable to close device (ret %d).\n", ret);
net               218 drivers/net/hyperv/netvsc_drv.c 		netdev_err(net, "Ring buffer not empty after closing rndis\n");
net               496 drivers/net/hyperv/netvsc_drv.c static int netvsc_vf_xmit(struct net_device *net, struct net_device *vf_netdev,
net               499 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net               522 drivers/net/hyperv/netvsc_drv.c static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
net               524 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *net_device_ctx = netdev_priv(net);
net               539 drivers/net/hyperv/netvsc_drv.c 	    !netpoll_tx_running(net))
net               540 drivers/net/hyperv/netvsc_drv.c 		return netvsc_vf_xmit(net, vf_netdev, skb);
net               598 drivers/net/hyperv/netvsc_drv.c 	if (hash != 0 && net->real_num_tx_queues > 1) {
net               689 drivers/net/hyperv/netvsc_drv.c 	ret = netvsc_send(net, packet, rndis_msg, pb, skb);
net               703 drivers/net/hyperv/netvsc_drv.c 	net->stats.tx_dropped++;
net               715 drivers/net/hyperv/netvsc_drv.c void netvsc_linkstatus_callback(struct net_device *net,
net               719 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net               739 drivers/net/hyperv/netvsc_drv.c 	if (net->reg_state != NETREG_REGISTERED)
net               762 drivers/net/hyperv/netvsc_drv.c static struct sk_buff *netvsc_alloc_recv_skb(struct net_device *net,
net               783 drivers/net/hyperv/netvsc_drv.c 	skb->protocol = eth_type_trans(skb, net);
net               799 drivers/net/hyperv/netvsc_drv.c 	if (csum_info && (net->features & NETIF_F_RXCSUM)) {
net               820 drivers/net/hyperv/netvsc_drv.c int netvsc_recv_callback(struct net_device *net,
net               824 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *net_device_ctx = netdev_priv(net);
net               830 drivers/net/hyperv/netvsc_drv.c 	if (net->reg_state != NETREG_REGISTERED)
net               834 drivers/net/hyperv/netvsc_drv.c 	skb = netvsc_alloc_recv_skb(net, nvchan);
net               863 drivers/net/hyperv/netvsc_drv.c static void netvsc_get_drvinfo(struct net_device *net,
net               870 drivers/net/hyperv/netvsc_drv.c static void netvsc_get_channels(struct net_device *net,
net               873 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *net_device_ctx = netdev_priv(net);
net              1002 drivers/net/hyperv/netvsc_drv.c static int netvsc_set_channels(struct net_device *net,
net              1005 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *net_device_ctx = netdev_priv(net);
net              1034 drivers/net/hyperv/netvsc_drv.c 	ret = netvsc_detach(net, nvdev);
net              1038 drivers/net/hyperv/netvsc_drv.c 	ret = netvsc_attach(net, device_info);
net              1041 drivers/net/hyperv/netvsc_drv.c 		if (netvsc_attach(net, device_info))
net              1042 drivers/net/hyperv/netvsc_drv.c 			netdev_err(net, "restoring channel setting failed\n");
net              1157 drivers/net/hyperv/netvsc_drv.c static void netvsc_get_vf_stats(struct net_device *net,
net              1160 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net              1187 drivers/net/hyperv/netvsc_drv.c static void netvsc_get_pcpu_stats(struct net_device *net,
net              1190 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net              1245 drivers/net/hyperv/netvsc_drv.c static void netvsc_get_stats64(struct net_device *net,
net              1248 drivers/net/hyperv/netvsc_drv.c 	struct net_device_context *ndev_ctx = netdev_priv(net);
net              1259 drivers/net/hyperv/netvsc_drv.c 	netdev_stats_to_stats64(t, &net->stats);
net              1261 drivers/net/hyperv/netvsc_drv.c 	netvsc_get_vf_stats(net, &vf_tot);
net              1893 drivers/net/hyperv/netvsc_drv.c 	struct net_device *net = hv_get_drvdata(device_obj);
net              1944 drivers/net/hyperv/netvsc_drv.c 			netif_carrier_on(net);
net              1945 drivers/net/hyperv/netvsc_drv.c 			netvsc_tx_enable(net_device, net);
net              1954 drivers/net/hyperv/netvsc_drv.c 			netif_carrier_off(net);
net              1955 drivers/net/hyperv/netvsc_drv.c 			netvsc_tx_disable(net_device, net);
net              1963 drivers/net/hyperv/netvsc_drv.c 			netif_carrier_off(net);
net              1964 drivers/net/hyperv/netvsc_drv.c 			netvsc_tx_disable(net_device, net);
net              1977 drivers/net/hyperv/netvsc_drv.c 		netdev_notify_peers(net);
net              2263 drivers/net/hyperv/netvsc_drv.c 	struct net_device *net = NULL;
net              2269 drivers/net/hyperv/netvsc_drv.c 	net = alloc_etherdev_mq(sizeof(struct net_device_context),
net              2271 drivers/net/hyperv/netvsc_drv.c 	if (!net)
net              2274 drivers/net/hyperv/netvsc_drv.c 	netif_carrier_off(net);
net              2276 drivers/net/hyperv/netvsc_drv.c 	netvsc_init_settings(net);
net              2278 drivers/net/hyperv/netvsc_drv.c 	net_device_ctx = netdev_priv(net);
net              2282 drivers/net/hyperv/netvsc_drv.c 		netdev_dbg(net, "netvsc msg_enable: %d\n",
net              2285 drivers/net/hyperv/netvsc_drv.c 	hv_set_drvdata(dev, net);
net              2298 drivers/net/hyperv/netvsc_drv.c 	net->netdev_ops = &device_ops;
net              2299 drivers/net/hyperv/netvsc_drv.c 	net->ethtool_ops = &ethtool_ops;
net              2300 drivers/net/hyperv/netvsc_drv.c 	SET_NETDEV_DEV(net, &dev->device);
net              2303 drivers/net/hyperv/netvsc_drv.c 	net->needed_headroom = RNDIS_AND_PPI_SIZE;
net              2308 drivers/net/hyperv/netvsc_drv.c 	netif_set_real_num_tx_queues(net, 1);
net              2309 drivers/net/hyperv/netvsc_drv.c 	netif_set_real_num_rx_queues(net, 1);
net              2322 drivers/net/hyperv/netvsc_drv.c 		netdev_err(net, "unable to add netvsc device (ret %d)\n", ret);
net              2326 drivers/net/hyperv/netvsc_drv.c 	memcpy(net->dev_addr, device_info->mac_adr, ETH_ALEN);
net              2342 drivers/net/hyperv/netvsc_drv.c 	net->features = net->hw_features |
net              2345 drivers/net/hyperv/netvsc_drv.c 	net->vlan_features = net->features;
net              2348 drivers/net/hyperv/netvsc_drv.c 	net->min_mtu = NETVSC_MTU_MIN;
net              2350 drivers/net/hyperv/netvsc_drv.c 		net->max_mtu = NETVSC_MTU - ETH_HLEN;
net              2352 drivers/net/hyperv/netvsc_drv.c 		net->max_mtu = ETH_DATA_LEN;
net              2356 drivers/net/hyperv/netvsc_drv.c 	ret = register_netdevice(net);
net              2377 drivers/net/hyperv/netvsc_drv.c 	free_netdev(net);
net              2385 drivers/net/hyperv/netvsc_drv.c 	struct net_device *vf_netdev, *net;
net              2388 drivers/net/hyperv/netvsc_drv.c 	net = hv_get_drvdata(dev);
net              2389 drivers/net/hyperv/netvsc_drv.c 	if (net == NULL) {
net              2394 drivers/net/hyperv/netvsc_drv.c 	ndev_ctx = netdev_priv(net);
net              2414 drivers/net/hyperv/netvsc_drv.c 	unregister_netdevice(net);
net              2422 drivers/net/hyperv/netvsc_drv.c 	free_netdev(net);
net               181 drivers/net/hyperv/netvsc_trace.h #define TRACE_INCLUDE_PATH ../../drivers/net/hyperv
net              1187 drivers/net/hyperv/rndis_filter.c 	struct net_device *net = rndis_device->ndev;
net              1188 drivers/net/hyperv/rndis_filter.c 	struct net_device_context *net_device_ctx = netdev_priv(net);
net              1206 drivers/net/hyperv/rndis_filter.c 	net->hw_features &= ~NETVSC_SUPPORTED_HW_FEATURES;
net              1210 drivers/net/hyperv/rndis_filter.c 	net->hw_features |= NETIF_F_RXCSUM;
net              1211 drivers/net/hyperv/rndis_filter.c 	net->hw_features |= NETIF_F_SG;
net              1215 drivers/net/hyperv/rndis_filter.c 		net->hw_features |= NETIF_F_IP_CSUM;
net              1222 drivers/net/hyperv/rndis_filter.c 			net->hw_features |= NETIF_F_TSO;
net              1235 drivers/net/hyperv/rndis_filter.c 		net->hw_features |= NETIF_F_IPV6_CSUM;
net              1243 drivers/net/hyperv/rndis_filter.c 			net->hw_features |= NETIF_F_TSO6;
net              1256 drivers/net/hyperv/rndis_filter.c 		net->hw_features |= NETIF_F_LRO;
net              1258 drivers/net/hyperv/rndis_filter.c 		if (net->features & NETIF_F_LRO) {
net              1270 drivers/net/hyperv/rndis_filter.c 	net->features &= ~NETVSC_SUPPORTED_HW_FEATURES | net->hw_features;
net              1272 drivers/net/hyperv/rndis_filter.c 	netif_set_gso_max_size(net, gso_max_size);
net              1274 drivers/net/hyperv/rndis_filter.c 	ret = rndis_filter_set_offload_params(net, nvdev, &offloads);
net              1279 drivers/net/hyperv/rndis_filter.c static void rndis_get_friendly_name(struct net_device *net,
net              1302 drivers/net/hyperv/rndis_filter.c 		dev_set_alias(net, ifalias, len);
net              1308 drivers/net/hyperv/rndis_filter.c 	struct net_device *net = hv_get_drvdata(dev);
net              1309 drivers/net/hyperv/rndis_filter.c 	struct net_device_context *ndc = netdev_priv(net);
net              1337 drivers/net/hyperv/rndis_filter.c 	rndis_device->ndev = net;
net              1349 drivers/net/hyperv/rndis_filter.c 	if (ret == 0 && size == sizeof(u32) && mtu < net->mtu)
net              1350 drivers/net/hyperv/rndis_filter.c 		net->mtu = mtu;
net              1360 drivers/net/hyperv/rndis_filter.c 	if (!net->ifalias)
net              1361 drivers/net/hyperv/rndis_filter.c 		rndis_get_friendly_name(net, rndis_device, net_device);
net              1370 drivers/net/hyperv/rndis_filter.c 	netdev_dbg(net, "Device MAC %pM link state %s\n",
net              1396 drivers/net/hyperv/rndis_filter.c 	if (!netif_is_rxfh_configured(net)) {
net              1415 drivers/net/hyperv/rndis_filter.c 		netif_napi_add(net, &net_device->chan_table[i].napi,
net               168 drivers/net/ipvlan/ipvlan.h int ipvlan_link_new(struct net *src_net, struct net_device *dev,
net               177 drivers/net/ipvlan/ipvlan.h void ipvlan_migrate_l3s_hook(struct net *oldnet, struct net *newnet);
net               190 drivers/net/ipvlan/ipvlan.h static inline void ipvlan_migrate_l3s_hook(struct net *oldnet,
net               191 drivers/net/ipvlan/ipvlan.h 					   struct net *newnet)
net               419 drivers/net/ipvlan/ipvlan_core.c 	struct net *net = dev_net(dev);
net               431 drivers/net/ipvlan/ipvlan_core.c 	rt = ip_route_output_flow(net, &fl4, NULL);
net               440 drivers/net/ipvlan/ipvlan_core.c 	err = ip_local_out(net, skb->sk, skb);
net               458 drivers/net/ipvlan/ipvlan_core.c 	struct net *net = dev_net(dev);
net               471 drivers/net/ipvlan/ipvlan_core.c 	dst = ip6_route_output(net, NULL, &fl6);
net               478 drivers/net/ipvlan/ipvlan_core.c 	err = ip6_local_out(net, skb->sk, skb);
net               127 drivers/net/ipvlan/ipvlan_l3s.c static int ipvlan_register_nf_hook(struct net *net)
net               129 drivers/net/ipvlan/ipvlan_l3s.c 	struct ipvlan_netns *vnet = net_generic(net, ipvlan_netid);
net               133 drivers/net/ipvlan/ipvlan_l3s.c 		err = nf_register_net_hooks(net, ipvl_nfops,
net               144 drivers/net/ipvlan/ipvlan_l3s.c static void ipvlan_unregister_nf_hook(struct net *net)
net               146 drivers/net/ipvlan/ipvlan_l3s.c 	struct ipvlan_netns *vnet = net_generic(net, ipvlan_netid);
net               153 drivers/net/ipvlan/ipvlan_l3s.c 		nf_unregister_net_hooks(net, ipvl_nfops,
net               157 drivers/net/ipvlan/ipvlan_l3s.c void ipvlan_migrate_l3s_hook(struct net *oldnet, struct net *newnet)
net               171 drivers/net/ipvlan/ipvlan_l3s.c static void ipvlan_ns_exit(struct net *net)
net               173 drivers/net/ipvlan/ipvlan_l3s.c 	struct ipvlan_netns *vnet = net_generic(net, ipvlan_netid);
net               177 drivers/net/ipvlan/ipvlan_l3s.c 		nf_unregister_net_hooks(net, ipvl_nfops,
net               510 drivers/net/ipvlan/ipvlan_main.c int ipvlan_link_new(struct net *src_net, struct net_device *dev,
net               712 drivers/net/ipvlan/ipvlan_main.c 		struct net *oldnet, *newnet = dev_net(dev);
net                77 drivers/net/ipvlan/ipvtap.c static int ipvtap_newlink(struct net *src_net, struct net_device *dev,
net               203 drivers/net/loopback.c static __net_init int loopback_net_init(struct net *net)
net               213 drivers/net/loopback.c 	dev_net_set(dev, net);
net               219 drivers/net/loopback.c 	net->loopback_dev = dev;
net               225 drivers/net/loopback.c 	if (net_eq(net, &init_net))
net              1459 drivers/net/macsec.c static struct net_device *get_dev_from_nl(struct net *net,
net              1465 drivers/net/macsec.c 	dev = __dev_get_by_index(net, ifindex);
net              1486 drivers/net/macsec.c static struct macsec_tx_sa *get_txsa_from_nl(struct net *net,
net              1504 drivers/net/macsec.c 	dev = get_dev_from_nl(net, attrs);
net              1524 drivers/net/macsec.c static struct macsec_rx_sc *get_rxsc_from_nl(struct net *net,
net              1535 drivers/net/macsec.c 	dev = get_dev_from_nl(net, attrs);
net              1555 drivers/net/macsec.c static struct macsec_rx_sa *get_rxsa_from_nl(struct net *net,
net              1574 drivers/net/macsec.c 	rx_sc = get_rxsc_from_nl(net, attrs, tb_rxsc, devp, secyp);
net              2602 drivers/net/macsec.c 	struct net *net = sock_net(skb->sk);
net              2613 drivers/net/macsec.c 	for_each_netdev(net, dev) {
net              3225 drivers/net/macsec.c static int macsec_newlink(struct net *net, struct net_device *dev,
net              3238 drivers/net/macsec.c 	real_dev = __dev_get_by_index(net, nla_get_u32(tb[IFLA_LINK]));
net              3387 drivers/net/macsec.c static struct net *macsec_get_link_net(const struct net_device *dev)
net              1377 drivers/net/macvlan.c int macvlan_common_newlink(struct net *src_net, struct net_device *dev,
net              1491 drivers/net/macvlan.c static int macvlan_newlink(struct net *src_net, struct net_device *dev,
net              1650 drivers/net/macvlan.c static struct net *macvlan_get_link_net(const struct net_device *dev)
net                81 drivers/net/macvtap.c static int macvtap_newlink(struct net *src_net, struct net_device *dev,
net               126 drivers/net/netdevsim/dev.c static struct net *nsim_devlink_net(struct devlink *devlink)
net               133 drivers/net/netdevsim/dev.c 	struct net *net = priv;
net               135 drivers/net/netdevsim/dev.c 	return nsim_fib_get_val(net, NSIM_RESOURCE_IPV4_FIB, false);
net               140 drivers/net/netdevsim/dev.c 	struct net *net = priv;
net               142 drivers/net/netdevsim/dev.c 	return nsim_fib_get_val(net, NSIM_RESOURCE_IPV4_FIB_RULES, false);
net               147 drivers/net/netdevsim/dev.c 	struct net *net = priv;
net               149 drivers/net/netdevsim/dev.c 	return nsim_fib_get_val(net, NSIM_RESOURCE_IPV6_FIB, false);
net               154 drivers/net/netdevsim/dev.c 	struct net *net = priv;
net               156 drivers/net/netdevsim/dev.c 	return nsim_fib_get_val(net, NSIM_RESOURCE_IPV6_FIB_RULES, false);
net               166 drivers/net/netdevsim/dev.c 	struct net *net = nsim_devlink_net(devlink);
net               180 drivers/net/netdevsim/dev.c 	n = nsim_fib_get_val(net, NSIM_RESOURCE_IPV4_FIB, true);
net               189 drivers/net/netdevsim/dev.c 	n = nsim_fib_get_val(net, NSIM_RESOURCE_IPV4_FIB_RULES, true);
net               208 drivers/net/netdevsim/dev.c 	n = nsim_fib_get_val(net, NSIM_RESOURCE_IPV6_FIB, true);
net               217 drivers/net/netdevsim/dev.c 	n = nsim_fib_get_val(net, NSIM_RESOURCE_IPV6_FIB_RULES, true);
net               229 drivers/net/netdevsim/dev.c 					  net);
net               233 drivers/net/netdevsim/dev.c 					  net);
net               237 drivers/net/netdevsim/dev.c 					  net);
net               241 drivers/net/netdevsim/dev.c 					  net);
net               540 drivers/net/netdevsim/dev.c 	struct net *net = nsim_devlink_net(devlink);
net               549 drivers/net/netdevsim/dev.c 			err = nsim_fib_set_max(net, res_ids[i], val, extack);
net                42 drivers/net/netdevsim/fib.c u64 nsim_fib_get_val(struct net *net, enum nsim_resource_id res_id, bool max)
net                44 drivers/net/netdevsim/fib.c 	struct nsim_fib_data *fib_data = net_generic(net, nsim_fib_net_id);
net                67 drivers/net/netdevsim/fib.c int nsim_fib_set_max(struct net *net, enum nsim_resource_id res_id, u64 val,
net                70 drivers/net/netdevsim/fib.c 	struct nsim_fib_data *fib_data = net_generic(net, nsim_fib_net_id);
net               125 drivers/net/netdevsim/fib.c 	struct nsim_fib_data *data = net_generic(info->net, nsim_fib_net_id);
net               162 drivers/net/netdevsim/fib.c 	struct nsim_fib_data *data = net_generic(info->net, nsim_fib_net_id);
net               203 drivers/net/netdevsim/fib.c 	struct net *net;
net               206 drivers/net/netdevsim/fib.c 	for_each_net_rcu(net) {
net               207 drivers/net/netdevsim/fib.c 		data = net_generic(net, nsim_fib_net_id);
net               223 drivers/net/netdevsim/fib.c static int __net_init nsim_fib_netns_init(struct net *net)
net               225 drivers/net/netdevsim/fib.c 	struct nsim_fib_data *data = net_generic(net, nsim_fib_net_id);
net               178 drivers/net/netdevsim/netdevsim.h u64 nsim_fib_get_val(struct net *net, enum nsim_resource_id res_id, bool max);
net               179 drivers/net/netdevsim/netdevsim.h int nsim_fib_set_max(struct net *net, enum nsim_resource_id res_id, u64 val,
net               149 drivers/net/ppp/ppp_generic.c 	struct net	*ppp_net;	/* the net we belong to */
net               175 drivers/net/ppp/ppp_generic.c 	struct net	*chan_net;	/* the net channel belongs to */
net               254 drivers/net/ppp/ppp_generic.c static int ppp_unattached_ioctl(struct net *net, struct ppp_file *pf,
net               278 drivers/net/ppp/ppp_generic.c static int ppp_create_interface(struct net *net, struct file *file, int *unit);
net               297 drivers/net/ppp/ppp_generic.c static inline struct ppp_net *ppp_pernet(struct net *net)
net               299 drivers/net/ppp/ppp_generic.c 	BUG_ON(!net);
net               301 drivers/net/ppp/ppp_generic.c 	return net_generic(net, ppp_net_id);
net               830 drivers/net/ppp/ppp_generic.c static int ppp_unattached_ioctl(struct net *net, struct ppp_file *pf,
net               844 drivers/net/ppp/ppp_generic.c 		err = ppp_create_interface(net, file, &unit);
net               859 drivers/net/ppp/ppp_generic.c 		pn = ppp_pernet(net);
net               874 drivers/net/ppp/ppp_generic.c 		pn = ppp_pernet(net);
net               903 drivers/net/ppp/ppp_generic.c static __net_init int ppp_init_net(struct net *net)
net               905 drivers/net/ppp/ppp_generic.c 	struct ppp_net *pn = net_generic(net, ppp_net_id);
net               918 drivers/net/ppp/ppp_generic.c static __net_exit void ppp_exit_net(struct net *net)
net               920 drivers/net/ppp/ppp_generic.c 	struct ppp_net *pn = net_generic(net, ppp_net_id);
net               928 drivers/net/ppp/ppp_generic.c 	for_each_netdev_safe(net, dev, aux) {
net               935 drivers/net/ppp/ppp_generic.c 		if (!net_eq(dev_net(ppp->dev), net))
net              1006 drivers/net/ppp/ppp_generic.c static int ppp_dev_configure(struct net *src_net, struct net_device *dev,
net              1076 drivers/net/ppp/ppp_generic.c static int ppp_nl_newlink(struct net *src_net, struct net_device *dev,
net              1141 drivers/net/ppp/ppp_generic.c static struct net *ppp_nl_get_link_net(const struct net_device *dev)
net              2600 drivers/net/ppp/ppp_generic.c int ppp_register_net_channel(struct net *net, struct ppp_channel *chan)
net              2609 drivers/net/ppp/ppp_generic.c 	pn = ppp_pernet(net);
net              2613 drivers/net/ppp/ppp_generic.c 	pch->chan_net = get_net(net);
net              3036 drivers/net/ppp/ppp_generic.c static int ppp_create_interface(struct net *net, struct file *file, int *unit)
net              3052 drivers/net/ppp/ppp_generic.c 	dev_net_set(dev, net);
net              3057 drivers/net/ppp/ppp_generic.c 	err = ppp_dev_configure(net, dev, &conf);
net               120 drivers/net/ppp/pppoe.c static inline struct pppoe_net *pppoe_pernet(struct net *net)
net               122 drivers/net/ppp/pppoe.c 	BUG_ON(!net);
net               124 drivers/net/ppp/pppoe.c 	return net_generic(net, pppoe_net_id);
net               239 drivers/net/ppp/pppoe.c static inline struct pppox_sock *get_item_by_addr(struct net *net,
net               249 drivers/net/ppp/pppoe.c 	dev = dev_get_by_name_rcu(net, sp->sa_addr.pppoe.dev);
net               252 drivers/net/ppp/pppoe.c 		pn = pppoe_pernet(net);
net               538 drivers/net/ppp/pppoe.c static int pppoe_create(struct net *net, struct socket *sock, int kern)
net               542 drivers/net/ppp/pppoe.c 	sk = sk_alloc(net, PF_PPPOX, GFP_KERNEL, &pppoe_sk_proto, kern);
net               568 drivers/net/ppp/pppoe.c 	struct net *net = NULL;
net               591 drivers/net/ppp/pppoe.c 	net = sock_net(sk);
net               592 drivers/net/ppp/pppoe.c 	pn = pppoe_pernet(net);
net               619 drivers/net/ppp/pppoe.c 	struct net *net = NULL;
net               670 drivers/net/ppp/pppoe.c 		net = sock_net(sk);
net               671 drivers/net/ppp/pppoe.c 		dev = dev_get_by_name(net, sp->sa_addr.pppoe.dev);
net               677 drivers/net/ppp/pppoe.c 		pn = pppoe_pernet(net);
net              1132 drivers/net/ppp/pppoe.c static __net_init int pppoe_init_net(struct net *net)
net              1134 drivers/net/ppp/pppoe.c 	struct pppoe_net *pn = pppoe_pernet(net);
net              1139 drivers/net/ppp/pppoe.c 	pde = proc_create_net("pppoe", 0444, net->proc_net,
net              1149 drivers/net/ppp/pppoe.c static __net_exit void pppoe_exit_net(struct net *net)
net              1151 drivers/net/ppp/pppoe.c 	remove_proc_entry("pppoe", net->proc_net);
net               114 drivers/net/ppp/pppox.c static int pppox_create(struct net *net, struct socket *sock, int protocol,
net               129 drivers/net/ppp/pppox.c 	rc = pppox_protos[protocol]->create(net, sock, kern);
net               135 drivers/net/ppp/pptp.c 	struct net *net = sock_net(sk);
net               154 drivers/net/ppp/pptp.c 	rt = ip_route_output_ports(net, &fl4, NULL,
net               244 drivers/net/ppp/pptp.c 	ip_select_ident(net, skb, NULL);
net               247 drivers/net/ppp/pptp.c 	ip_local_out(net, skb->sk, skb);
net               533 drivers/net/ppp/pptp.c static int pptp_create(struct net *net, struct socket *sock, int kern)
net               540 drivers/net/ppp/pptp.c 	sk = sk_alloc(net, PF_PPPOX, GFP_KERNEL, &pptp_sk_proto, kern);
net               405 drivers/net/rionet.c 	unsigned char netid = rdev->net->hport->id;
net               550 drivers/net/rionet.c 	unsigned char netid = rdev->net->hport->id;
net               561 drivers/net/rionet.c 		rio_local_read_config_32(rdev->net->hport, RIO_SRC_OPS_CAR,
net               563 drivers/net/rionet.c 		rio_local_read_config_32(rdev->net->hport, RIO_DST_OPS_CAR,
net               568 drivers/net/rionet.c 			       DRV_NAME, rdev->net->hport->name);
net               579 drivers/net/rionet.c 		rc = rionet_setup_netdev(rdev->net->hport, ndev);
net               503 drivers/net/tap.c 	struct net *net = current->nsproxy->net_ns;
net               514 drivers/net/tap.c 	q = (struct tap_queue *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL,
net              2181 drivers/net/team/team.c static int team_newlink(struct net *src_net, struct net_device *dev,
net              2284 drivers/net/team/team.c 	struct net *net = genl_info_net(info);
net              2293 drivers/net/team/team.c 	dev = dev_get_by_index(net, ifindex);
net               231 drivers/net/thunderbolt.c static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence,
net               235 drivers/net/thunderbolt.c 	struct tb_xdomain *xd = net->xd;
net               241 drivers/net/thunderbolt.c 	memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN);
net               248 drivers/net/thunderbolt.c static int tbnet_login_request(struct tbnet *net, u8 sequence)
net               252 drivers/net/thunderbolt.c 	struct tb_xdomain *xd = net->xd;
net               257 drivers/net/thunderbolt.c 			  atomic_inc_return(&net->command_id));
net               268 drivers/net/thunderbolt.c static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence,
net               272 drivers/net/thunderbolt.c 	struct tb_xdomain *xd = net->xd;
net               277 drivers/net/thunderbolt.c 			  atomic_inc_return(&net->command_id));
net               282 drivers/net/thunderbolt.c static int tbnet_logout_request(struct tbnet *net)
net               286 drivers/net/thunderbolt.c 	struct tb_xdomain *xd = net->xd;
net               291 drivers/net/thunderbolt.c 			  atomic_inc_return(&net->command_id));
net               299 drivers/net/thunderbolt.c static void start_login(struct tbnet *net)
net               301 drivers/net/thunderbolt.c 	mutex_lock(&net->connection_lock);
net               302 drivers/net/thunderbolt.c 	net->login_sent = false;
net               303 drivers/net/thunderbolt.c 	net->login_received = false;
net               304 drivers/net/thunderbolt.c 	mutex_unlock(&net->connection_lock);
net               306 drivers/net/thunderbolt.c 	queue_delayed_work(system_long_wq, &net->login_work,
net               310 drivers/net/thunderbolt.c static void stop_login(struct tbnet *net)
net               312 drivers/net/thunderbolt.c 	cancel_delayed_work_sync(&net->login_work);
net               313 drivers/net/thunderbolt.c 	cancel_work_sync(&net->connected_work);
net               357 drivers/net/thunderbolt.c static void tbnet_tear_down(struct tbnet *net, bool send_logout)
net               359 drivers/net/thunderbolt.c 	netif_carrier_off(net->dev);
net               360 drivers/net/thunderbolt.c 	netif_stop_queue(net->dev);
net               362 drivers/net/thunderbolt.c 	stop_login(net);
net               364 drivers/net/thunderbolt.c 	mutex_lock(&net->connection_lock);
net               366 drivers/net/thunderbolt.c 	if (net->login_sent && net->login_received) {
net               370 drivers/net/thunderbolt.c 			int ret = tbnet_logout_request(net);
net               375 drivers/net/thunderbolt.c 		tb_ring_stop(net->rx_ring.ring);
net               376 drivers/net/thunderbolt.c 		tb_ring_stop(net->tx_ring.ring);
net               377 drivers/net/thunderbolt.c 		tbnet_free_buffers(&net->rx_ring);
net               378 drivers/net/thunderbolt.c 		tbnet_free_buffers(&net->tx_ring);
net               380 drivers/net/thunderbolt.c 		if (tb_xdomain_disable_paths(net->xd))
net               381 drivers/net/thunderbolt.c 			netdev_warn(net->dev, "failed to disable DMA paths\n");
net               384 drivers/net/thunderbolt.c 	net->login_retries = 0;
net               385 drivers/net/thunderbolt.c 	net->login_sent = false;
net               386 drivers/net/thunderbolt.c 	net->login_received = false;
net               388 drivers/net/thunderbolt.c 	mutex_unlock(&net->connection_lock);
net               394 drivers/net/thunderbolt.c 	struct tbnet *net = data;
net               403 drivers/net/thunderbolt.c 	if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid))
net               405 drivers/net/thunderbolt.c 	if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid))
net               410 drivers/net/thunderbolt.c 	if (route != net->xd->route)
net               419 drivers/net/thunderbolt.c 		if (!netif_running(net->dev))
net               422 drivers/net/thunderbolt.c 		ret = tbnet_login_response(net, route, sequence,
net               425 drivers/net/thunderbolt.c 			mutex_lock(&net->connection_lock);
net               426 drivers/net/thunderbolt.c 			net->login_received = true;
net               427 drivers/net/thunderbolt.c 			net->transmit_path = pkg->transmit_path;
net               433 drivers/net/thunderbolt.c 			if (net->login_retries >= TBNET_LOGIN_RETRIES ||
net               434 drivers/net/thunderbolt.c 			    !net->login_sent) {
net               435 drivers/net/thunderbolt.c 				net->login_retries = 0;
net               437 drivers/net/thunderbolt.c 						   &net->login_work, 0);
net               439 drivers/net/thunderbolt.c 			mutex_unlock(&net->connection_lock);
net               441 drivers/net/thunderbolt.c 			queue_work(system_long_wq, &net->connected_work);
net               446 drivers/net/thunderbolt.c 		ret = tbnet_logout_response(net, route, sequence, command_id);
net               448 drivers/net/thunderbolt.c 			queue_work(system_long_wq, &net->disconnect_work);
net               456 drivers/net/thunderbolt.c 		netdev_warn(net->dev, "failed to send ThunderboltIP response\n");
net               466 drivers/net/thunderbolt.c static int tbnet_alloc_rx_buffers(struct tbnet *net, unsigned int nbuffers)
net               468 drivers/net/thunderbolt.c 	struct tbnet_ring *ring = &net->rx_ring;
net               498 drivers/net/thunderbolt.c 		tf->dev = net->dev;
net               512 drivers/net/thunderbolt.c static struct tbnet_frame *tbnet_get_tx_buffer(struct tbnet *net)
net               514 drivers/net/thunderbolt.c 	struct tbnet_ring *ring = &net->tx_ring;
net               537 drivers/net/thunderbolt.c 	struct tbnet *net = netdev_priv(tf->dev);
net               540 drivers/net/thunderbolt.c 	net->tx_ring.prod++;
net               542 drivers/net/thunderbolt.c 	if (tbnet_available_buffers(&net->tx_ring) >= TBNET_RING_SIZE / 2)
net               543 drivers/net/thunderbolt.c 		netif_wake_queue(net->dev);
net               546 drivers/net/thunderbolt.c static int tbnet_alloc_tx_buffers(struct tbnet *net)
net               548 drivers/net/thunderbolt.c 	struct tbnet_ring *ring = &net->tx_ring;
net               571 drivers/net/thunderbolt.c 		tf->dev = net->dev;
net               586 drivers/net/thunderbolt.c 	struct tbnet *net = container_of(work, typeof(*net), connected_work);
net               590 drivers/net/thunderbolt.c 	if (netif_carrier_ok(net->dev))
net               593 drivers/net/thunderbolt.c 	mutex_lock(&net->connection_lock);
net               594 drivers/net/thunderbolt.c 	connected = net->login_sent && net->login_received;
net               595 drivers/net/thunderbolt.c 	mutex_unlock(&net->connection_lock);
net               603 drivers/net/thunderbolt.c 	ret = tb_xdomain_enable_paths(net->xd, TBNET_LOCAL_PATH,
net               604 drivers/net/thunderbolt.c 				      net->rx_ring.ring->hop,
net               605 drivers/net/thunderbolt.c 				      net->transmit_path,
net               606 drivers/net/thunderbolt.c 				      net->tx_ring.ring->hop);
net               608 drivers/net/thunderbolt.c 		netdev_err(net->dev, "failed to enable DMA paths\n");
net               612 drivers/net/thunderbolt.c 	tb_ring_start(net->tx_ring.ring);
net               613 drivers/net/thunderbolt.c 	tb_ring_start(net->rx_ring.ring);
net               615 drivers/net/thunderbolt.c 	ret = tbnet_alloc_rx_buffers(net, TBNET_RING_SIZE);
net               619 drivers/net/thunderbolt.c 	ret = tbnet_alloc_tx_buffers(net);
net               623 drivers/net/thunderbolt.c 	netif_carrier_on(net->dev);
net               624 drivers/net/thunderbolt.c 	netif_start_queue(net->dev);
net               628 drivers/net/thunderbolt.c 	tbnet_free_buffers(&net->rx_ring);
net               630 drivers/net/thunderbolt.c 	tb_ring_stop(net->rx_ring.ring);
net               631 drivers/net/thunderbolt.c 	tb_ring_stop(net->tx_ring.ring);
net               636 drivers/net/thunderbolt.c 	struct tbnet *net = container_of(work, typeof(*net), login_work.work);
net               640 drivers/net/thunderbolt.c 	if (netif_carrier_ok(net->dev))
net               643 drivers/net/thunderbolt.c 	ret = tbnet_login_request(net, net->login_retries % 4);
net               645 drivers/net/thunderbolt.c 		if (net->login_retries++ < TBNET_LOGIN_RETRIES) {
net               646 drivers/net/thunderbolt.c 			queue_delayed_work(system_long_wq, &net->login_work,
net               649 drivers/net/thunderbolt.c 			netdev_info(net->dev, "ThunderboltIP login timed out\n");
net               652 drivers/net/thunderbolt.c 		net->login_retries = 0;
net               654 drivers/net/thunderbolt.c 		mutex_lock(&net->connection_lock);
net               655 drivers/net/thunderbolt.c 		net->login_sent = true;
net               656 drivers/net/thunderbolt.c 		mutex_unlock(&net->connection_lock);
net               658 drivers/net/thunderbolt.c 		queue_work(system_long_wq, &net->connected_work);
net               664 drivers/net/thunderbolt.c 	struct tbnet *net = container_of(work, typeof(*net), disconnect_work);
net               666 drivers/net/thunderbolt.c 	tbnet_tear_down(net, false);
net               669 drivers/net/thunderbolt.c static bool tbnet_check_frame(struct tbnet *net, const struct tbnet_frame *tf,
net               676 drivers/net/thunderbolt.c 		net->stats.rx_crc_errors++;
net               679 drivers/net/thunderbolt.c 		net->stats.rx_over_errors++;
net               686 drivers/net/thunderbolt.c 		net->stats.rx_length_errors++;
net               696 drivers/net/thunderbolt.c 		net->stats.rx_length_errors++;
net               703 drivers/net/thunderbolt.c 	if (net->skb && net->rx_hdr.frame_count) {
net               705 drivers/net/thunderbolt.c 		if (frame_count != net->rx_hdr.frame_count) {
net               706 drivers/net/thunderbolt.c 			net->stats.rx_length_errors++;
net               713 drivers/net/thunderbolt.c 		if (frame_index != net->rx_hdr.frame_index + 1 ||
net               714 drivers/net/thunderbolt.c 		    frame_id != net->rx_hdr.frame_id) {
net               715 drivers/net/thunderbolt.c 			net->stats.rx_missed_errors++;
net               719 drivers/net/thunderbolt.c 		if (net->skb->len + frame_size > TBNET_MAX_MTU) {
net               720 drivers/net/thunderbolt.c 			net->stats.rx_length_errors++;
net               729 drivers/net/thunderbolt.c 		net->stats.rx_length_errors++;
net               733 drivers/net/thunderbolt.c 		net->stats.rx_missed_errors++;
net               742 drivers/net/thunderbolt.c 	struct tbnet *net = container_of(napi, struct tbnet, napi);
net               743 drivers/net/thunderbolt.c 	unsigned int cleaned_count = tbnet_available_buffers(&net->rx_ring);
net               744 drivers/net/thunderbolt.c 	struct device *dma_dev = tb_ring_dma_device(net->rx_ring.ring);
net               762 drivers/net/thunderbolt.c 			tbnet_alloc_rx_buffers(net, cleaned_count);
net               766 drivers/net/thunderbolt.c 		frame = tb_ring_poll(net->rx_ring.ring);
net               777 drivers/net/thunderbolt.c 		net->rx_ring.cons++;
net               781 drivers/net/thunderbolt.c 		if (!tbnet_check_frame(net, tf, hdr)) {
net               783 drivers/net/thunderbolt.c 			dev_kfree_skb_any(net->skb);
net               784 drivers/net/thunderbolt.c 			net->skb = NULL;
net               790 drivers/net/thunderbolt.c 		skb = net->skb;
net               796 drivers/net/thunderbolt.c 				net->stats.rx_errors++;
net               803 drivers/net/thunderbolt.c 			net->skb = skb;
net               810 drivers/net/thunderbolt.c 		net->rx_hdr.frame_size = frame_size;
net               811 drivers/net/thunderbolt.c 		net->rx_hdr.frame_count = le32_to_cpu(hdr->frame_count);
net               812 drivers/net/thunderbolt.c 		net->rx_hdr.frame_index = le16_to_cpu(hdr->frame_index);
net               813 drivers/net/thunderbolt.c 		net->rx_hdr.frame_id = le16_to_cpu(hdr->frame_id);
net               814 drivers/net/thunderbolt.c 		last = net->rx_hdr.frame_index == net->rx_hdr.frame_count - 1;
net               817 drivers/net/thunderbolt.c 		net->stats.rx_bytes += frame_size;
net               820 drivers/net/thunderbolt.c 			skb->protocol = eth_type_trans(skb, net->dev);
net               821 drivers/net/thunderbolt.c 			napi_gro_receive(&net->napi, skb);
net               822 drivers/net/thunderbolt.c 			net->skb = NULL;
net               826 drivers/net/thunderbolt.c 	net->stats.rx_packets += rx_packets;
net               829 drivers/net/thunderbolt.c 		tbnet_alloc_rx_buffers(net, cleaned_count);
net               836 drivers/net/thunderbolt.c 	tb_ring_poll_complete(net->rx_ring.ring);
net               843 drivers/net/thunderbolt.c 	struct tbnet *net = data;
net               845 drivers/net/thunderbolt.c 	napi_schedule(&net->napi);
net               850 drivers/net/thunderbolt.c 	struct tbnet *net = netdev_priv(dev);
net               851 drivers/net/thunderbolt.c 	struct tb_xdomain *xd = net->xd;
net               863 drivers/net/thunderbolt.c 	net->tx_ring.ring = ring;
net               870 drivers/net/thunderbolt.c 				eof_mask, tbnet_start_poll, net);
net               873 drivers/net/thunderbolt.c 		tb_ring_free(net->tx_ring.ring);
net               874 drivers/net/thunderbolt.c 		net->tx_ring.ring = NULL;
net               877 drivers/net/thunderbolt.c 	net->rx_ring.ring = ring;
net               879 drivers/net/thunderbolt.c 	napi_enable(&net->napi);
net               880 drivers/net/thunderbolt.c 	start_login(net);
net               887 drivers/net/thunderbolt.c 	struct tbnet *net = netdev_priv(dev);
net               889 drivers/net/thunderbolt.c 	napi_disable(&net->napi);
net               891 drivers/net/thunderbolt.c 	cancel_work_sync(&net->disconnect_work);
net               892 drivers/net/thunderbolt.c 	tbnet_tear_down(net, true);
net               894 drivers/net/thunderbolt.c 	tb_ring_free(net->rx_ring.ring);
net               895 drivers/net/thunderbolt.c 	net->rx_ring.ring = NULL;
net               896 drivers/net/thunderbolt.c 	tb_ring_free(net->tx_ring.ring);
net               897 drivers/net/thunderbolt.c 	net->tx_ring.ring = NULL;
net               902 drivers/net/thunderbolt.c static bool tbnet_xmit_csum_and_map(struct tbnet *net, struct sk_buff *skb,
net               906 drivers/net/thunderbolt.c 	struct device *dma_dev = tb_ring_dma_device(net->tx_ring.ring);
net              1014 drivers/net/thunderbolt.c 	struct tbnet *net = netdev_priv(dev);
net              1016 drivers/net/thunderbolt.c 	u16 frame_id = atomic_read(&net->frame_id);
net              1028 drivers/net/thunderbolt.c 	if (tbnet_available_buffers(&net->tx_ring) < nframes) {
net              1029 drivers/net/thunderbolt.c 		netif_stop_queue(net->dev);
net              1033 drivers/net/thunderbolt.c 	frames[frame_index] = tbnet_get_tx_buffer(net);
net              1083 drivers/net/thunderbolt.c 		frames[frame_index] = tbnet_get_tx_buffer(net);
net              1121 drivers/net/thunderbolt.c 	if (!tbnet_xmit_csum_and_map(net, skb, frames, frame_index + 1))
net              1125 drivers/net/thunderbolt.c 		tb_ring_tx(net->tx_ring.ring, &frames[i]->frame);
net              1127 drivers/net/thunderbolt.c 	if (net->svc->prtcstns & TBNET_MATCH_FRAGS_ID)
net              1128 drivers/net/thunderbolt.c 		atomic_inc(&net->frame_id);
net              1130 drivers/net/thunderbolt.c 	net->stats.tx_packets++;
net              1131 drivers/net/thunderbolt.c 	net->stats.tx_bytes += skb->len;
net              1139 drivers/net/thunderbolt.c 	net->tx_ring.cons -= frame_index;
net              1142 drivers/net/thunderbolt.c 	net->stats.tx_errors++;
net              1150 drivers/net/thunderbolt.c 	struct tbnet *net = netdev_priv(dev);
net              1152 drivers/net/thunderbolt.c 	stats->tx_packets = net->stats.tx_packets;
net              1153 drivers/net/thunderbolt.c 	stats->rx_packets = net->stats.rx_packets;
net              1154 drivers/net/thunderbolt.c 	stats->tx_bytes = net->stats.tx_bytes;
net              1155 drivers/net/thunderbolt.c 	stats->rx_bytes = net->stats.rx_bytes;
net              1156 drivers/net/thunderbolt.c 	stats->rx_errors = net->stats.rx_errors + net->stats.rx_length_errors +
net              1157 drivers/net/thunderbolt.c 		net->stats.rx_over_errors + net->stats.rx_crc_errors +
net              1158 drivers/net/thunderbolt.c 		net->stats.rx_missed_errors;
net              1159 drivers/net/thunderbolt.c 	stats->tx_errors = net->stats.tx_errors;
net              1160 drivers/net/thunderbolt.c 	stats->rx_length_errors = net->stats.rx_length_errors;
net              1161 drivers/net/thunderbolt.c 	stats->rx_over_errors = net->stats.rx_over_errors;
net              1162 drivers/net/thunderbolt.c 	stats->rx_crc_errors = net->stats.rx_crc_errors;
net              1163 drivers/net/thunderbolt.c 	stats->rx_missed_errors = net->stats.rx_missed_errors;
net              1175 drivers/net/thunderbolt.c 	const struct tbnet *net = netdev_priv(dev);
net              1176 drivers/net/thunderbolt.c 	const struct tb_xdomain *xd = net->xd;
net              1194 drivers/net/thunderbolt.c 	struct tbnet *net;
net              1197 drivers/net/thunderbolt.c 	dev = alloc_etherdev(sizeof(*net));
net              1203 drivers/net/thunderbolt.c 	net = netdev_priv(dev);
net              1204 drivers/net/thunderbolt.c 	INIT_DELAYED_WORK(&net->login_work, tbnet_login_work);
net              1205 drivers/net/thunderbolt.c 	INIT_WORK(&net->connected_work, tbnet_connected_work);
net              1206 drivers/net/thunderbolt.c 	INIT_WORK(&net->disconnect_work, tbnet_disconnect_work);
net              1207 drivers/net/thunderbolt.c 	mutex_init(&net->connection_lock);
net              1208 drivers/net/thunderbolt.c 	atomic_set(&net->command_id, 0);
net              1209 drivers/net/thunderbolt.c 	atomic_set(&net->frame_id, 0);
net              1210 drivers/net/thunderbolt.c 	net->svc = svc;
net              1211 drivers/net/thunderbolt.c 	net->dev = dev;
net              1212 drivers/net/thunderbolt.c 	net->xd = xd;
net              1237 drivers/net/thunderbolt.c 	netif_napi_add(dev, &net->napi, tbnet_poll, NAPI_POLL_WEIGHT);
net              1243 drivers/net/thunderbolt.c 	net->handler.uuid = &tbnet_svc_uuid;
net              1244 drivers/net/thunderbolt.c 	net->handler.callback = tbnet_handle_packet,
net              1245 drivers/net/thunderbolt.c 	net->handler.data = net;
net              1246 drivers/net/thunderbolt.c 	tb_register_protocol_handler(&net->handler);
net              1248 drivers/net/thunderbolt.c 	tb_service_set_drvdata(svc, net);
net              1252 drivers/net/thunderbolt.c 		tb_unregister_protocol_handler(&net->handler);
net              1262 drivers/net/thunderbolt.c 	struct tbnet *net = tb_service_get_drvdata(svc);
net              1264 drivers/net/thunderbolt.c 	unregister_netdev(net->dev);
net              1265 drivers/net/thunderbolt.c 	tb_unregister_protocol_handler(&net->handler);
net              1266 drivers/net/thunderbolt.c 	free_netdev(net->dev);
net              1277 drivers/net/thunderbolt.c 	struct tbnet *net = tb_service_get_drvdata(svc);
net              1279 drivers/net/thunderbolt.c 	stop_login(net);
net              1280 drivers/net/thunderbolt.c 	if (netif_running(net->dev)) {
net              1281 drivers/net/thunderbolt.c 		netif_device_detach(net->dev);
net              1282 drivers/net/thunderbolt.c 		tbnet_tear_down(net, true);
net              1285 drivers/net/thunderbolt.c 	tb_unregister_protocol_handler(&net->handler);
net              1292 drivers/net/thunderbolt.c 	struct tbnet *net = tb_service_get_drvdata(svc);
net              1294 drivers/net/thunderbolt.c 	tb_register_protocol_handler(&net->handler);
net              1296 drivers/net/thunderbolt.c 	netif_carrier_off(net->dev);
net              1297 drivers/net/thunderbolt.c 	if (netif_running(net->dev)) {
net              1298 drivers/net/thunderbolt.c 		netif_device_attach(net->dev);
net              1299 drivers/net/thunderbolt.c 		start_login(net);
net               622 drivers/net/tun.c 	struct net *net = dev_net(tun->dev);
net               626 drivers/net/tun.c 		!ns_capable(net->user_ns, CAP_NET_ADMIN);
net              2706 drivers/net/tun.c static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
net              2725 drivers/net/tun.c 	dev = __dev_get_by_name(net, ifr->ifr_name);
net              2771 drivers/net/tun.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              2798 drivers/net/tun.c 		err = dev_get_valid_name(net, dev, name);
net              2802 drivers/net/tun.c 		dev_net_set(dev, net);
net              3042 drivers/net/tun.c 	struct net *net = sock_net(&tfile->sk);
net              3072 drivers/net/tun.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              3074 drivers/net/tun.c 		return open_related_ns(&net->ns, get_net_ns);
net              3088 drivers/net/tun.c 		ret = tun_set_iff(net, file, &ifr);
net              3117 drivers/net/tun.c 	net = dev_net(tun->dev);
net              3345 drivers/net/tun.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              3347 drivers/net/tun.c 		ret = open_related_ns(&net->ns, get_net_ns);
net              3420 drivers/net/tun.c 	struct net *net = current->nsproxy->net_ns;
net              3425 drivers/net/tun.c 	tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL,
net                34 drivers/net/usb/aqc111.c 		netdev_warn(dev->net,
net                50 drivers/net/usb/aqc111.c 		netdev_warn(dev->net,
net                85 drivers/net/usb/aqc111.c 	netdev_dbg(dev->net,
net               101 drivers/net/usb/aqc111.c 		netdev_warn(dev->net,
net               196 drivers/net/usb/aqc111.c static void aqc111_get_drvinfo(struct net_device *net,
net               199 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               203 drivers/net/usb/aqc111.c 	usbnet_get_drvinfo(net, info);
net               213 drivers/net/usb/aqc111.c static void aqc111_get_wol(struct net_device *net,
net               216 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               226 drivers/net/usb/aqc111.c static int aqc111_set_wol(struct net_device *net,
net               229 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               265 drivers/net/usb/aqc111.c static int aqc111_get_link_ksettings(struct net_device *net,
net               268 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               367 drivers/net/usb/aqc111.c static int aqc111_set_link_ksettings(struct net_device *net,
net               370 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               421 drivers/net/usb/aqc111.c static int aqc111_change_mtu(struct net_device *net, int new_mtu)
net               423 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               427 drivers/net/usb/aqc111.c 	net->mtu = new_mtu;
net               428 drivers/net/usb/aqc111.c 	dev->hard_mtu = net->mtu + net->hard_header_len;
net               432 drivers/net/usb/aqc111.c 	if (net->mtu > 1500)
net               440 drivers/net/usb/aqc111.c 	if (dev->net->mtu > 12500) {
net               448 drivers/net/usb/aqc111.c 	if (dev->net->mtu <= 4500)
net               450 drivers/net/usb/aqc111.c 	else if (dev->net->mtu <= 9500)
net               452 drivers/net/usb/aqc111.c 	else if (dev->net->mtu <= 12500)
net               463 drivers/net/usb/aqc111.c static int aqc111_set_mac_addr(struct net_device *net, void *p)
net               465 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               468 drivers/net/usb/aqc111.c 	ret = eth_mac_addr(net, p);
net               474 drivers/net/usb/aqc111.c 				ETH_ALEN, net->dev_addr);
net               477 drivers/net/usb/aqc111.c static int aqc111_vlan_rx_kill_vid(struct net_device *net,
net               480 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               503 drivers/net/usb/aqc111.c static int aqc111_vlan_rx_add_vid(struct net_device *net, __be16 proto, u16 vid)
net               505 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               528 drivers/net/usb/aqc111.c static void aqc111_set_rx_mode(struct net_device *net)
net               530 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               534 drivers/net/usb/aqc111.c 	mc_count = netdev_mc_count(net);
net               539 drivers/net/usb/aqc111.c 	if (net->flags & IFF_PROMISC) {
net               541 drivers/net/usb/aqc111.c 	} else if ((net->flags & IFF_ALLMULTI) || mc_count > AQ_MAX_MCAST) {
net               543 drivers/net/usb/aqc111.c 	} else if (!netdev_mc_empty(net)) {
net               548 drivers/net/usb/aqc111.c 		netdev_for_each_mc_addr(ha, net) {
net               565 drivers/net/usb/aqc111.c static int aqc111_set_features(struct net_device *net,
net               568 drivers/net/usb/aqc111.c 	struct usbnet *dev = netdev_priv(net);
net               570 drivers/net/usb/aqc111.c 	netdev_features_t changed = net->features ^ features;
net               663 drivers/net/usb/aqc111.c 	ether_addr_copy(dev->net->perm_addr, buf);
net               701 drivers/net/usb/aqc111.c 		netdev_dbg(dev->net, "usbnet_get_endpoints failed");
net               717 drivers/net/usb/aqc111.c 	ether_addr_copy(dev->net->dev_addr, dev->net->perm_addr);
net               723 drivers/net/usb/aqc111.c 	dev->net->needed_headroom += sizeof(u64);
net               724 drivers/net/usb/aqc111.c 	dev->net->needed_tailroom += sizeof(u64);
net               726 drivers/net/usb/aqc111.c 	dev->net->max_mtu = 16334;
net               728 drivers/net/usb/aqc111.c 	dev->net->netdev_ops = &aqc111_netdev_ops;
net               729 drivers/net/usb/aqc111.c 	dev->net->ethtool_ops = &aqc111_ethtool_ops;
net               734 drivers/net/usb/aqc111.c 	dev->net->hw_features |= AQ_SUPPORT_HW_FEATURE;
net               735 drivers/net/usb/aqc111.c 	dev->net->features |= AQ_SUPPORT_FEATURE;
net               736 drivers/net/usb/aqc111.c 	dev->net->vlan_features |= AQ_SUPPORT_VLAN_FEATURE;
net               738 drivers/net/usb/aqc111.c 	netif_set_gso_max_size(dev->net, 65535);
net               796 drivers/net/usb/aqc111.c 	if (netif_carrier_ok(dev->net) != link)
net               858 drivers/net/usb/aqc111.c 	if (dev->net->mtu > 12500 && dev->net->mtu <= 16334)
net               866 drivers/net/usb/aqc111.c 	if (dev->net->mtu <= 4500)
net               868 drivers/net/usb/aqc111.c 	else if (dev->net->mtu <= 9500)
net               870 drivers/net/usb/aqc111.c 	else if (dev->net->mtu <= 12500)
net               872 drivers/net/usb/aqc111.c 	else if (dev->net->mtu <= 16334)
net               877 drivers/net/usb/aqc111.c 	netdev_info(dev->net, "Link Speed %d, USB %d", link_speed, usb_host);
net               884 drivers/net/usb/aqc111.c 	if (dev->net->features & NETIF_F_RXCSUM) {
net               891 drivers/net/usb/aqc111.c 	if (dev->net->features & NETIF_F_IP_CSUM)
net               894 drivers/net/usb/aqc111.c 	if (dev->net->features & NETIF_F_IPV6_CSUM)
net               911 drivers/net/usb/aqc111.c 		if (dev->net->features & NETIF_F_HW_VLAN_CTAG_FILTER)
net               948 drivers/net/usb/aqc111.c 		aqc111_set_rx_mode(dev->net);
net               953 drivers/net/usb/aqc111.c 		if (dev->net->mtu > 1500)
net               965 drivers/net/usb/aqc111.c 		netif_carrier_on(dev->net);
net               984 drivers/net/usb/aqc111.c 		netif_carrier_off(dev->net);
net               999 drivers/net/usb/aqc111.c 	dev->net->hw_features |= AQ_SUPPORT_HW_FEATURE;
net              1000 drivers/net/usb/aqc111.c 	dev->net->features |= AQ_SUPPORT_FEATURE;
net              1001 drivers/net/usb/aqc111.c 	dev->net->vlan_features |= AQ_SUPPORT_VLAN_FEATURE;
net              1010 drivers/net/usb/aqc111.c 			 ETH_ALEN, dev->net->dev_addr);
net              1024 drivers/net/usb/aqc111.c 	netif_carrier_off(dev->net);
net              1051 drivers/net/usb/aqc111.c 	netif_carrier_off(dev->net);
net              1212 drivers/net/usb/aqc111.c 	if (!dev->can_dma_sg && (dev->net->features & NETIF_F_SG) &&
net              1359 drivers/net/usb/aqc111.c 		ether_addr_copy(wol_cfg.hw_addr, dev->net->dev_addr);
net              1421 drivers/net/usb/aqc111.c 	netif_carrier_off(dev->net);
net               221 drivers/net/usb/asix.h void asix_set_multicast(struct net_device *net);
net               230 drivers/net/usb/asix.h void asix_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo);
net               231 drivers/net/usb/asix.h int asix_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo);
net               233 drivers/net/usb/asix.h int asix_get_eeprom_len(struct net_device *net);
net               234 drivers/net/usb/asix.h int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom,
net               236 drivers/net/usb/asix.h int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom,
net               239 drivers/net/usb/asix.h void asix_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info);
net               241 drivers/net/usb/asix.h int asix_set_mac_address(struct net_device *net, void *p);
net                29 drivers/net/usb/asix_common.c 		netdev_warn(dev->net, "Failed to read reg index 0x%04x: %d\n",
net                52 drivers/net/usb/asix_common.c 		netdev_warn(dev->net, "Failed to write reg index 0x%04x: %d\n",
net               109 drivers/net/usb/asix_common.c 			netdev_err(dev->net, "asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n",
net               141 drivers/net/usb/asix_common.c 				netdev_err(dev->net, "asix_rx_fixup() Bad Header Length 0x%x, offset %d\n",
net               146 drivers/net/usb/asix_common.c 			if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) {
net               147 drivers/net/usb/asix_common.c 				netdev_dbg(dev->net, "asix_rx_fixup() Bad RX Length %d\n",
net               158 drivers/net/usb/asix_common.c 			rx->ax_skb = netdev_alloc_skb_ip_align(dev->net, size);
net               184 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "asix_rx_fixup() Bad SKB Length %d, %d\n",
net               278 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Failed to enable software MII access\n");
net               287 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Failed to enable hardware MII access\n");
net               297 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_get_phy_addr()\n");
net               300 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Error reading PHYID register: %02x\n", ret);
net               303 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_get_phy_addr() returning 0x%04x\n",
net               324 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Failed to send software reset: %02x\n", ret);
net               335 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Error reading RX_CTL register: %02x\n", ret);
net               347 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_write_rx_ctl() - mode = 0x%04x\n", mode);
net               350 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Failed to write RX_CTL mode to 0x%04x: %02x\n",
net               363 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Error reading Medium Status register: %02x\n",
net               376 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_write_medium_mode() - mode = 0x%04x\n", mode);
net               380 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Failed to write Medium Mode mode to 0x%04x: %02x\n",
net               390 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_write_gpio() - value = 0x%04x\n", value);
net               393 drivers/net/usb/asix_common.c 		netdev_err(dev->net, "Failed to write GPIO value 0x%04x: %02x\n",
net               405 drivers/net/usb/asix_common.c void asix_set_multicast(struct net_device *net)
net               407 drivers/net/usb/asix_common.c 	struct usbnet *dev = netdev_priv(net);
net               411 drivers/net/usb/asix_common.c 	if (net->flags & IFF_PROMISC) {
net               413 drivers/net/usb/asix_common.c 	} else if (net->flags & IFF_ALLMULTI ||
net               414 drivers/net/usb/asix_common.c 		   netdev_mc_count(net) > AX_MAX_MCAST) {
net               416 drivers/net/usb/asix_common.c 	} else if (netdev_mc_empty(net)) {
net               429 drivers/net/usb/asix_common.c 		netdev_for_each_mc_addr(ha, net) {
net               471 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n",
net               485 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n",
net               535 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_mdio_read_nopm() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n",
net               550 drivers/net/usb/asix_common.c 	netdev_dbg(dev->net, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n",
net               573 drivers/net/usb/asix_common.c void asix_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
net               575 drivers/net/usb/asix_common.c 	struct usbnet *dev = netdev_priv(net);
net               592 drivers/net/usb/asix_common.c int asix_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
net               594 drivers/net/usb/asix_common.c 	struct usbnet *dev = netdev_priv(net);
net               612 drivers/net/usb/asix_common.c int asix_get_eeprom_len(struct net_device *net)
net               617 drivers/net/usb/asix_common.c int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom,
net               620 drivers/net/usb/asix_common.c 	struct usbnet *dev = netdev_priv(net);
net               652 drivers/net/usb/asix_common.c int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom,
net               655 drivers/net/usb/asix_common.c 	struct usbnet *dev = netdev_priv(net);
net               661 drivers/net/usb/asix_common.c 	netdev_dbg(net, "write EEPROM len %d, offset %d, magic 0x%x\n",
net               684 drivers/net/usb/asix_common.c 			netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", first_word);
net               693 drivers/net/usb/asix_common.c 			netdev_err(net, "Failed to read EEPROM at offset 0x%02x.\n", last_word);
net               703 drivers/net/usb/asix_common.c 		netdev_err(net, "Failed to enable EEPROM write\n");
net               709 drivers/net/usb/asix_common.c 		netdev_dbg(net, "write to EEPROM at offset 0x%02x, data 0x%04x\n",
net               714 drivers/net/usb/asix_common.c 			netdev_err(net, "Failed to write EEPROM at offset 0x%02x.\n",
net               723 drivers/net/usb/asix_common.c 		netdev_err(net, "Failed to disable EEPROM write\n");
net               733 drivers/net/usb/asix_common.c void asix_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info)
net               736 drivers/net/usb/asix_common.c 	usbnet_get_drvinfo(net, info);
net               741 drivers/net/usb/asix_common.c int asix_set_mac_address(struct net_device *net, void *p)
net               743 drivers/net/usb/asix_common.c 	struct usbnet *dev = netdev_priv(net);
net               747 drivers/net/usb/asix_common.c 	if (netif_running(net))
net               752 drivers/net/usb/asix_common.c 	memcpy(net->dev_addr, addr->sa_data, ETH_ALEN);
net                53 drivers/net/usb/asix_devices.c 	if (netif_carrier_ok(dev->net) != link) {
net                55 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
net                62 drivers/net/usb/asix_devices.c 		memcpy(dev->net->dev_addr, addr, ETH_ALEN);
net                64 drivers/net/usb/asix_devices.c 		netdev_info(dev->net, "invalid hw address, using random\n");
net                65 drivers/net/usb/asix_devices.c 		eth_hw_addr_random(dev->net);
net                78 drivers/net/usb/asix_devices.c 		phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1);
net                91 drivers/net/usb/asix_devices.c 	phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2);
net               100 drivers/net/usb/asix_devices.c static u32 asix_get_link(struct net_device *net)
net               102 drivers/net/usb/asix_devices.c 	struct usbnet *dev = netdev_priv(net);
net               107 drivers/net/usb/asix_devices.c static int asix_ioctl (struct net_device *net, struct ifreq *rq, int cmd)
net               109 drivers/net/usb/asix_devices.c 	struct usbnet *dev = netdev_priv(net);
net               132 drivers/net/usb/asix_devices.c static void ax88172_set_multicast(struct net_device *net)
net               134 drivers/net/usb/asix_devices.c 	struct usbnet *dev = netdev_priv(net);
net               138 drivers/net/usb/asix_devices.c 	if (net->flags & IFF_PROMISC) {
net               140 drivers/net/usb/asix_devices.c 	} else if (net->flags & IFF_ALLMULTI ||
net               141 drivers/net/usb/asix_devices.c 		   netdev_mc_count(net) > AX_MAX_MCAST) {
net               143 drivers/net/usb/asix_devices.c 	} else if (netdev_mc_empty(net)) {
net               156 drivers/net/usb/asix_devices.c 		netdev_for_each_mc_addr(ha, net) {
net               183 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "ax88172_link_reset() speed: %u duplex: %d setting mode to 0x%04x\n",
net               208 drivers/net/usb/asix_devices.c 	asix_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, reset_bits);
net               215 drivers/net/usb/asix_devices.c 		if (asix_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR)
net               222 drivers/net/usb/asix_devices.c 	netdev_err(dev->net, "BMCR_RESET timeout on phy_id %d\n",
net               252 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "read AX_CMD_READ_NODE_ID failed: %d\n",
net               260 drivers/net/usb/asix_devices.c 	dev->mii.dev = dev->net;
net               267 drivers/net/usb/asix_devices.c 	dev->net->netdev_ops = &ax88172_netdev_ops;
net               268 drivers/net/usb/asix_devices.c 	dev->net->ethtool_ops = &ax88172_ethtool_ops;
net               269 drivers/net/usb/asix_devices.c 	dev->net->needed_headroom = 4; /* cf asix_tx_fixup() */
net               270 drivers/net/usb/asix_devices.c 	dev->net->needed_tailroom = 4; /* cf asix_tx_fixup() */
net               273 drivers/net/usb/asix_devices.c 	asix_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net               313 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "ax88772_link_reset() speed: %u duplex: %d setting mode to 0x%04x\n",
net               327 drivers/net/usb/asix_devices.c 	ether_addr_copy(data->mac_addr, dev->net->dev_addr);
net               364 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Select PHY #1 failed: %d\n", ret);
net               394 drivers/net/usb/asix_devices.c 	if (in_pm && (!asix_mdio_read_nopm(dev->net, dev->mii.phy_id,
net               412 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Write IPG,IPG1,IPG2 failed: %d\n", ret);
net               417 drivers/net/usb/asix_devices.c 	ether_addr_copy(data->mac_addr, dev->net->dev_addr);
net               429 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after all initializations\n",
net               433 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net,
net               459 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Select PHY #1 failed: %d\n", ret);
net               486 drivers/net/usb/asix_devices.c 	if (in_pm && (!asix_mdio_read_nopm(dev->net, dev->mii.phy_id,
net               501 drivers/net/usb/asix_devices.c 			netdev_dbg(dev->net, "Write BQ setting failed: %d\n",
net               507 drivers/net/usb/asix_devices.c 		phy14h = asix_mdio_read_nopm(dev->net, dev->mii.phy_id,
net               509 drivers/net/usb/asix_devices.c 		phy15h = asix_mdio_read_nopm(dev->net, dev->mii.phy_id,
net               511 drivers/net/usb/asix_devices.c 		phy16h = asix_mdio_read_nopm(dev->net, dev->mii.phy_id,
net               514 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net,
net               520 drivers/net/usb/asix_devices.c 			asix_mdio_write_nopm(dev->net, dev->mii.phy_id,
net               524 drivers/net/usb/asix_devices.c 			asix_mdio_write_nopm(dev->net, dev->mii.phy_id,
net               528 drivers/net/usb/asix_devices.c 			asix_mdio_write_nopm(dev->net, dev->mii.phy_id,
net               537 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Write IPG,IPG1,IPG2 failed: %d\n", ret);
net               542 drivers/net/usb/asix_devices.c 	memcpy(data->mac_addr, dev->net->dev_addr, ETH_ALEN);
net               563 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after all initializations\n",
net               567 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net,
net               600 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "ax88772_suspend: medium=0x%04x\n",
net               605 drivers/net/usb/asix_devices.c 		asix_mdio_read_nopm(dev->net, dev->mii.phy_id, MII_BMCR);
net               609 drivers/net/usb/asix_devices.c 		asix_mdio_read_nopm(dev->net, dev->mii.phy_id, MII_ADVERTISE);
net               629 drivers/net/usb/asix_devices.c 		asix_mdio_write_nopm(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net               636 drivers/net/usb/asix_devices.c 		asix_mdio_write_nopm(dev->net, dev->mii.phy_id, MII_BMCR,
net               688 drivers/net/usb/asix_devices.c 		netif_dbg(dev, ifup, dev->net,
net               706 drivers/net/usb/asix_devices.c 			netdev_dbg(dev->net, "Failed to read MAC address: %d\n",
net               715 drivers/net/usb/asix_devices.c 	dev->mii.dev = dev->net;
net               722 drivers/net/usb/asix_devices.c 	dev->net->netdev_ops = &ax88772_netdev_ops;
net               723 drivers/net/usb/asix_devices.c 	dev->net->ethtool_ops = &ax88772_ethtool_ops;
net               724 drivers/net/usb/asix_devices.c 	dev->net->needed_headroom = 4; /* cf asix_tx_fixup() */
net               725 drivers/net/usb/asix_devices.c 	dev->net->needed_tailroom = 4; /* cf asix_tx_fixup() */
net               734 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Failed to reset AX88772: %d\n", ret);
net               740 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "PHYID=0x%08x\n", phyid);
net               794 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "marvell_phy_init()\n");
net               796 drivers/net/usb/asix_devices.c 	reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_MARVELL_STATUS);
net               797 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "MII_MARVELL_STATUS = 0x%04x\n", reg);
net               799 drivers/net/usb/asix_devices.c 	asix_mdio_write(dev->net, dev->mii.phy_id, MII_MARVELL_CTRL,
net               803 drivers/net/usb/asix_devices.c 		reg = asix_mdio_read(dev->net, dev->mii.phy_id,
net               805 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "MII_MARVELL_LED_CTRL (1) = 0x%04x\n", reg);
net               809 drivers/net/usb/asix_devices.c 		asix_mdio_write(dev->net, dev->mii.phy_id,
net               812 drivers/net/usb/asix_devices.c 		reg = asix_mdio_read(dev->net, dev->mii.phy_id,
net               814 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "MII_MARVELL_LED_CTRL (2) = 0x%04x\n", reg);
net               825 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "rtl8211cl_phy_init()\n");
net               827 drivers/net/usb/asix_devices.c 	asix_mdio_write (dev->net, dev->mii.phy_id, 0x1f, 0x0005);
net               828 drivers/net/usb/asix_devices.c 	asix_mdio_write (dev->net, dev->mii.phy_id, 0x0c, 0);
net               829 drivers/net/usb/asix_devices.c 	asix_mdio_write (dev->net, dev->mii.phy_id, 0x01,
net               830 drivers/net/usb/asix_devices.c 		asix_mdio_read (dev->net, dev->mii.phy_id, 0x01) | 0x0080);
net               831 drivers/net/usb/asix_devices.c 	asix_mdio_write (dev->net, dev->mii.phy_id, 0x1f, 0);
net               834 drivers/net/usb/asix_devices.c 		asix_mdio_write (dev->net, dev->mii.phy_id, 0x1f, 0x0002);
net               835 drivers/net/usb/asix_devices.c 		asix_mdio_write (dev->net, dev->mii.phy_id, 0x1a, 0x00cb);
net               836 drivers/net/usb/asix_devices.c 		asix_mdio_write (dev->net, dev->mii.phy_id, 0x1f, 0);
net               844 drivers/net/usb/asix_devices.c 	u16 reg = asix_mdio_read(dev->net, dev->mii.phy_id, MARVELL_LED_MANUAL);
net               846 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "marvell_led_status() read 0x%04x\n", reg);
net               862 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "marvell_led_status() writing 0x%04x\n", reg);
net               863 drivers/net/usb/asix_devices.c 	asix_mdio_write(dev->net, dev->mii.phy_id, MARVELL_LED_MANUAL, reg);
net               878 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "GPIO Status: 0x%04x\n", status);
net               884 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "EEPROM index 0x17 is 0x%04x\n", eeprom);
net               895 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "GPIO0: %d, PhyMode: %d\n", gpio0, data->phymode);
net               905 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "gpio phymode == 1 path\n");
net               912 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "PHYID=0x%08x\n", phyid);
net               932 drivers/net/usb/asix_devices.c 	asix_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net               934 drivers/net/usb/asix_devices.c 	asix_mdio_write(dev->net, dev->mii.phy_id, MII_CTRL1000,
net               941 drivers/net/usb/asix_devices.c 	memcpy(data->mac_addr, dev->net->dev_addr, ETH_ALEN);
net               961 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "ax88178_link_reset()\n");
net               982 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "ax88178_link_reset() speed: %u duplex: %d setting mode to 0x%04x\n",
net              1018 drivers/net/usb/asix_devices.c 	if (dev->net->mtu > 1500)
net              1028 drivers/net/usb/asix_devices.c static int ax88178_change_mtu(struct net_device *net, int new_mtu)
net              1030 drivers/net/usb/asix_devices.c 	struct usbnet *dev = netdev_priv(net);
net              1031 drivers/net/usb/asix_devices.c 	int ll_mtu = new_mtu + net->hard_header_len + 4;
net              1033 drivers/net/usb/asix_devices.c 	netdev_dbg(dev->net, "ax88178_change_mtu() new_mtu=%d\n", new_mtu);
net              1038 drivers/net/usb/asix_devices.c 	net->mtu = new_mtu;
net              1039 drivers/net/usb/asix_devices.c 	dev->hard_mtu = net->mtu + net->hard_header_len;
net              1071 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Failed to read MAC address: %d\n", ret);
net              1078 drivers/net/usb/asix_devices.c 	dev->mii.dev = dev->net;
net              1086 drivers/net/usb/asix_devices.c 	dev->net->netdev_ops = &ax88178_netdev_ops;
net              1087 drivers/net/usb/asix_devices.c 	dev->net->ethtool_ops = &ax88178_ethtool_ops;
net              1088 drivers/net/usb/asix_devices.c 	dev->net->max_mtu = 16384 - (dev->net->hard_header_len + 4);
net                31 drivers/net/usb/ax88172a.c 	return asix_mdio_read(((struct usbnet *)bus->priv)->net, phy_id,
net                38 drivers/net/usb/ax88172a.c 	asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val);
net                42 drivers/net/usb/ax88172a.c static int ax88172a_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
net                44 drivers/net/usb/ax88172a.c 	if (!netif_running(net))
net                47 drivers/net/usb/ax88172a.c 	if (!net->phydev)
net                50 drivers/net/usb/ax88172a.c 	return phy_mii_ioctl(net->phydev, rq, cmd);
net                93 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Could not allocate MDIO bus\n");
net               107 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Could not register MDIO bus\n");
net               111 drivers/net/usb/ax88172a.c 	netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id);
net               123 drivers/net/usb/ax88172a.c 	netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id);
net               200 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Failed to read MAC address: %d\n", ret);
net               203 drivers/net/usb/ax88172a.c 	memcpy(dev->net->dev_addr, buf, ETH_ALEN);
net               205 drivers/net/usb/ax88172a.c 	dev->net->netdev_ops = &ax88172a_netdev_ops;
net               206 drivers/net/usb/ax88172a.c 	dev->net->ethtool_ops = &ax88172a_ethtool_ops;
net               211 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Failed to read software interface selection register: %d\n",
net               216 drivers/net/usb/ax88172a.c 	netdev_dbg(dev->net, "AX_CMD_SW_PHY_STATUS = 0x%02x\n", buf[0]);
net               219 drivers/net/usb/ax88172a.c 		netdev_dbg(dev->net, "use internal phy\n");
net               223 drivers/net/usb/ax88172a.c 		netdev_dbg(dev->net, "use external phy\n");
net               227 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Interface mode not supported by driver\n");
net               258 drivers/net/usb/ax88172a.c 	netdev_dbg(dev->net, "Stopping interface\n");
net               261 drivers/net/usb/ax88172a.c 		netdev_info(dev->net, "Disconnecting from phy %s\n",
net               289 drivers/net/usb/ax88172a.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after software reset\n", rx_ctl);
net               295 drivers/net/usb/ax88172a.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x setting to 0x0000\n", rx_ctl);
net               303 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Write IPG,IPG1,IPG2 failed: %d\n", ret);
net               308 drivers/net/usb/ax88172a.c 	memcpy(data->mac_addr, dev->net->dev_addr, ETH_ALEN);
net               320 drivers/net/usb/ax88172a.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after all initializations\n",
net               324 drivers/net/usb/ax88172a.c 	netdev_dbg(dev->net, "Medium Status is 0x%04x after all initializations\n",
net               331 drivers/net/usb/ax88172a.c 	priv->phydev = phy_connect(dev->net, priv->phy_name,
net               335 drivers/net/usb/ax88172a.c 		netdev_err(dev->net, "Could not connect to PHY device %s\n",
net               341 drivers/net/usb/ax88172a.c 	netdev_info(dev->net, "Connected to phy %s\n", priv->phy_name);
net               204 drivers/net/usb/ax88179_178a.c 		netdev_warn(dev->net, "Failed to read reg index 0x%04x: %d\n",
net               227 drivers/net/usb/ax88179_178a.c 		netdev_warn(dev->net, "Failed to write reg index 0x%04x: %d\n",
net               346 drivers/net/usb/ax88179_178a.c 	if (netif_carrier_ok(dev->net) != link) {
net               348 drivers/net/usb/ax88179_178a.c 		netdev_info(dev->net, "ax88179 - Link status is: %d\n", link);
net               531 drivers/net/usb/ax88179_178a.c ax88179_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
net               533 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               552 drivers/net/usb/ax88179_178a.c ax88179_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
net               554 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               572 drivers/net/usb/ax88179_178a.c static int ax88179_get_eeprom_len(struct net_device *net)
net               578 drivers/net/usb/ax88179_178a.c ax88179_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom,
net               581 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               614 drivers/net/usb/ax88179_178a.c static int ax88179_get_link_ksettings(struct net_device *net,
net               617 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               624 drivers/net/usb/ax88179_178a.c static int ax88179_set_link_ksettings(struct net_device *net,
net               627 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               772 drivers/net/usb/ax88179_178a.c static int ax88179_get_eee(struct net_device *net, struct ethtool_eee *edata)
net               774 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               783 drivers/net/usb/ax88179_178a.c static int ax88179_set_eee(struct net_device *net, struct ethtool_eee *edata)
net               785 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               811 drivers/net/usb/ax88179_178a.c static int ax88179_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
net               813 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               832 drivers/net/usb/ax88179_178a.c static void ax88179_set_multicast(struct net_device *net)
net               834 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               840 drivers/net/usb/ax88179_178a.c 	if (net->flags & IFF_PROMISC) {
net               842 drivers/net/usb/ax88179_178a.c 	} else if (net->flags & IFF_ALLMULTI ||
net               843 drivers/net/usb/ax88179_178a.c 		   netdev_mc_count(net) > AX_MAX_MCAST) {
net               845 drivers/net/usb/ax88179_178a.c 	} else if (netdev_mc_empty(net)) {
net               856 drivers/net/usb/ax88179_178a.c 		netdev_for_each_mc_addr(ha, net) {
net               873 drivers/net/usb/ax88179_178a.c ax88179_set_features(struct net_device *net, netdev_features_t features)
net               876 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               877 drivers/net/usb/ax88179_178a.c 	netdev_features_t changed = net->features ^ features;
net               901 drivers/net/usb/ax88179_178a.c static int ax88179_change_mtu(struct net_device *net, int new_mtu)
net               903 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               906 drivers/net/usb/ax88179_178a.c 	net->mtu = new_mtu;
net               907 drivers/net/usb/ax88179_178a.c 	dev->hard_mtu = net->mtu + net->hard_header_len;
net               909 drivers/net/usb/ax88179_178a.c 	if (net->mtu > 1500) {
net               929 drivers/net/usb/ax88179_178a.c static int ax88179_set_mac_addr(struct net_device *net, void *p)
net               931 drivers/net/usb/ax88179_178a.c 	struct usbnet *dev = netdev_priv(net);
net               935 drivers/net/usb/ax88179_178a.c 	if (netif_running(net))
net               940 drivers/net/usb/ax88179_178a.c 	memcpy(net->dev_addr, addr->sa_data, ETH_ALEN);
net               944 drivers/net/usb/ax88179_178a.c 				 ETH_ALEN, net->dev_addr);
net              1244 drivers/net/usb/ax88179_178a.c 			 ETH_ALEN, dev->net->dev_addr);
net              1245 drivers/net/usb/ax88179_178a.c 	memcpy(dev->net->perm_addr, dev->net->dev_addr, ETH_ALEN);
net              1260 drivers/net/usb/ax88179_178a.c 	dev->net->netdev_ops = &ax88179_netdev_ops;
net              1261 drivers/net/usb/ax88179_178a.c 	dev->net->ethtool_ops = &ax88179_ethtool_ops;
net              1262 drivers/net/usb/ax88179_178a.c 	dev->net->needed_headroom = 8;
net              1263 drivers/net/usb/ax88179_178a.c 	dev->net->max_mtu = 4088;
net              1266 drivers/net/usb/ax88179_178a.c 	dev->mii.dev = dev->net;
net              1274 drivers/net/usb/ax88179_178a.c 	dev->net->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
net              1277 drivers/net/usb/ax88179_178a.c 	dev->net->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
net              1365 drivers/net/usb/ax88179_178a.c 	if (skb->len < dev->net->hard_header_len)
net              1481 drivers/net/usb/ax88179_178a.c 		if (dev->net->mtu > 1500)
net              1513 drivers/net/usb/ax88179_178a.c 	netif_carrier_on(dev->net);
net              1545 drivers/net/usb/ax88179_178a.c 			 dev->net->dev_addr);
net              1560 drivers/net/usb/ax88179_178a.c 	dev->net->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
net              1563 drivers/net/usb/ax88179_178a.c 	dev->net->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
net                64 drivers/net/usb/cdc_eem.c 		netdev_warn(dev->net, "link cmd failure\n");
net                79 drivers/net/usb/cdc_eem.c 	dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN;
net                80 drivers/net/usb/cdc_eem.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net               201 drivers/net/usb/cdc_eem.c 				netdev_dbg(dev->net, "reserved command %04x\n",
net               249 drivers/net/usb/cdc_eem.c 				netdev_warn(dev->net,
net               317 drivers/net/usb/cdc_eem.c 				dev->net->stats.rx_errors++;
net                70 drivers/net/usb/cdc_ether.c 	struct net_device	*net = dev->net;
net                79 drivers/net/usb/cdc_ether.c 	if (net->flags & IFF_PROMISC)
net                81 drivers/net/usb/cdc_ether.c 	if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI))
net               385 drivers/net/usb/cdc_ether.c 	netif_info(dev, timer, dev->net,
net               407 drivers/net/usb/cdc_ether.c 		netif_dbg(dev, timer, dev->net, "CDC: carrier %s\n",
net               412 drivers/net/usb/cdc_ether.c 		netif_dbg(dev, timer, dev->net, "CDC: speed change (len %d)\n",
net               423 drivers/net/usb/cdc_ether.c 		netdev_err(dev->net, "CDC: unexpected notification %02x!\n",
net               457 drivers/net/usb/cdc_ether.c 	if (!status && (dev->net->dev_addr[0] & 0x02))
net               458 drivers/net/usb/cdc_ether.c 		eth_hw_addr_random(dev->net);
net               476 drivers/net/usb/cdc_ether.c 	ether_addr_copy(eth_hdr(skb)->h_dest, dev->net->dev_addr);
net               501 drivers/net/usb/cdc_ether.c 	netif_dbg(dev, timer, dev->net, "CDC: carrier %s\n",
net               505 drivers/net/usb/cdc_ether.c 	    netif_carrier_ok(dev->net))
net               506 drivers/net/usb/cdc_ether.c 		netif_carrier_off(dev->net);
net               183 drivers/net/usb/cdc_mbim.c 	dev->net->flags |= IFF_NOARP;
net               186 drivers/net/usb/cdc_mbim.c 	dev->net->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_FILTER;
net               189 drivers/net/usb/cdc_mbim.c 	dev->net->netdev_ops = &cdc_mbim_netdev_ops;
net               285 drivers/net/usb/cdc_mbim.c 			netif_err(dev, tx_err, dev->net,
net               325 drivers/net/usb/cdc_mbim.c 		netdev = __vlan_find_dev_deep_rcu(dev->net, htons(ETH_P_8021Q),
net               332 drivers/net/usb/cdc_mbim.c 		netdev = dev->net;
net               388 drivers/net/usb/cdc_mbim.c 	skb = netdev_alloc_skb_ip_align(dev->net,  len + ETH_HLEN);
net               397 drivers/net/usb/cdc_mbim.c 	memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN);
net               450 drivers/net/usb/cdc_mbim.c 		netif_dbg(dev, rx_err, dev->net,
net               474 drivers/net/usb/cdc_mbim.c 			netif_dbg(dev, rx_err, dev->net,
net               317 drivers/net/usb/cdc_ncm.c 	netif_tx_lock_bh(dev->net);
net               318 drivers/net/usb/cdc_ncm.c 	usbnet_start_xmit(NULL, dev->net);
net               325 drivers/net/usb/cdc_ncm.c 	netif_tx_unlock_bh(dev->net);
net               403 drivers/net/usb/cdc_ncm.c 		if (netif_running(dev->net))
net               423 drivers/net/usb/cdc_ncm.c 	if (netif_running(dev->net) && val > ctx->tx_max) {
net               424 drivers/net/usb/cdc_ncm.c 		netif_tx_lock_bh(dev->net);
net               425 drivers/net/usb/cdc_ncm.c 		usbnet_start_xmit(NULL, dev->net);
net               432 drivers/net/usb/cdc_ncm.c 		netif_tx_unlock_bh(dev->net);
net               599 drivers/net/usb/cdc_ncm.c 	dev->net->mtu = min_t(int, dev->net->mtu, ctx->max_datagram_size - cdc_ncm_eth_hlen(dev));
net               604 drivers/net/usb/cdc_ncm.c 		if (mbim_mtu != 0 && mbim_mtu < dev->net->mtu)
net               605 drivers/net/usb/cdc_ncm.c 			dev->net->mtu = mbim_mtu;
net               746 drivers/net/usb/cdc_ncm.c int cdc_ncm_change_mtu(struct net_device *net, int new_mtu)
net               748 drivers/net/usb/cdc_ncm.c 	struct usbnet *dev = netdev_priv(net);
net               750 drivers/net/usb/cdc_ncm.c 	net->mtu = new_mtu;
net               924 drivers/net/usb/cdc_ncm.c 		dev_info(&intf->dev, "MAC-Address: %pM\n", dev->net->dev_addr);
net               939 drivers/net/usb/cdc_ncm.c 	dev->net->ethtool_ops = &cdc_ncm_ethtool_ops;
net               942 drivers/net/usb/cdc_ncm.c 	dev->net->sysfs_groups[0] = &cdc_ncm_sysfs_attr_group;
net               945 drivers/net/usb/cdc_ncm.c 	dev->net->netdev_ops = &cdc_ncm_netdev_ops;
net               946 drivers/net/usb/cdc_ncm.c 	dev->net->max_mtu = cdc_ncm_max_dgram_size(dev) - cdc_ncm_eth_hlen(dev);
net              1176 drivers/net/usb/cdc_ncm.c 					dev->net->stats.tx_dropped++;
net              1219 drivers/net/usb/cdc_ncm.c 				dev->net->stats.tx_dropped++;
net              1224 drivers/net/usb/cdc_ncm.c 					dev->net->stats.tx_dropped++;
net              1260 drivers/net/usb/cdc_ncm.c 		dev->net->stats.tx_dropped++;
net              1373 drivers/net/usb/cdc_ncm.c 	} else if (dev->net != NULL) {
net              1376 drivers/net/usb/cdc_ncm.c 		netif_tx_lock_bh(dev->net);
net              1377 drivers/net/usb/cdc_ncm.c 		usbnet_start_xmit(NULL, dev->net);
net              1378 drivers/net/usb/cdc_ncm.c 		netif_tx_unlock_bh(dev->net);
net              1426 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net, "frame too short\n");
net              1433 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net,
net              1441 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net,
net              1450 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net,
net              1470 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net, "invalid NDP offset  <%u>\n",
net              1477 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net, "invalid DPT16 length <%u>\n",
net              1489 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net, "Invalid nframes = %d\n", ret);
net              1524 drivers/net/usb/cdc_ncm.c 		netif_dbg(dev, rx_err, dev->net,
net              1548 drivers/net/usb/cdc_ncm.c 			netif_dbg(dev, rx_err, dev->net,
net              1557 drivers/net/usb/cdc_ncm.c 			skb = netdev_alloc_skb_ip_align(dev->net,  len);
net              1593 drivers/net/usb/cdc_ncm.c 		netif_info(dev, link, dev->net,
net              1598 drivers/net/usb/cdc_ncm.c 		netif_info(dev, link, dev->net,
net              1628 drivers/net/usb/cdc_ncm.c 		netif_info(dev, link, dev->net,
net               114 drivers/net/usb/ch9200.c 	netdev_dbg(dev->net, "Control_read() index=0x%02x size=%d\n",
net               154 drivers/net/usb/ch9200.c 	netdev_dbg(dev->net, "Control_write() index=0x%02x size=%d\n",
net               222 drivers/net/usb/ch9200.c 	netdev_dbg(dev->net, "link_reset() speed:%d duplex:%d\n",
net               240 drivers/net/usb/ch9200.c 		netif_carrier_on(dev->net);
net               243 drivers/net/usb/ch9200.c 		netif_carrier_off(dev->net);
net               312 drivers/net/usb/ch9200.c 	netdev_dbg(dev->net, "get_mac_address:\n\tusbnet VID:%0x PID:%0x\n",
net               346 drivers/net/usb/ch9200.c 	dev->mii.dev = dev->net;
net               353 drivers/net/usb/ch9200.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net               388 drivers/net/usb/ch9200.c 	retval = get_mac_address(dev, dev->net->dev_addr);
net               145 drivers/net/usb/cx82310_eth.c 	dev->net->hard_header_len = 0;
net               180 drivers/net/usb/cx82310_eth.c 			  dev->net->dev_addr, ETH_ALEN);
net               133 drivers/net/usb/dm9601.c 		netdev_err(dev->net, "%s read timed out!\n", phy ? "phy" : "eeprom");
net               141 drivers/net/usb/dm9601.c 	netdev_dbg(dev->net, "read shared %d 0x%02x returned 0x%04x, %d\n",
net               176 drivers/net/usb/dm9601.c 		netdev_err(dev->net, "%s write timed out!\n", phy ? "phy" : "eeprom");
net               200 drivers/net/usb/dm9601.c static int dm9601_get_eeprom(struct net_device *net,
net               203 drivers/net/usb/dm9601.c 	struct usbnet *dev = netdev_priv(net);
net               226 drivers/net/usb/dm9601.c 		netdev_dbg(dev->net, "Only internal phy supported\n");
net               232 drivers/net/usb/dm9601.c 	netdev_dbg(dev->net,
net               246 drivers/net/usb/dm9601.c 		netdev_dbg(dev->net, "Only internal phy supported\n");
net               250 drivers/net/usb/dm9601.c 	netdev_dbg(dev->net, "dm9601_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n",
net               256 drivers/net/usb/dm9601.c static void dm9601_get_drvinfo(struct net_device *net,
net               260 drivers/net/usb/dm9601.c 	usbnet_get_drvinfo(net, info);
net               263 drivers/net/usb/dm9601.c static u32 dm9601_get_link(struct net_device *net)
net               265 drivers/net/usb/dm9601.c 	struct usbnet *dev = netdev_priv(net);
net               270 drivers/net/usb/dm9601.c static int dm9601_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
net               272 drivers/net/usb/dm9601.c 	struct usbnet *dev = netdev_priv(net);
net               289 drivers/net/usb/dm9601.c static void dm9601_set_multicast(struct net_device *net)
net               291 drivers/net/usb/dm9601.c 	struct usbnet *dev = netdev_priv(net);
net               300 drivers/net/usb/dm9601.c 	if (net->flags & IFF_PROMISC) {
net               302 drivers/net/usb/dm9601.c 	} else if (net->flags & IFF_ALLMULTI ||
net               303 drivers/net/usb/dm9601.c 		   netdev_mc_count(net) > DM_MAX_MCAST) {
net               305 drivers/net/usb/dm9601.c 	} else if (!netdev_mc_empty(net)) {
net               308 drivers/net/usb/dm9601.c 		netdev_for_each_mc_addr(ha, net) {
net               320 drivers/net/usb/dm9601.c 	dm_write_async(dev, DM_PHY_ADDR, ETH_ALEN, dev->net->dev_addr);
net               323 drivers/net/usb/dm9601.c static int dm9601_set_mac_address(struct net_device *net, void *p)
net               326 drivers/net/usb/dm9601.c 	struct usbnet *dev = netdev_priv(net);
net               329 drivers/net/usb/dm9601.c 		dev_err(&net->dev, "not setting invalid mac address %pM\n",
net               334 drivers/net/usb/dm9601.c 	memcpy(net->dev_addr, addr->sa_data, net->addr_len);
net               362 drivers/net/usb/dm9601.c 	dev->net->netdev_ops = &dm9601_netdev_ops;
net               363 drivers/net/usb/dm9601.c 	dev->net->ethtool_ops = &dm9601_ethtool_ops;
net               364 drivers/net/usb/dm9601.c 	dev->net->hard_header_len += DM_TX_OVERHEAD;
net               365 drivers/net/usb/dm9601.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net               371 drivers/net/usb/dm9601.c 	dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD + 1;
net               373 drivers/net/usb/dm9601.c 	dev->mii.dev = dev->net;
net               394 drivers/net/usb/dm9601.c 		memcpy(dev->net->dev_addr, mac, ETH_ALEN);
net               398 drivers/net/usb/dm9601.c 			dev->net->dev_addr);
net               403 drivers/net/usb/dm9601.c 		netdev_err(dev->net, "Error reading chip ID\n");
net               413 drivers/net/usb/dm9601.c 			netdev_err(dev->net, "Error reading MODE_CTRL\n");
net               425 drivers/net/usb/dm9601.c 	dm9601_set_multicast(dev->net);
net               427 drivers/net/usb/dm9601.c 	dm9601_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET);
net               428 drivers/net/usb/dm9601.c 	dm9601_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net               458 drivers/net/usb/dm9601.c 		if (status & 0x01) dev->net->stats.rx_fifo_errors++;
net               459 drivers/net/usb/dm9601.c 		if (status & 0x02) dev->net->stats.rx_crc_errors++;
net               460 drivers/net/usb/dm9601.c 		if (status & 0x04) dev->net->stats.rx_frame_errors++;
net               461 drivers/net/usb/dm9601.c 		if (status & 0x20) dev->net->stats.rx_missed_errors++;
net               462 drivers/net/usb/dm9601.c 		if (status & 0x90) dev->net->stats.rx_length_errors++;
net               541 drivers/net/usb/dm9601.c 	if (netif_carrier_ok(dev->net) != link) {
net               543 drivers/net/usb/dm9601.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
net               554 drivers/net/usb/dm9601.c 	netdev_dbg(dev->net, "link_reset() speed: %u duplex: %d\n",
net                76 drivers/net/usb/gl620a.c 	if (skb->len < dev->net->hard_header_len)
net                84 drivers/net/usb/gl620a.c 		netdev_dbg(dev->net,
net               102 drivers/net/usb/gl620a.c 			netdev_dbg(dev->net, "genelink: invalid rx length %d\n",
net               128 drivers/net/usb/gl620a.c 		netdev_dbg(dev->net, "genelink: invalid rx length %d\n",
net               181 drivers/net/usb/gl620a.c 	dev->net->hard_header_len += 4;
net               130 drivers/net/usb/hso.c 	struct net_device *net;
net               695 drivers/net/usb/hso.c static int hso_net_open(struct net_device *net)
net               697 drivers/net/usb/hso.c 	struct hso_net *odev = netdev_priv(net);
net               701 drivers/net/usb/hso.c 		dev_err(&net->dev, "No net device !\n");
net               719 drivers/net/usb/hso.c 	netif_start_queue(net);
net               725 drivers/net/usb/hso.c static int hso_net_close(struct net_device *net)
net               727 drivers/net/usb/hso.c 	struct hso_net *odev = netdev_priv(net);
net               730 drivers/net/usb/hso.c 	netif_stop_queue(net);
net               753 drivers/net/usb/hso.c 	if (!netif_device_present(odev->net)) {
net               767 drivers/net/usb/hso.c 	netif_wake_queue(odev->net);
net               772 drivers/net/usb/hso.c 					    struct net_device *net)
net               774 drivers/net/usb/hso.c 	struct hso_net *odev = netdev_priv(net);
net               778 drivers/net/usb/hso.c 	netif_stop_queue(net);
net               807 drivers/net/usb/hso.c 		net->stats.tx_errors++;
net               808 drivers/net/usb/hso.c 		netif_start_queue(net);
net               810 drivers/net/usb/hso.c 		net->stats.tx_packets++;
net               811 drivers/net/usb/hso.c 		net->stats.tx_bytes += skb->len;
net               823 drivers/net/usb/hso.c static void hso_net_tx_timeout(struct net_device *net)
net               825 drivers/net/usb/hso.c 	struct hso_net *odev = netdev_priv(net);
net               831 drivers/net/usb/hso.c 	dev_warn(&net->dev, "Tx timed out.\n");
net               839 drivers/net/usb/hso.c 	net->stats.tx_errors++;
net               880 drivers/net/usb/hso.c 					dev_err(&odev->net->dev,
net               887 drivers/net/usb/hso.c 				odev->skb_rx_buf = netdev_alloc_skb(odev->net,
net               939 drivers/net/usb/hso.c 				odev->net->stats.rx_packets++;
net               941 drivers/net/usb/hso.c 				odev->net->stats.rx_bytes += odev->rx_buf_size;
net               986 drivers/net/usb/hso.c 	struct net_device *net;
net              1004 drivers/net/usb/hso.c 	net = odev->net;
net              1006 drivers/net/usb/hso.c 	if (!netif_device_present(net)) {
net              2080 drivers/net/usb/hso.c 		sprintf(port_dev, "%s", dev2net(hso_dev)->net->name);
net              2365 drivers/net/usb/hso.c 	if (hso_net->net)
net              2366 drivers/net/usb/hso.c 		unregister_netdev(hso_net->net);
net              2378 drivers/net/usb/hso.c 	if (hso_net->net)
net              2379 drivers/net/usb/hso.c 		free_netdev(hso_net->net);
net              2392 drivers/net/usb/hso.c static void hso_net_init(struct net_device *net)
net              2394 drivers/net/usb/hso.c 	struct hso_net *hso_net = netdev_priv(net);
net              2399 drivers/net/usb/hso.c 	net->netdev_ops = &hso_netdev_ops;
net              2400 drivers/net/usb/hso.c 	net->watchdog_timeo = HSO_NET_TX_TIMEOUT;
net              2401 drivers/net/usb/hso.c 	net->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
net              2402 drivers/net/usb/hso.c 	net->type = ARPHRD_NONE;
net              2403 drivers/net/usb/hso.c 	net->mtu = DEFAULT_MTU - 14;
net              2404 drivers/net/usb/hso.c 	net->tx_queue_len = 10;
net              2405 drivers/net/usb/hso.c 	net->ethtool_ops = &ops;
net              2453 drivers/net/usb/hso.c 	struct device *dev = &hso_net->net->dev;
net              2484 drivers/net/usb/hso.c 	struct net_device *net;
net              2494 drivers/net/usb/hso.c 	net = alloc_netdev(sizeof(struct hso_net), "hso%d", NET_NAME_UNKNOWN,
net              2496 drivers/net/usb/hso.c 	if (!net) {
net              2501 drivers/net/usb/hso.c 	hso_net = netdev_priv(net);
net              2504 drivers/net/usb/hso.c 	hso_net->net = net;
net              2519 drivers/net/usb/hso.c 	SET_NETDEV_DEV(net, &interface->dev);
net              2520 drivers/net/usb/hso.c 	SET_NETDEV_DEVTYPE(net, &hso_type);
net              2542 drivers/net/usb/hso.c 	result = register_netdev(net);
net              3075 drivers/net/usb/hso.c 							   hso_net->net);
net              3123 drivers/net/usb/hso.c 			netif_stop_queue(dev2net(network_table[i])->net);
net                43 drivers/net/usb/int51x1.c 		netdev_err(dev->net, "unexpected tiny rx frame\n");
net               115 drivers/net/usb/int51x1.c 		netdev_info(dev->net, "promiscuous mode enabled\n");
net               119 drivers/net/usb/int51x1.c 		netdev_dbg(dev->net, "receive all multicast enabled\n");
net               122 drivers/net/usb/int51x1.c 		netdev_dbg(dev->net, "receive own packets only\n");
net               149 drivers/net/usb/int51x1.c 	dev->net->hard_header_len += INT51X1_HEADER_SIZE;
net               150 drivers/net/usb/int51x1.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net               151 drivers/net/usb/int51x1.c 	dev->net->netdev_ops = &int51x1_netdev_ops;
net                90 drivers/net/usb/ipheth.c 	struct net_device *net;
net               191 drivers/net/usb/ipheth.c 		dev->net->stats.rx_length_errors++;
net               201 drivers/net/usb/ipheth.c 		dev->net->stats.rx_dropped++;
net               206 drivers/net/usb/ipheth.c 	skb->dev = dev->net;
net               207 drivers/net/usb/ipheth.c 	skb->protocol = eth_type_trans(skb, dev->net);
net               209 drivers/net/usb/ipheth.c 	dev->net->stats.rx_packets++;
net               210 drivers/net/usb/ipheth.c 	dev->net->stats.rx_bytes += len;
net               233 drivers/net/usb/ipheth.c 		netif_wake_queue(dev->net);
net               263 drivers/net/usb/ipheth.c 		netif_carrier_on(dev->net);
net               265 drivers/net/usb/ipheth.c 			netif_wake_queue(dev->net);
net               267 drivers/net/usb/ipheth.c 		netif_carrier_off(dev->net);
net               268 drivers/net/usb/ipheth.c 		netif_stop_queue(dev->net);
net               285 drivers/net/usb/ipheth.c 	struct net_device *net = dev->net;
net               306 drivers/net/usb/ipheth.c 		memcpy(net->dev_addr, dev->ctrl_buf, ETH_ALEN);
net               332 drivers/net/usb/ipheth.c static int ipheth_open(struct net_device *net)
net               334 drivers/net/usb/ipheth.c 	struct ipheth_device *dev = netdev_priv(net);
net               352 drivers/net/usb/ipheth.c static int ipheth_close(struct net_device *net)
net               354 drivers/net/usb/ipheth.c 	struct ipheth_device *dev = netdev_priv(net);
net               357 drivers/net/usb/ipheth.c 	netif_stop_queue(net);
net               361 drivers/net/usb/ipheth.c static int ipheth_tx(struct sk_buff *skb, struct net_device *net)
net               363 drivers/net/usb/ipheth.c 	struct ipheth_device *dev = netdev_priv(net);
net               370 drivers/net/usb/ipheth.c 		dev->net->stats.tx_dropped++;
net               386 drivers/net/usb/ipheth.c 	netif_stop_queue(net);
net               391 drivers/net/usb/ipheth.c 		dev->net->stats.tx_errors++;
net               393 drivers/net/usb/ipheth.c 		netif_wake_queue(net);
net               395 drivers/net/usb/ipheth.c 		dev->net->stats.tx_packets++;
net               396 drivers/net/usb/ipheth.c 		dev->net->stats.tx_bytes += skb->len;
net               403 drivers/net/usb/ipheth.c static void ipheth_tx_timeout(struct net_device *net)
net               405 drivers/net/usb/ipheth.c 	struct ipheth_device *dev = netdev_priv(net);
net               408 drivers/net/usb/ipheth.c 	dev->net->stats.tx_errors++;
net               412 drivers/net/usb/ipheth.c static u32 ipheth_ethtool_op_get_link(struct net_device *net)
net               414 drivers/net/usb/ipheth.c 	struct ipheth_device *dev = netdev_priv(net);
net               415 drivers/net/usb/ipheth.c 	return netif_carrier_ok(dev->net);
net               450 drivers/net/usb/ipheth.c 	dev->net = netdev;
net               526 drivers/net/usb/ipheth.c 		unregister_netdev(dev->net);
net               530 drivers/net/usb/ipheth.c 		free_netdev(dev->net);
net                62 drivers/net/usb/kalmia.c 	netdev_dbg(dev->net, "Sending init packet");
net                67 drivers/net/usb/kalmia.c 		netdev_err(dev->net,
net                73 drivers/net/usb/kalmia.c 		netdev_err(dev->net,
net                78 drivers/net/usb/kalmia.c 		netdev_dbg(dev->net, "Successfully sent init packet.");
net                85 drivers/net/usb/kalmia.c 		netdev_err(dev->net,
net                89 drivers/net/usb/kalmia.c 		netdev_err(dev->net, "Unexpected init result length: %i\n",
net               144 drivers/net/usb/kalmia.c 	dev->net->hard_header_len += KALMIA_HEADER_LENGTH;
net               152 drivers/net/usb/kalmia.c 	memcpy(dev->net->dev_addr, ethernet_addr, ETH_ALEN);
net               196 drivers/net/usb/kalmia.c 	netdev_dbg(dev->net, "Sending etherType: %02x%02x", ether_type_1,
net               215 drivers/net/usb/kalmia.c 	netdev_dbg(dev->net,
net               254 drivers/net/usb/kalmia.c 				netdev_dbg(dev->net,
net               260 drivers/net/usb/kalmia.c 				netdev_err(dev->net,
net               268 drivers/net/usb/kalmia.c 			netdev_dbg(dev->net,
net               284 drivers/net/usb/kalmia.c 			netdev_dbg(dev->net, "Correct package length #%i", i
net               292 drivers/net/usb/kalmia.c 				netdev_dbg(dev->net,
net               216 drivers/net/usb/kaweth.c 	struct net_device *net;
net               255 drivers/net/usb/kaweth.c 		netdev_dbg(kaweth->net, "in_interrupt()\n");
net               307 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "Setting URB size to %d\n", (unsigned)urb_size);
net               329 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "Set SOFS wait to %d\n", (unsigned)sofs_wait);
net               352 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "Set receive filter to %d\n",
net               402 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "High: %i, Low:%i\n", kaweth->firmware_buf[3],
net               405 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net,
net               408 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "Firmware length: %d\n", data_len);
net               457 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "kaweth_reset() returns %d.\n", result);
net               509 drivers/net/usb/kaweth.c 			netif_carrier_on(kaweth->net);
net               511 drivers/net/usb/kaweth.c 			netif_carrier_off(kaweth->net);
net               576 drivers/net/usb/kaweth.c 	struct net_device *net = kaweth->net;
net               587 drivers/net/usb/kaweth.c 		net->stats.rx_errors++;
net               602 drivers/net/usb/kaweth.c 		net->stats.rx_errors++;
net               607 drivers/net/usb/kaweth.c 		net->stats.rx_errors++;
net               620 drivers/net/usb/kaweth.c 			net->name, status, count, (int)pkt_len);
net               625 drivers/net/usb/kaweth.c 	if(kaweth->net && (count > 2)) {
net               648 drivers/net/usb/kaweth.c 		skb->protocol = eth_type_trans(skb, net);
net               652 drivers/net/usb/kaweth.c 		net->stats.rx_packets++;
net               653 drivers/net/usb/kaweth.c 		net->stats.rx_bytes += pkt_len;
net               662 drivers/net/usb/kaweth.c static int kaweth_open(struct net_device *net)
net               664 drivers/net/usb/kaweth.c 	struct kaweth_device *kaweth = netdev_priv(net);
net               695 drivers/net/usb/kaweth.c 	netif_start_queue(net);
net               725 drivers/net/usb/kaweth.c static int kaweth_close(struct net_device *net)
net               727 drivers/net/usb/kaweth.c 	struct kaweth_device *kaweth = netdev_priv(net);
net               729 drivers/net/usb/kaweth.c 	netif_stop_queue(net);
net               766 drivers/net/usb/kaweth.c 				kaweth->net->name, status);
net               768 drivers/net/usb/kaweth.c 	netif_wake_queue(kaweth->net);
net               776 drivers/net/usb/kaweth.c 					   struct net_device *net)
net               778 drivers/net/usb/kaweth.c 	struct kaweth_device *kaweth = netdev_priv(net);
net               786 drivers/net/usb/kaweth.c 	netif_stop_queue(net);
net               793 drivers/net/usb/kaweth.c 		net->stats.tx_errors++;
net               794 drivers/net/usb/kaweth.c 		netif_start_queue(net);
net               815 drivers/net/usb/kaweth.c 		dev_warn(&net->dev, "kaweth failed tx_urb %d\n", res);
net               817 drivers/net/usb/kaweth.c 		net->stats.tx_errors++;
net               819 drivers/net/usb/kaweth.c 		netif_start_queue(net);
net               824 drivers/net/usb/kaweth.c 		net->stats.tx_packets++;
net               825 drivers/net/usb/kaweth.c 		net->stats.tx_bytes += skb->len;
net               836 drivers/net/usb/kaweth.c static void kaweth_set_rx_mode(struct net_device *net)
net               838 drivers/net/usb/kaweth.c 	struct kaweth_device *kaweth = netdev_priv(net);
net               844 drivers/net/usb/kaweth.c 	netdev_dbg(net, "Setting Rx mode to %d\n", packet_filter_bitmap);
net               846 drivers/net/usb/kaweth.c 	netif_stop_queue(net);
net               848 drivers/net/usb/kaweth.c 	if (net->flags & IFF_PROMISC) {
net               851 drivers/net/usb/kaweth.c 	else if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI)) {
net               856 drivers/net/usb/kaweth.c 	netif_wake_queue(net);
net               889 drivers/net/usb/kaweth.c 		netdev_dbg(kaweth->net, "Set Rx mode to %d\n",
net               897 drivers/net/usb/kaweth.c static void kaweth_tx_timeout(struct net_device *net)
net               899 drivers/net/usb/kaweth.c 	struct kaweth_device *kaweth = netdev_priv(net);
net               901 drivers/net/usb/kaweth.c 	dev_warn(&net->dev, "%s: Tx timed out. Resetting.\n", net->name);
net               902 drivers/net/usb/kaweth.c 	net->stats.tx_errors++;
net               903 drivers/net/usb/kaweth.c 	netif_trans_update(net);
net               990 drivers/net/usb/kaweth.c 	kaweth->net = netdev;
net              1149 drivers/net/usb/kaweth.c 		 kaweth->net->name);
net              1183 drivers/net/usb/kaweth.c 	netdev = kaweth->net;
net              1185 drivers/net/usb/kaweth.c 	netdev_dbg(kaweth->net, "Unregistering net device\n");
net               364 drivers/net/usb/lan78xx.c 	struct net_device	*net;
net               448 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net,
net               474 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net,
net               514 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net,
net               662 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net, "EEPROM read operation timeout");
net               686 drivers/net/usb/lan78xx.c 	netdev_warn(dev->net, "EEPROM is busy");
net               844 drivers/net/usb/lan78xx.c 				netdev_warn(dev->net,
net               865 drivers/net/usb/lan78xx.c 				netdev_warn(dev->net,
net               898 drivers/net/usb/lan78xx.c 				netdev_warn(dev->net,
net               922 drivers/net/usb/lan78xx.c 				netdev_warn(dev->net,
net               969 drivers/net/usb/lan78xx.c 	netdev_warn(dev->net, "lan78xx_dataport_wait_not_busy timed out");
net              1047 drivers/net/usb/lan78xx.c 	netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n",
net              1086 drivers/net/usb/lan78xx.c 	if (dev->net->flags & IFF_PROMISC) {
net              1087 drivers/net/usb/lan78xx.c 		netif_dbg(dev, drv, dev->net, "promiscuous mode enabled");
net              1090 drivers/net/usb/lan78xx.c 		if (dev->net->flags & IFF_ALLMULTI) {
net              1091 drivers/net/usb/lan78xx.c 			netif_dbg(dev, drv, dev->net,
net              1097 drivers/net/usb/lan78xx.c 	if (netdev_mc_count(dev->net)) {
net              1101 drivers/net/usb/lan78xx.c 		netif_dbg(dev, drv, dev->net, "receive multicast hash filter");
net              1150 drivers/net/usb/lan78xx.c 	netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s",
net              1164 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = dev->net->phydev;
net              1221 drivers/net/usb/lan78xx.c 		netif_dbg(dev, link, dev->net,
net              1249 drivers/net/usb/lan78xx.c 		netdev_err(dev->net, "kevent %d may have been dropped\n", work);
net              1257 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net,
net              1265 drivers/net/usb/lan78xx.c 		netif_dbg(dev, link, dev->net, "PHY INTR: 0x%08x\n", intdata);
net              1274 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net,
net              1408 drivers/net/usb/lan78xx.c static int lan78xx_get_eee(struct net_device *net, struct ethtool_eee *edata)
net              1410 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1411 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = net->phydev;
net              1446 drivers/net/usb/lan78xx.c static int lan78xx_set_eee(struct net_device *net, struct ethtool_eee *edata)
net              1448 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1461 drivers/net/usb/lan78xx.c 		phy_ethtool_set_eee(net->phydev, edata);
net              1476 drivers/net/usb/lan78xx.c static u32 lan78xx_get_link(struct net_device *net)
net              1478 drivers/net/usb/lan78xx.c 	phy_read_status(net->phydev);
net              1480 drivers/net/usb/lan78xx.c 	return net->phydev->link;
net              1483 drivers/net/usb/lan78xx.c static void lan78xx_get_drvinfo(struct net_device *net,
net              1486 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1492 drivers/net/usb/lan78xx.c static u32 lan78xx_get_msglevel(struct net_device *net)
net              1494 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1499 drivers/net/usb/lan78xx.c static void lan78xx_set_msglevel(struct net_device *net, u32 level)
net              1501 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1506 drivers/net/usb/lan78xx.c static int lan78xx_get_link_ksettings(struct net_device *net,
net              1509 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1510 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = net->phydev;
net              1524 drivers/net/usb/lan78xx.c static int lan78xx_set_link_ksettings(struct net_device *net,
net              1527 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1528 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = net->phydev;
net              1552 drivers/net/usb/lan78xx.c static void lan78xx_get_pause(struct net_device *net,
net              1555 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1556 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = net->phydev;
net              1570 drivers/net/usb/lan78xx.c static int lan78xx_set_pause(struct net_device *net,
net              1573 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              1574 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = net->phydev;
net              1694 drivers/net/usb/lan78xx.c 			netif_dbg(dev, ifup, dev->net,
net              1702 drivers/net/usb/lan78xx.c 			netif_dbg(dev, ifup, dev->net,
net              1707 drivers/net/usb/lan78xx.c 			netif_dbg(dev, ifup, dev->net,
net              1722 drivers/net/usb/lan78xx.c 	ether_addr_copy(dev->net->dev_addr, addr);
net              1804 drivers/net/usb/lan78xx.c 		netdev_err(dev->net, "can't allocate MDIO bus\n");
net              1833 drivers/net/usb/lan78xx.c 		netdev_err(dev->net, "can't register MDIO bus\n");
net              1837 drivers/net/usb/lan78xx.c 	netdev_dbg(dev->net, "registered mdiobus bus %s\n", dev->mdiobus->id);
net              1850 drivers/net/usb/lan78xx.c static void lan78xx_link_status_change(struct net_device *net)
net              1852 drivers/net/usb/lan78xx.c 	struct phy_device *phydev = net->phydev;
net              2057 drivers/net/usb/lan78xx.c 		netdev_dbg(dev->net, "PHY Not Found!! Registering Fixed PHY\n");
net              2060 drivers/net/usb/lan78xx.c 			netdev_err(dev->net, "No PHY/fixed_PHY found\n");
net              2063 drivers/net/usb/lan78xx.c 		netdev_dbg(dev->net, "Registered FIXED PHY\n");
net              2074 drivers/net/usb/lan78xx.c 			netdev_err(dev->net, "no PHY driver found\n");
net              2082 drivers/net/usb/lan78xx.c 			netdev_err(dev->net, "Failed to register fixup for PHY_KSZ9031RNX\n");
net              2089 drivers/net/usb/lan78xx.c 			netdev_err(dev->net, "Failed to register fixup for PHY_LAN8835\n");
net              2110 drivers/net/usb/lan78xx.c 			netdev_err(dev->net, "lan7801: PHY Init Failed");
net              2119 drivers/net/usb/lan78xx.c 			netdev_err(dev->net, "no PHY found\n");
net              2127 drivers/net/usb/lan78xx.c 		netdev_err(dev->net, "Unknown CHIP ID found\n");
net              2136 drivers/net/usb/lan78xx.c 	netdev_dbg(dev->net, "phydev->irq = %d\n", phydev->irq);
net              2141 drivers/net/usb/lan78xx.c 	ret = phy_connect_direct(dev->net, phydev,
net              2145 drivers/net/usb/lan78xx.c 		netdev_err(dev->net, "can't attach PHY to %s\n",
net              2266 drivers/net/usb/lan78xx.c 			netdev_dbg(dev->net, "unlink urb err, %d\n", ret);
net              2296 drivers/net/usb/lan78xx.c 			if (netif_running(dev->net)) {
net              2478 drivers/net/usb/lan78xx.c 			netdev_warn(dev->net,
net              2544 drivers/net/usb/lan78xx.c 	lan78xx_set_features(dev->net, dev->net->features);
net              2546 drivers/net/usb/lan78xx.c 	lan78xx_set_multicast(dev->net);
net              2558 drivers/net/usb/lan78xx.c 			netdev_warn(dev->net, "timeout waiting for PHY Reset");
net              2572 drivers/net/usb/lan78xx.c 			netdev_info(dev->net, "No External EEPROM. Setting MAC Speed\n");
net              2587 drivers/net/usb/lan78xx.c 					      dev->net->mtu + VLAN_ETH_HLEN);
net              2626 drivers/net/usb/lan78xx.c static int lan78xx_open(struct net_device *net)
net              2628 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              2635 drivers/net/usb/lan78xx.c 	phy_start(net->phydev);
net              2637 drivers/net/usb/lan78xx.c 	netif_dbg(dev, ifup, dev->net, "phy initialised successfully");
net              2643 drivers/net/usb/lan78xx.c 			netif_err(dev, ifup, dev->net,
net              2653 drivers/net/usb/lan78xx.c 	netif_start_queue(net);
net              2683 drivers/net/usb/lan78xx.c 		netif_dbg(dev, ifdown, dev->net,
net              2691 drivers/net/usb/lan78xx.c static int lan78xx_stop(struct net_device *net)
net              2693 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              2698 drivers/net/usb/lan78xx.c 	if (net->phydev)
net              2699 drivers/net/usb/lan78xx.c 		phy_stop(net->phydev);
net              2702 drivers/net/usb/lan78xx.c 	netif_stop_queue(net);
net              2704 drivers/net/usb/lan78xx.c 	netif_info(dev, ifdown, dev->net,
net              2706 drivers/net/usb/lan78xx.c 		   net->stats.rx_packets, net->stats.tx_packets,
net              2707 drivers/net/usb/lan78xx.c 		   net->stats.rx_errors, net->stats.tx_errors);
net              2800 drivers/net/usb/lan78xx.c 		dev->net->stats.tx_packets += entry->num_of_packet;
net              2801 drivers/net/usb/lan78xx.c 		dev->net->stats.tx_bytes += entry->length;
net              2803 drivers/net/usb/lan78xx.c 		dev->net->stats.tx_errors++;
net              2818 drivers/net/usb/lan78xx.c 			netif_stop_queue(dev->net);
net              2821 drivers/net/usb/lan78xx.c 			netif_dbg(dev, tx_err, dev->net,
net              2842 drivers/net/usb/lan78xx.c lan78xx_start_xmit(struct sk_buff *skb, struct net_device *net)
net              2844 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              2858 drivers/net/usb/lan78xx.c 			netif_stop_queue(net);
net              2860 drivers/net/usb/lan78xx.c 		netif_dbg(dev, tx_err, dev->net,
net              2862 drivers/net/usb/lan78xx.c 		dev->net->stats.tx_errors++;
net              2863 drivers/net/usb/lan78xx.c 		dev->net->stats.tx_dropped++;
net              2938 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net, "lan78xx_get_endpoints failed: %d\n",
net              2947 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net, "Unable to allocate lan78xx_priv");
net              2963 drivers/net/usb/lan78xx.c 	dev->net->features = 0;
net              2966 drivers/net/usb/lan78xx.c 		dev->net->features |= NETIF_F_HW_CSUM;
net              2969 drivers/net/usb/lan78xx.c 		dev->net->features |= NETIF_F_RXCSUM;
net              2972 drivers/net/usb/lan78xx.c 		dev->net->features |= NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_SG;
net              2975 drivers/net/usb/lan78xx.c 		dev->net->features |= NETIF_F_HW_VLAN_CTAG_RX;
net              2978 drivers/net/usb/lan78xx.c 		dev->net->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
net              2980 drivers/net/usb/lan78xx.c 	dev->net->hw_features = dev->net->features;
net              2984 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net,
net              2989 drivers/net/usb/lan78xx.c 	dev->net->hard_header_len += TX_OVERHEAD;
net              2990 drivers/net/usb/lan78xx.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net              2995 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net, "Registers INIT FAILED....");
net              3001 drivers/net/usb/lan78xx.c 		netdev_warn(dev->net, "MDIO INIT FAILED.....");
net              3005 drivers/net/usb/lan78xx.c 	dev->net->flags |= IFF_MULTICAST;
net              3015 drivers/net/usb/lan78xx.c 	netdev_warn(dev->net, "Bind routine FAILED");
net              3033 drivers/net/usb/lan78xx.c 		netif_dbg(dev, ifdown, dev->net, "free pdata");
net              3047 drivers/net/usb/lan78xx.c 	if (!(dev->net->features & NETIF_F_RXCSUM) ||
net              3050 drivers/net/usb/lan78xx.c 	     !(dev->net->features & NETIF_F_HW_VLAN_CTAG_RX))) {
net              3062 drivers/net/usb/lan78xx.c 	if ((dev->net->features & NETIF_F_HW_VLAN_CTAG_RX) &&
net              3077 drivers/net/usb/lan78xx.c 	dev->net->stats.rx_packets++;
net              3078 drivers/net/usb/lan78xx.c 	dev->net->stats.rx_bytes += skb->len;
net              3080 drivers/net/usb/lan78xx.c 	skb->protocol = eth_type_trans(skb, dev->net);
net              3082 drivers/net/usb/lan78xx.c 	netif_dbg(dev, rx_status, dev->net, "< rx, len %zu, type 0x%x\n",
net              3091 drivers/net/usb/lan78xx.c 		netif_dbg(dev, rx_err, dev->net,
net              3097 drivers/net/usb/lan78xx.c 	if (skb->len < dev->net->hard_header_len)
net              3122 drivers/net/usb/lan78xx.c 			netif_dbg(dev, rx_err, dev->net,
net              3140 drivers/net/usb/lan78xx.c 				netdev_warn(dev->net, "Error allocating skb");
net              3170 drivers/net/usb/lan78xx.c 		dev->net->stats.rx_errors++;
net              3179 drivers/net/usb/lan78xx.c 	netif_dbg(dev, rx_err, dev->net, "drop\n");
net              3180 drivers/net/usb/lan78xx.c 	dev->net->stats.rx_errors++;
net              3195 drivers/net/usb/lan78xx.c 	skb = netdev_alloc_skb_ip_align(dev->net, size);
net              3211 drivers/net/usb/lan78xx.c 	if (netif_device_present(dev->net) &&
net              3212 drivers/net/usb/lan78xx.c 	    netif_running(dev->net) &&
net              3224 drivers/net/usb/lan78xx.c 			netif_dbg(dev, ifdown, dev->net, "device gone\n");
net              3225 drivers/net/usb/lan78xx.c 			netif_device_detach(dev->net);
net              3231 drivers/net/usb/lan78xx.c 			netif_dbg(dev, rx_err, dev->net,
net              3236 drivers/net/usb/lan78xx.c 		netif_dbg(dev, ifdown, dev->net, "rx: stopped\n");
net              3261 drivers/net/usb/lan78xx.c 		if (skb->len < dev->net->hard_header_len) {
net              3263 drivers/net/usb/lan78xx.c 			dev->net->stats.rx_errors++;
net              3264 drivers/net/usb/lan78xx.c 			dev->net->stats.rx_length_errors++;
net              3265 drivers/net/usb/lan78xx.c 			netif_dbg(dev, rx_err, dev->net,
net              3271 drivers/net/usb/lan78xx.c 		dev->net->stats.rx_errors++;
net              3276 drivers/net/usb/lan78xx.c 		netif_dbg(dev, ifdown, dev->net,
net              3285 drivers/net/usb/lan78xx.c 		dev->net->stats.rx_errors++;
net              3293 drivers/net/usb/lan78xx.c 		dev->net->stats.rx_over_errors++;
net              3298 drivers/net/usb/lan78xx.c 		dev->net->stats.rx_errors++;
net              3299 drivers/net/usb/lan78xx.c 		netif_dbg(dev, rx_err, dev->net, "rx status %d\n", urb_status);
net              3306 drivers/net/usb/lan78xx.c 		if (netif_running(dev->net) &&
net              3314 drivers/net/usb/lan78xx.c 	netif_dbg(dev, rx_err, dev->net, "no read resubmitted\n");
net              3403 drivers/net/usb/lan78xx.c 		netif_stop_queue(dev->net);
net              3406 drivers/net/usb/lan78xx.c 		netdev_dbg(dev->net, "Delaying transmission for resumption\n");
net              3414 drivers/net/usb/lan78xx.c 		netif_trans_update(dev->net);
net              3417 drivers/net/usb/lan78xx.c 			netif_stop_queue(dev->net);
net              3420 drivers/net/usb/lan78xx.c 		netif_stop_queue(dev->net);
net              3426 drivers/net/usb/lan78xx.c 		netif_dbg(dev, tx_err, dev->net,
net              3434 drivers/net/usb/lan78xx.c 		netif_dbg(dev, tx_err, dev->net, "drop, code %d\n", ret);
net              3436 drivers/net/usb/lan78xx.c 		dev->net->stats.tx_dropped++;
net              3441 drivers/net/usb/lan78xx.c 		netif_dbg(dev, tx_queued, dev->net,
net              3464 drivers/net/usb/lan78xx.c 		netif_wake_queue(dev->net);
net              3489 drivers/net/usb/lan78xx.c 			netdev_dbg(dev->net, "skb state %d\n", entry->state);
net              3494 drivers/net/usb/lan78xx.c 	if (netif_device_present(dev->net) && netif_running(dev->net)) {
net              3530 drivers/net/usb/lan78xx.c 				netdev_err(dev->net,
net              3536 drivers/net/usb/lan78xx.c 				netif_wake_queue(dev->net);
net              3551 drivers/net/usb/lan78xx.c 				netdev_err(dev->net,
net              3570 drivers/net/usb/lan78xx.c 			netdev_info(dev->net, "link reset failed (%d)\n",
net              3603 drivers/net/usb/lan78xx.c 		netif_dbg(dev, ifdown, dev->net,
net              3611 drivers/net/usb/lan78xx.c 		netdev_dbg(dev->net, "intr status %d\n", status);
net              3615 drivers/net/usb/lan78xx.c 	if (!netif_running(dev->net))
net              3621 drivers/net/usb/lan78xx.c 		netif_err(dev, timer, dev->net,
net              3629 drivers/net/usb/lan78xx.c 	struct net_device *net;
net              3638 drivers/net/usb/lan78xx.c 	net = dev->net;
net              3639 drivers/net/usb/lan78xx.c 	phydev = net->phydev;
net              3644 drivers/net/usb/lan78xx.c 	phy_disconnect(net->phydev);
net              3649 drivers/net/usb/lan78xx.c 	unregister_netdev(net);
net              3660 drivers/net/usb/lan78xx.c 	free_netdev(net);
net              3664 drivers/net/usb/lan78xx.c static void lan78xx_tx_timeout(struct net_device *net)
net              3666 drivers/net/usb/lan78xx.c 	struct lan78xx_net *dev = netdev_priv(net);
net              3735 drivers/net/usb/lan78xx.c 	dev->net = netdev;
net              4039 drivers/net/usb/lan78xx.c 		netif_device_detach(dev->net);
net              4044 drivers/net/usb/lan78xx.c 		netif_device_attach(dev->net);
net              4130 drivers/net/usb/lan78xx.c 				netif_trans_update(dev->net);
net              4140 drivers/net/usb/lan78xx.c 				netif_start_queue(dev->net);
net              4175 drivers/net/usb/lan78xx.c 	phy_start(dev->net->phydev);
net                79 drivers/net/usb/lg-vl600.c 	dev->net->flags |= IFF_NOARP;
net                81 drivers/net/usb/lg-vl600.c 	dev->net->flags |= IFF_MULTICAST;
net               118 drivers/net/usb/lg-vl600.c 			netif_err(dev, ifup, dev->net, "Fragment too long\n");
net               119 drivers/net/usb/lg-vl600.c 			dev->net->stats.rx_length_errors++;
net               126 drivers/net/usb/lg-vl600.c 		netif_err(dev, ifup, dev->net, "Frame too short\n");
net               127 drivers/net/usb/lg-vl600.c 		dev->net->stats.rx_length_errors++;
net               147 drivers/net/usb/lg-vl600.c 			dev->net->stats.rx_errors++;
net               158 drivers/net/usb/lg-vl600.c 			netif_err(dev, ifup, dev->net, "Packet too short\n");
net               165 drivers/net/usb/lg-vl600.c 			netif_err(dev, ifup, dev->net,
net               187 drivers/net/usb/lg-vl600.c 			memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN);
net               226 drivers/net/usb/lg-vl600.c 	dev->net->stats.rx_errors++;
net               319 drivers/net/usb/mcs7830.c static int mcs7830_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
net               321 drivers/net/usb/mcs7830.c 	struct usbnet *dev = netdev_priv(net);
net               346 drivers/net/usb/mcs7830.c static void mcs7830_data_set_multicast(struct net_device *net)
net               348 drivers/net/usb/mcs7830.c 	struct usbnet *dev = netdev_priv(net);
net               358 drivers/net/usb/mcs7830.c 	if (net->flags & IFF_PROMISC) {
net               360 drivers/net/usb/mcs7830.c 	} else if (net->flags & IFF_ALLMULTI ||
net               361 drivers/net/usb/mcs7830.c 		   netdev_mc_count(net) > MCS7830_MAX_MCAST) {
net               363 drivers/net/usb/mcs7830.c 	} else if (netdev_mc_empty(net)) {
net               374 drivers/net/usb/mcs7830.c 		netdev_for_each_mc_addr(ha, net) {
net               386 drivers/net/usb/mcs7830.c 	ret = mcs7830_hif_set_mac_address(dev, dev->net->dev_addr);
net               409 drivers/net/usb/mcs7830.c static void mcs7830_set_multicast(struct net_device *net)
net               411 drivers/net/usb/mcs7830.c 	struct usbnet *dev = netdev_priv(net);
net               413 drivers/net/usb/mcs7830.c 	mcs7830_data_set_multicast(net);
net               419 drivers/net/usb/mcs7830.c static int mcs7830_get_regs_len(struct net_device *net)
net               421 drivers/net/usb/mcs7830.c 	struct usbnet *dev = netdev_priv(net);
net               432 drivers/net/usb/mcs7830.c static void mcs7830_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *drvinfo)
net               434 drivers/net/usb/mcs7830.c 	usbnet_get_drvinfo(net, drvinfo);
net               437 drivers/net/usb/mcs7830.c static void mcs7830_get_regs(struct net_device *net, struct ethtool_regs *regs, void *data)
net               439 drivers/net/usb/mcs7830.c 	struct usbnet *dev = netdev_priv(net);
net               474 drivers/net/usb/mcs7830.c 	struct net_device *net = dev->net;
net               481 drivers/net/usb/mcs7830.c 		ret = mcs7830_hif_get_mac_address(dev, net->dev_addr);
net               487 drivers/net/usb/mcs7830.c 	mcs7830_data_set_multicast(net);
net               493 drivers/net/usb/mcs7830.c 	net->ethtool_ops = &mcs7830_ethtool_ops;
net               494 drivers/net/usb/mcs7830.c 	net->netdev_ops = &mcs7830_netdev_ops;
net               501 drivers/net/usb/mcs7830.c 	dev->mii.dev = net;
net               504 drivers/net/usb/mcs7830.c 	dev->mii.phy_id = *((u8 *) net->dev_addr + 1);
net               517 drivers/net/usb/mcs7830.c 	if (skb->len < dev->net->hard_header_len) {
net               530 drivers/net/usb/mcs7830.c 		dev->net->stats.rx_errors++;
net               535 drivers/net/usb/mcs7830.c 			dev->net->stats.rx_length_errors++;
net               537 drivers/net/usb/mcs7830.c 			dev->net->stats.rx_frame_errors++;
net               539 drivers/net/usb/mcs7830.c 			dev->net->stats.rx_crc_errors++;
net               554 drivers/net/usb/mcs7830.c 	link_changed = netif_carrier_ok(dev->net) != link;
net               557 drivers/net/usb/mcs7830.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
net               141 drivers/net/usb/net1080.c 	netdev_dbg(dev->net, "registers:\n");
net               153 drivers/net/usb/net1080.c 			netdev_dbg(dev->net, "reg [0x%x] ==> error %d\n",
net               156 drivers/net/usb/net1080.c 			netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp);
net               184 drivers/net/usb/net1080.c 	netif_dbg(dev, link, dev->net,
net               227 drivers/net/usb/net1080.c 	netif_dbg(dev, link, dev->net,
net               269 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "can't read %s-%s status: %d\n",
net               277 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "can't read USBCTL, %d\n", retval);
net               287 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "can't read TTL, %d\n", retval);
net               294 drivers/net/usb/net1080.c 	netdev_dbg(dev->net, "assigned TTL, %d ms\n", NC_READ_TTL_MS);
net               296 drivers/net/usb/net1080.c 	netif_info(dev, link, dev->net, "port %c, peer %sconnected\n",
net               314 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "net1080_check_conn read - %d\n", retval);
net               335 drivers/net/usb/net1080.c 	netif_dbg(dev, rx_err, dev->net,
net               347 drivers/net/usb/net1080.c 	if (skb->len < dev->net->hard_header_len)
net               351 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "rx framesize %d range %d..%d mtu %d\n",
net               352 drivers/net/usb/net1080.c 			   skb->len, dev->net->hard_header_len, dev->hard_mtu,
net               353 drivers/net/usb/net1080.c 			   dev->net->mtu);
net               354 drivers/net/usb/net1080.c 		dev->net->stats.rx_frame_errors++;
net               363 drivers/net/usb/net1080.c 		dev->net->stats.rx_frame_errors++;
net               364 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "packet too big, %d\n", packet_len);
net               368 drivers/net/usb/net1080.c 		dev->net->stats.rx_frame_errors++;
net               369 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "header too short, %d\n", hdr_len);
net               374 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "header OOB, %d bytes\n", hdr_len - MIN_HEADER);
net               386 drivers/net/usb/net1080.c 			dev->net->stats.rx_frame_errors++;
net               387 drivers/net/usb/net1080.c 			netdev_dbg(dev->net, "bad pad\n");
net               393 drivers/net/usb/net1080.c 		dev->net->stats.rx_frame_errors++;
net               394 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "bad packet len %d (expected %d)\n",
net               400 drivers/net/usb/net1080.c 		dev->net->stats.rx_fifo_errors++;
net               401 drivers/net/usb/net1080.c 		netdev_dbg(dev->net, "(2+ dropped) rx packet_id mismatch 0x%x 0x%x\n",
net               407 drivers/net/usb/net1080.c 	netdev_dbg(dev->net, "frame <rx h %d p %d id %d\n", header->hdr_len,
net               468 drivers/net/usb/net1080.c 	netdev_dbg(dev->net, "frame >tx h %d p %d id %d\n",
net               481 drivers/net/usb/net1080.c 	dev->net->hard_header_len += extra;
net               482 drivers/net/usb/net1080.c 	dev->rx_urb_size = dev->net->hard_header_len + dev->net->mtu;
net               137 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, drv, pegasus->net,
net               159 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, drv, pegasus->net,
net               178 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, drv, pegasus->net,
net               212 drivers/net/usb/pegasus.c 			netif_device_detach(pegasus->net);
net               213 drivers/net/usb/pegasus.c 		netif_err(pegasus, drv, pegasus->net,
net               249 drivers/net/usb/pegasus.c 	netif_dbg(p, drv, p->net, "%s failed\n", __func__);
net               308 drivers/net/usb/pegasus.c 	netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__);
net               357 drivers/net/usb/pegasus.c 	netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__);
net               383 drivers/net/usb/pegasus.c 	memcpy(pegasus->net->dev_addr, node_id, sizeof(node_id));
net               460 drivers/net/usb/pegasus.c 	struct net_device *net;
net               469 drivers/net/usb/pegasus.c 	net = pegasus->net;
net               470 drivers/net/usb/pegasus.c 	if (!netif_device_present(net) || !netif_running(net))
net               477 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, rx_err, net, "reset MAC\n");
net               482 drivers/net/usb/pegasus.c 		netif_warn(pegasus, rx_err, net, "no rx stall recovery\n");
net               487 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifdown, net, "rx unlink, %d\n", status);
net               490 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, rx_err, net, "RX status %d\n", status);
net               499 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, rx_err, net,
net               501 drivers/net/usb/pegasus.c 		net->stats.rx_errors++;
net               503 drivers/net/usb/pegasus.c 			net->stats.rx_length_errors++;
net               505 drivers/net/usb/pegasus.c 			net->stats.rx_crc_errors++;
net               507 drivers/net/usb/pegasus.c 			net->stats.rx_frame_errors++;
net               533 drivers/net/usb/pegasus.c 	pegasus->rx_skb->protocol = eth_type_trans(pegasus->rx_skb, net);
net               535 drivers/net/usb/pegasus.c 	net->stats.rx_packets++;
net               536 drivers/net/usb/pegasus.c 	net->stats.rx_bytes += pkt_len;
net               541 drivers/net/usb/pegasus.c 	pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, PEGASUS_MTU,
net               553 drivers/net/usb/pegasus.c 		netif_device_detach(pegasus->net);
net               580 drivers/net/usb/pegasus.c 		pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net,
net               584 drivers/net/usb/pegasus.c 		netif_warn(pegasus, rx_err, pegasus->net, "low on memory\n");
net               595 drivers/net/usb/pegasus.c 		netif_device_detach(pegasus->net);
net               607 drivers/net/usb/pegasus.c 	struct net_device *net;
net               613 drivers/net/usb/pegasus.c 	net = pegasus->net;
net               615 drivers/net/usb/pegasus.c 	if (!netif_device_present(net) || !netif_running(net))
net               621 drivers/net/usb/pegasus.c 		netif_stop_queue(net);
net               622 drivers/net/usb/pegasus.c 		netif_warn(pegasus, tx_err, net, "no tx stall recovery\n");
net               627 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifdown, net, "tx unlink, %d\n", status);
net               630 drivers/net/usb/pegasus.c 		netif_info(pegasus, tx_err, net, "TX status %d\n", status);
net               636 drivers/net/usb/pegasus.c 	netif_trans_update(net); /* prevent tx timeout */
net               637 drivers/net/usb/pegasus.c 	netif_wake_queue(net);
net               643 drivers/net/usb/pegasus.c 	struct net_device *net;
net               648 drivers/net/usb/pegasus.c 	net = pegasus->net;
net               661 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, timer, net, "intr status %d\n", status);
net               670 drivers/net/usb/pegasus.c 			net->stats.tx_errors++;
net               672 drivers/net/usb/pegasus.c 				net->stats.tx_fifo_errors++;
net               674 drivers/net/usb/pegasus.c 				net->stats.tx_aborted_errors++;
net               676 drivers/net/usb/pegasus.c 				net->stats.tx_window_errors++;
net               685 drivers/net/usb/pegasus.c 		net->stats.rx_missed_errors += ((d[3] & 0x7f) << 8) | d[4];
net               690 drivers/net/usb/pegasus.c 		netif_device_detach(pegasus->net);
net               692 drivers/net/usb/pegasus.c 		netif_err(pegasus, timer, net,
net               696 drivers/net/usb/pegasus.c static void pegasus_tx_timeout(struct net_device *net)
net               698 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net               699 drivers/net/usb/pegasus.c 	netif_warn(pegasus, timer, net, "tx timeout\n");
net               701 drivers/net/usb/pegasus.c 	net->stats.tx_errors++;
net               705 drivers/net/usb/pegasus.c 					    struct net_device *net)
net               707 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net               712 drivers/net/usb/pegasus.c 	netif_stop_queue(net);
net               721 drivers/net/usb/pegasus.c 		netif_warn(pegasus, tx_err, net, "fail tx, %d\n", res);
net               728 drivers/net/usb/pegasus.c 			netif_device_detach(pegasus->net);
net               731 drivers/net/usb/pegasus.c 			net->stats.tx_errors++;
net               732 drivers/net/usb/pegasus.c 			netif_start_queue(net);
net               735 drivers/net/usb/pegasus.c 		net->stats.tx_packets++;
net               736 drivers/net/usb/pegasus.c 		net->stats.tx_bytes += skb->len;
net               759 drivers/net/usb/pegasus.c 			netif_info(pegasus, timer, pegasus->net,
net               772 drivers/net/usb/pegasus.c static void set_carrier(struct net_device *net)
net               774 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net               781 drivers/net/usb/pegasus.c 		netif_carrier_on(net);
net               783 drivers/net/usb/pegasus.c 		netif_carrier_off(net);
net               823 drivers/net/usb/pegasus.c static int pegasus_open(struct net_device *net)
net               825 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net               829 drivers/net/usb/pegasus.c 		pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net,
net               835 drivers/net/usb/pegasus.c 	res = set_registers(pegasus, EthID, 6, net->dev_addr);
net               843 drivers/net/usb/pegasus.c 			netif_device_detach(pegasus->net);
net               844 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifup, net, "failed rx_urb, %d\n", res);
net               854 drivers/net/usb/pegasus.c 			netif_device_detach(pegasus->net);
net               855 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifup, net, "failed intr_urb, %d\n", res);
net               859 drivers/net/usb/pegasus.c 	res = enable_net_traffic(net, pegasus->usb);
net               861 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, ifup, net,
net               868 drivers/net/usb/pegasus.c 	set_carrier(net);
net               869 drivers/net/usb/pegasus.c 	netif_start_queue(net);
net               870 drivers/net/usb/pegasus.c 	netif_dbg(pegasus, ifup, net, "open\n");
net               876 drivers/net/usb/pegasus.c static int pegasus_close(struct net_device *net)
net               878 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net               880 drivers/net/usb/pegasus.c 	netif_stop_queue(net);
net              1002 drivers/net/usb/pegasus.c static int pegasus_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
net              1005 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net              1028 drivers/net/usb/pegasus.c static void pegasus_set_multicast(struct net_device *net)
net              1030 drivers/net/usb/pegasus.c 	pegasus_t *pegasus = netdev_priv(net);
net              1032 drivers/net/usb/pegasus.c 	if (net->flags & IFF_PROMISC) {
net              1034 drivers/net/usb/pegasus.c 		netif_info(pegasus, link, net, "Promiscuous mode enabled\n");
net              1035 drivers/net/usb/pegasus.c 	} else if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI)) {
net              1038 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, link, net, "set allmulti\n");
net              1100 drivers/net/usb/pegasus.c 	set_carrier(pegasus->net);
net              1139 drivers/net/usb/pegasus.c 	struct net_device *net;
net              1155 drivers/net/usb/pegasus.c 	net = alloc_etherdev(sizeof(struct pegasus));
net              1156 drivers/net/usb/pegasus.c 	if (!net)
net              1159 drivers/net/usb/pegasus.c 	pegasus = netdev_priv(net);
net              1174 drivers/net/usb/pegasus.c 	pegasus->net = net;
net              1177 drivers/net/usb/pegasus.c 	net->watchdog_timeo = PEGASUS_TX_TIMEOUT;
net              1178 drivers/net/usb/pegasus.c 	net->netdev_ops = &pegasus_netdev_ops;
net              1179 drivers/net/usb/pegasus.c 	net->ethtool_ops = &ops;
net              1180 drivers/net/usb/pegasus.c 	pegasus->mii.dev = net;
net              1207 drivers/net/usb/pegasus.c 	SET_NETDEV_DEV(net, &intf->dev);
net              1208 drivers/net/usb/pegasus.c 	pegasus_reset_wol(net);
net              1209 drivers/net/usb/pegasus.c 	res = register_netdev(net);
net              1214 drivers/net/usb/pegasus.c 	dev_info(&intf->dev, "%s, %s, %pM\n", net->name,
net              1215 drivers/net/usb/pegasus.c 		 usb_dev_id[dev_index].name, net->dev_addr);
net              1223 drivers/net/usb/pegasus.c 	free_netdev(net);
net              1241 drivers/net/usb/pegasus.c 	unregister_netdev(pegasus->net);
net              1248 drivers/net/usb/pegasus.c 	free_netdev(pegasus->net);
net              1256 drivers/net/usb/pegasus.c 	netif_device_detach(pegasus->net);
net              1258 drivers/net/usb/pegasus.c 	if (netif_running(pegasus->net)) {
net              1269 drivers/net/usb/pegasus.c 	netif_device_attach(pegasus->net);
net              1270 drivers/net/usb/pegasus.c 	if (netif_running(pegasus->net)) {
net                82 drivers/net/usb/pegasus.h 	struct net_device	*net;
net                88 drivers/net/usb/plusb.c 		netif_dbg(dev, link, dev->net, "pl_reset --> %d\n", status);
net               125 drivers/net/usb/qmi_wwan.c static void qmimux_get_stats64(struct net_device *net,
net               128 drivers/net/usb/qmi_wwan.c 	struct qmimux_priv *priv = netdev_priv(net);
net               132 drivers/net/usb/qmi_wwan.c 	netdev_stats_to_stats64(stats, &net->stats);
net               182 drivers/net/usb/qmi_wwan.c 	netdev_for_each_upper_dev_rcu(dev->net, ldev, iter) {
net               195 drivers/net/usb/qmi_wwan.c 	return !list_empty(&dev->net->adj_list.upper);
net               202 drivers/net/usb/qmi_wwan.c 	struct net_device *net;
net               224 drivers/net/usb/qmi_wwan.c 		net = qmimux_find_dev(dev, hdr->mux_id);
net               225 drivers/net/usb/qmi_wwan.c 		if (!net)
net               227 drivers/net/usb/qmi_wwan.c 		skbn = netdev_alloc_skb(net, pkt_len);
net               230 drivers/net/usb/qmi_wwan.c 		skbn->dev = net;
net               246 drivers/net/usb/qmi_wwan.c 			net->stats.rx_errors++;
net               250 drivers/net/usb/qmi_wwan.c 			struct qmimux_priv *priv = netdev_priv(net);
net               325 drivers/net/usb/qmi_wwan.c static void qmi_wwan_netdev_setup(struct net_device *net)
net               327 drivers/net/usb/qmi_wwan.c 	struct usbnet *dev = netdev_priv(net);
net               331 drivers/net/usb/qmi_wwan.c 		net->header_ops      = NULL;  /* No header */
net               332 drivers/net/usb/qmi_wwan.c 		net->type            = ARPHRD_NONE;
net               333 drivers/net/usb/qmi_wwan.c 		net->hard_header_len = 0;
net               334 drivers/net/usb/qmi_wwan.c 		net->addr_len        = 0;
net               335 drivers/net/usb/qmi_wwan.c 		net->flags           = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
net               337 drivers/net/usb/qmi_wwan.c 		netdev_dbg(net, "mode: raw IP\n");
net               338 drivers/net/usb/qmi_wwan.c 	} else if (!net->header_ops) { /* don't bother if already set */
net               339 drivers/net/usb/qmi_wwan.c 		ether_setup(net);
net               341 drivers/net/usb/qmi_wwan.c 		net->min_mtu = 0;
net               342 drivers/net/usb/qmi_wwan.c 		net->max_mtu = ETH_MAX_MTU;
net               344 drivers/net/usb/qmi_wwan.c 		netdev_dbg(net, "mode: Ethernet\n");
net               348 drivers/net/usb/qmi_wwan.c 	usbnet_change_mtu(net, net->mtu);
net               377 drivers/net/usb/qmi_wwan.c 	if (netif_running(dev->net)) {
net               378 drivers/net/usb/qmi_wwan.c 		netdev_err(dev->net, "Cannot change a running device\n");
net               384 drivers/net/usb/qmi_wwan.c 	ret = call_netdevice_notifiers(NETDEV_PRE_TYPE_CHANGE, dev->net);
net               387 drivers/net/usb/qmi_wwan.c 		netdev_err(dev->net, "Type change was refused\n");
net               395 drivers/net/usb/qmi_wwan.c 	qmi_wwan_netdev_setup(dev->net);
net               396 drivers/net/usb/qmi_wwan.c 	call_netdevice_notifiers(NETDEV_POST_TYPE_CHANGE, dev->net);
net               439 drivers/net/usb/qmi_wwan.c 		netdev_err(dev->net, "mux_id already present\n");
net               445 drivers/net/usb/qmi_wwan.c 	if (netif_running(dev->net)) {
net               446 drivers/net/usb/qmi_wwan.c 		netdev_err(dev->net, "Cannot change a running device\n");
net               451 drivers/net/usb/qmi_wwan.c 	ret = qmimux_register_device(dev->net, mux_id);
net               481 drivers/net/usb/qmi_wwan.c 	if (netif_running(dev->net)) {
net               482 drivers/net/usb/qmi_wwan.c 		netdev_err(dev->net, "Cannot change a running device\n");
net               489 drivers/net/usb/qmi_wwan.c 		netdev_err(dev->net, "mux_id not present\n");
net               551 drivers/net/usb/qmi_wwan.c 	if (skb->len < dev->net->hard_header_len)
net               580 drivers/net/usb/qmi_wwan.c 		skb->dev = dev->net; /* normally set by eth_type_trans */
net               592 drivers/net/usb/qmi_wwan.c 	memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN);
net               807 drivers/net/usb/qmi_wwan.c 	if (ether_addr_equal(dev->net->dev_addr, default_modem_addr) ||
net               808 drivers/net/usb/qmi_wwan.c 	    ether_addr_equal(dev->net->dev_addr, buggy_fw_addr))
net               809 drivers/net/usb/qmi_wwan.c 		eth_hw_addr_random(dev->net);
net               812 drivers/net/usb/qmi_wwan.c 	if (possibly_iphdr(dev->net->dev_addr)) {
net               813 drivers/net/usb/qmi_wwan.c 		dev->net->dev_addr[0] |= 0x02;	/* set local assignment bit */
net               814 drivers/net/usb/qmi_wwan.c 		dev->net->dev_addr[0] &= 0xbf;	/* clear "IP" bit */
net               816 drivers/net/usb/qmi_wwan.c 	dev->net->netdev_ops = &qmi_wwan_netdev_ops;
net               817 drivers/net/usb/qmi_wwan.c 	dev->net->sysfs_groups[0] = &qmi_wwan_sysfs_attr_group;
net              1516 drivers/net/usb/qmi_wwan.c 		netdev_for_each_upper_dev_rcu(dev->net, ldev, iter)
net              5155 drivers/net/usb/r8152.c rtl_ethtool_get_eee(struct net_device *net, struct ethtool_eee *edata)
net              5157 drivers/net/usb/r8152.c 	struct r8152 *tp = netdev_priv(net);
net              5177 drivers/net/usb/r8152.c rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata)
net              5179 drivers/net/usb/r8152.c 	struct r8152 *tp = netdev_priv(net);
net                47 drivers/net/usb/rndis_host.c 	netdev_dbg(dev->net, "rndis status urb, len %d stat %d\n",
net               291 drivers/net/usb/rndis_host.c 	struct net_device	*net = dev->net;
net               333 drivers/net/usb/rndis_host.c 	net->hard_header_len += sizeof (struct rndis_data_hdr);
net               334 drivers/net/usb/rndis_host.c 	dev->hard_mtu = net->mtu + net->hard_header_len;
net               338 drivers/net/usb/rndis_host.c 		netif_dbg(dev, probe, dev->net,
net               348 drivers/net/usb/rndis_host.c 	net->netdev_ops = &rndis_netdev_ops;
net               358 drivers/net/usb/rndis_host.c 		if (tmp <= net->hard_header_len) {
net               368 drivers/net/usb/rndis_host.c 			 dev->hard_mtu, tmp, tmp - net->hard_header_len);
net               370 drivers/net/usb/rndis_host.c 		net->mtu = dev->hard_mtu - net->hard_header_len;
net               398 drivers/net/usb/rndis_host.c 		netif_dbg(dev, probe, dev->net,
net               405 drivers/net/usb/rndis_host.c 		netif_dbg(dev, probe, dev->net,
net               422 drivers/net/usb/rndis_host.c 		eth_hw_addr_random(net);
net               424 drivers/net/usb/rndis_host.c 		ether_addr_copy(net->dev_addr, bp);
net               489 drivers/net/usb/rndis_host.c 	if (skb->len < dev->net->hard_header_len)
net               506 drivers/net/usb/rndis_host.c 			dev->net->stats.rx_frame_errors++;
net               507 drivers/net/usb/rndis_host.c 			netdev_dbg(dev->net, "bad rndis message %d/%d/%d/%d, len %d\n",
net               222 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "Non linear buffer-dropping\n");
net               330 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "Submit %s failed %d\n", cmd_name, status);
net               368 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "%s: Data length %d, exp >= %zu\n",
net               375 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "Session idle, 0x%02x\n",
net               387 drivers/net/usb/sierra_net.c 			netdev_err(dev->net, "Link type unsupported: 0x%02x\n",
net               395 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "Protocol unsupported, 0x%02x\n",
net               401 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "%s: LSI_UMTS_STATUS_LEN %d, exp %u\n",
net               409 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "No coverage, 0x%02x\n", lsi->coverage);
net               426 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, "Invalid LSI\n");
net               455 drivers/net/usb/sierra_net.c 		netdev_err(dev->net,
net               459 drivers/net/usb/sierra_net.c 		netdev_err(dev->net,
net               493 drivers/net/usb/sierra_net.c 			netdev_err(dev->net,
net               503 drivers/net/usb/sierra_net.c 				netdev_err(dev->net, "%s: Bad packet,"
net               511 drivers/net/usb/sierra_net.c 				netdev_err(dev->net, "%s: Bad packet, received"
net               538 drivers/net/usb/sierra_net.c 					netdev_err(dev->net,
net               542 drivers/net/usb/sierra_net.c 				netdev_err(dev->net, "Unrecognized HIP msg, "
net               549 drivers/net/usb/sierra_net.c 				netdev_err(dev->net, "Unrecognized HIP msg, "
net               609 drivers/net/usb/sierra_net.c 		netdev_err(dev->net, ": unexpected notification %02x!\n",
net               615 drivers/net/usb/sierra_net.c static void sierra_net_get_drvinfo(struct net_device *net,
net               619 drivers/net/usb/sierra_net.c 	usbnet_get_drvinfo(net, info);
net               624 drivers/net/usb/sierra_net.c static u32 sierra_net_get_link(struct net_device *net)
net               626 drivers/net/usb/sierra_net.c 	struct usbnet *dev = netdev_priv(net);
net               628 drivers/net/usb/sierra_net.c 	return sierra_net_get_private(dev)->link_up && netif_running(net);
net               703 drivers/net/usb/sierra_net.c 	dev->net->netdev_ops = &sierra_net_device_ops;
net               706 drivers/net/usb/sierra_net.c 	dev->net->dev_addr[ETH_ALEN-2] = atomic_inc_return(&iface_counter);
net               707 drivers/net/usb/sierra_net.c 	dev->net->dev_addr[ETH_ALEN-1] = ifacenum;
net               722 drivers/net/usb/sierra_net.c 	dev->net->hard_header_len += SIERRA_NET_HIP_EXT_HDR_LEN;
net               723 drivers/net/usb/sierra_net.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net               724 drivers/net/usb/sierra_net.c 	dev->net->max_mtu = SIERRA_NET_MAX_SUPPORTED_MTU;
net               727 drivers/net/usb/sierra_net.c 	dev->net->flags |= IFF_NOARP;
net               728 drivers/net/usb/sierra_net.c 	dev->net->ethtool_ops = &sierra_net_ethtool_ops;
net               729 drivers/net/usb/sierra_net.c 	netif_carrier_off(dev->net);
net               772 drivers/net/usb/sierra_net.c 		netdev_err(dev->net,
net               797 drivers/net/usb/sierra_net.c 			netdev_err(dev->net, "failed to get skb\n");
net               798 drivers/net/usb/sierra_net.c 		dev->net->stats.rx_dropped++;
net               818 drivers/net/usb/sierra_net.c 				netdev_err(dev->net, "Invalid HIP header %d\n",
net               821 drivers/net/usb/sierra_net.c 			dev->net->stats.rx_length_errors++;
net               829 drivers/net/usb/sierra_net.c 				netdev_err(dev->net, "HIP/ETH: Invalid pkt\n");
net               831 drivers/net/usb/sierra_net.c 			dev->net->stats.rx_frame_errors++;
net               845 drivers/net/usb/sierra_net.c 		memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN);
net               883 drivers/net/usb/sierra_net.c 					netdev_err(dev->net, "tx_fixup:"
net               899 drivers/net/usb/sierra_net.c 			netdev_err(dev->net, "tx_fixup: no room for HIP\n");
net               904 drivers/net/usb/sierra_net.c 		dev->net->stats.tx_carrier_errors++;
net                94 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n",
net               126 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n",
net               168 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading MII_ACCESS\n");
net               191 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n");
net               203 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing MII_ACCESS\n");
net               209 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx);
net               215 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading MII_DATA\n");
net               238 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n");
net               245 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing MII_DATA\n");
net               257 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing MII_ACCESS\n");
net               263 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Timed out writing MII reg %02X\n", idx);
net               303 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading E2P_CMD\n");
net               313 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "EEPROM read operation timeout\n");
net               329 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading E2P_CMD\n");
net               339 drivers/net/usb/smsc75xx.c 	netdev_warn(dev->net, "EEPROM is busy\n");
net               360 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing E2P_CMD\n");
net               370 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading E2P_DATA\n");
net               398 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing E2P_CMD\n");
net               412 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing E2P_DATA\n");
net               420 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing E2P_CMD\n");
net               442 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading DP_SEL\n");
net               452 drivers/net/usb/smsc75xx.c 	netdev_warn(dev->net, "smsc75xx_dataport_wait_not_busy timed out\n");
net               468 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "smsc75xx_dataport_write busy on entry\n");
net               474 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading DP_SEL\n");
net               482 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing DP_SEL\n");
net               489 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing DP_ADDR\n");
net               495 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing DP_DATA\n");
net               501 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing DP_CMD\n");
net               507 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "smsc75xx_dataport_write timeout\n");
net               530 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n",
net               538 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing RFE_CRL\n");
net               557 drivers/net/usb/smsc75xx.c 	if (dev->net->flags & IFF_PROMISC) {
net               558 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, drv, dev->net, "promiscuous mode enabled\n");
net               560 drivers/net/usb/smsc75xx.c 	} else if (dev->net->flags & IFF_ALLMULTI) {
net               561 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, drv, dev->net, "receive all multicast enabled\n");
net               563 drivers/net/usb/smsc75xx.c 	} else if (!netdev_mc_empty(dev->net)) {
net               566 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, drv, dev->net, "receive multicast hash filter\n");
net               576 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, drv, dev->net, "receive own packets only\n");
net               604 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s\n",
net               608 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, link, dev->net, "half duplex\n");
net               613 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing FLOW\n");
net               619 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing FCT_FLOW\n");
net               634 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, mii->phy_id, PHY_INT_SRC,
net               639 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing INT_STS\n");
net               645 drivers/net/usb/smsc75xx.c 	lcladv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE);
net               646 drivers/net/usb/smsc75xx.c 	rmtadv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_LPA);
net               648 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, link, dev->net, "speed: %u duplex: %d lcladv: %04x rmtadv: %04x\n",
net               659 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "unexpected urb length %d\n",
net               666 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, link, dev->net, "intdata: 0x%08X\n", intdata);
net               671 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "unexpected interrupt, intdata=0x%08X\n",
net               675 drivers/net/usb/smsc75xx.c static int smsc75xx_ethtool_get_eeprom_len(struct net_device *net)
net               696 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "EEPROM: magic value mismatch: 0x%x\n",
net               704 drivers/net/usb/smsc75xx.c static void smsc75xx_ethtool_get_wol(struct net_device *net,
net               707 drivers/net/usb/smsc75xx.c 	struct usbnet *dev = netdev_priv(net);
net               714 drivers/net/usb/smsc75xx.c static int smsc75xx_ethtool_set_wol(struct net_device *net,
net               717 drivers/net/usb/smsc75xx.c 	struct usbnet *dev = netdev_priv(net);
net               728 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "device_set_wakeup_enable error %d\n", ret);
net               765 drivers/net/usb/smsc75xx.c 		ether_addr_copy(dev->net->dev_addr, mac_addr);
net               771 drivers/net/usb/smsc75xx.c 			dev->net->dev_addr) == 0) {
net               772 drivers/net/usb/smsc75xx.c 		if (is_valid_ether_addr(dev->net->dev_addr)) {
net               774 drivers/net/usb/smsc75xx.c 			netif_dbg(dev, ifup, dev->net,
net               781 drivers/net/usb/smsc75xx.c 	eth_hw_addr_random(dev->net);
net               782 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n");
net               787 drivers/net/usb/smsc75xx.c 	u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 |
net               788 drivers/net/usb/smsc75xx.c 		dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24;
net               789 drivers/net/usb/smsc75xx.c 	u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8;
net               793 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write RX_ADDRH: %d\n", ret);
net               799 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write RX_ADDRL: %d\n", ret);
net               806 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write ADDR_FILTX: %d\n", ret);
net               812 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write ADDR_FILTX+4: %d\n", ret);
net               822 drivers/net/usb/smsc75xx.c 	dev->mii.dev = dev->net;
net               831 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET);
net               835 drivers/net/usb/smsc75xx.c 		bmcr = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR);
net               837 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading MII_BMCR\n");
net               844 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "timeout on PHY Reset\n");
net               851 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net               854 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_CTRL1000,
net               858 drivers/net/usb/smsc75xx.c 	ret = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, PHY_INT_SRC);
net               860 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PHY_INT_SRC\n");
net               864 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_SRC, 0xffff);
net               866 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_MASK,
net               870 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "phy initialised successfully\n");
net               882 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret);
net               892 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret);
net               903 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret);
net               911 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret);
net               926 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to set mac rx frame length\n");
net               954 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing RFE_CTL\n");
net               971 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret);
net               982 drivers/net/usb/smsc75xx.c 	netdev_warn(dev->net, "timeout waiting for device ready\n");
net               993 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write(dev->net, mii->phy_id, MII_BMCR, 0x4040);
net              1003 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Timeout waiting for PHY link up\n");
net              1010 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret);
net              1018 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write PMT_CTL: %d\n", ret);
net              1027 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n",
net              1035 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "timeout waiting for PHY Reset\n");
net              1048 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "entering smsc75xx_reset\n");
net              1052 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "device not ready in smsc75xx_reset\n");
net              1058 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret);
net              1066 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret);
net              1075 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret);
net              1082 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "timeout on completion of Lite Reset\n");
net              1086 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "Lite reset complete, resetting PHY\n");
net              1090 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret);
net              1098 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write PMT_CTL: %d\n", ret);
net              1107 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read PMT_CTL: %d\n", ret);
net              1114 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "timeout waiting for PHY Reset\n");
net              1118 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "PHY reset complete\n");
net              1122 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to set mac address\n");
net              1126 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "MAC Address: %pM\n",
net              1127 drivers/net/usb/smsc75xx.c 		  dev->net->dev_addr);
net              1131 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret);
net              1135 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG : 0x%08x\n",
net              1142 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net,  "Failed to write HW_CFG: %d\n", ret);
net              1148 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret);
net              1152 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG after writing HW_CFG_BIR: 0x%08x\n",
net              1166 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "rx_urb_size=%ld\n",
net              1171 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write BURST_CAP: %d\n", ret);
net              1177 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read BURST_CAP: %d\n", ret);
net              1181 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net,
net              1186 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write BULK_IN_DLY: %d\n", ret);
net              1192 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read BULK_IN_DLY: %d\n", ret);
net              1196 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net,
net              1202 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret);
net              1206 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, ifup, dev->net, "HW_CFG: 0x%08x\n", buf);
net              1212 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to write HW_CFG: %d\n", ret);
net              1218 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read HW_CFG: %d\n", ret);
net              1222 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, ifup, dev->net, "HW_CFG: 0x%08x\n", buf);
net              1229 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write FCT_RX_FIFO_END: %d\n", ret);
net              1233 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "FCT_RX_FIFO_END set to 0x%08x\n", buf);
net              1238 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write FCT_TX_FIFO_END: %d\n", ret);
net              1242 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "FCT_TX_FIFO_END set to 0x%08x\n", buf);
net              1246 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write INT_STS: %d\n", ret);
net              1252 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read ID_REV: %d\n", ret);
net              1256 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "ID_REV = 0x%08x\n", buf);
net              1260 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read E2P_CMD: %d\n", ret);
net              1268 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to read LED_GPIO_CFG: %d\n", ret);
net              1277 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Failed to write LED_GPIO_CFG: %d\n", ret);
net              1284 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write FLOW: %d\n", ret);
net              1290 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write FCT_FLOW: %d\n", ret);
net              1297 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read RFE_CTL: %d\n", ret);
net              1305 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write RFE_CTL: %d\n", ret);
net              1311 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read RFE_CTL: %d\n", ret);
net              1315 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "RFE_CTL set to 0x%08x\n",
net              1319 drivers/net/usb/smsc75xx.c 	smsc75xx_set_features(dev->net, dev->net->features);
net              1321 drivers/net/usb/smsc75xx.c 	smsc75xx_set_multicast(dev->net);
net              1325 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to initialize PHY: %d\n", ret);
net              1331 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read INT_EP_CTL: %d\n", ret);
net              1340 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write INT_EP_CTL: %d\n", ret);
net              1347 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read MAC_CR: %d\n", ret);
net              1354 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write MAC_CR: %d\n", ret);
net              1360 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read MAC_TX: %d\n", ret);
net              1368 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write MAC_TX: %d\n", ret);
net              1372 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "MAC_TX set to 0x%08x\n", buf);
net              1376 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read FCT_TX_CTL: %d\n", ret);
net              1384 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write FCT_TX_CTL: %d\n", ret);
net              1388 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "FCT_TX_CTL set to 0x%08x\n", buf);
net              1390 drivers/net/usb/smsc75xx.c 	ret = smsc75xx_set_rx_max_frame_length(dev, dev->net->mtu + ETH_HLEN);
net              1392 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to set max rx frame length\n");
net              1398 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret);
net              1406 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret);
net              1410 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "MAC_RX set to 0x%08x\n", buf);
net              1414 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read FCT_RX_CTL: %d\n", ret);
net              1422 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write FCT_RX_CTL: %d\n", ret);
net              1426 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "FCT_RX_CTL set to 0x%08x\n", buf);
net              1428 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, ifup, dev->net, "smsc75xx_reset, return 0\n");
net              1455 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "usbnet_get_endpoints failed: %d\n", ret);
net              1474 drivers/net/usb/smsc75xx.c 		dev->net->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
net              1477 drivers/net/usb/smsc75xx.c 		dev->net->features |= NETIF_F_RXCSUM;
net              1479 drivers/net/usb/smsc75xx.c 	dev->net->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
net              1484 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "device not ready in smsc75xx_bind\n");
net              1493 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "smsc75xx_reset error %d\n", ret);
net              1497 drivers/net/usb/smsc75xx.c 	dev->net->netdev_ops = &smsc75xx_netdev_ops;
net              1498 drivers/net/usb/smsc75xx.c 	dev->net->ethtool_ops = &smsc75xx_ethtool_ops;
net              1499 drivers/net/usb/smsc75xx.c 	dev->net->flags |= IFF_MULTICAST;
net              1500 drivers/net/usb/smsc75xx.c 	dev->net->hard_header_len += SMSC75XX_TX_OVERHEAD;
net              1501 drivers/net/usb/smsc75xx.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net              1502 drivers/net/usb/smsc75xx.c 	dev->net->max_mtu = MAX_SINGLE_PACKET_SIZE;
net              1511 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, ifdown, dev->net, "free pdata\n");
net              1532 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing WUF_CFGX\n");
net              1538 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing WUF_MASKX\n");
net              1544 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing WUF_MASKX\n");
net              1550 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing WUF_MASKX\n");
net              1556 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing WUF_MASKX\n");
net              1571 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              1580 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1597 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              1606 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1616 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1633 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              1642 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1659 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading FCT_RX_CTL\n");
net              1664 drivers/net/usb/smsc75xx.c 		netdev_dbg(dev->net, "rx fifo not empty in autosuspend\n");
net              1670 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              1679 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1689 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1703 drivers/net/usb/smsc75xx.c 	netdev_dbg(dev->net, "enabling PHY wakeup interrupts\n");
net              1706 drivers/net/usb/smsc75xx.c 	ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_SRC);
net              1708 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PHY_INT_SRC\n");
net              1713 drivers/net/usb/smsc75xx.c 	ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_MASK);
net              1715 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading PHY_INT_MASK\n");
net              1721 drivers/net/usb/smsc75xx.c 	smsc75xx_mdio_write_nopm(dev->net, mii->phy_id, PHY_INT_MASK, ret);
net              1732 drivers/net/usb/smsc75xx.c 	ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR);
net              1734 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading MII_BMSR\n");
net              1738 drivers/net/usb/smsc75xx.c 	ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR);
net              1740 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading MII_BMSR\n");
net              1751 drivers/net/usb/smsc75xx.c 	if (!netif_running(dev->net)) {
net              1753 drivers/net/usb/smsc75xx.c 		netdev_dbg(dev->net, "autosuspend entering SUSPEND2\n");
net              1759 drivers/net/usb/smsc75xx.c 		netdev_dbg(dev->net, "autosuspend entering SUSPEND1\n");
net              1765 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "error enabling PHY wakeup ints\n");
net              1769 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "entering SUSPEND1 mode\n");
net              1777 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "error enabling PHY wakeup ints\n");
net              1781 drivers/net/usb/smsc75xx.c 	netdev_dbg(dev->net, "autosuspend entering SUSPEND3\n");
net              1794 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "usbnet_suspend error\n");
net              1799 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "error during last resume\n");
net              1817 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "entering SUSPEND2 mode\n");
net              1822 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              1830 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              1836 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              1844 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              1856 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "error enabling PHY wakeup ints\n");
net              1865 drivers/net/usb/smsc75xx.c 			netdev_info(dev->net, "entering SUSPEND1 mode\n");
net              1868 drivers/net/usb/smsc75xx.c 			ret = smsc75xx_mdio_read_nopm(dev->net, mii->phy_id,
net              1871 drivers/net/usb/smsc75xx.c 				netdev_warn(dev->net, "Error reading PHY_MODE_CTRL_STS\n");
net              1877 drivers/net/usb/smsc75xx.c 			smsc75xx_mdio_write_nopm(dev->net, mii->phy_id,
net              1893 drivers/net/usb/smsc75xx.c 				netdev_warn(dev->net, "Error writing WUF_CFGX\n");
net              1900 drivers/net/usb/smsc75xx.c 			netdev_info(dev->net, "enabling multicast detection\n");
net              1906 drivers/net/usb/smsc75xx.c 				netdev_warn(dev->net, "Error writing wakeup filter\n");
net              1913 drivers/net/usb/smsc75xx.c 			netdev_info(dev->net, "enabling ARP detection\n");
net              1919 drivers/net/usb/smsc75xx.c 				netdev_warn(dev->net, "Error writing wakeup filter\n");
net              1927 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              1935 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              1939 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "enabling packet match detection\n");
net              1942 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              1950 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              1954 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "disabling packet match detection\n");
net              1957 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              1965 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              1973 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error reading WUCSR\n");
net              1981 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Error writing WUCSR\n");
net              1986 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "enabling PHY wakeup\n");
net              1990 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              2000 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              2006 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "enabling magic packet wakeup\n");
net              2009 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              2018 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              2024 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "enabling broadcast detection\n");
net              2027 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              2035 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              2041 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "enabling unicast detection\n");
net              2044 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              2052 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              2060 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to read MAC_RX: %d\n", ret);
net              2068 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "Failed to write MAC_RX: %d\n", ret);
net              2073 drivers/net/usb/smsc75xx.c 	netdev_info(dev->net, "entering SUSPEND0 mode\n");
net              2094 drivers/net/usb/smsc75xx.c 	netdev_dbg(dev->net, "resume suspend_flags=0x%02x\n", suspend_flags);
net              2103 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading WUCSR\n");
net              2112 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing WUCSR\n");
net              2119 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              2128 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              2134 drivers/net/usb/smsc75xx.c 		netdev_info(dev->net, "resuming from SUSPEND2\n");
net              2138 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error reading PMT_CTL\n");
net              2146 drivers/net/usb/smsc75xx.c 			netdev_warn(dev->net, "Error writing PMT_CTL\n");
net              2153 drivers/net/usb/smsc75xx.c 		netdev_warn(dev->net, "device not ready in smsc75xx_resume\n");
net              2163 drivers/net/usb/smsc75xx.c 	if (!(dev->net->features & NETIF_F_RXCSUM) ||
net              2175 drivers/net/usb/smsc75xx.c 	if (skb->len < dev->net->hard_header_len)
net              2196 drivers/net/usb/smsc75xx.c 			netif_dbg(dev, rx_err, dev->net,
net              2198 drivers/net/usb/smsc75xx.c 			dev->net->stats.rx_errors++;
net              2199 drivers/net/usb/smsc75xx.c 			dev->net->stats.rx_dropped++;
net              2202 drivers/net/usb/smsc75xx.c 				dev->net->stats.rx_crc_errors++;
net              2204 drivers/net/usb/smsc75xx.c 				dev->net->stats.rx_frame_errors++;
net              2208 drivers/net/usb/smsc75xx.c 				netif_dbg(dev, rx_err, dev->net,
net              2227 drivers/net/usb/smsc75xx.c 				netdev_warn(dev->net, "Error allocating skb\n");
net                91 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n",
net               123 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n",
net               165 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error reading MII_ACCESS\n");
net               188 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "MII is busy in smsc95xx_mdio_read\n");
net               198 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error writing MII_ADDR\n");
net               204 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx);
net               210 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error reading MII_DATA\n");
net               233 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "MII is busy in smsc95xx_mdio_write\n");
net               240 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error writing MII_DATA\n");
net               250 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error writing MII_ADDR\n");
net               256 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Timed out writing MII reg %02X\n", idx);
net               296 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error reading E2P_CMD\n");
net               306 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "EEPROM read operation timeout\n");
net               322 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error reading E2P_CMD\n");
net               332 drivers/net/usb/smsc95xx.c 	netdev_warn(dev->net, "EEPROM is busy\n");
net               353 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error writing E2P_CMD\n");
net               363 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error reading E2P_DATA\n");
net               391 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error writing E2P_DATA\n");
net               405 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error writing E2P_DATA\n");
net               413 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Error writing E2P_CMD\n");
net               442 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error write async cmd, sts=%d\n",
net               467 drivers/net/usb/smsc95xx.c 	if (dev->net->flags & IFF_PROMISC) {
net               468 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, drv, dev->net, "promiscuous mode enabled\n");
net               471 drivers/net/usb/smsc95xx.c 	} else if (dev->net->flags & IFF_ALLMULTI) {
net               472 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, drv, dev->net, "receive all multicast enabled\n");
net               475 drivers/net/usb/smsc95xx.c 	} else if (!netdev_mc_empty(dev->net)) {
net               490 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, drv, dev->net, "HASHH=0x%08X, HASHL=0x%08X\n",
net               493 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, drv, dev->net, "receive own packets only\n");
net               503 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "failed to initiate async write to HASHH\n");
net               507 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "failed to initiate async write to HASHL\n");
net               511 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "failed to initiate async write to MAC_CR\n");
net               536 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s\n",
net               540 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, link, dev->net, "half duplex\n");
net               561 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read(dev->net, mii->phy_id, PHY_INT_SRC);
net               571 drivers/net/usb/smsc95xx.c 	lcladv = smsc95xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE);
net               572 drivers/net/usb/smsc95xx.c 	rmtadv = smsc95xx_mdio_read(dev->net, mii->phy_id, MII_LPA);
net               574 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, link, dev->net,
net               594 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Error updating PHY flow control\n");
net               604 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "unexpected urb length %d\n",
net               610 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, link, dev->net, "intdata: 0x%08X\n", intdata);
net               615 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "unexpected interrupt, intdata=0x%08X\n",
net               644 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMSR);
net               646 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to read MII_BMSR\n");
net               683 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, hw, dev->net, "COE_CR = 0x%08x\n", read_buf);
net               687 drivers/net/usb/smsc95xx.c static int smsc95xx_ethtool_get_eeprom_len(struct net_device *net)
net               708 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "EEPROM: magic value mismatch, magic = 0x%x\n",
net               746 drivers/net/usb/smsc95xx.c static void smsc95xx_ethtool_get_wol(struct net_device *net,
net               749 drivers/net/usb/smsc95xx.c 	struct usbnet *dev = netdev_priv(net);
net               756 drivers/net/usb/smsc95xx.c static int smsc95xx_ethtool_set_wol(struct net_device *net,
net               759 drivers/net/usb/smsc95xx.c 	struct usbnet *dev = netdev_priv(net);
net               770 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "device_set_wakeup_enable error %d\n", ret);
net               775 drivers/net/usb/smsc95xx.c static int get_mdix_status(struct net_device *net)
net               777 drivers/net/usb/smsc95xx.c 	struct usbnet *dev = netdev_priv(net);
net               781 drivers/net/usb/smsc95xx.c 	buf = smsc95xx_mdio_read(dev->net, dev->mii.phy_id, SPECIAL_CTRL_STS);
net               796 drivers/net/usb/smsc95xx.c static void set_mdix_status(struct net_device *net, __u8 mdix_ctrl)
net               798 drivers/net/usb/smsc95xx.c 	struct usbnet *dev = netdev_priv(net);
net               807 drivers/net/usb/smsc95xx.c 		buf = smsc95xx_mdio_read(dev->net, dev->mii.phy_id,
net               810 drivers/net/usb/smsc95xx.c 		smsc95xx_mdio_write(dev->net, dev->mii.phy_id,
net               815 drivers/net/usb/smsc95xx.c 		buf = smsc95xx_mdio_read(dev->net, dev->mii.phy_id,
net               820 drivers/net/usb/smsc95xx.c 		smsc95xx_mdio_write(dev->net, dev->mii.phy_id,
net               823 drivers/net/usb/smsc95xx.c 		buf = smsc95xx_mdio_read(dev->net, dev->mii.phy_id,
net               829 drivers/net/usb/smsc95xx.c 		smsc95xx_mdio_write(dev->net, dev->mii.phy_id,
net               832 drivers/net/usb/smsc95xx.c 		buf = smsc95xx_mdio_read(dev->net, dev->mii.phy_id,
net               838 drivers/net/usb/smsc95xx.c 		smsc95xx_mdio_write(dev->net, dev->mii.phy_id,
net               844 drivers/net/usb/smsc95xx.c static int smsc95xx_get_link_ksettings(struct net_device *net,
net               847 drivers/net/usb/smsc95xx.c 	struct usbnet *dev = netdev_priv(net);
net               851 drivers/net/usb/smsc95xx.c 	retval = usbnet_get_link_ksettings(net, cmd);
net               859 drivers/net/usb/smsc95xx.c static int smsc95xx_set_link_ksettings(struct net_device *net,
net               862 drivers/net/usb/smsc95xx.c 	struct usbnet *dev = netdev_priv(net);
net               867 drivers/net/usb/smsc95xx.c 		set_mdix_status(net, cmd->base.eth_tp_mdix_ctrl);
net               869 drivers/net/usb/smsc95xx.c 	retval = usbnet_set_link_ksettings(net, cmd);
net               909 drivers/net/usb/smsc95xx.c 		ether_addr_copy(dev->net->dev_addr, mac_addr);
net               915 drivers/net/usb/smsc95xx.c 			dev->net->dev_addr) == 0) {
net               916 drivers/net/usb/smsc95xx.c 		if (is_valid_ether_addr(dev->net->dev_addr)) {
net               918 drivers/net/usb/smsc95xx.c 			netif_dbg(dev, ifup, dev->net, "MAC address read from EEPROM\n");
net               924 drivers/net/usb/smsc95xx.c 	eth_hw_addr_random(dev->net);
net               925 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n");
net               930 drivers/net/usb/smsc95xx.c 	u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 |
net               931 drivers/net/usb/smsc95xx.c 		dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24;
net               932 drivers/net/usb/smsc95xx.c 	u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8;
net               980 drivers/net/usb/smsc95xx.c 	dev->mii.dev = dev->net;
net               988 drivers/net/usb/smsc95xx.c 	smsc95xx_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET);
net               992 drivers/net/usb/smsc95xx.c 		bmcr = smsc95xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR);
net               997 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "timeout on PHY Reset");
net              1001 drivers/net/usb/smsc95xx.c 	smsc95xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net              1006 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read(dev->net, dev->mii.phy_id, PHY_INT_SRC);
net              1008 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to read PHY_INT_SRC during init\n");
net              1012 drivers/net/usb/smsc95xx.c 	smsc95xx_mdio_write(dev->net, dev->mii.phy_id, PHY_INT_MASK,
net              1016 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "phy initialised successfully\n");
net              1026 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "entering smsc95xx_reset\n");
net              1042 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "timeout waiting for completion of Lite Reset\n");
net              1060 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "timeout waiting for PHY Reset\n");
net              1068 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "MAC Address: %pM\n",
net              1069 drivers/net/usb/smsc95xx.c 		  dev->net->dev_addr);
net              1075 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG : 0x%08x\n",
net              1088 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net,
net              1103 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "rx_urb_size=%ld\n",
net              1114 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net,
net              1126 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net,
net              1134 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "Read Value from HW_CFG: 0x%08x\n",
net              1153 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net,
net              1163 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "ID_REV = 0x%08x\n", read_buf);
net              1193 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_set_features(dev->net, dev->net->features);
net              1195 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to set checksum offload features\n");
net              1199 drivers/net/usb/smsc95xx.c 	smsc95xx_set_multicast(dev->net);
net              1203 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to init PHY\n");
net              1220 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to start TX path\n");
net              1226 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "Failed to start RX path\n");
net              1230 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, ifup, dev->net, "smsc95xx_reset, return 0\n");
net              1258 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "usbnet_get_endpoints failed: %d\n", ret);
net              1279 drivers/net/usb/smsc95xx.c 		dev->net->features |= NETIF_F_IP_CSUM;
net              1281 drivers/net/usb/smsc95xx.c 		dev->net->features |= NETIF_F_RXCSUM;
net              1283 drivers/net/usb/smsc95xx.c 	dev->net->hw_features = NETIF_F_IP_CSUM | NETIF_F_RXCSUM;
net              1297 drivers/net/usb/smsc95xx.c 	pdata->mdix_ctrl = get_mdix_status(dev->net);
net              1307 drivers/net/usb/smsc95xx.c 	dev->net->netdev_ops = &smsc95xx_netdev_ops;
net              1308 drivers/net/usb/smsc95xx.c 	dev->net->ethtool_ops = &smsc95xx_ethtool_ops;
net              1309 drivers/net/usb/smsc95xx.c 	dev->net->flags |= IFF_MULTICAST;
net              1310 drivers/net/usb/smsc95xx.c 	dev->net->hard_header_len += SMSC95XX_TX_OVERHEAD_CSUM;
net              1311 drivers/net/usb/smsc95xx.c 	dev->net->min_mtu = ETH_MIN_MTU;
net              1312 drivers/net/usb/smsc95xx.c 	dev->net->max_mtu = ETH_DATA_LEN;
net              1313 drivers/net/usb/smsc95xx.c 	dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;
net              1328 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, ifdown, dev->net, "free pdata\n");
net              1346 drivers/net/usb/smsc95xx.c 	netdev_dbg(dev->net, "enabling PHY wakeup interrupts\n");
net              1349 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_SRC);
net              1354 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_INT_MASK);
net              1360 drivers/net/usb/smsc95xx.c 	smsc95xx_mdio_write_nopm(dev->net, mii->phy_id, PHY_INT_MASK, ret);
net              1371 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR);
net              1375 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read_nopm(dev->net, mii->phy_id, MII_BMSR);
net              1432 drivers/net/usb/smsc95xx.c 		smsc95xx_mdio_write_nopm(dev->net, mii->phy_id,	PHY_EDPD_CONFIG,
net              1436 drivers/net/usb/smsc95xx.c 	ret = smsc95xx_mdio_read_nopm(dev->net, mii->phy_id, PHY_MODE_CTRL_STS);
net              1442 drivers/net/usb/smsc95xx.c 	smsc95xx_mdio_write_nopm(dev->net, mii->phy_id, PHY_MODE_CTRL_STS, ret);
net              1502 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "rx fifo not empty in autosuspend\n");
net              1535 drivers/net/usb/smsc95xx.c 	if (!netif_running(dev->net)) {
net              1537 drivers/net/usb/smsc95xx.c 		netdev_dbg(dev->net, "autosuspend entering SUSPEND2\n");
net              1547 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "EDPD not supported\n");
net              1551 drivers/net/usb/smsc95xx.c 		netdev_dbg(dev->net, "autosuspend entering SUSPEND1\n");
net              1557 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "error enabling PHY wakeup ints\n");
net              1561 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "entering SUSPEND1 mode\n");
net              1569 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "error enabling PHY wakeup ints\n");
net              1573 drivers/net/usb/smsc95xx.c 	netdev_dbg(dev->net, "autosuspend entering SUSPEND3\n");
net              1586 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "usbnet_suspend error\n");
net              1593 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "error during last resume\n");
net              1612 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "entering SUSPEND2 mode\n");
net              1643 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "error enabling PHY wakeup ints\n");
net              1651 drivers/net/usb/smsc95xx.c 			netdev_info(dev->net, "entering SUSPEND1 mode\n");
net              1668 drivers/net/usb/smsc95xx.c 			netdev_warn(dev->net, "Unable to allocate filter_mask\n");
net              1679 drivers/net/usb/smsc95xx.c 			netdev_info(dev->net, "enabling broadcast detection\n");
net              1692 drivers/net/usb/smsc95xx.c 			netdev_info(dev->net, "enabling multicast detection\n");
net              1705 drivers/net/usb/smsc95xx.c 			netdev_info(dev->net, "enabling ARP detection\n");
net              1717 drivers/net/usb/smsc95xx.c 			netdev_info(dev->net, "enabling unicast detection\n");
net              1724 drivers/net/usb/smsc95xx.c 			crc[filter/2] |= smsc_crc(dev->net->dev_addr, ETH_ALEN, filter);
net              1786 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "enabling pattern match wakeup\n");
net              1789 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "disabling pattern match wakeup\n");
net              1794 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "enabling magic packet wakeup\n");
net              1797 drivers/net/usb/smsc95xx.c 		netdev_info(dev->net, "disabling magic packet wakeup\n");
net              1824 drivers/net/usb/smsc95xx.c 	netdev_info(dev->net, "entering SUSPEND0 mode\n");
net              1854 drivers/net/usb/smsc95xx.c 	netdev_dbg(dev->net, "resume suspend_flags=0x%02x\n", suspend_flags);
net              1887 drivers/net/usb/smsc95xx.c 		netdev_warn(dev->net, "usbnet_resume error\n");
net              1914 drivers/net/usb/smsc95xx.c 	if (skb->len < dev->net->hard_header_len)
net              1932 drivers/net/usb/smsc95xx.c 			netif_dbg(dev, rx_err, dev->net,
net              1934 drivers/net/usb/smsc95xx.c 			dev->net->stats.rx_errors++;
net              1935 drivers/net/usb/smsc95xx.c 			dev->net->stats.rx_dropped++;
net              1938 drivers/net/usb/smsc95xx.c 				dev->net->stats.rx_crc_errors++;
net              1941 drivers/net/usb/smsc95xx.c 					dev->net->stats.rx_frame_errors++;
net              1945 drivers/net/usb/smsc95xx.c 					dev->net->stats.rx_length_errors++;
net              1950 drivers/net/usb/smsc95xx.c 				netif_dbg(dev, rx_err, dev->net,
net              1957 drivers/net/usb/smsc95xx.c 				if (dev->net->features & NETIF_F_RXCSUM)
net              1967 drivers/net/usb/smsc95xx.c 				netdev_warn(dev->net, "Error allocating skb\n");
net              1975 drivers/net/usb/smsc95xx.c 			if (dev->net->features & NETIF_F_RXCSUM)
net              2079 drivers/net/usb/smsc95xx.c 	netdev_info(dev->net, "hardware isn't capable of remote wakeup\n");
net                89 drivers/net/usb/sr9700.c 	netdev_err(dev->net, "%s write timed out!\n", phy ? "phy" : "eeprom");
net               111 drivers/net/usb/sr9700.c 	netdev_dbg(dev->net, "read shared %d 0x%02x returned 0x%04x, %d\n",
net               328 drivers/net/usb/sr9700.c 	netdev = dev->net;
net               401 drivers/net/usb/sr9700.c 		netdev_err(dev->net, "unexpected tiny rx frame\n");
net               501 drivers/net/usb/sr9700.c 	if (netif_carrier_ok(dev->net) != link) {
net               503 drivers/net/usb/sr9700.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
net               514 drivers/net/usb/sr9700.c 	netdev_dbg(dev->net, "link_reset() speed: %d duplex: %d\n",
net                67 drivers/net/usb/sr9800.c 	if (skb->len < dev->net->hard_header_len)
net                79 drivers/net/usb/sr9800.c 			netdev_err(dev->net, "%s : Bad Header Length\n",
net                84 drivers/net/usb/sr9800.c 		if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) ||
net                86 drivers/net/usb/sr9800.c 			netdev_err(dev->net, "%s : Bad RX Length %d\n",
net                90 drivers/net/usb/sr9800.c 		sr_skb = netdev_alloc_skb_ip_align(dev->net, size);
net               102 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "%s : Bad SKB Length %d\n", __func__,
net               160 drivers/net/usb/sr9800.c 	if (netif_carrier_ok(dev->net) != link) {
net               162 drivers/net/usb/sr9800.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
net               174 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to enable software MII access\n");
net               184 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to enable hardware MII access\n");
net               195 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "%s : Error reading PHYID register:%02x\n",
net               199 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "%s : returning 0x%04x\n", __func__,
net               214 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to send software reset:%02x\n",
net               227 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Error reading RX_CTL register:%02x\n",
net               241 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "%s : mode = 0x%04x\n", __func__, mode);
net               244 drivers/net/usb/sr9800.c 		netdev_err(dev->net,
net               258 drivers/net/usb/sr9800.c 		netdev_err(dev->net,
net               270 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "%s : mode = 0x%04x\n", __func__, mode);
net               273 drivers/net/usb/sr9800.c 		netdev_err(dev->net,
net               283 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "%s : value = 0x%04x\n", __func__, value);
net               286 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to write GPIO value 0x%04x:%02x\n",
net               295 drivers/net/usb/sr9800.c static void sr_set_multicast(struct net_device *net)
net               297 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               301 drivers/net/usb/sr9800.c 	if (net->flags & IFF_PROMISC) {
net               303 drivers/net/usb/sr9800.c 	} else if (net->flags & IFF_ALLMULTI ||
net               304 drivers/net/usb/sr9800.c 		   netdev_mc_count(net) > SR_MAX_MCAST) {
net               306 drivers/net/usb/sr9800.c 	} else if (netdev_mc_empty(net)) {
net               320 drivers/net/usb/sr9800.c 		netdev_for_each_mc_addr(ha, net) {
net               335 drivers/net/usb/sr9800.c static int sr_mdio_read(struct net_device *net, int phy_id, int loc)
net               337 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               346 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net,
net               354 drivers/net/usb/sr9800.c sr_mdio_write(struct net_device *net, int phy_id, int loc, int val)
net               356 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               359 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net,
net               378 drivers/net/usb/sr9800.c 		phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1);
net               389 drivers/net/usb/sr9800.c 	phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2);
net               399 drivers/net/usb/sr9800.c sr_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
net               401 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               418 drivers/net/usb/sr9800.c sr_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
net               420 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               438 drivers/net/usb/sr9800.c static int sr_get_eeprom_len(struct net_device *net)
net               440 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               446 drivers/net/usb/sr9800.c static int sr_get_eeprom(struct net_device *net,
net               449 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               472 drivers/net/usb/sr9800.c static void sr_get_drvinfo(struct net_device *net,
net               476 drivers/net/usb/sr9800.c 	usbnet_get_drvinfo(net, info);
net               481 drivers/net/usb/sr9800.c static u32 sr_get_link(struct net_device *net)
net               483 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               488 drivers/net/usb/sr9800.c static int sr_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
net               490 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               495 drivers/net/usb/sr9800.c static int sr_set_mac_address(struct net_device *net, void *p)
net               497 drivers/net/usb/sr9800.c 	struct usbnet *dev = netdev_priv(net);
net               501 drivers/net/usb/sr9800.c 	if (netif_running(net))
net               506 drivers/net/usb/sr9800.c 	memcpy(net->dev_addr, addr->sa_data, ETH_ALEN);
net               549 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "%s : speed: %u duplex: %d mode: 0x%04x\n",
net               563 drivers/net/usb/sr9800.c 	sr_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, BMCR_RESET);
net               564 drivers/net/usb/sr9800.c 	sr_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE,
net               576 drivers/net/usb/sr9800.c 		netdev_dbg(dev->net, "Write IPG,IPG1,IPG2 failed: %d\n", ret);
net               586 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after all initializations\n",
net               590 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "Medium Status:0x%04x after all initializations\n",
net               613 drivers/net/usb/sr9800.c 		netdev_dbg(dev->net, "Select PHY #1 failed: %d\n", ret);
net               641 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after software reset\n", rx_ctl);
net               647 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x setting to 0x0000\n", rx_ctl);
net               666 drivers/net/usb/sr9800.c 	memcpy(data->mac_addr, dev->net->dev_addr, ETH_ALEN);
net               698 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to power down PHY : %d\n", ret);
net               706 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to reset PHY: %d\n", ret);
net               714 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to power up PHY: %d\n", ret);
net               722 drivers/net/usb/sr9800.c 		netdev_err(dev->net, "Failed to reset PHY: %d\n", ret);
net               752 drivers/net/usb/sr9800.c 			netdev_err(dev->net, "set LINK LED failed : %d\n", ret);
net               758 drivers/net/usb/sr9800.c 			  dev->net->dev_addr);
net               760 drivers/net/usb/sr9800.c 		netdev_dbg(dev->net, "Failed to read MAC address: %d\n", ret);
net               763 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "mac addr : %pM\n", dev->net->dev_addr);
net               766 drivers/net/usb/sr9800.c 	dev->mii.dev = dev->net;
net               773 drivers/net/usb/sr9800.c 	dev->net->netdev_ops = &sr9800_netdev_ops;
net               774 drivers/net/usb/sr9800.c 	dev->net->ethtool_ops = &sr9800_ethtool_ops;
net               780 drivers/net/usb/sr9800.c 		netdev_dbg(dev->net, "Select PHY #1 failed: %d\n", ret);
net               790 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x after software reset\n", rx_ctl);
net               796 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "RX_CTL is 0x%04x setting to 0x0000\n", rx_ctl);
net               800 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "PHYID=0x%08x\n", phyid);
net               813 drivers/net/usb/sr9800.c 			netdev_err(dev->net, "Reset RX_CTL failed: %d\n", ret);
net               824 drivers/net/usb/sr9800.c 			netdev_err(dev->net, "Reset RX_CTL failed: %d\n", ret);
net               830 drivers/net/usb/sr9800.c 	netdev_dbg(dev->net, "%s : setting rx_urb_size with : %zu\n", __func__,
net               159 drivers/net/usb/usbnet.c 		tmp = hex2bin(dev->net->dev_addr, buf, 6);
net               185 drivers/net/usb/usbnet.c 		netif_dbg(dev, ifdown, dev->net,
net               193 drivers/net/usb/usbnet.c 		netdev_dbg(dev->net, "intr status %d\n", status);
net               199 drivers/net/usb/usbnet.c 		netif_err(dev, timer, dev->net,
net               321 drivers/net/usb/usbnet.c 		skb->protocol = eth_type_trans (skb, dev->net);
net               328 drivers/net/usb/usbnet.c 	netif_dbg(dev, rx_status, dev->net, "< rx, len %zu, type 0x%x\n",
net               337 drivers/net/usb/usbnet.c 		netif_dbg(dev, rx_err, dev->net,
net               378 drivers/net/usb/usbnet.c int usbnet_change_mtu (struct net_device *net, int new_mtu)
net               380 drivers/net/usb/usbnet.c 	struct usbnet	*dev = netdev_priv(net);
net               381 drivers/net/usb/usbnet.c 	int		ll_mtu = new_mtu + net->hard_header_len;
net               388 drivers/net/usb/usbnet.c 	net->mtu = new_mtu;
net               390 drivers/net/usb/usbnet.c 	dev->hard_mtu = net->mtu + net->hard_header_len;
net               458 drivers/net/usb/usbnet.c 		netdev_dbg(dev->net, "kevent %d may have been dropped\n", work);
net               460 drivers/net/usb/usbnet.c 		netdev_dbg(dev->net, "kevent %d scheduled\n", work);
net               483 drivers/net/usb/usbnet.c 		skb = __netdev_alloc_skb(dev->net, size, flags);
net               485 drivers/net/usb/usbnet.c 		skb = __netdev_alloc_skb_ip_align(dev->net, size, flags);
net               487 drivers/net/usb/usbnet.c 		netif_dbg(dev, rx_err, dev->net, "no rx skb\n");
net               503 drivers/net/usb/usbnet.c 	if (netif_running (dev->net) &&
net               504 drivers/net/usb/usbnet.c 	    netif_device_present (dev->net) &&
net               516 drivers/net/usb/usbnet.c 			netif_dbg(dev, ifdown, dev->net, "device gone\n");
net               517 drivers/net/usb/usbnet.c 			netif_device_detach (dev->net);
net               523 drivers/net/usb/usbnet.c 			netif_dbg(dev, rx_err, dev->net,
net               531 drivers/net/usb/usbnet.c 		netif_dbg(dev, ifdown, dev->net, "rx: stopped\n");
net               551 drivers/net/usb/usbnet.c 			dev->net->stats.rx_errors++;
net               561 drivers/net/usb/usbnet.c 		dev->net->stats.rx_errors++;
net               562 drivers/net/usb/usbnet.c 		dev->net->stats.rx_length_errors++;
net               563 drivers/net/usb/usbnet.c 		netif_dbg(dev, rx_err, dev->net, "rx length %d\n", skb->len);
net               598 drivers/net/usb/usbnet.c 		dev->net->stats.rx_errors++;
net               605 drivers/net/usb/usbnet.c 		netif_dbg(dev, ifdown, dev->net,
net               616 drivers/net/usb/usbnet.c 		dev->net->stats.rx_errors++;
net               619 drivers/net/usb/usbnet.c 			netif_dbg(dev, link, dev->net,
net               630 drivers/net/usb/usbnet.c 		dev->net->stats.rx_over_errors++;
net               635 drivers/net/usb/usbnet.c 		dev->net->stats.rx_errors++;
net               636 drivers/net/usb/usbnet.c 		netif_dbg(dev, rx_err, dev->net, "rx status %d\n", urb_status);
net               654 drivers/net/usb/usbnet.c 		if (netif_running (dev->net) &&
net               663 drivers/net/usb/usbnet.c 	netif_dbg(dev, rx_err, dev->net, "no read resubmitted\n");
net               671 drivers/net/usb/usbnet.c 	netif_dbg(dev, rx_status, dev->net, "paused rx queue enabled\n");
net               689 drivers/net/usb/usbnet.c 	netif_dbg(dev, rx_status, dev->net,
net               739 drivers/net/usb/usbnet.c 			netdev_dbg(dev->net, "unlink urb err, %d\n", retval);
net               754 drivers/net/usb/usbnet.c 	if (netif_running(dev->net)) {
net               793 drivers/net/usb/usbnet.c 	netif_dbg(dev, ifdown, dev->net,
net               799 drivers/net/usb/usbnet.c int usbnet_stop (struct net_device *net)
net               801 drivers/net/usb/usbnet.c 	struct usbnet		*dev = netdev_priv(net);
net               806 drivers/net/usb/usbnet.c 	netif_stop_queue (net);
net               808 drivers/net/usb/usbnet.c 	netif_info(dev, ifdown, dev->net,
net               810 drivers/net/usb/usbnet.c 		   net->stats.rx_packets, net->stats.tx_packets,
net               811 drivers/net/usb/usbnet.c 		   net->stats.rx_errors, net->stats.tx_errors);
net               820 drivers/net/usb/usbnet.c 			netif_info(dev, ifdown, dev->net,
net               861 drivers/net/usb/usbnet.c int usbnet_open (struct net_device *net)
net               863 drivers/net/usb/usbnet.c 	struct usbnet		*dev = netdev_priv(net);
net               868 drivers/net/usb/usbnet.c 		netif_info(dev, ifup, dev->net,
net               879 drivers/net/usb/usbnet.c 		netif_info(dev, ifup, dev->net,
net               893 drivers/net/usb/usbnet.c 		netif_dbg(dev, ifup, dev->net, "can't open; %d\n", retval);
net               901 drivers/net/usb/usbnet.c 			netif_err(dev, ifup, dev->net,
net               908 drivers/net/usb/usbnet.c 	netif_start_queue (net);
net               909 drivers/net/usb/usbnet.c 	netif_info(dev, ifup, dev->net,
net               912 drivers/net/usb/usbnet.c 		   dev->net->mtu,
net               950 drivers/net/usb/usbnet.c int usbnet_get_link_ksettings(struct net_device *net,
net               953 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net               964 drivers/net/usb/usbnet.c int usbnet_set_link_ksettings(struct net_device *net,
net               967 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net               986 drivers/net/usb/usbnet.c void usbnet_get_stats64(struct net_device *net, struct rtnl_link_stats64 *stats)
net               988 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net               992 drivers/net/usb/usbnet.c 	netdev_stats_to_stats64(stats, &net->stats);
net              1017 drivers/net/usb/usbnet.c u32 usbnet_get_link (struct net_device *net)
net              1019 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net              1030 drivers/net/usb/usbnet.c 	return ethtool_op_get_link(net);
net              1034 drivers/net/usb/usbnet.c int usbnet_nway_reset(struct net_device *net)
net              1036 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net              1045 drivers/net/usb/usbnet.c void usbnet_get_drvinfo (struct net_device *net, struct ethtool_drvinfo *info)
net              1047 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net              1057 drivers/net/usb/usbnet.c u32 usbnet_get_msglevel (struct net_device *net)
net              1059 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net              1065 drivers/net/usb/usbnet.c void usbnet_set_msglevel (struct net_device *net, u32 level)
net              1067 drivers/net/usb/usbnet.c 	struct usbnet *dev = netdev_priv(net);
net              1092 drivers/net/usb/usbnet.c 	if (!netif_carrier_ok(dev->net)) {
net              1111 drivers/net/usb/usbnet.c static void usbnet_set_rx_mode(struct net_device *net)
net              1113 drivers/net/usb/usbnet.c 	struct usbnet		*dev = netdev_priv(net);
net              1151 drivers/net/usb/usbnet.c 				netdev_err(dev->net, "can't clear tx halt, status %d\n",
net              1156 drivers/net/usb/usbnet.c 				netif_wake_queue (dev->net);
net              1171 drivers/net/usb/usbnet.c 				netdev_err(dev->net, "can't clear rx halt, status %d\n",
net              1184 drivers/net/usb/usbnet.c 		if (netif_running (dev->net))
net              1215 drivers/net/usb/usbnet.c 			netdev_info(dev->net, "link reset failed (%d) usbnet usb-%s-%s, %s\n",
net              1236 drivers/net/usb/usbnet.c 		netdev_dbg(dev->net, "kevent done, flags = 0x%lx\n", dev->flags);
net              1256 drivers/net/usb/usbnet.c 		dev->net->stats.tx_errors++;
net              1278 drivers/net/usb/usbnet.c 				netif_dbg(dev, link, dev->net,
net              1281 drivers/net/usb/usbnet.c 			netif_stop_queue (dev->net);
net              1284 drivers/net/usb/usbnet.c 			netif_dbg(dev, tx_err, dev->net,
net              1296 drivers/net/usb/usbnet.c void usbnet_tx_timeout (struct net_device *net)
net              1298 drivers/net/usb/usbnet.c 	struct usbnet		*dev = netdev_priv(net);
net              1347 drivers/net/usb/usbnet.c 				     struct net_device *net)
net              1349 drivers/net/usb/usbnet.c 	struct usbnet		*dev = netdev_priv(net);
net              1368 drivers/net/usb/usbnet.c 			netif_dbg(dev, tx_err, dev->net, "can't tx_fixup skb\n");
net              1374 drivers/net/usb/usbnet.c 		netif_dbg(dev, tx_err, dev->net, "no urb\n");
net              1431 drivers/net/usb/usbnet.c 	if (netif_queue_stopped(net)) {
net              1443 drivers/net/usb/usbnet.c 		netif_stop_queue(net);
net              1446 drivers/net/usb/usbnet.c 		netdev_dbg(dev->net, "Delaying transmission for resumption\n");
net              1453 drivers/net/usb/usbnet.c 		netif_stop_queue (net);
net              1459 drivers/net/usb/usbnet.c 		netif_dbg(dev, tx_err, dev->net,
net              1463 drivers/net/usb/usbnet.c 		netif_trans_update(net);
net              1466 drivers/net/usb/usbnet.c 			netif_stop_queue (net);
net              1471 drivers/net/usb/usbnet.c 		netif_dbg(dev, tx_err, dev->net, "drop, code %d\n", retval);
net              1473 drivers/net/usb/usbnet.c 		dev->net->stats.tx_dropped++;
net              1482 drivers/net/usb/usbnet.c 		netif_dbg(dev, tx_queued, dev->net,
net              1538 drivers/net/usb/usbnet.c 			netdev_dbg(dev->net, "bogus skb state %d\n", entry->state);
net              1553 drivers/net/usb/usbnet.c 	} else if (netif_running (dev->net) &&
net              1554 drivers/net/usb/usbnet.c 		   netif_device_present (dev->net) &&
net              1555 drivers/net/usb/usbnet.c 		   netif_carrier_ok(dev->net) &&
net              1565 drivers/net/usb/usbnet.c 				netif_dbg(dev, link, dev->net,
net              1572 drivers/net/usb/usbnet.c 			netif_wake_queue (dev->net);
net              1589 drivers/net/usb/usbnet.c 	struct net_device	*net;
net              1598 drivers/net/usb/usbnet.c 	netif_info(dev, probe, dev->net, "unregister '%s' usb-%s-%s, %s\n",
net              1603 drivers/net/usb/usbnet.c 	net = dev->net;
net              1604 drivers/net/usb/usbnet.c 	unregister_netdev (net);
net              1618 drivers/net/usb/usbnet.c 	free_netdev(net);
net              1650 drivers/net/usb/usbnet.c 	struct net_device		*net;
net              1679 drivers/net/usb/usbnet.c 	net = alloc_etherdev(sizeof(*dev));
net              1680 drivers/net/usb/usbnet.c 	if (!net)
net              1684 drivers/net/usb/usbnet.c 	SET_NETDEV_DEV(net, &udev->dev);
net              1686 drivers/net/usb/usbnet.c 	dev = netdev_priv(net);
net              1712 drivers/net/usb/usbnet.c 	dev->net = net;
net              1713 drivers/net/usb/usbnet.c 	strcpy (net->name, "usb%d");
net              1714 drivers/net/usb/usbnet.c 	memcpy (net->dev_addr, node_id, sizeof node_id);
net              1719 drivers/net/usb/usbnet.c 	dev->hard_mtu = net->mtu + net->hard_header_len;
net              1720 drivers/net/usb/usbnet.c 	net->min_mtu = 0;
net              1721 drivers/net/usb/usbnet.c 	net->max_mtu = ETH_MAX_MTU;
net              1723 drivers/net/usb/usbnet.c 	net->netdev_ops = &usbnet_netdev_ops;
net              1724 drivers/net/usb/usbnet.c 	net->watchdog_timeo = TX_TIMEOUT_JIFFIES;
net              1725 drivers/net/usb/usbnet.c 	net->ethtool_ops = &usbnet_ethtool_ops;
net              1739 drivers/net/usb/usbnet.c 		     (net->dev_addr [0] & 0x02) == 0))
net              1740 drivers/net/usb/usbnet.c 			strcpy (net->name, "eth%d");
net              1743 drivers/net/usb/usbnet.c 			strcpy(net->name, "wlan%d");
net              1746 drivers/net/usb/usbnet.c 			strcpy(net->name, "wwan%d");
net              1750 drivers/net/usb/usbnet.c 			net->flags |= IFF_NOARP;
net              1753 drivers/net/usb/usbnet.c 		if (net->mtu > (dev->hard_mtu - net->hard_header_len))
net              1754 drivers/net/usb/usbnet.c 			net->mtu = dev->hard_mtu - net->hard_header_len;
net              1778 drivers/net/usb/usbnet.c 	if (ether_addr_equal(net->dev_addr, node_id))
net              1779 drivers/net/usb/usbnet.c 		net->addr_assign_type = NET_ADDR_RANDOM;
net              1782 drivers/net/usb/usbnet.c 		SET_NETDEV_DEVTYPE(net, &wlan_type);
net              1784 drivers/net/usb/usbnet.c 		SET_NETDEV_DEVTYPE(net, &wwan_type);
net              1798 drivers/net/usb/usbnet.c 	status = register_netdev (net);
net              1801 drivers/net/usb/usbnet.c 	netif_info(dev, probe, dev->net,
net              1806 drivers/net/usb/usbnet.c 		   net->dev_addr);
net              1811 drivers/net/usb/usbnet.c 	netif_device_attach (net);
net              1835 drivers/net/usb/usbnet.c 	free_netdev(net);
net              1867 drivers/net/usb/usbnet.c 		netif_device_detach (dev->net);
net              1875 drivers/net/usb/usbnet.c 		netif_device_attach (dev->net);
net              1903 drivers/net/usb/usbnet.c 				netif_trans_update(dev->net);
net              1916 drivers/net/usb/usbnet.c 			if (netif_device_present(dev->net) &&
net              1922 drivers/net/usb/usbnet.c 				netif_tx_wake_all_queues(dev->net);
net              1962 drivers/net/usb/usbnet.c 		netif_carrier_on(dev->net);
net              1964 drivers/net/usb/usbnet.c 		netif_carrier_off(dev->net);
net              1980 drivers/net/usb/usbnet.c 	netdev_dbg(dev->net, "usbnet_read_cmd cmd=0x%02x reqtype=%02x"
net              1997 drivers/net/usb/usbnet.c             netdev_dbg(dev->net,
net              2012 drivers/net/usb/usbnet.c 	netdev_dbg(dev->net, "usbnet_write_cmd cmd=0x%02x reqtype=%02x"
net              2123 drivers/net/usb/usbnet.c 	netdev_dbg(dev->net, "usbnet_write_cmd cmd=0x%02x reqtype=%02x"
net              2134 drivers/net/usb/usbnet.c 			netdev_err(dev->net, "Error allocating buffer"
net              2158 drivers/net/usb/usbnet.c 		netdev_err(dev->net, "Error submitting the control"
net                78 drivers/net/usb/zaurus.c 	dev->net->hard_header_len += 6;
net                79 drivers/net/usb/zaurus.c 	dev->rx_urb_size = dev->net->hard_header_len + dev->net->mtu;
net               216 drivers/net/usb/zaurus.c 			dev->net->hard_header_len += 6;
net               217 drivers/net/usb/zaurus.c 			dev->rx_urb_size = dev->net->hard_header_len
net               218 drivers/net/usb/zaurus.c 					+ dev->net->mtu;
net              1236 drivers/net/veth.c static int veth_newlink(struct net *src_net, struct net_device *dev,
net              1247 drivers/net/veth.c 	struct net *net;
net              1282 drivers/net/veth.c 	net = rtnl_link_get_net(src_net, tbp);
net              1283 drivers/net/veth.c 	if (IS_ERR(net))
net              1284 drivers/net/veth.c 		return PTR_ERR(net);
net              1286 drivers/net/veth.c 	peer = rtnl_create_link(net, ifname, name_assign_type,
net              1289 drivers/net/veth.c 		put_net(net);
net              1303 drivers/net/veth.c 	put_net(net);
net              1304 drivers/net/veth.c 	net = NULL;
net              1384 drivers/net/veth.c static struct net *veth_get_link_net(const struct net_device *dev)
net               151 drivers/net/vrf.c static int vrf_ip6_local_out(struct net *net, struct sock *sk,
net               156 drivers/net/vrf.c 	err = nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net,
net               160 drivers/net/vrf.c 		err = dst_output(net, sk, skb);
net               169 drivers/net/vrf.c 	struct net *net = dev_net(skb->dev);
net               173 drivers/net/vrf.c 	struct dst_entry *dst_null = &net->ipv6.ip6_null_entry->dst;
net               191 drivers/net/vrf.c 	dst = ip6_dst_lookup_flow(net, NULL, &fl6, NULL);
net               209 drivers/net/vrf.c 	ret = vrf_ip6_local_out(net, skb->sk, skb);
net               230 drivers/net/vrf.c static int vrf_ip_local_out(struct net *net, struct sock *sk,
net               235 drivers/net/vrf.c 	err = nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk,
net               238 drivers/net/vrf.c 		err = dst_output(net, sk, skb);
net               249 drivers/net/vrf.c 	struct net *net = dev_net(vrf_dev);
net               267 drivers/net/vrf.c 	rt = ip_route_output_flow(net, &fl4, NULL);
net               335 drivers/net/vrf.c static int vrf_finish_direct(struct net *net, struct sock *sk,
net               360 drivers/net/vrf.c static int vrf_finish_output6(struct net *net, struct sock *sk,
net               394 drivers/net/vrf.c static int vrf_output6(struct net *net, struct sock *sk, struct sk_buff *skb)
net               397 drivers/net/vrf.c 			    net, sk, skb, NULL, skb_dst(skb)->dev,
net               434 drivers/net/vrf.c static int vrf_output6_direct(struct net *net, struct sock *sk,
net               440 drivers/net/vrf.c 			    net, sk, skb, NULL, skb->dev,
net               449 drivers/net/vrf.c 	struct net *net = dev_net(vrf_dev);
net               454 drivers/net/vrf.c 	err = nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, sk,
net               458 drivers/net/vrf.c 		err = vrf_output6_direct(net, sk, skb);
net               488 drivers/net/vrf.c 	struct net *net = dev_net(dev);
net               500 drivers/net/vrf.c 		dst->dev = net->loopback_dev;
net               510 drivers/net/vrf.c 	struct net *net = dev_net(dev);
net               518 drivers/net/vrf.c 	vrf->fib6_table = fib6_new_table(net, vrf->tb_id);
net               523 drivers/net/vrf.c 	rt6 = ip6_dst_alloc(net, dev, flags);
net               554 drivers/net/vrf.c static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               599 drivers/net/vrf.c static int vrf_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               603 drivers/net/vrf.c 	IP_UPD_PO_STATS(net, IPSTATS_MIB_OUT, skb->len);
net               609 drivers/net/vrf.c 			    net, sk, skb, NULL, dev,
net               646 drivers/net/vrf.c static int vrf_output_direct(struct net *net, struct sock *sk,
net               652 drivers/net/vrf.c 			    net, sk, skb, NULL, skb->dev,
net               661 drivers/net/vrf.c 	struct net *net = dev_net(vrf_dev);
net               666 drivers/net/vrf.c 	err = nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk,
net               670 drivers/net/vrf.c 		err = vrf_output_direct(net, sk, skb);
net               717 drivers/net/vrf.c 	struct net *net = dev_net(dev);
net               729 drivers/net/vrf.c 		dst->dev = net->loopback_dev;
net               898 drivers/net/vrf.c static int vrf_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               908 drivers/net/vrf.c 	struct net *net = dev_net(dev);
net               910 drivers/net/vrf.c 	if (nf_hook(pf, hook, net, NULL, skb, dev, NULL, vrf_rcv_finish) != 1)
net               951 drivers/net/vrf.c static struct rt6_info *vrf_ip6_route_lookup(struct net *net,
net               960 drivers/net/vrf.c 	return ip6_pol_route(net, vrf->fib6_table, ifindex, fl6, skb, flags);
net               975 drivers/net/vrf.c 	struct net *net = dev_net(vrf_dev);
net               978 drivers/net/vrf.c 	rt6 = vrf_ip6_route_lookup(net, vrf_dev, &fl6, ifindex, skb,
net               983 drivers/net/vrf.c 	if (unlikely(&rt6->dst == &net->ipv6.ip6_null_entry->dst))
net              1094 drivers/net/vrf.c 	struct net *net = dev_net(dev);
net              1104 drivers/net/vrf.c 		dst = &net->ipv6.ip6_null_entry->dst;
net              1111 drivers/net/vrf.c 	rt = vrf_ip6_route_lookup(net, dev, fl6, fl6->flowi6_oif, NULL, flags);
net              1324 drivers/net/vrf.c static int vrf_newlink(struct net *src_net, struct net_device *dev,
net              1330 drivers/net/vrf.c 	struct net *net;
net              1351 drivers/net/vrf.c 	net = dev_net(dev);
net              1352 drivers/net/vrf.c 	add_fib_rules = net_generic(net, vrf_net_id);
net              1443 drivers/net/vrf.c static int __net_init vrf_netns_init(struct net *net)
net              1445 drivers/net/vrf.c 	bool *add_fib_rules = net_generic(net, vrf_net_id);
net               165 drivers/net/vxlan.c static inline struct hlist_head *vs_head(struct net *net, __be16 port)
net               167 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);
net               188 drivers/net/vxlan.c static struct vxlan_sock *vxlan_find_sock(struct net *net, sa_family_t family,
net               195 drivers/net/vxlan.c 	hlist_for_each_entry_rcu(vs, vs_head(net, port), hlist) {
net               233 drivers/net/vxlan.c static struct vxlan_dev *vxlan_find_vni(struct net *net, int ifindex,
net               239 drivers/net/vxlan.c 	vs = vxlan_find_sock(net, family, port, flags, ifindex);
net               280 drivers/net/vxlan.c 	if (!net_eq(dev_net(vxlan->dev), vxlan->net) &&
net               282 drivers/net/vxlan.c 			peernet2id(dev_net(vxlan->dev), vxlan->net)))
net               336 drivers/net/vxlan.c 	struct net *net = dev_net(vxlan->dev);
net               352 drivers/net/vxlan.c 	rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC);
net               356 drivers/net/vxlan.c 		rtnl_set_sk_err(net, RTNLGRP_NEIGH, err);
net              1055 drivers/net/vxlan.c 	struct net *net = dev_net(vxlan->dev);
net              1105 drivers/net/vxlan.c 		tdev = __dev_get_by_index(net, *ifindex);
net              1699 drivers/net/vxlan.c 				   !net_eq(vxlan->net, dev_net(vxlan->dev))))
net              2250 drivers/net/vxlan.c 	rt = ip_route_output_key(vxlan->net, &fl4);
net              2305 drivers/net/vxlan.c 	ndst = ipv6_stub->ipv6_dst_lookup_flow(vxlan->net, sock6->sock->sk,
net              2399 drivers/net/vxlan.c 		dst_vxlan = vxlan_find_vni(vxlan->net, dst_ifindex, vni,
net              2435 drivers/net/vxlan.c 	bool xnet = !net_eq(vxlan->net, dev_net(vxlan->dev));
net              2761 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id);
net              2774 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id);
net              2877 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id);
net              2901 drivers/net/vxlan.c 	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,
net              3003 drivers/net/vxlan.c 	struct net *net = dev_net(dev);
net              3004 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);
net              3193 drivers/net/vxlan.c static struct socket *vxlan_create_sock(struct net *net, bool ipv6,
net              3215 drivers/net/vxlan.c 	err = udp_sock_create(net, &udp_conf, &sock);
net              3223 drivers/net/vxlan.c static struct vxlan_sock *vxlan_socket_create(struct net *net, bool ipv6,
net              3227 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);
net              3240 drivers/net/vxlan.c 	sock = vxlan_create_sock(net, ipv6, port, flags, ifindex);
net              3251 drivers/net/vxlan.c 	hlist_add_head_rcu(&vs->hlist, vs_head(net, port));
net              3268 drivers/net/vxlan.c 	setup_udp_tunnel_sock(net, sock, &tunnel_cfg);
net              3275 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id);
net              3282 drivers/net/vxlan.c 			vxlan->net, vxlan->cfg.remote_ifindex);
net              3286 drivers/net/vxlan.c 		vs = vxlan_find_sock(vxlan->net, ipv6 ? AF_INET6 : AF_INET,
net              3296 drivers/net/vxlan.c 		vs = vxlan_socket_create(vxlan->net, ipv6,
net              3338 drivers/net/vxlan.c static int vxlan_config_validate(struct net *src_net, struct vxlan_config *conf,
net              3503 drivers/net/vxlan.c 			       struct net *src_net,
net              3521 drivers/net/vxlan.c 		vxlan->net = src_net;
net              3557 drivers/net/vxlan.c static int vxlan_dev_configure(struct net *src_net, struct net_device *dev,
net              3574 drivers/net/vxlan.c static int __vxlan_dev_create(struct net *net, struct net_device *dev,
net              3578 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);
net              3587 drivers/net/vxlan.c 	err = vxlan_dev_configure(net, dev, conf, false, extack);
net              3613 drivers/net/vxlan.c 		remote_dev = __dev_get_by_index(net, dst->remote_ifindex);
net              3945 drivers/net/vxlan.c static int vxlan_newlink(struct net *src_net, struct net_device *dev,
net              3974 drivers/net/vxlan.c 	err = vxlan_config_validate(vxlan->net, &conf, &lowerdev,
net              4027 drivers/net/vxlan.c 	vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true);
net              4170 drivers/net/vxlan.c static struct net *vxlan_get_link_net(const struct net_device *dev)
net              4174 drivers/net/vxlan.c 	return vxlan->net;
net              4192 drivers/net/vxlan.c struct net_device *vxlan_dev_create(struct net *net, const char *name,
net              4202 drivers/net/vxlan.c 	dev = rtnl_create_link(net, name, name_assign_type,
net              4207 drivers/net/vxlan.c 	err = __vxlan_dev_create(net, dev, conf, NULL);
net              4397 drivers/net/vxlan.c static __net_init int vxlan_init_net(struct net *net)
net              4399 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);
net              4411 drivers/net/vxlan.c static void vxlan_destroy_tunnels(struct net *net, struct list_head *head)
net              4413 drivers/net/vxlan.c 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);
net              4418 drivers/net/vxlan.c 	for_each_netdev_safe(net, dev, aux)
net              4426 drivers/net/vxlan.c 		if (!net_eq(dev_net(vxlan->dev), net))
net              4436 drivers/net/vxlan.c 	struct net *net;
net              4440 drivers/net/vxlan.c 	list_for_each_entry(net, net_list, exit_list)
net              4441 drivers/net/vxlan.c 		vxlan_destroy_tunnels(net, &list);
net              7447 drivers/net/wireless/cisco/airo.c 	BSSListElement *net;
net              7458 drivers/net/wireless/cisco/airo.c 	list_for_each_entry (net, &ai->network_list, list) {
net              7462 drivers/net/wireless/cisco/airo.c 						 &net->bss);
net               263 drivers/net/wireless/mac80211_hwsim.c static inline int hwsim_net_get_netgroup(struct net *net)
net               265 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_net *hwsim_net = net_generic(net, hwsim_net_id);
net               270 drivers/net/wireless/mac80211_hwsim.c static inline int hwsim_net_set_netgroup(struct net *net)
net               272 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_net *hwsim_net = net_generic(net, hwsim_net_id);
net               279 drivers/net/wireless/mac80211_hwsim.c static inline u32 hwsim_net_get_wmediumd(struct net *net)
net               281 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_net *hwsim_net = net_generic(net, hwsim_net_id);
net               286 drivers/net/wireless/mac80211_hwsim.c static inline void hwsim_net_set_wmediumd(struct net *net, u32 portid)
net               288 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_net *hwsim_net = net_generic(net, hwsim_net_id);
net               984 drivers/net/wireless/mac80211_hwsim.c 	struct net *net;
net               989 drivers/net/wireless/mac80211_hwsim.c 	for_each_net_rcu(net) {
net               990 drivers/net/wireless/mac80211_hwsim.c 		if (data->netgroup == hwsim_net_get_netgroup(net)) {
net               991 drivers/net/wireless/mac80211_hwsim.c 			res = genlmsg_unicast(net, skb, portid);
net              2737 drivers/net/wireless/mac80211_hwsim.c 	struct net *net;
net              2761 drivers/net/wireless/mac80211_hwsim.c 		net = genl_info_net(info);
net              2763 drivers/net/wireless/mac80211_hwsim.c 		net = &init_net;
net              2764 drivers/net/wireless/mac80211_hwsim.c 	wiphy_net_set(hw->wiphy, net);
net              2999 drivers/net/wireless/mac80211_hwsim.c 	data->netgroup = hwsim_net_get_netgroup(net);
net              3000 drivers/net/wireless/mac80211_hwsim.c 	data->wmediumd = hwsim_net_get_wmediumd(net);
net              3219 drivers/net/wireless/mac80211_hwsim.c static void hwsim_register_wmediumd(struct net *net, u32 portid)
net              3223 drivers/net/wireless/mac80211_hwsim.c 	hwsim_net_set_wmediumd(net, portid);
net              3227 drivers/net/wireless/mac80211_hwsim.c 		if (data->netgroup == hwsim_net_get_netgroup(net))
net              3415 drivers/net/wireless/mac80211_hwsim.c 	struct net *net = genl_info_net(info);
net              3432 drivers/net/wireless/mac80211_hwsim.c 	if (hwsim_net_get_wmediumd(net))
net              3435 drivers/net/wireless/mac80211_hwsim.c 	hwsim_register_wmediumd(net, info->snd_portid);
net              3815 drivers/net/wireless/mac80211_hwsim.c 	if (notify->portid == hwsim_net_get_wmediumd(notify->net)) {
net              3818 drivers/net/wireless/mac80211_hwsim.c 		hwsim_register_wmediumd(notify->net, 0);
net              3851 drivers/net/wireless/mac80211_hwsim.c static __net_init int hwsim_init_net(struct net *net)
net              3853 drivers/net/wireless/mac80211_hwsim.c 	return hwsim_net_set_netgroup(net);
net              3856 drivers/net/wireless/mac80211_hwsim.c static void __net_exit hwsim_exit_net(struct net *net)
net              3863 drivers/net/wireless/mac80211_hwsim.c 		if (!net_eq(wiphy_net(data->hw->wiphy), net))
net              3884 drivers/net/wireless/mac80211_hwsim.c 	ida_simple_remove(&hwsim_netgroup_ida, hwsim_net_get_netgroup(net));
net               729 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(dev->net, "%s(%s): rndis_command() failed, %d (%08x)\n",
net               739 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(dev->net, "%s(%s): received invalid "
net               765 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(dev->net, "%s(%s): device returned error,  0x%08x (%d)\n",
net               817 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(dev->net, "%s(%s): rndis_command() failed, %d (%08x)\n",
net               825 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(dev->net, "%s(%s): device returned error, 0x%08x (%d)\n",
net               896 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(dev->net, "setting config parameter: %s, value: %s\n",
net               899 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(dev->net, "setting config parameter: %s, value: %d\n",
net               923 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(dev->net, "info buffer (len: %d)\n", info_len);
net               926 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(dev->net, "%08X:%08X:%08X\n",
net               936 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(dev->net, "setting rndis config parameter failed, %d\n",
net               984 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "setting SSID failed (%08X)\n", ret);
net               989 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): radio_on = true\n", __func__);
net              1002 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "setting BSSID[%pM] failed (%08X)\n",
net              1067 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "%s(): radio_on = false\n",
net              1101 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): wpa_version=0x%x authalg=0x%x keymgmt=0x%x\n",
net              1130 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "setting auth mode failed (%08X)\n",
net              1145 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): wpa_version=0x%x\n",
net              1164 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): cipher_pair=0x%x cipher_group=0x%x\n",
net              1185 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "setting encr mode failed (%08X)\n",
net              1199 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): infra_mode=0x%x\n",
net              1207 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "setting infra mode failed (%08X)\n",
net              1225 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %i\n", __func__, rts_threshold);
net              1240 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %i\n", __func__, frag_threshold);
net              1275 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%d)\n", __func__, channel);
net              1289 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): querying configuration failed\n",
net              1299 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %d -> %d\n", __func__, channel, ret);
net              1317 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_CONFIGURATION -> %d\n",
net              1341 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(idx: %d, len: %d)\n",
net              1366 drivers/net/wireless/rndis_wlan.c 			netdev_warn(usbdev->net, "encryption couldn't be enabled (%08X)\n",
net              1374 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "adding encryption key %d failed (%08X)\n",
net              1397 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): index out of range (%i)\n",
net              1402 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): key length out of range (%i)\n",
net              1408 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "%s(): recv seq flag without buffer\n",
net              1413 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "%s(): too big recv seq buffer\n", __func__);
net              1421 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): pairwise but bssid invalid (%pM)\n",
net              1426 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%i): flags:%i%i%i\n",
net              1465 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_ADD_KEY -> %08X\n",
net              1495 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %i:%i\n", __func__, key_idx, key.len);
net              1533 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %i:%s:%i\n",
net              1564 drivers/net/wireless/rndis_wlan.c 			netdev_warn(usbdev->net,
net              1590 drivers/net/wireless/rndis_wlan.c 	if (usbdev->net->flags & IFF_PROMISC) {
net              1593 drivers/net/wireless/rndis_wlan.c 	} else if (usbdev->net->flags & IFF_ALLMULTI) {
net              1604 drivers/net/wireless/rndis_wlan.c 	netif_addr_lock_bh(usbdev->net);
net              1605 drivers/net/wireless/rndis_wlan.c 	mc_count = netdev_mc_count(usbdev->net);
net              1613 drivers/net/wireless/rndis_wlan.c 			netif_addr_unlock_bh(usbdev->net);
net              1617 drivers/net/wireless/rndis_wlan.c 		netdev_for_each_mc_addr(ha, usbdev->net)
net              1621 drivers/net/wireless/rndis_wlan.c 	netif_addr_unlock_bh(usbdev->net);
net              1636 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "RNDIS_OID_802_3_MULTICAST_LIST(%d, max: %d) -> %d\n",
net              1644 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "couldn't set packet filter: %08x\n",
net              1648 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "RNDIS_OID_GEN_CURRENT_PACKET_FILTER(%08x) -> %d\n",
net              1666 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %d PMKIDs (data len: %d, entry len: "
net              1675 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s():  bssid: %pM, "
net              1710 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_PMKID(%d, %d)"
net              1739 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_PMKID(%d, %d) -> %d"
net              1767 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): bssid not found (%pM)\n",
net              1814 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): out of space\n", __func__);
net              1898 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): type:0x%x mbm:%i\n",
net              1928 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): dbm:%i\n", __func__, *dbm);
net              1943 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "cfg80211.scan\n");
net              1981 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, " found bssid: '%.32s' [%pM], len: %d\n",
net              2061 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s()\n", __func__);
net              2091 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): buflen: %d\n", __func__, len);
net              2110 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): num_items from device: %d, really found:"
net              2126 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "get_scan_results\n");
net              2161 drivers/net/wireless/rndis_wlan.c 		netdev_err(usbdev->net, "Unsupported pairwise cipher\n");
net              2171 drivers/net/wireless/rndis_wlan.c 		netdev_err(usbdev->net, "Invalid keymgmt\n");
net              2175 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "cfg80211.connect('%.32s':[%pM]:%d:[%d,0x%x:0x%x]:[0x%x:0x%x]:0x%x)\n",
net              2185 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "connect: set_infra_mode failed, %d\n",
net              2193 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "connect: set_auth_mode failed, %d\n",
net              2202 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "connect: set_encr_mode failed, %d\n",
net              2210 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "connect: set_channel failed, %d\n",
net              2220 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "connect: add_wep_key failed, %d (%d, %d)\n",
net              2230 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "connect: set_bssid failed, %d\n",
net              2253 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "connect: set_essid failed, %d\n", ret);
net              2268 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "cfg80211.disconnect(%d)\n", reason_code);
net              2302 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "cfg80211.join_ibss('%.32s':[%pM]:%d:%d)\n",
net              2310 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "join_ibss: set_infra_mode failed, %d\n",
net              2317 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "join_ibss: set_auth_mode failed, %d\n",
net              2326 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "join_ibss: set_encr_mode failed, %d\n",
net              2334 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "join_ibss: set_channel failed, %d\n",
net              2344 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "join_ibss: set_bssid failed, %d\n",
net              2365 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "join_ibss: set_essid failed, %d\n",
net              2380 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "cfg80211.leave_ibss()\n");
net              2396 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%i, %pM, %08x)\n",
net              2418 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "%s(): unsupported cipher %08x\n",
net              2430 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%i, %pM)\n", __func__, key_index, mac_addr);
net              2442 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%i)\n", __func__, key_index);
net              2519 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%pM, %08X:%08X:%08X:%08X)\n", __func__,
net              2547 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(%pM, %08X:%08X:%08X:%08X)\n", __func__,
net              2573 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s()\n", __func__);
net              2596 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): %s, %d\n", __func__,
net              2614 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_POWER_MODE -> %d\n",
net              2655 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_RSSI -> %d, "
net              2671 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "%s(): could not get channel.\n",
net              2681 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): RNDIS_OID_802_11_SSID -> %d, len: %d, ssid: "
net              2697 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s(): channel:%d(freq), bssid:[%pM], tsf:%d, "
net              2794 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "link up work: [%pM]%s\n",
net              2820 drivers/net/wireless/rndis_wlan.c 			cfg80211_connect_result(usbdev->net, bssid, req_ie,
net              2833 drivers/net/wireless/rndis_wlan.c 			cfg80211_roamed(usbdev->net, &roam_info, GFP_KERNEL);
net              2836 drivers/net/wireless/rndis_wlan.c 		cfg80211_ibss_joined(usbdev->net, bssid,
net              2846 drivers/net/wireless/rndis_wlan.c 	netif_carrier_on(usbdev->net);
net              2859 drivers/net/wireless/rndis_wlan.c 		cfg80211_disconnected(usbdev->net, 0, NULL, 0, true, GFP_KERNEL);
net              2862 drivers/net/wireless/rndis_wlan.c 	netif_carrier_off(usbdev->net);
net              2907 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "authentication indication: too short message (%i)\n",
net              2937 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "authentication indication: %s (0x%08x)\n",
net              2944 drivers/net/wireless/rndis_wlan.c 			cfg80211_michael_mic_failure(usbdev->net,
net              2954 drivers/net/wireless/rndis_wlan.c 			cfg80211_michael_mic_failure(usbdev->net,
net              2974 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "pmkid candidate list indication: too short message (%i)\n",
net              2985 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "pmkid candidate list indication: list larger than buffer (%i < %i)\n",
net              2992 drivers/net/wireless/rndis_wlan.c 	netdev_info(usbdev->net, "pmkid candidate list indication: version %i, candidates %i\n",
net              3004 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "cand[%i]: flags: 0x%08x, preauth: %d, bssid: %pM\n",
net              3007 drivers/net/wireless/rndis_wlan.c 		cfg80211_pmksa_candidate_notify(usbdev->net, i, cand->bssid,
net              3023 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "media specific indication, ignore too short message (%i < 8)\n",
net              3029 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "media specific indication, too large to fit to buffer (%i > %i)\n",
net              3038 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "radio state indication: %i\n",
net              3043 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "media stream mode indication: %i\n",
net              3056 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "media specific indication: unknown status type 0x%08x\n",
net              3074 drivers/net/wireless/rndis_wlan.c 			netdev_dbg(usbdev->net, "ignored RNDIS_OID_802_11_ADD_KEY triggered 'media connect'\n");
net              3080 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "media connect\n");
net              3088 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "media disconnect\n");
net              3100 drivers/net/wireless/rndis_wlan.c 		netdev_info(usbdev->net, "indication: 0x%08x\n",
net              3149 drivers/net/wireless/rndis_wlan.c 		netdev_dbg(usbdev->net, "RNDIS_OID_802_11_CAPABILITY -> len %d, "
net              3185 drivers/net/wireless/rndis_wlan.c 	cfg80211_cqm_rssi_notify(usbdev->net, event, rssi, GFP_KERNEL);
net              3228 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "dev-poller: RNDIS_OID_802_11_RSSI -> %d, rssi:%d, qual: %d\n",
net              3412 drivers/net/wireless/rndis_wlan.c 	usbdev->net->ieee80211_ptr = &priv->wdev;
net              3446 drivers/net/wireless/rndis_wlan.c 	usbdev->net->netdev_ops = &rndis_wlan_netdev_ops;
net              3461 drivers/net/wireless/rndis_wlan.c 		usbdev->net->flags |= IFF_MULTICAST;
net              3463 drivers/net/wireless/rndis_wlan.c 		usbdev->net->flags &= ~IFF_MULTICAST;
net              3466 drivers/net/wireless/rndis_wlan.c 	memcpy(wiphy->perm_addr, usbdev->net->dev_addr, ETH_ALEN);
net              3507 drivers/net/wireless/rndis_wlan.c 	netif_carrier_off(usbdev->net);
net              3546 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s()\n", __func__);
net              3550 drivers/net/wireless/rndis_wlan.c 		netdev_warn(usbdev->net, "rndis_reset failed: %d\n", retval);
net              3568 drivers/net/wireless/rndis_wlan.c 	netdev_dbg(usbdev->net, "%s()\n", __func__);
net               487 drivers/net/wireless/virt_wifi.c static int virt_wifi_newlink(struct net *src_net, struct net_device *dev,
net               122 drivers/platform/mellanox/mlxbf-tmfifo.c 		struct virtio_net_config net;
net               627 drivers/platform/mellanox/mlxbf-tmfifo.c 			config = &fifo->vdev[vdev_id]->config.net;
net              1661 drivers/rapidio/devices/rio_mport_cdev.c 	struct rio_net *net;
net              1663 drivers/rapidio/devices/rio_mport_cdev.c 	net = to_rio_net(dev);
net              1664 drivers/rapidio/devices/rio_mport_cdev.c 	rmcd_debug(RDEV, "net_%d", net->id);
net              1665 drivers/rapidio/devices/rio_mport_cdev.c 	kfree(net);
net              1724 drivers/rapidio/devices/rio_mport_cdev.c 	if (mport->net == NULL) {
net              1725 drivers/rapidio/devices/rio_mport_cdev.c 		struct rio_net *net;
net              1727 drivers/rapidio/devices/rio_mport_cdev.c 		net = rio_alloc_net(mport);
net              1728 drivers/rapidio/devices/rio_mport_cdev.c 		if (!net) {
net              1734 drivers/rapidio/devices/rio_mport_cdev.c 		net->id = mport->id;
net              1735 drivers/rapidio/devices/rio_mport_cdev.c 		net->hport = mport;
net              1736 drivers/rapidio/devices/rio_mport_cdev.c 		dev_set_name(&net->dev, "rnet_%d", net->id);
net              1737 drivers/rapidio/devices/rio_mport_cdev.c 		net->dev.parent = &mport->dev;
net              1738 drivers/rapidio/devices/rio_mport_cdev.c 		net->dev.release = rio_release_net;
net              1739 drivers/rapidio/devices/rio_mport_cdev.c 		err = rio_add_net(net);
net              1742 drivers/rapidio/devices/rio_mport_cdev.c 			kfree(net);
net              1747 drivers/rapidio/devices/rio_mport_cdev.c 	rdev->net = mport->net;
net              1798 drivers/rapidio/devices/rio_mport_cdev.c 	rdev->dev.parent = &mport->net->dev;
net              1822 drivers/rapidio/devices/rio_mport_cdev.c 	struct rio_net *net;
net              1839 drivers/rapidio/devices/rio_mport_cdev.c 			if (rdev && rdev->dev.parent == &mport->net->dev &&
net              1854 drivers/rapidio/devices/rio_mport_cdev.c 	net = rdev->net;
net              1858 drivers/rapidio/devices/rio_mport_cdev.c 	if (list_empty(&net->devices)) {
net              1859 drivers/rapidio/devices/rio_mport_cdev.c 		rio_free_net(net);
net              1860 drivers/rapidio/devices/rio_mport_cdev.c 		mport->net = NULL;
net                56 drivers/rapidio/rio-scan.c static u16 rio_destid_alloc(struct rio_net *net)
net                59 drivers/rapidio/rio-scan.c 	struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data;
net                82 drivers/rapidio/rio-scan.c static int rio_destid_reserve(struct rio_net *net, u16 destid)
net                85 drivers/rapidio/rio-scan.c 	struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data;
net               101 drivers/rapidio/rio-scan.c static void rio_destid_free(struct rio_net *net, u16 destid)
net               103 drivers/rapidio/rio-scan.c 	struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data;
net               115 drivers/rapidio/rio-scan.c static u16 rio_destid_first(struct rio_net *net)
net               118 drivers/rapidio/rio-scan.c 	struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data;
net               135 drivers/rapidio/rio-scan.c static u16 rio_destid_next(struct rio_net *net, u16 from)
net               138 drivers/rapidio/rio-scan.c 	struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data;
net               191 drivers/rapidio/rio-scan.c static int rio_clear_locks(struct rio_net *net)
net               193 drivers/rapidio/rio-scan.c 	struct rio_mport *port = net->hport;
net               208 drivers/rapidio/rio-scan.c 	list_for_each_entry(rdev, &net->devices, net_list) {
net               322 drivers/rapidio/rio-scan.c static struct rio_dev *rio_setup_device(struct rio_net *net,
net               351 drivers/rapidio/rio-scan.c 	rdev->net = net;
net               406 drivers/rapidio/rio-scan.c 			next_destid = rio_destid_alloc(net);
net               433 drivers/rapidio/rio-scan.c 		dev_set_name(&rdev->dev, "%02x:s:%04x", rdev->net->id,
net               443 drivers/rapidio/rio-scan.c 		dev_set_name(&rdev->dev, "%02x:e:%04x", rdev->net->id,
net               447 drivers/rapidio/rio-scan.c 	rdev->dev.parent = &net->dev;
net               524 drivers/rapidio/rio-scan.c static int rio_enum_peer(struct rio_net *net, struct rio_mport *port,
net               581 drivers/rapidio/rio-scan.c 	rdev = rio_setup_device(net, port, RIO_ANY_DESTID(port->sys_size),
net               602 drivers/rapidio/rio-scan.c 		destid = rio_destid_first(net);
net               609 drivers/rapidio/rio-scan.c 			destid = rio_destid_next(net, destid + 1);
net               641 drivers/rapidio/rio-scan.c 				if (rio_enum_peer(net, port, hopcount + 1,
net               646 drivers/rapidio/rio-scan.c 				destid = rio_destid_next(net, cur_destid + 1);
net               660 drivers/rapidio/rio-scan.c 						destid = rio_destid_next(net,
net               688 drivers/rapidio/rio-scan.c 			next_destid = rio_destid_alloc(net);
net               728 drivers/rapidio/rio-scan.c rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid,
net               736 drivers/rapidio/rio-scan.c 	if ((rdev = rio_setup_device(net, port, destid, hopcount, 0))) {
net               778 drivers/rapidio/rio-scan.c 				if (rio_disc_peer(net, port, ndestid,
net               810 drivers/rapidio/rio-scan.c static void rio_scan_release_net(struct rio_net *net)
net               812 drivers/rapidio/rio-scan.c 	pr_debug("RIO-SCAN: %s: net_%d\n", __func__, net->id);
net               813 drivers/rapidio/rio-scan.c 	kfree(net->enum_data);
net               818 drivers/rapidio/rio-scan.c 	struct rio_net *net;
net               820 drivers/rapidio/rio-scan.c 	net = to_rio_net(dev);
net               821 drivers/rapidio/rio-scan.c 	pr_debug("RIO-SCAN: %s: net_%d\n", __func__, net->id);
net               822 drivers/rapidio/rio-scan.c 	kfree(net);
net               838 drivers/rapidio/rio-scan.c 	struct rio_net *net;
net               840 drivers/rapidio/rio-scan.c 	net = rio_alloc_net(mport);
net               842 drivers/rapidio/rio-scan.c 	if (net && do_enum) {
net               855 drivers/rapidio/rio-scan.c 			rio_free_net(net);
net               856 drivers/rapidio/rio-scan.c 			net = NULL;
net               858 drivers/rapidio/rio-scan.c 			net->enum_data = idtab;
net               859 drivers/rapidio/rio-scan.c 			net->release = rio_scan_release_net;
net               866 drivers/rapidio/rio-scan.c 	if (net) {
net               867 drivers/rapidio/rio-scan.c 		net->id = mport->id;
net               868 drivers/rapidio/rio-scan.c 		net->hport = mport;
net               869 drivers/rapidio/rio-scan.c 		dev_set_name(&net->dev, "rnet_%d", net->id);
net               870 drivers/rapidio/rio-scan.c 		net->dev.parent = &mport->dev;
net               871 drivers/rapidio/rio-scan.c 		net->dev.release = rio_scan_release_dev;
net               872 drivers/rapidio/rio-scan.c 		rio_add_net(net);
net               875 drivers/rapidio/rio-scan.c 	return net;
net               886 drivers/rapidio/rio-scan.c static void rio_update_route_tables(struct rio_net *net)
net               893 drivers/rapidio/rio-scan.c 	list_for_each_entry(rdev, &net->devices, net_list) {
net               897 drivers/rapidio/rio-scan.c 		list_for_each_entry(rswitch, &net->switches, node) {
net               946 drivers/rapidio/rio-scan.c 	struct rio_net *net = NULL;
net               972 drivers/rapidio/rio-scan.c 		net = rio_scan_alloc_net(mport, 1, 0);
net               973 drivers/rapidio/rio-scan.c 		if (!net) {
net               980 drivers/rapidio/rio-scan.c 		rio_destid_reserve(net, mport->host_deviceid);
net               989 drivers/rapidio/rio-scan.c 		next_destid = rio_destid_alloc(net);
net               991 drivers/rapidio/rio-scan.c 		if (rio_enum_peer(net, mport, 0, NULL, 0) < 0) {
net               996 drivers/rapidio/rio-scan.c 			rio_clear_locks(net);
net              1001 drivers/rapidio/rio-scan.c 		rio_destid_free(net, next_destid);
net              1002 drivers/rapidio/rio-scan.c 		rio_update_route_tables(net);
net              1003 drivers/rapidio/rio-scan.c 		rio_clear_locks(net);
net              1022 drivers/rapidio/rio-scan.c static void rio_build_route_tables(struct rio_net *net)
net              1029 drivers/rapidio/rio-scan.c 	list_for_each_entry(rswitch, &net->switches, node) {
net              1032 drivers/rapidio/rio-scan.c 		rio_lock_device(net->hport, rdev->destid,
net              1035 drivers/rapidio/rio-scan.c 		     i < RIO_MAX_ROUTE_ENTRIES(net->hport->sys_size);
net              1043 drivers/rapidio/rio-scan.c 		rio_unlock_device(net->hport, rdev->destid, rdev->hopcount);
net              1061 drivers/rapidio/rio-scan.c 	struct rio_net *net = NULL;
net              1089 drivers/rapidio/rio-scan.c 		net = rio_scan_alloc_net(mport, 0, 0);
net              1090 drivers/rapidio/rio-scan.c 		if (!net) {
net              1101 drivers/rapidio/rio-scan.c 		if (rio_disc_peer(net, mport, RIO_ANY_DESTID(mport->sys_size),
net              1109 drivers/rapidio/rio-scan.c 		rio_build_route_tables(net);
net                43 drivers/rapidio/rio-sysfs.c 	for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rdev->net->hport->sys_size);
net               110 drivers/rapidio/rio.c 	struct rio_net *net = kzalloc(sizeof(*net), GFP_KERNEL);
net               112 drivers/rapidio/rio.c 	if (net) {
net               113 drivers/rapidio/rio.c 		INIT_LIST_HEAD(&net->node);
net               114 drivers/rapidio/rio.c 		INIT_LIST_HEAD(&net->devices);
net               115 drivers/rapidio/rio.c 		INIT_LIST_HEAD(&net->switches);
net               116 drivers/rapidio/rio.c 		INIT_LIST_HEAD(&net->mports);
net               117 drivers/rapidio/rio.c 		mport->net = net;
net               119 drivers/rapidio/rio.c 	return net;
net               123 drivers/rapidio/rio.c int rio_add_net(struct rio_net *net)
net               127 drivers/rapidio/rio.c 	err = device_register(&net->dev);
net               131 drivers/rapidio/rio.c 	list_add_tail(&net->node, &rio_nets);
net               138 drivers/rapidio/rio.c void rio_free_net(struct rio_net *net)
net               141 drivers/rapidio/rio.c 	if (!list_empty(&net->node))
net               142 drivers/rapidio/rio.c 		list_del(&net->node);
net               144 drivers/rapidio/rio.c 	if (net->release)
net               145 drivers/rapidio/rio.c 		net->release(net);
net               146 drivers/rapidio/rio.c 	device_unregister(&net->dev);
net               183 drivers/rapidio/rio.c 	if (rdev->net) {
net               184 drivers/rapidio/rio.c 		list_add_tail(&rdev->net_list, &rdev->net->devices);
net               187 drivers/rapidio/rio.c 				      &rdev->net->switches);
net               209 drivers/rapidio/rio.c 	if (rdev->net) {
net              1016 drivers/rapidio/rio.c 	return rio_mport_chk_dev_access(rdev->net->hport,
net              1686 drivers/rapidio/rio.c 		rc = rio_lock_device(rdev->net->hport, rdev->destid,
net              1695 drivers/rapidio/rio.c 		rc = rio_std_route_add_entry(rdev->net->hport, rdev->destid,
net              1699 drivers/rapidio/rio.c 		rc = ops->add_entry(rdev->net->hport, rdev->destid,
net              1708 drivers/rapidio/rio.c 		rio_unlock_device(rdev->net->hport, rdev->destid,
net              1739 drivers/rapidio/rio.c 		rc = rio_lock_device(rdev->net->hport, rdev->destid,
net              1748 drivers/rapidio/rio.c 		rc = rio_std_route_get_entry(rdev->net->hport, rdev->destid,
net              1752 drivers/rapidio/rio.c 		rc = ops->get_entry(rdev->net->hport, rdev->destid,
net              1761 drivers/rapidio/rio.c 		rio_unlock_device(rdev->net->hport, rdev->destid,
net              1787 drivers/rapidio/rio.c 		rc = rio_lock_device(rdev->net->hport, rdev->destid,
net              1796 drivers/rapidio/rio.c 		rc = rio_std_route_clr_table(rdev->net->hport, rdev->destid,
net              1799 drivers/rapidio/rio.c 		rc = ops->clr_table(rdev->net->hport, rdev->destid,
net              1808 drivers/rapidio/rio.c 		rio_unlock_device(rdev->net->hport, rdev->destid,
net              1851 drivers/rapidio/rio.c 	return rio_request_mport_dma(rdev->net->hport);
net              2289 drivers/rapidio/rio.c static int rio_net_remove_children(struct rio_net *net)
net              2295 drivers/rapidio/rio.c 	device_for_each_child(&net->dev, NULL, rio_mport_cleanup_callback);
net              2311 drivers/rapidio/rio.c 	if (port->net && port->net->hport == port) {
net              2312 drivers/rapidio/rio.c 		rio_net_remove_children(port->net);
net              2313 drivers/rapidio/rio.c 		rio_free_net(port->net);
net                37 drivers/rapidio/rio.h extern int rio_add_net(struct rio_net *net);
net                38 drivers/rapidio/rio.h extern void rio_free_net(struct rio_net *net);
net              1963 drivers/rapidio/rio_cm.c 		if (cm->mport == rdev->net->hport)
net              2007 drivers/rapidio/rio_cm.c 		if (cm->mport == rdev->net->hport) {
net               339 drivers/rapidio/switches/idt_gen3.c 	if (rdev->net->hport->host_deviceid == destid) {
net               211 drivers/rapidio/switches/tsi57x.c 	struct rio_mport *mport = rdev->net->hport;
net               859 drivers/staging/gdm724x/gdm_lte.c 	struct net_device *net;
net               871 drivers/staging/gdm724x/gdm_lte.c 		net = alloc_netdev(sizeof(struct nic), pdn_dev_name,
net               873 drivers/staging/gdm724x/gdm_lte.c 		if (!net) {
net               877 drivers/staging/gdm724x/gdm_lte.c 		net->netdev_ops = &gdm_netdev_ops;
net               878 drivers/staging/gdm724x/gdm_lte.c 		net->flags &= ~IFF_MULTICAST;
net               879 drivers/staging/gdm724x/gdm_lte.c 		net->mtu = DEFAULT_MTU_SIZE;
net               881 drivers/staging/gdm724x/gdm_lte.c 		nic = netdev_priv(net);
net               883 drivers/staging/gdm724x/gdm_lte.c 		nic->netdev = net;
net               887 drivers/staging/gdm724x/gdm_lte.c 		form_mac_address(net->dev_addr,
net               893 drivers/staging/gdm724x/gdm_lte.c 		SET_NETDEV_DEV(net, dev);
net               894 drivers/staging/gdm724x/gdm_lte.c 		SET_NETDEV_DEVTYPE(net, &wwan_type);
net               896 drivers/staging/gdm724x/gdm_lte.c 		ret = register_netdev(net);
net               900 drivers/staging/gdm724x/gdm_lte.c 		netif_carrier_on(net);
net               902 drivers/staging/gdm724x/gdm_lte.c 		phy_dev->dev[index] = net;
net               915 drivers/staging/gdm724x/gdm_lte.c 	struct net_device *net;
net               919 drivers/staging/gdm724x/gdm_lte.c 		net = phy_dev->dev[index];
net               920 drivers/staging/gdm724x/gdm_lte.c 		if (!net)
net               923 drivers/staging/gdm724x/gdm_lte.c 		unregister_netdev(net);
net               924 drivers/staging/gdm724x/gdm_lte.c 		free_netdev(net);
net                49 drivers/staging/rtl8188eu/include/rtw_android.h int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd);
net                76 drivers/staging/rtl8188eu/os_dep/rtw_android.c static int rtw_android_get_rssi(struct net_device *net, char *command,
net                79 drivers/staging/rtl8188eu/os_dep/rtw_android.c 	struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net);
net                93 drivers/staging/rtl8188eu/os_dep/rtw_android.c static int rtw_android_get_link_speed(struct net_device *net, char *command,
net                96 drivers/staging/rtl8188eu/os_dep/rtw_android.c 	struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net);
net               104 drivers/staging/rtl8188eu/os_dep/rtw_android.c static int rtw_android_get_macaddr(struct net_device *net, char *command,
net               108 drivers/staging/rtl8188eu/os_dep/rtw_android.c 				 net->dev_addr);
net               111 drivers/staging/rtl8188eu/os_dep/rtw_android.c static int android_set_cntry(struct net_device *net, char *command,
net               114 drivers/staging/rtl8188eu/os_dep/rtw_android.c 	struct adapter *adapter = (struct adapter *)rtw_netdev_priv(net);
net               122 drivers/staging/rtl8188eu/os_dep/rtw_android.c static int android_get_p2p_addr(struct net_device *net, char *command,
net               126 drivers/staging/rtl8188eu/os_dep/rtw_android.c 	memcpy(command, net->dev_addr, ETH_ALEN);
net               130 drivers/staging/rtl8188eu/os_dep/rtw_android.c int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
net               171 drivers/staging/rtl8188eu/os_dep/rtw_android.c 		bytes_written = rtw_android_get_rssi(net, command,
net               175 drivers/staging/rtl8188eu/os_dep/rtw_android.c 		bytes_written = rtw_android_get_link_speed(net, command,
net               179 drivers/staging/rtl8188eu/os_dep/rtw_android.c 		bytes_written = rtw_android_get_macaddr(net, command,
net               207 drivers/staging/rtl8188eu/os_dep/rtw_android.c 		bytes_written = android_set_cntry(net, command,
net               211 drivers/staging/rtl8188eu/os_dep/rtw_android.c 		bytes_written = android_get_p2p_addr(net, command,
net                24 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	struct rtllib_network *net = &priv->rtllib->current_network;
net                33 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	rtl92e_writew(dev, BCN_INTERVAL, net->beacon_interval);
net               943 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	struct rtllib_network *net;
net               947 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	net = &priv->rtllib->current_network;
net               951 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	rtl92e_writew(dev, BSSIDR, *(u16 *)net->bssid);
net               952 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	rtl92e_writel(dev, BSSIDR + 2, *(u32 *)(net->bssid + 2));
net               957 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		rtl92e_writew(dev, BCN_INTERVAL, net->beacon_interval);
net               313 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_network *net = &priv->rtllib->current_network;
net               338 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	if (net->mode & (IEEE_G | IEEE_N_24G)) {
net               373 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_network *net = &ieee->current_network;
net               376 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		HT_update_self_and_peer_setting(ieee, net);
net               378 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		 net->bssht.bdRT2RTLongSlotTime;
net               379 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode;
net               380 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	_rtl92e_update_cap(dev, net->capability);
net               556 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_network *net;
net               559 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	net = &priv->rtllib->current_network;
net               561 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	for (i = 0; i < net->rates_len; i++) {
net               562 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		basic_rate = net->rates[i] & 0x7f;
net               603 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	for (i = 0; i < net->rates_ex_len; i++) {
net               604 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		basic_rate = net->rates_ex[i] & 0x7f;
net               147 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rtllib_network *net = &ieee->current_network;
net               149 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) ||
net               150 drivers/staging/rtl8192e/rtl819x_HTProc.c 	    (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) ||
net               151 drivers/staging/rtl8192e/rtl819x_HTProc.c 	    (memcmp(net->bssid, PCI_RALINK, 3) == 0) ||
net               152 drivers/staging/rtl8192e/rtl819x_HTProc.c 	    (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) ||
net               153 drivers/staging/rtl8192e/rtl819x_HTProc.c 	    (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) ||
net               154 drivers/staging/rtl8192e/rtl819x_HTProc.c 	    (net->ralink_cap_exist))
net               156 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) ||
net               157 drivers/staging/rtl8192e/rtl819x_HTProc.c 		!memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) ||
net               158 drivers/staging/rtl8192e/rtl819x_HTProc.c 		!memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) ||
net               159 drivers/staging/rtl8192e/rtl819x_HTProc.c 		(net->broadcom_cap_exist))
net               161 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if (net->bssht.bdRT2RTAggregation)
net               172 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rtllib_network *net = &ieee->current_network;
net               174 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (net->bssht.bdRT2RTAggregation) {
net               176 drivers/staging/rtl8192e/rtl819x_HTProc.c 		if (net->bssht.RT2RT_HT_Mode & RT_HT_CAP_USE_92SE)
net               178 drivers/staging/rtl8192e/rtl819x_HTProc.c 		if (net->bssht.RT2RT_HT_Mode & RT_HT_CAP_USE_SOFTAP)
net               180 drivers/staging/rtl8192e/rtl819x_HTProc.c 	} else if (net->broadcom_cap_exist)
net               182 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if (!memcmp(net->bssid, UNKNOWN_BORADCOM, 3) ||
net               183 drivers/staging/rtl8192e/rtl819x_HTProc.c 		 !memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) ||
net               184 drivers/staging/rtl8192e/rtl819x_HTProc.c 		 !memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3))
net               186 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) ||
net               187 drivers/staging/rtl8192e/rtl819x_HTProc.c 		 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) ||
net               188 drivers/staging/rtl8192e/rtl819x_HTProc.c 		 (memcmp(net->bssid, PCI_RALINK, 3) == 0) ||
net               189 drivers/staging/rtl8192e/rtl819x_HTProc.c 		 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) ||
net               190 drivers/staging/rtl8192e/rtl819x_HTProc.c 		 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) ||
net               191 drivers/staging/rtl8192e/rtl819x_HTProc.c 		  net->ralink_cap_exist)
net               193 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if ((net->atheros_cap_exist) ||
net               194 drivers/staging/rtl8192e/rtl819x_HTProc.c 		(memcmp(net->bssid, DLINK_ATHEROS_1, 3) == 0) ||
net               195 drivers/staging/rtl8192e/rtl819x_HTProc.c 		(memcmp(net->bssid, DLINK_ATHEROS_2, 3) == 0))
net               197 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if ((memcmp(net->bssid, CISCO_BROADCOM, 3) == 0) ||
net               198 drivers/staging/rtl8192e/rtl819x_HTProc.c 		  net->cisco_cap_exist)
net               200 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if ((memcmp(net->bssid, LINKSYS_MARVELL_4400N, 3) == 0) ||
net               201 drivers/staging/rtl8192e/rtl819x_HTProc.c 		  net->marvell_cap_exist)
net               203 drivers/staging/rtl8192e/rtl819x_HTProc.c 	else if (net->airgo_cap_exist)
net              1977 drivers/staging/rtl8192e/rtllib.h 			    struct rtllib_network *net);
net                26 drivers/staging/rtl8192e/rtllib_softmac.c static short rtllib_is_54g(struct rtllib_network *net)
net                28 drivers/staging/rtl8192e/rtllib_softmac.c 	return (net->rates_ex_len > 0) || (net->rates_len > 4);
net              1609 drivers/staging/rtl8192e/rtllib_softmac.c 				   struct rtllib_network *net)
net              1622 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->iw_mode == IW_MODE_INFRA) && !(net->capability &
net              1626 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) && !(net->capability &
net              1631 drivers/staging/rtl8192e/rtllib_softmac.c 	    (net->channel > ieee->ibss_maxjoin_chal))
net              1640 drivers/staging/rtl8192e/rtllib_softmac.c 		ssidbroad =  !(net->ssid_len == 0 || net->ssid[0] == '\0');
net              1641 drivers/staging/rtl8192e/rtllib_softmac.c 		apmatch = (memcmp(ieee->current_network.bssid, net->bssid,
net              1645 drivers/staging/rtl8192e/rtllib_softmac.c 				    net->hidden_ssid_len) &&
net              1647 drivers/staging/rtl8192e/rtllib_softmac.c 				    net->hidden_ssid, net->hidden_ssid_len));
net              1648 drivers/staging/rtl8192e/rtllib_softmac.c 			if (net->hidden_ssid_len > 0) {
net              1649 drivers/staging/rtl8192e/rtllib_softmac.c 				strncpy(net->ssid, net->hidden_ssid,
net              1650 drivers/staging/rtl8192e/rtllib_softmac.c 					net->hidden_ssid_len);
net              1651 drivers/staging/rtl8192e/rtllib_softmac.c 				net->ssid_len = net->hidden_ssid_len;
net              1656 drivers/staging/rtl8192e/rtllib_softmac.c 			   (ieee->current_network.ssid_len == net->ssid_len) &&
net              1657 drivers/staging/rtl8192e/rtllib_softmac.c 			   (!strncmp(ieee->current_network.ssid, net->ssid,
net              1658 drivers/staging/rtl8192e/rtllib_softmac.c 			   net->ssid_len));
net              1683 drivers/staging/rtl8192e/rtllib_softmac.c 			memcpy(&ieee->current_network, net,
net              2217 drivers/staging/rtl8192u/ieee80211/ieee80211.h short ieee80211_is_54g(const struct ieee80211_network *net);
net              2218 drivers/staging/rtl8192u/ieee80211/ieee80211.h short ieee80211_is_shortslot(const struct ieee80211_network *net);
net              2224 drivers/staging/rtl8192u/ieee80211/ieee80211.h 			       struct ieee80211_network *net);
net                24 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c short ieee80211_is_54g(const struct ieee80211_network *net)
net                26 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	return (net->rates_ex_len > 0) || (net->rates_len > 4);
net                30 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c short ieee80211_is_shortslot(const struct ieee80211_network *net)
net                32 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	return net->capability & WLAN_CAPABILITY_SHORT_SLOT;
net              1341 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee80211_network *net)
net              1354 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if ((ieee->iw_mode == IW_MODE_INFRA) && !(net->capability & WLAN_CAPABILITY_BSS))
net              1357 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) && !(net->capability & WLAN_CAPABILITY_IBSS))
net              1367 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ssidbroad =  !(net->ssid_len == 0 || net->ssid[0] == '\0');
net              1368 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		apmatch = (memcmp(ieee->current_network.bssid, net->bssid, ETH_ALEN) == 0);
net              1369 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ssidmatch = (ieee->current_network.ssid_len == net->ssid_len) &&
net              1370 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			(!strncmp(ieee->current_network.ssid, net->ssid, net->ssid_len));
net              1390 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			memcpy(&ieee->current_network, net, sizeof(struct ieee80211_network));
net               272 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	struct ieee80211_network *net = &ieee->current_network;
net               274 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) ||
net               275 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	    (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) ||
net               276 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	    (memcmp(net->bssid, PCI_RALINK, 3) == 0) ||
net               277 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	    (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) ||
net               278 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	    (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) ||
net               279 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	    (net->ralink_cap_exist))
net               281 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if ((memcmp(net->bssid, UNKNOWN_BORADCOM, 3) == 0) ||
net               282 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) == 0) ||
net               283 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) == 0) ||
net               284 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, NETGEAR834Bv2_BROADCOM, 3) == 0) ||
net               285 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (net->broadcom_cap_exist))
net               287 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if (net->bssht.bdRT2RTAggregation)
net               305 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	struct ieee80211_network *net = &ieee->current_network;
net               307 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (net->bssht.bdRT2RTAggregation)
net               309 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if (net->broadcom_cap_exist)
net               311 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if ((memcmp(net->bssid, UNKNOWN_BORADCOM, 3) == 0) ||
net               312 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, LINKSYSWRT330_LINKSYSWRT300_BROADCOM, 3) == 0) ||
net               313 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) == 0) ||
net               314 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, NETGEAR834Bv2_BROADCOM, 3) == 0))
net               316 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if ((memcmp(net->bssid, BELKINF5D8233V1_RALINK, 3) == 0) ||
net               317 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, BELKINF5D82334V3_RALINK, 3) == 0) ||
net               318 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, PCI_RALINK, 3) == 0) ||
net               319 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, EDIMAX_RALINK, 3) == 0) ||
net               320 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 (memcmp(net->bssid, AIRLINK_RALINK, 3) == 0) ||
net               321 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		 net->ralink_cap_exist)
net               323 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if (net->atheros_cap_exist)
net               325 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	else if (memcmp(net->bssid, CISCO_BROADCOM, 3) == 0)
net              1037 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_network *net;
net              1040 drivers/staging/rtl8192u/r8192U_core.c 	net = &priv->ieee80211->current_network;
net              1042 drivers/staging/rtl8192u/r8192U_core.c 	for (i = 0; i < net->rates_len; i++) {
net              1043 drivers/staging/rtl8192u/r8192U_core.c 		basic_rate = net->rates[i] & 0x7f;
net              1083 drivers/staging/rtl8192u/r8192U_core.c 	for (i = 0; i < net->rates_ex_len; i++) {
net              1084 drivers/staging/rtl8192u/r8192U_core.c 		basic_rate = net->rates_ex[i] & 0x7f;
net              1134 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_network *net = &priv->ieee80211->current_network;
net              1142 drivers/staging/rtl8192u/r8192U_core.c 	if (net->mode & (IEEE_G | IEEE_N_24G)) {
net              1159 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_network *net;
net              1163 drivers/staging/rtl8192u/r8192U_core.c 	net = &priv->ieee80211->current_network;
net              1168 drivers/staging/rtl8192u/r8192U_core.c 	write_nic_dword(dev, BSSIDR, ((u32 *)net->bssid)[0]);
net              1169 drivers/staging/rtl8192u/r8192U_core.c 	write_nic_word(dev, BSSIDR + 4, ((u16 *)net->bssid)[2]);
net              1175 drivers/staging/rtl8192u/r8192U_core.c 		write_nic_word(dev, BCN_INTERVAL, net->beacon_interval);
net              1759 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_network *net = &ieee->current_network;
net              1762 drivers/staging/rtl8192u/r8192U_core.c 		HTUpdateSelfAndPeerSetting(ieee, net);
net              1764 drivers/staging/rtl8192u/r8192U_core.c 		net->bssht.bdRT2RTLongSlotTime;
net              1765 drivers/staging/rtl8192u/r8192U_core.c 	rtl8192_update_cap(dev, net->capability);
net               511 drivers/staging/unisys/include/iochannel.h 		struct uiscmdrsp_net net;
net               451 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.buf = skb;
net               452 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.rcvpost.frag.pi_pfn = page_to_pfn(virt_to_page(skb->data));
net               453 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.rcvpost.frag.pi_off =
net               455 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.rcvpost.frag.pi_len = skb->len;
net               456 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.rcvpost.unique_num = devdata->incarnation_id;
net               458 drivers/staging/unisys/visornic/visornic_main.c 	if ((cmdrsp->net.rcvpost.frag.pi_off + skb->len) > PI_PAGE_SIZE)
net               461 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.type = NET_RCV_POST;
net               490 drivers/staging/unisys/visornic/visornic_main.c 	devdata->cmdrsp_rcv->net.enbdis.enable = state;
net               491 drivers/staging/unisys/visornic/visornic_main.c 	devdata->cmdrsp_rcv->net.enbdis.context = netdev;
net               492 drivers/staging/unisys/visornic/visornic_main.c 	devdata->cmdrsp_rcv->net.type = NET_RCV_ENBDIS;
net               907 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.type = NET_XMIT;
net               911 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.buf = skb;
net               933 drivers/staging/unisys/visornic/visornic_main.c 		cmdrsp->net.xmt.lincsum.valid = 1;
net               934 drivers/staging/unisys/visornic/visornic_main.c 		cmdrsp->net.xmt.lincsum.protocol = skb->protocol;
net               936 drivers/staging/unisys/visornic/visornic_main.c 			cmdrsp->net.xmt.lincsum.hrawoff =
net               938 drivers/staging/unisys/visornic/visornic_main.c 			cmdrsp->net.xmt.lincsum.hrawoff = 1;
net               941 drivers/staging/unisys/visornic/visornic_main.c 			cmdrsp->net.xmt.lincsum.nhrawoff =
net               943 drivers/staging/unisys/visornic/visornic_main.c 			cmdrsp->net.xmt.lincsum.nhrawoffv = 1;
net               945 drivers/staging/unisys/visornic/visornic_main.c 		cmdrsp->net.xmt.lincsum.csum = skb->csum;
net               947 drivers/staging/unisys/visornic/visornic_main.c 		cmdrsp->net.xmt.lincsum.valid = 0;
net               951 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.xmt.len = len;
net               956 drivers/staging/unisys/visornic/visornic_main.c 	memcpy(cmdrsp->net.xmt.ethhdr, skb->data, ETH_HLEN);
net               961 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.xmt.num_frags =
net               964 drivers/staging/unisys/visornic/visornic_main.c 					      cmdrsp->net.xmt.frags);
net               965 drivers/staging/unisys/visornic/visornic_main.c 	if (cmdrsp->net.xmt.num_frags < 0) {
net              1060 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.type = NET_RCV_PROMISC;
net              1061 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.enbdis.context = netdev;
net              1062 drivers/staging/unisys/visornic/visornic_main.c 	cmdrsp->net.enbdis.enable =
net              1127 drivers/staging/unisys/visornic/visornic_main.c 	copy = cmdrsp->net.rcv;
net              1206 drivers/staging/unisys/visornic/visornic_main.c 	skb = cmdrsp->net.buf;
net              1218 drivers/staging/unisys/visornic/visornic_main.c 	skb->len = cmdrsp->net.rcv.rcv_done_len;
net              1247 drivers/staging/unisys/visornic/visornic_main.c 		if (cmdrsp->net.rcv.numrcvbufs < 2) {
net              1263 drivers/staging/unisys/visornic/visornic_main.c 		if (cmdrsp->net.rcv.numrcvbufs != 1) {
net              1284 drivers/staging/unisys/visornic/visornic_main.c 	if (cmdrsp->net.rcv.rcvbuf[0] != skb) {
net              1290 drivers/staging/unisys/visornic/visornic_main.c 	if (cmdrsp->net.rcv.numrcvbufs > 1) {
net              1294 drivers/staging/unisys/visornic/visornic_main.c 		     cc < cmdrsp->net.rcv.numrcvbufs; cc++) {
net              1295 drivers/staging/unisys/visornic/visornic_main.c 			curr = (struct sk_buff *)cmdrsp->net.rcv.rcvbuf[cc];
net              1660 drivers/staging/unisys/visornic/visornic_main.c 		switch (cmdrsp->net.type) {
net              1669 drivers/staging/unisys/visornic/visornic_main.c 			if (cmdrsp->net.xmtdone.xmt_done_result)
net              1672 drivers/staging/unisys/visornic/visornic_main.c 			netdev = ((struct sk_buff *)cmdrsp->net.buf)->dev;
net              1689 drivers/staging/unisys/visornic/visornic_main.c 			skb_unlink(cmdrsp->net.buf, &devdata->xmitbufhead);
net              1691 drivers/staging/unisys/visornic/visornic_main.c 			kfree_skb(cmdrsp->net.buf);
net              1696 drivers/staging/unisys/visornic/visornic_main.c 			cmdrsp->net.enbdis.context;
net              1712 drivers/staging/unisys/visornic/visornic_main.c 			if (cmdrsp->net.enbdis.enable == 1) {
net              1714 drivers/staging/unisys/visornic/visornic_main.c 				devdata->enabled = cmdrsp->net.enbdis.enable;
net              1723 drivers/staging/unisys/visornic/visornic_main.c 				devdata->enabled = cmdrsp->net.enbdis.enable;
net              1923 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c int wilc_init_host_int(struct net_device *net)
net              1926 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	struct wilc_vif *vif = netdev_priv(net);
net              1932 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	ret = wilc_init(net, &priv->hif_drv);
net              1934 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 		netdev_err(net, "Error while initializing hostinterface\n");
net              1939 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c void wilc_deinit_host_int(struct net_device *net)
net              1942 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 	struct wilc_vif *vif = netdev_priv(net);
net              1952 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 		netdev_err(net, "Error while deinitializing host interface\n");
net                15 drivers/staging/wilc1000/wilc_wfi_cfgoperations.h void wilc_deinit_host_int(struct net_device *net);
net                16 drivers/staging/wilc1000/wilc_wfi_cfgoperations.h int wilc_init_host_int(struct net_device *net);
net                51 drivers/tty/ipwireless/hardware.h 		struct ipw_network *net);
net                34 drivers/tty/ipwireless/network.h void ipwireless_network_notify_control_line_change(struct ipw_network *net,
net                37 drivers/tty/ipwireless/network.h void ipwireless_network_packet_received(struct ipw_network *net,
net                41 drivers/tty/ipwireless/network.h void ipwireless_network_free(struct ipw_network *net);
net                42 drivers/tty/ipwireless/network.h void ipwireless_associate_network_tty(struct ipw_network *net,
net                44 drivers/tty/ipwireless/network.h void ipwireless_disassociate_network_ttys(struct ipw_network *net,
net                47 drivers/tty/ipwireless/network.h void ipwireless_ppp_open(struct ipw_network *net);
net                49 drivers/tty/ipwireless/network.h void ipwireless_ppp_close(struct ipw_network *net);
net                50 drivers/tty/ipwireless/network.h int ipwireless_ppp_channel_index(struct ipw_network *net);
net                51 drivers/tty/ipwireless/network.h int ipwireless_ppp_unit_number(struct ipw_network *net);
net                52 drivers/tty/ipwireless/network.h int ipwireless_ppp_mru(const struct ipw_network *net);
net                36 drivers/tty/ipwireless/tty.h 				      struct ipw_network *net);
net               148 drivers/tty/n_gsm.c 	struct net_device *net; /* network interface, if created */
net               933 drivers/tty/n_gsm.c 		if (dlci->adaption < 3 && !dlci->net)
net               966 drivers/tty/n_gsm.c 		if (dlci->net)
net              2641 drivers/tty/n_gsm.c static int gsm_mux_net_open(struct net_device *net)
net              2644 drivers/tty/n_gsm.c 	netif_start_queue(net);
net              2648 drivers/tty/n_gsm.c static int gsm_mux_net_close(struct net_device *net)
net              2650 drivers/tty/n_gsm.c 	netif_stop_queue(net);
net              2656 drivers/tty/n_gsm.c 	if (!dlci->net) {
net              2662 drivers/tty/n_gsm.c 	free_netdev(dlci->net);
net              2663 drivers/tty/n_gsm.c 	dlci->net = NULL;
net              2673 drivers/tty/n_gsm.c 	if (dlci->net) {
net              2674 drivers/tty/n_gsm.c 		unregister_netdev(dlci->net);
net              2690 drivers/tty/n_gsm.c 				      struct net_device *net)
net              2692 drivers/tty/n_gsm.c 	struct gsm_mux_net *mux_net = netdev_priv(net);
net              2697 drivers/tty/n_gsm.c 	net->stats.tx_packets++;
net              2698 drivers/tty/n_gsm.c 	net->stats.tx_bytes += skb->len;
net              2701 drivers/tty/n_gsm.c 	netif_trans_update(net);
net              2707 drivers/tty/n_gsm.c static void gsm_mux_net_tx_timeout(struct net_device *net)
net              2710 drivers/tty/n_gsm.c 	dev_dbg(&net->dev, "Tx timed out.\n");
net              2713 drivers/tty/n_gsm.c 	net->stats.tx_errors++;
net              2719 drivers/tty/n_gsm.c 	struct net_device *net = dlci->net;
net              2721 drivers/tty/n_gsm.c 	struct gsm_mux_net *mux_net = netdev_priv(net);
net              2728 drivers/tty/n_gsm.c 		net->stats.rx_dropped++;
net              2735 drivers/tty/n_gsm.c 	skb->dev = net;
net              2742 drivers/tty/n_gsm.c 	net->stats.rx_packets++;
net              2743 drivers/tty/n_gsm.c 	net->stats.rx_bytes += size;
net              2748 drivers/tty/n_gsm.c static void gsm_mux_net_init(struct net_device *net)
net              2757 drivers/tty/n_gsm.c 	net->netdev_ops = &gsm_netdev_ops;
net              2760 drivers/tty/n_gsm.c 	net->watchdog_timeo = GSM_NET_TX_TIMEOUT;
net              2761 drivers/tty/n_gsm.c 	net->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
net              2762 drivers/tty/n_gsm.c 	net->type = ARPHRD_NONE;
net              2763 drivers/tty/n_gsm.c 	net->tx_queue_len = 10;
net              2773 drivers/tty/n_gsm.c 	if (!dlci->net)
net              2775 drivers/tty/n_gsm.c 	mux_net = netdev_priv(dlci->net);
net              2785 drivers/tty/n_gsm.c 	struct net_device *net;
net              2806 drivers/tty/n_gsm.c 	net = alloc_netdev(sizeof(struct gsm_mux_net), netname,
net              2808 drivers/tty/n_gsm.c 	if (!net) {
net              2812 drivers/tty/n_gsm.c 	net->mtu = dlci->gsm->mtu;
net              2813 drivers/tty/n_gsm.c 	net->min_mtu = 8;
net              2814 drivers/tty/n_gsm.c 	net->max_mtu = dlci->gsm->mtu;
net              2815 drivers/tty/n_gsm.c 	mux_net = netdev_priv(net);
net              2818 drivers/tty/n_gsm.c 	strncpy(nc->if_name, net->name, IFNAMSIZ); /* return net name */
net              2825 drivers/tty/n_gsm.c 	dlci->net = net;
net              2828 drivers/tty/n_gsm.c 	retval = register_netdev(net);
net              2834 drivers/tty/n_gsm.c 	return net->ifindex;	/* return network index */
net               579 drivers/usb/gadget/function/f_ecm.c 			struct net_device	*net;
net               588 drivers/usb/gadget/function/f_ecm.c 			net = gether_connect(&ecm->port);
net               589 drivers/usb/gadget/function/f_ecm.c 			if (IS_ERR(net))
net               590 drivers/usb/gadget/function/f_ecm.c 				return PTR_ERR(net);
net               707 drivers/usb/gadget/function/f_ecm.c 		gether_set_gadget(ecm_opts->net, cdev->gadget);
net               708 drivers/usb/gadget/function/f_ecm.c 		status = gether_register_netdev(ecm_opts->net);
net               865 drivers/usb/gadget/function/f_ecm.c 		gether_cleanup(netdev_priv(opts->net));
net               867 drivers/usb/gadget/function/f_ecm.c 		free_netdev(opts->net);
net               880 drivers/usb/gadget/function/f_ecm.c 	opts->net = gether_setup_default();
net               881 drivers/usb/gadget/function/f_ecm.c 	if (IS_ERR(opts->net)) {
net               882 drivers/usb/gadget/function/f_ecm.c 		struct net_device *net = opts->net;
net               884 drivers/usb/gadget/function/f_ecm.c 		return ERR_CAST(net);
net               938 drivers/usb/gadget/function/f_ecm.c 	status = gether_get_host_addr_cdc(opts->net, ecm->ethaddr,
net               946 drivers/usb/gadget/function/f_ecm.c 	ecm->port.ioport = netdev_priv(opts->net);
net               186 drivers/usb/gadget/function/f_eem.c 	struct net_device	*net;
net               214 drivers/usb/gadget/function/f_eem.c 		net = gether_connect(&eem->port);
net               215 drivers/usb/gadget/function/f_eem.c 		if (IS_ERR(net))
net               216 drivers/usb/gadget/function/f_eem.c 			return PTR_ERR(net);
net               260 drivers/usb/gadget/function/f_eem.c 		gether_set_gadget(eem_opts->net, cdev->gadget);
net               261 drivers/usb/gadget/function/f_eem.c 		status = gether_register_netdev(eem_opts->net);
net               565 drivers/usb/gadget/function/f_eem.c 		gether_cleanup(netdev_priv(opts->net));
net               567 drivers/usb/gadget/function/f_eem.c 		free_netdev(opts->net);
net               580 drivers/usb/gadget/function/f_eem.c 	opts->net = gether_setup_default();
net               581 drivers/usb/gadget/function/f_eem.c 	if (IS_ERR(opts->net)) {
net               582 drivers/usb/gadget/function/f_eem.c 		struct net_device *net = opts->net;
net               584 drivers/usb/gadget/function/f_eem.c 		return ERR_CAST(net);
net               626 drivers/usb/gadget/function/f_eem.c 	eem->port.ioport = netdev_priv(opts->net);
net               902 drivers/usb/gadget/function/f_ncm.c 			struct net_device	*net;
net               925 drivers/usb/gadget/function/f_ncm.c 			net = gether_connect(&ncm->port);
net               926 drivers/usb/gadget/function/f_ncm.c 			if (IS_ERR(net))
net               927 drivers/usb/gadget/function/f_ncm.c 				return PTR_ERR(net);
net               928 drivers/usb/gadget/function/f_ncm.c 			ncm->netdev = net;
net              1418 drivers/usb/gadget/function/f_ncm.c 		gether_set_gadget(ncm_opts->net, cdev->gadget);
net              1419 drivers/usb/gadget/function/f_ncm.c 		status = gether_register_netdev(ncm_opts->net);
net              1584 drivers/usb/gadget/function/f_ncm.c 		gether_cleanup(netdev_priv(opts->net));
net              1586 drivers/usb/gadget/function/f_ncm.c 		free_netdev(opts->net);
net              1605 drivers/usb/gadget/function/f_ncm.c 	opts->net = gether_setup_default();
net              1606 drivers/usb/gadget/function/f_ncm.c 	if (IS_ERR(opts->net)) {
net              1607 drivers/usb/gadget/function/f_ncm.c 		struct net_device *net = opts->net;
net              1609 drivers/usb/gadget/function/f_ncm.c 		return ERR_CAST(net);
net              1681 drivers/usb/gadget/function/f_ncm.c 	status = gether_get_host_addr_cdc(opts->net, ncm->ethaddr,
net              1692 drivers/usb/gadget/function/f_ncm.c 	ncm->port.ioport = netdev_priv(opts->net);
net               498 drivers/usb/gadget/function/f_phonet.c 		gphonet_set_gadget(phonet_opts->net, gadget);
net               499 drivers/usb/gadget/function/f_phonet.c 		status = gphonet_register_netdev(phonet_opts->net);
net               591 drivers/usb/gadget/function/f_phonet.c 	return gether_get_ifname(to_f_phonet_opts(item)->net, page, PAGE_SIZE);
net               613 drivers/usb/gadget/function/f_phonet.c 		gphonet_cleanup(opts->net);
net               615 drivers/usb/gadget/function/f_phonet.c 		free_netdev(opts->net);
net               628 drivers/usb/gadget/function/f_phonet.c 	opts->net = gphonet_setup_default();
net               629 drivers/usb/gadget/function/f_phonet.c 	if (IS_ERR(opts->net)) {
net               630 drivers/usb/gadget/function/f_phonet.c 		struct net_device *net = opts->net;
net               632 drivers/usb/gadget/function/f_phonet.c 		return ERR_CAST(net);
net               677 drivers/usb/gadget/function/f_phonet.c 	fp->dev = opts->net;
net               708 drivers/usb/gadget/function/f_phonet.c void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g)
net               710 drivers/usb/gadget/function/f_phonet.c 	SET_NETDEV_DEV(net, &g->dev);
net               713 drivers/usb/gadget/function/f_phonet.c int gphonet_register_netdev(struct net_device *net)
net               717 drivers/usb/gadget/function/f_phonet.c 	status = register_netdev(net);
net               719 drivers/usb/gadget/function/f_phonet.c 		free_netdev(net);
net               556 drivers/usb/gadget/function/f_rndis.c 		struct net_device	*net;
net               593 drivers/usb/gadget/function/f_rndis.c 		net = gether_connect(&rndis->port);
net               594 drivers/usb/gadget/function/f_rndis.c 		if (IS_ERR(net))
net               595 drivers/usb/gadget/function/f_rndis.c 			return PTR_ERR(net);
net               597 drivers/usb/gadget/function/f_rndis.c 		rndis_set_param_dev(rndis->params, net,
net               703 drivers/usb/gadget/function/f_rndis.c 		gether_set_gadget(rndis_opts->net, cdev->gadget);
net               704 drivers/usb/gadget/function/f_rndis.c 		status = gether_register_netdev(rndis_opts->net);
net               835 drivers/usb/gadget/function/f_rndis.c void rndis_borrow_net(struct usb_function_instance *f, struct net_device *net)
net               841 drivers/usb/gadget/function/f_rndis.c 		gether_cleanup(netdev_priv(opts->net));
net               843 drivers/usb/gadget/function/f_rndis.c 		free_netdev(opts->net);
net               845 drivers/usb/gadget/function/f_rndis.c 	opts->net = net;
net               903 drivers/usb/gadget/function/f_rndis.c 			gether_cleanup(netdev_priv(opts->net));
net               905 drivers/usb/gadget/function/f_rndis.c 			free_netdev(opts->net);
net               926 drivers/usb/gadget/function/f_rndis.c 	opts->net = gether_setup_default();
net               927 drivers/usb/gadget/function/f_rndis.c 	if (IS_ERR(opts->net)) {
net               928 drivers/usb/gadget/function/f_rndis.c 		struct net_device *net = opts->net;
net               930 drivers/usb/gadget/function/f_rndis.c 		return ERR_CAST(net);
net               995 drivers/usb/gadget/function/f_rndis.c 	gether_get_host_addr_u8(opts->net, rndis->ethaddr);
net               999 drivers/usb/gadget/function/f_rndis.c 	rndis->port.ioport = netdev_priv(opts->net);
net               257 drivers/usb/gadget/function/f_subset.c 	struct net_device	*net;
net               274 drivers/usb/gadget/function/f_subset.c 	net = gether_connect(&geth->port);
net               275 drivers/usb/gadget/function/f_subset.c 	return PTR_ERR_OR_ZERO(net);
net               313 drivers/usb/gadget/function/f_subset.c 		gether_set_gadget(gether_opts->net, cdev->gadget);
net               314 drivers/usb/gadget/function/f_subset.c 		status = gether_register_netdev(gether_opts->net);
net               423 drivers/usb/gadget/function/f_subset.c 		gether_cleanup(netdev_priv(opts->net));
net               425 drivers/usb/gadget/function/f_subset.c 		free_netdev(opts->net);
net               438 drivers/usb/gadget/function/f_subset.c 	opts->net = gether_setup_default();
net               439 drivers/usb/gadget/function/f_subset.c 	if (IS_ERR(opts->net)) {
net               440 drivers/usb/gadget/function/f_subset.c 		struct net_device *net = opts->net;
net               442 drivers/usb/gadget/function/f_subset.c 		return ERR_CAST(net);
net               481 drivers/usb/gadget/function/f_subset.c 	status = gether_get_host_addr_cdc(opts->net, geth->ethaddr,
net               490 drivers/usb/gadget/function/f_subset.c 	geth->port.ioport = netdev_priv(opts->net);
net               177 drivers/usb/gadget/function/rndis.c 	struct net_device *net;
net               201 drivers/usb/gadget/function/rndis.c 	net = params->dev;
net               202 drivers/usb/gadget/function/rndis.c 	stats = dev_get_stats(net, &temp);
net                20 drivers/usb/gadget/function/u_ecm.h 	struct net_device		*net;
net                20 drivers/usb/gadget/function/u_eem.h 	struct net_device		*net;
net                58 drivers/usb/gadget/function/u_ether.c 	struct net_device	*net;
net               114 drivers/usb/gadget/function/u_ether.c 	printk(level "%s: " fmt , (d)->net->name , ## args)
net               141 drivers/usb/gadget/function/u_ether.c static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p)
net               143 drivers/usb/gadget/function/u_ether.c 	struct eth_dev *dev = netdev_priv(net);
net               208 drivers/usb/gadget/function/u_ether.c 	size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA;
net               220 drivers/usb/gadget/function/u_ether.c 	skb = __netdev_alloc_skb(dev->net, size + NET_IP_ALIGN, gfp_flags);
net               288 drivers/usb/gadget/function/u_ether.c 				dev->net->stats.rx_errors++;
net               289 drivers/usb/gadget/function/u_ether.c 				dev->net->stats.rx_length_errors++;
net               294 drivers/usb/gadget/function/u_ether.c 			skb2->protocol = eth_type_trans(skb2, dev->net);
net               295 drivers/usb/gadget/function/u_ether.c 			dev->net->stats.rx_packets++;
net               296 drivers/usb/gadget/function/u_ether.c 			dev->net->stats.rx_bytes += skb2->len;
net               323 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.rx_over_errors++;
net               327 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.rx_errors++;
net               334 drivers/usb/gadget/function/u_ether.c 	if (!netif_running(dev->net)) {
net               430 drivers/usb/gadget/function/u_ether.c 		if (netif_running(dev->net))
net               445 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.tx_errors++;
net               453 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.tx_bytes += skb->len;
net               456 drivers/usb/gadget/function/u_ether.c 	dev->net->stats.tx_packets++;
net               463 drivers/usb/gadget/function/u_ether.c 	if (netif_carrier_ok(dev->net))
net               464 drivers/usb/gadget/function/u_ether.c 		netif_wake_queue(dev->net);
net               473 drivers/usb/gadget/function/u_ether.c 					struct net_device *net)
net               475 drivers/usb/gadget/function/u_ether.c 	struct eth_dev		*dev = netdev_priv(net);
net               536 drivers/usb/gadget/function/u_ether.c 		netif_stop_queue(net);
net               590 drivers/usb/gadget/function/u_ether.c 		netif_trans_update(net);
net               597 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.tx_dropped++;
net               601 drivers/usb/gadget/function/u_ether.c 			netif_start_queue(net);
net               619 drivers/usb/gadget/function/u_ether.c 	netif_wake_queue(dev->net);
net               622 drivers/usb/gadget/function/u_ether.c static int eth_open(struct net_device *net)
net               624 drivers/usb/gadget/function/u_ether.c 	struct eth_dev	*dev = netdev_priv(net);
net               628 drivers/usb/gadget/function/u_ether.c 	if (netif_carrier_ok(dev->net))
net               640 drivers/usb/gadget/function/u_ether.c static int eth_stop(struct net_device *net)
net               642 drivers/usb/gadget/function/u_ether.c 	struct eth_dev	*dev = netdev_priv(net);
net               646 drivers/usb/gadget/function/u_ether.c 	netif_stop_queue(net);
net               649 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.rx_packets, dev->net->stats.tx_packets,
net               650 drivers/usb/gadget/function/u_ether.c 		dev->net->stats.rx_errors, dev->net->stats.tx_errors
net               676 drivers/usb/gadget/function/u_ether.c 		if (netif_carrier_ok(net)) {
net               752 drivers/usb/gadget/function/u_ether.c 	struct net_device	*net;
net               755 drivers/usb/gadget/function/u_ether.c 	net = alloc_etherdev(sizeof *dev);
net               756 drivers/usb/gadget/function/u_ether.c 	if (!net)
net               759 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               769 drivers/usb/gadget/function/u_ether.c 	dev->net = net;
net               771 drivers/usb/gadget/function/u_ether.c 	snprintf(net->name, sizeof(net->name), "%s%%d", netname);
net               773 drivers/usb/gadget/function/u_ether.c 	if (get_ether_addr(dev_addr, net->dev_addr))
net               783 drivers/usb/gadget/function/u_ether.c 	net->netdev_ops = &eth_netdev_ops;
net               785 drivers/usb/gadget/function/u_ether.c 	net->ethtool_ops = &ops;
net               788 drivers/usb/gadget/function/u_ether.c 	net->min_mtu = ETH_HLEN;
net               789 drivers/usb/gadget/function/u_ether.c 	net->max_mtu = GETHER_MAX_ETH_FRAME_LEN;
net               792 drivers/usb/gadget/function/u_ether.c 	SET_NETDEV_DEV(net, &g->dev);
net               793 drivers/usb/gadget/function/u_ether.c 	SET_NETDEV_DEVTYPE(net, &gadget_type);
net               795 drivers/usb/gadget/function/u_ether.c 	status = register_netdev(net);
net               798 drivers/usb/gadget/function/u_ether.c 		free_netdev(net);
net               801 drivers/usb/gadget/function/u_ether.c 		INFO(dev, "MAC %pM\n", net->dev_addr);
net               809 drivers/usb/gadget/function/u_ether.c 		netif_carrier_off(net);
net               818 drivers/usb/gadget/function/u_ether.c 	struct net_device	*net;
net               821 drivers/usb/gadget/function/u_ether.c 	net = alloc_etherdev(sizeof(*dev));
net               822 drivers/usb/gadget/function/u_ether.c 	if (!net)
net               825 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               835 drivers/usb/gadget/function/u_ether.c 	dev->net = net;
net               837 drivers/usb/gadget/function/u_ether.c 	snprintf(net->name, sizeof(net->name), "%s%%d", netname);
net               844 drivers/usb/gadget/function/u_ether.c 	net->netdev_ops = &eth_netdev_ops;
net               846 drivers/usb/gadget/function/u_ether.c 	net->ethtool_ops = &ops;
net               847 drivers/usb/gadget/function/u_ether.c 	SET_NETDEV_DEVTYPE(net, &gadget_type);
net               850 drivers/usb/gadget/function/u_ether.c 	net->min_mtu = ETH_HLEN;
net               851 drivers/usb/gadget/function/u_ether.c 	net->max_mtu = GETHER_MAX_ETH_FRAME_LEN;
net               853 drivers/usb/gadget/function/u_ether.c 	return net;
net               857 drivers/usb/gadget/function/u_ether.c int gether_register_netdev(struct net_device *net)
net               864 drivers/usb/gadget/function/u_ether.c 	if (!net->dev.parent)
net               866 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               868 drivers/usb/gadget/function/u_ether.c 	status = register_netdev(net);
net               879 drivers/usb/gadget/function/u_ether.c 		netif_carrier_off(net);
net               881 drivers/usb/gadget/function/u_ether.c 	sa.sa_family = net->type;
net               884 drivers/usb/gadget/function/u_ether.c 	status = dev_set_mac_address(net, &sa, NULL);
net               895 drivers/usb/gadget/function/u_ether.c void gether_set_gadget(struct net_device *net, struct usb_gadget *g)
net               899 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               901 drivers/usb/gadget/function/u_ether.c 	SET_NETDEV_DEV(net, &g->dev);
net               905 drivers/usb/gadget/function/u_ether.c int gether_set_dev_addr(struct net_device *net, const char *dev_addr)
net               910 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               918 drivers/usb/gadget/function/u_ether.c int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len)
net               923 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               934 drivers/usb/gadget/function/u_ether.c int gether_set_host_addr(struct net_device *net, const char *host_addr)
net               939 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               947 drivers/usb/gadget/function/u_ether.c int gether_get_host_addr(struct net_device *net, char *host_addr, int len)
net               952 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               963 drivers/usb/gadget/function/u_ether.c int gether_get_host_addr_cdc(struct net_device *net, char *host_addr, int len)
net               970 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               977 drivers/usb/gadget/function/u_ether.c void gether_get_host_addr_u8(struct net_device *net, u8 host_mac[ETH_ALEN])
net               981 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               986 drivers/usb/gadget/function/u_ether.c void gether_set_qmult(struct net_device *net, unsigned qmult)
net               990 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net               995 drivers/usb/gadget/function/u_ether.c unsigned gether_get_qmult(struct net_device *net)
net               999 drivers/usb/gadget/function/u_ether.c 	dev = netdev_priv(net);
net              1004 drivers/usb/gadget/function/u_ether.c int gether_get_ifname(struct net_device *net, char *name, int len)
net              1009 drivers/usb/gadget/function/u_ether.c 	ret = scnprintf(name, len, "%s\n", netdev_name(net));
net              1026 drivers/usb/gadget/function/u_ether.c 	unregister_netdev(dev->net);
net              1028 drivers/usb/gadget/function/u_ether.c 	free_netdev(dev->net);
net              1087 drivers/usb/gadget/function/u_ether.c 		if (netif_running(dev->net)) {
net              1096 drivers/usb/gadget/function/u_ether.c 		netif_carrier_on(dev->net);
net              1097 drivers/usb/gadget/function/u_ether.c 		if (netif_running(dev->net))
net              1110 drivers/usb/gadget/function/u_ether.c 	return dev->net;
net              1137 drivers/usb/gadget/function/u_ether.c 	netif_stop_queue(dev->net);
net              1138 drivers/usb/gadget/function/u_ether.c 	netif_carrier_off(dev->net);
net               127 drivers/usb/gadget/function/u_ether.h int gether_register_netdev(struct net_device *net);
net               150 drivers/usb/gadget/function/u_ether.h void gether_set_gadget(struct net_device *net, struct usb_gadget *g);
net               161 drivers/usb/gadget/function/u_ether.h int gether_set_dev_addr(struct net_device *net, const char *dev_addr);
net               172 drivers/usb/gadget/function/u_ether.h int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len);
net               183 drivers/usb/gadget/function/u_ether.h int gether_set_host_addr(struct net_device *net, const char *host_addr);
net               194 drivers/usb/gadget/function/u_ether.h int gether_get_host_addr(struct net_device *net, char *host_addr, int len);
net               206 drivers/usb/gadget/function/u_ether.h int gether_get_host_addr_cdc(struct net_device *net, char *host_addr, int len);
net               216 drivers/usb/gadget/function/u_ether.h void gether_get_host_addr_u8(struct net_device *net, u8 host_mac[ETH_ALEN]);
net               226 drivers/usb/gadget/function/u_ether.h void gether_set_qmult(struct net_device *net, unsigned qmult);
net               234 drivers/usb/gadget/function/u_ether.h unsigned gether_get_qmult(struct net_device *net);
net               245 drivers/usb/gadget/function/u_ether.h int gether_get_ifname(struct net_device *net, char *name, int len);
net                36 drivers/usb/gadget/function/u_ether_configfs.h 		result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
net                54 drivers/usb/gadget/function/u_ether_configfs.h 		ret = gether_set_dev_addr(opts->net, page);		\
net                71 drivers/usb/gadget/function/u_ether_configfs.h 		result = gether_get_host_addr(opts->net, page, PAGE_SIZE); \
net                89 drivers/usb/gadget/function/u_ether_configfs.h 		ret = gether_set_host_addr(opts->net, page);		\
net               106 drivers/usb/gadget/function/u_ether_configfs.h 		qmult = gether_get_qmult(opts->net);			\
net               128 drivers/usb/gadget/function/u_ether_configfs.h 		gether_set_qmult(opts->net, val);			\
net               145 drivers/usb/gadget/function/u_ether_configfs.h 		ret = gether_get_ifname(opts->net, page, PAGE_SIZE);	\
net                20 drivers/usb/gadget/function/u_gether.h 	struct net_device		*net;
net                20 drivers/usb/gadget/function/u_ncm.h 	struct net_device		*net;
net                17 drivers/usb/gadget/function/u_phonet.h 	struct net_device *net;
net                21 drivers/usb/gadget/function/u_phonet.h void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
net                22 drivers/usb/gadget/function/u_phonet.h int gphonet_register_netdev(struct net_device *net);
net                22 drivers/usb/gadget/function/u_rndis.h 	struct net_device		*net;
net                44 drivers/usb/gadget/function/u_rndis.h void rndis_borrow_net(struct usb_function_instance *f, struct net_device *net);
net               156 drivers/usb/gadget/legacy/cdc2.c 	gether_set_qmult(ecm_opts->net, qmult);
net               157 drivers/usb/gadget/legacy/cdc2.c 	if (!gether_set_host_addr(ecm_opts->net, host_addr))
net               159 drivers/usb/gadget/legacy/cdc2.c 	if (!gether_set_dev_addr(ecm_opts->net, dev_addr))
net               310 drivers/usb/gadget/legacy/ether.c 	struct net_device	*net;
net               322 drivers/usb/gadget/legacy/ether.c 		net = eem_opts->net;
net               336 drivers/usb/gadget/legacy/ether.c 		net = ecm_opts->net;
net               349 drivers/usb/gadget/legacy/ether.c 		net = geth_opts->net;
net               359 drivers/usb/gadget/legacy/ether.c 	gether_set_qmult(net, qmult);
net               360 drivers/usb/gadget/legacy/ether.c 	if (!gether_set_host_addr(net, host_addr))
net               362 drivers/usb/gadget/legacy/ether.c 	if (!gether_set_dev_addr(net, dev_addr))
net               367 drivers/usb/gadget/legacy/ether.c 		gether_set_gadget(net, cdev->gadget);
net               368 drivers/usb/gadget/legacy/ether.c 		status = gether_register_netdev(net);
net               385 drivers/usb/gadget/legacy/ether.c 		rndis_borrow_net(fi_rndis, net);
net               315 drivers/usb/gadget/legacy/g_ffs.c 	struct net_device *net;
net               331 drivers/usb/gadget/legacy/g_ffs.c 		net = ecm_opts->net;
net               340 drivers/usb/gadget/legacy/g_ffs.c 		net = geth_opts->net;
net               352 drivers/usb/gadget/legacy/g_ffs.c 		net = container_of(fi_rndis, struct f_rndis_opts,
net               353 drivers/usb/gadget/legacy/g_ffs.c 				   func_inst)->net;
net               359 drivers/usb/gadget/legacy/g_ffs.c 	gether_set_qmult(net, qmult);
net               360 drivers/usb/gadget/legacy/g_ffs.c 	if (!gether_set_host_addr(net, host_addr))
net               362 drivers/usb/gadget/legacy/g_ffs.c 	if (!gether_set_dev_addr(net, dev_addr))
net               367 drivers/usb/gadget/legacy/g_ffs.c 	gether_set_gadget(net, cdev->gadget);
net               368 drivers/usb/gadget/legacy/g_ffs.c 	ret = gether_register_netdev(net);
net               385 drivers/usb/gadget/legacy/g_ffs.c 	rndis_borrow_net(fi_rndis, net);
net               320 drivers/usb/gadget/legacy/multi.c 	gether_set_qmult(ecm_opts->net, qmult);
net               321 drivers/usb/gadget/legacy/multi.c 	if (!gether_set_host_addr(ecm_opts->net, host_addr))
net               323 drivers/usb/gadget/legacy/multi.c 	if (!gether_set_dev_addr(ecm_opts->net, dev_addr))
net               336 drivers/usb/gadget/legacy/multi.c 	gether_set_qmult(rndis_opts->net, qmult);
net               337 drivers/usb/gadget/legacy/multi.c 	if (!gether_set_host_addr(rndis_opts->net, host_addr))
net               339 drivers/usb/gadget/legacy/multi.c 	if (!gether_set_dev_addr(rndis_opts->net, dev_addr))
net               350 drivers/usb/gadget/legacy/multi.c 	gether_set_gadget(ecm_opts->net, cdev->gadget);
net               351 drivers/usb/gadget/legacy/multi.c 	status = gether_register_netdev(ecm_opts->net);
net               355 drivers/usb/gadget/legacy/multi.c 	rndis_borrow_net(fi_rndis, ecm_opts->net);
net               139 drivers/usb/gadget/legacy/ncm.c 	gether_set_qmult(ncm_opts->net, qmult);
net               140 drivers/usb/gadget/legacy/ncm.c 	if (!gether_set_host_addr(ncm_opts->net, host_addr))
net               142 drivers/usb/gadget/legacy/ncm.c 	if (!gether_set_dev_addr(ncm_opts->net, dev_addr))
net               319 drivers/vhost/net.c static void vhost_net_tx_packet(struct vhost_net *net)
net               321 drivers/vhost/net.c 	++net->tx_packets;
net               322 drivers/vhost/net.c 	if (net->tx_packets < 1024)
net               324 drivers/vhost/net.c 	net->tx_packets = 0;
net               325 drivers/vhost/net.c 	net->tx_zcopy_err = 0;
net               328 drivers/vhost/net.c static void vhost_net_tx_err(struct vhost_net *net)
net               330 drivers/vhost/net.c 	++net->tx_zcopy_err;
net               333 drivers/vhost/net.c static bool vhost_net_tx_select_zcopy(struct vhost_net *net)
net               338 drivers/vhost/net.c 	return !net->tx_flush &&
net               339 drivers/vhost/net.c 		net->tx_packets / 64 >= net->tx_zcopy_err;
net               358 drivers/vhost/net.c static void vhost_zerocopy_signal_used(struct vhost_net *net,
net               368 drivers/vhost/net.c 			vhost_net_tx_err(net);
net               459 drivers/vhost/net.c static void vhost_tx_batch(struct vhost_net *net,
net               497 drivers/vhost/net.c static void vhost_net_busy_poll_try_queue(struct vhost_net *net,
net               500 drivers/vhost/net.c 	if (!vhost_vq_avail_empty(&net->dev, vq)) {
net               502 drivers/vhost/net.c 	} else if (unlikely(vhost_enable_notify(&net->dev, vq))) {
net               503 drivers/vhost/net.c 		vhost_disable_notify(&net->dev, vq);
net               508 drivers/vhost/net.c static void vhost_net_busy_poll(struct vhost_net *net,
net               526 drivers/vhost/net.c 	vhost_disable_notify(&net->dev, vq);
net               536 drivers/vhost/net.c 		if (vhost_has_work(&net->dev)) {
net               542 drivers/vhost/net.c 		     !vhost_vq_avail_empty(&net->dev, rvq)) ||
net               543 drivers/vhost/net.c 		    !vhost_vq_avail_empty(&net->dev, tvq))
net               552 drivers/vhost/net.c 		vhost_net_busy_poll_try_queue(net, vq);
net               554 drivers/vhost/net.c 		vhost_enable_notify(&net->dev, rvq);
net               559 drivers/vhost/net.c static int vhost_net_tx_get_vq_desc(struct vhost_net *net,
net               564 drivers/vhost/net.c 	struct vhost_net_virtqueue *rnvq = &net->vqs[VHOST_NET_VQ_RX];
net               574 drivers/vhost/net.c 			vhost_tx_batch(net, tnvq, tvq->private_data, msghdr);
net               576 drivers/vhost/net.c 		vhost_net_busy_poll(net, rvq, tvq, busyloop_intr, false);
net               585 drivers/vhost/net.c static bool vhost_exceeds_maxpend(struct vhost_net *net)
net               587 drivers/vhost/net.c 	struct vhost_net_virtqueue *nvq = &net->vqs[VHOST_NET_VQ_TX];
net               606 drivers/vhost/net.c static int get_tx_bufs(struct vhost_net *net,
net               615 drivers/vhost/net.c 	ret = vhost_net_tx_get_vq_desc(net, nvq, out, in, msg, busyloop_intr);
net               645 drivers/vhost/net.c static bool vhost_net_page_frag_refill(struct vhost_net *net, unsigned int sz,
net               651 drivers/vhost/net.c 		__page_frag_cache_drain(pfrag->page, net->refcnt_bias);
net               655 drivers/vhost/net.c 	net->refcnt_bias = 0;
net               675 drivers/vhost/net.c 	net->refcnt_bias = USHRT_MAX;
net               686 drivers/vhost/net.c 	struct vhost_net *net = container_of(vq->dev, struct vhost_net,
net               689 drivers/vhost/net.c 	struct page_frag *alloc_frag = &net->page_frag;
net               710 drivers/vhost/net.c 	if (unlikely(!vhost_net_page_frag_refill(net, buflen,
net               749 drivers/vhost/net.c 	--net->refcnt_bias;
net               757 drivers/vhost/net.c static void handle_tx_copy(struct vhost_net *net, struct socket *sock)
net               759 drivers/vhost/net.c 	struct vhost_net_virtqueue *nvq = &net->vqs[VHOST_NET_VQ_TX];
net               779 drivers/vhost/net.c 			vhost_tx_batch(net, nvq, sock, &msg);
net               781 drivers/vhost/net.c 		head = get_tx_bufs(net, nvq, &msg, &out, &in, &len,
net               790 drivers/vhost/net.c 			} else if (unlikely(vhost_enable_notify(&net->dev,
net               792 drivers/vhost/net.c 				vhost_disable_notify(&net->dev, vq);
net               808 drivers/vhost/net.c 				vhost_tx_batch(net, nvq, sock, &msg);
net               810 drivers/vhost/net.c 				vhost_net_enable_vq(net, vq);
net               818 drivers/vhost/net.c 			vhost_tx_batch(net, nvq, sock, &msg);
net               831 drivers/vhost/net.c 			vhost_net_enable_vq(net, vq);
net               843 drivers/vhost/net.c 	vhost_tx_batch(net, nvq, sock, &msg);
net               846 drivers/vhost/net.c static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
net               848 drivers/vhost/net.c 	struct vhost_net_virtqueue *nvq = &net->vqs[VHOST_NET_VQ_TX];
net               870 drivers/vhost/net.c 		vhost_zerocopy_signal_used(net, vq);
net               873 drivers/vhost/net.c 		head = get_tx_bufs(net, nvq, &msg, &out, &in, &len,
net               882 drivers/vhost/net.c 			} else if (unlikely(vhost_enable_notify(&net->dev, vq))) {
net               883 drivers/vhost/net.c 				vhost_disable_notify(&net->dev, vq);
net               890 drivers/vhost/net.c 			     && !vhost_exceeds_maxpend(net)
net               891 drivers/vhost/net.c 			     && vhost_net_tx_select_zcopy(net);
net               917 drivers/vhost/net.c 		    likely(!vhost_exceeds_maxpend(net))) {
net               932 drivers/vhost/net.c 			vhost_net_enable_vq(net, vq);
net               939 drivers/vhost/net.c 			vhost_add_used_and_signal(&net->dev, vq, head, 0);
net               941 drivers/vhost/net.c 			vhost_zerocopy_signal_used(net, vq);
net               942 drivers/vhost/net.c 		vhost_net_tx_packet(net);
net               948 drivers/vhost/net.c static void handle_tx(struct vhost_net *net)
net               950 drivers/vhost/net.c 	struct vhost_net_virtqueue *nvq = &net->vqs[VHOST_NET_VQ_TX];
net               962 drivers/vhost/net.c 	vhost_disable_notify(&net->dev, vq);
net               963 drivers/vhost/net.c 	vhost_net_disable_vq(net, vq);
net               966 drivers/vhost/net.c 		handle_tx_zerocopy(net, sock);
net               968 drivers/vhost/net.c 		handle_tx_copy(net, sock);
net               995 drivers/vhost/net.c static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk,
net               998 drivers/vhost/net.c 	struct vhost_net_virtqueue *rnvq = &net->vqs[VHOST_NET_VQ_RX];
net               999 drivers/vhost/net.c 	struct vhost_net_virtqueue *tnvq = &net->vqs[VHOST_NET_VQ_TX];
net              1008 drivers/vhost/net.c 		vhost_net_busy_poll(net, rvq, tvq, busyloop_intr, true);
net              1095 drivers/vhost/net.c static void handle_rx(struct vhost_net *net)
net              1097 drivers/vhost/net.c 	struct vhost_net_virtqueue *nvq = &net->vqs[VHOST_NET_VQ_RX];
net              1131 drivers/vhost/net.c 	vhost_disable_notify(&net->dev, vq);
net              1132 drivers/vhost/net.c 	vhost_net_disable_vq(net, vq);
net              1142 drivers/vhost/net.c 		sock_len = vhost_net_rx_peek_head_len(net, sock->sk,
net              1158 drivers/vhost/net.c 			} else if (unlikely(vhost_enable_notify(&net->dev, vq))) {
net              1161 drivers/vhost/net.c 				vhost_disable_notify(&net->dev, vq);
net              1235 drivers/vhost/net.c 		vhost_net_enable_vq(net, vq);
net              1245 drivers/vhost/net.c 	struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev);
net              1247 drivers/vhost/net.c 	handle_tx(net);
net              1254 drivers/vhost/net.c 	struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev);
net              1256 drivers/vhost/net.c 	handle_rx(net);
net              1261 drivers/vhost/net.c 	struct vhost_net *net = container_of(work, struct vhost_net,
net              1263 drivers/vhost/net.c 	handle_tx(net);
net              1268 drivers/vhost/net.c 	struct vhost_net *net = container_of(work, struct vhost_net,
net              1270 drivers/vhost/net.c 	handle_rx(net);
net                63 fs/afs/addr_list.c struct afs_vlserver_list *afs_parse_text_addrs(struct afs_net *net,
net               221 fs/afs/addr_list.c 	afs_put_vlserverlist(net, vllist);
net               249 fs/afs/addr_list.c 	ret = dns_query(cell->net->net, "afsdb", cell->name, cell->name_len,
net               262 fs/afs/addr_list.c 		vllist = afs_parse_text_addrs(cell->net, result, ret, ',',
net               179 fs/afs/callback.c void afs_put_cb_interest(struct afs_net *net, struct afs_cb_interest *cbi)
net               198 fs/afs/callback.c 			afs_put_server(net, cbi->server, afs_server_trace_put_cbi);
net               333 fs/afs/callback.c void afs_clear_callback_interests(struct afs_net *net, struct afs_server_list *slist)
net               338 fs/afs/callback.c 		afs_put_cb_interest(net, slist->servers[i].cb_interest);
net                24 fs/afs/cell.c  static void afs_dec_cells_outstanding(struct afs_net *net)
net                26 fs/afs/cell.c  	if (atomic_dec_and_test(&net->cells_outstanding))
net                27 fs/afs/cell.c  		wake_up_var(&net->cells_outstanding);
net                34 fs/afs/cell.c  static void afs_set_cell_timer(struct afs_net *net, time64_t delay)
net                36 fs/afs/cell.c  	if (net->live) {
net                37 fs/afs/cell.c  		atomic_inc(&net->cells_outstanding);
net                38 fs/afs/cell.c  		if (timer_reduce(&net->cells_timer, jiffies + delay * HZ))
net                39 fs/afs/cell.c  			afs_dec_cells_outstanding(net);
net                47 fs/afs/cell.c  struct afs_cell *afs_lookup_cell_rcu(struct afs_net *net,
net                67 fs/afs/cell.c  			afs_put_cell(net, cell);
net                71 fs/afs/cell.c  		read_seqbegin_or_lock(&net->cells_lock, &seq);
net                74 fs/afs/cell.c  			cell = rcu_dereference_raw(net->ws_cell);
net                84 fs/afs/cell.c  		p = rcu_dereference_raw(net->cells.rb_node);
net               108 fs/afs/cell.c  	} while (need_seqretry(&net->cells_lock, seq));
net               110 fs/afs/cell.c  	done_seqretry(&net->cells_lock, seq);
net               113 fs/afs/cell.c  		afs_put_cell(net, cell);
net               122 fs/afs/cell.c  static struct afs_cell *afs_alloc_cell(struct afs_net *net,
net               157 fs/afs/cell.c  	cell->net = net;
net               172 fs/afs/cell.c  		vllist = afs_parse_text_addrs(net,
net               224 fs/afs/cell.c  struct afs_cell *afs_lookup_cell(struct afs_net *net,
net               237 fs/afs/cell.c  		cell = afs_lookup_cell_rcu(net, name, namesz);
net               250 fs/afs/cell.c  	candidate = afs_alloc_cell(net, name, namesz, vllist);
net               259 fs/afs/cell.c  	write_seqlock(&net->cells_lock);
net               261 fs/afs/cell.c  	pp = &net->cells.rb_node;
net               282 fs/afs/cell.c  	rb_insert_color(&cell->net_node, &net->cells);
net               283 fs/afs/cell.c  	atomic_inc(&net->cells_outstanding);
net               284 fs/afs/cell.c  	write_sequnlock(&net->cells_lock);
net               314 fs/afs/cell.c  	write_sequnlock(&net->cells_lock);
net               320 fs/afs/cell.c  	afs_put_cell(net, cell);
net               331 fs/afs/cell.c  int afs_cell_init(struct afs_net *net, const char *rootcell)
net               358 fs/afs/cell.c  	new_root = afs_lookup_cell(net, rootcell, len, vllist, false);
net               368 fs/afs/cell.c  	write_seqlock(&net->cells_lock);
net               369 fs/afs/cell.c  	old_root = rcu_access_pointer(net->ws_cell);
net               370 fs/afs/cell.c  	rcu_assign_pointer(net->ws_cell, new_root);
net               371 fs/afs/cell.c  	write_sequnlock(&net->cells_lock);
net               373 fs/afs/cell.c  	afs_put_cell(net, old_root);
net               463 fs/afs/cell.c  	afs_put_vlserverlist(cell->net, old);
net               484 fs/afs/cell.c  	afs_put_vlserverlist(cell->net, rcu_access_pointer(cell->vl_servers));
net               494 fs/afs/cell.c  static void afs_queue_cell_manager(struct afs_net *net)
net               496 fs/afs/cell.c  	int outstanding = atomic_inc_return(&net->cells_outstanding);
net               500 fs/afs/cell.c  	if (!queue_work(afs_wq, &net->cells_manager))
net               501 fs/afs/cell.c  		afs_dec_cells_outstanding(net);
net               510 fs/afs/cell.c  	struct afs_net *net = container_of(timer, struct afs_net, cells_timer);
net               513 fs/afs/cell.c  	if (!queue_work(afs_wq, &net->cells_manager))
net               514 fs/afs/cell.c  		afs_dec_cells_outstanding(net);
net               529 fs/afs/cell.c  void afs_put_cell(struct afs_net *net, struct afs_cell *cell)
net               548 fs/afs/cell.c  	afs_set_cell_timer(net, expire_delay);
net               581 fs/afs/cell.c  static int afs_activate_cell(struct afs_net *net, struct afs_cell *cell)
net               604 fs/afs/cell.c  	mutex_lock(&net->proc_cells_lock);
net               605 fs/afs/cell.c  	for (p = &net->proc_cells.first; *p; p = &(*p)->next) {
net               617 fs/afs/cell.c  	afs_dynroot_mkdir(net, cell);
net               618 fs/afs/cell.c  	mutex_unlock(&net->proc_cells_lock);
net               625 fs/afs/cell.c  static void afs_deactivate_cell(struct afs_net *net, struct afs_cell *cell)
net               631 fs/afs/cell.c  	mutex_lock(&net->proc_cells_lock);
net               633 fs/afs/cell.c  	afs_dynroot_rmdir(net, cell);
net               634 fs/afs/cell.c  	mutex_unlock(&net->proc_cells_lock);
net               651 fs/afs/cell.c  	struct afs_net *net = cell->net;
net               662 fs/afs/cell.c  		write_seqlock(&net->cells_lock);
net               666 fs/afs/cell.c  			rb_erase(&cell->net_node, &net->cells);
net               667 fs/afs/cell.c  		write_sequnlock(&net->cells_lock);
net               682 fs/afs/cell.c  		ret = afs_activate_cell(net, cell);
net               706 fs/afs/cell.c  		afs_deactivate_cell(net, cell);
net               719 fs/afs/cell.c  	afs_deactivate_cell(net, cell);
net               737 fs/afs/cell.c  	afs_dec_cells_outstanding(net);
net               738 fs/afs/cell.c  	_leave(" [destruct %d]", atomic_read(&net->cells_outstanding));
net               756 fs/afs/cell.c  	struct afs_net *net = container_of(work, struct afs_net, cells_manager);
net               759 fs/afs/cell.c  	bool purging = !net->live;
net               767 fs/afs/cell.c  	read_seqlock_excl(&net->cells_lock);
net               769 fs/afs/cell.c  	for (cursor = rb_first(&net->cells); cursor; cursor = rb_next(cursor)) {
net               812 fs/afs/cell.c  	read_sequnlock_excl(&net->cells_lock);
net               822 fs/afs/cell.c  			if (queue_work(afs_wq, &net->cells_manager))
net               823 fs/afs/cell.c  				atomic_inc(&net->cells_outstanding);
net               825 fs/afs/cell.c  			afs_set_cell_timer(net, next_manage - now);
net               829 fs/afs/cell.c  	afs_dec_cells_outstanding(net);
net               830 fs/afs/cell.c  	_leave(" [%d]", atomic_read(&net->cells_outstanding));
net               836 fs/afs/cell.c  void afs_cell_purge(struct afs_net *net)
net               842 fs/afs/cell.c  	write_seqlock(&net->cells_lock);
net               843 fs/afs/cell.c  	ws = rcu_access_pointer(net->ws_cell);
net               844 fs/afs/cell.c  	RCU_INIT_POINTER(net->ws_cell, NULL);
net               845 fs/afs/cell.c  	write_sequnlock(&net->cells_lock);
net               846 fs/afs/cell.c  	afs_put_cell(net, ws);
net               849 fs/afs/cell.c  	if (del_timer_sync(&net->cells_timer))
net               850 fs/afs/cell.c  		atomic_dec(&net->cells_outstanding);
net               853 fs/afs/cell.c  	afs_queue_cell_manager(net);
net               856 fs/afs/cell.c  	wait_var_event(&net->cells_outstanding,
net               857 fs/afs/cell.c  		       !atomic_read(&net->cells_outstanding));
net               121 fs/afs/cmservice.c 	call->epoch = rxrpc_kernel_get_epoch(call->net->socket, call->rxcall);
net               204 fs/afs/cmservice.c 	rxrpc_kernel_get_peer(call->net->socket, call->rxcall, &srx);
net               206 fs/afs/cmservice.c 	server = afs_find_server(call->net, &srx);
net               226 fs/afs/cmservice.c 	server = afs_find_server_by_uuid(call->net, call->request);
net               252 fs/afs/cmservice.c 	rxrpc_kernel_abort_call(call->net->socket, call->rxcall,
net               521 fs/afs/cmservice.c 	if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0)
net               613 fs/afs/cmservice.c 	reply.ia.uuid[0] = call->net->uuid.time_low;
net               614 fs/afs/cmservice.c 	reply.ia.uuid[1] = htonl(ntohs(call->net->uuid.time_mid));
net               615 fs/afs/cmservice.c 	reply.ia.uuid[2] = htonl(ntohs(call->net->uuid.time_hi_and_version));
net               616 fs/afs/cmservice.c 	reply.ia.uuid[3] = htonl((s8) call->net->uuid.clock_seq_hi_and_reserved);
net               617 fs/afs/cmservice.c 	reply.ia.uuid[4] = htonl((s8) call->net->uuid.clock_seq_low);
net               619 fs/afs/cmservice.c 		reply.ia.uuid[loop + 5] = htonl((s8) call->net->uuid.node[loop]);
net               855 fs/afs/dir.c   	struct afs_net *net = afs_i2net(dir);
net               872 fs/afs/dir.c   	read_lock(&net->sysnames_lock);
net               873 fs/afs/dir.c   	subs = net->sysnames;
net               875 fs/afs/dir.c   	read_unlock(&net->sysnames_lock);
net                20 fs/afs/dynroot.c 	struct afs_net *net = afs_d2net(dentry);
net                33 fs/afs/dynroot.c 	cell = afs_lookup_cell_rcu(net, name, len);
net                35 fs/afs/dynroot.c 		afs_put_cell(net, cell);
net                39 fs/afs/dynroot.c 	ret = dns_query(net->net, "afsdb", name, len, "srv=1",
net                87 fs/afs/dynroot.c 	struct afs_net *net = afs_d2net(dentry);
net                93 fs/afs/dynroot.c 	if (!net->ws_cell)
net               103 fs/afs/dynroot.c 		read_seqbegin_or_lock(&net->cells_lock, &seq);
net               104 fs/afs/dynroot.c 		cell = rcu_dereference_raw(net->ws_cell);
net               109 fs/afs/dynroot.c 	} while (need_seqretry(&net->cells_lock, seq));
net               110 fs/afs/dynroot.c 	done_seqretry(&net->cells_lock, seq);
net               188 fs/afs/dynroot.c int afs_dynroot_mkdir(struct afs_net *net, struct afs_cell *cell)
net               190 fs/afs/dynroot.c 	struct super_block *sb = net->dynroot_sb;
net               218 fs/afs/dynroot.c void afs_dynroot_rmdir(struct afs_net *net, struct afs_cell *cell)
net               220 fs/afs/dynroot.c 	struct super_block *sb = net->dynroot_sb;
net               255 fs/afs/dynroot.c 	struct afs_net *net = afs_sb2net(sb);
net               258 fs/afs/dynroot.c 	mutex_lock(&net->proc_cells_lock);
net               260 fs/afs/dynroot.c 	net->dynroot_sb = sb;
net               261 fs/afs/dynroot.c 	hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
net               262 fs/afs/dynroot.c 		ret = afs_dynroot_mkdir(net, cell);
net               269 fs/afs/dynroot.c 	mutex_unlock(&net->proc_cells_lock);
net               273 fs/afs/dynroot.c 	net->dynroot_sb = NULL;
net               283 fs/afs/dynroot.c 	struct afs_net *net = afs_sb2net(sb);
net               287 fs/afs/dynroot.c 	mutex_lock(&net->proc_cells_lock);
net               288 fs/afs/dynroot.c 	if (net->dynroot_sb == sb)
net               289 fs/afs/dynroot.c 		net->dynroot_sb = NULL;
net               290 fs/afs/dynroot.c 	mutex_unlock(&net->proc_cells_lock);
net                95 fs/afs/fs_probe.c 	rtt_us = rxrpc_kernel_get_srtt(call->net->socket, call->rxcall);
net               123 fs/afs/fs_probe.c static int afs_do_probe_fileserver(struct afs_net *net,
net               148 fs/afs/fs_probe.c 		call = afs_fs_get_capabilities(net, server, &ac, key, server_index);
net               166 fs/afs/fs_probe.c int afs_probe_fileservers(struct afs_net *net, struct key *key,
net               182 fs/afs/fs_probe.c 		    afs_do_probe_fileserver(net, server, key, i, &e))
net               285 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net               294 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSFetchStatus_vnode,
net               486 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net               491 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSFetchData64, 32, (21 + 3 + 6) * 4);
net               528 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net               541 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSFetchData, 24, (21 + 3 + 6) * 4);
net               624 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               644 fs/afs/fsclient.c 		net, S_ISDIR(mode) ? &afs_RXFSMakeDir : &afs_RXFSCreateFile,
net               730 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               744 fs/afs/fsclient.c 		net, isdir ? &afs_RXFSRemoveDir : &afs_RXFSRemoveFile,
net               821 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net               834 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSLink, reqsz, (21 + 21 + 6) * 4);
net               917 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               935 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSSymlink, reqsz,
net              1029 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(orig_dvnode);
net              1052 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSRename, reqsz, (21 + 21 + 6) * 4);
net              1146 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1152 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSStoreData64,
net              1204 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1232 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSStoreData,
net              1330 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1338 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSStoreData64_as_Status,
net              1379 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1389 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSStoreData_as_Status,
net              1427 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1439 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSStoreStatus,
net              1611 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1619 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSGetVolumeStatus, 2 * 4,
net              1701 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1709 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSSetLock, 5 * 4, 6 * 4);
net              1739 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1747 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSExtendLock, 4 * 4, 6 * 4);
net              1776 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1784 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSReleaseLock, 4 * 4, 6 * 4);
net              1827 fs/afs/fsclient.c int afs_fs_give_up_all_callbacks(struct afs_net *net,
net              1837 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSGiveUpAllCallBacks, 1 * 4, 0);
net              1913 fs/afs/fsclient.c struct afs_call *afs_fs_get_capabilities(struct afs_net *net,
net              1924 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSGetCapabilities, 1 * 4, 16 * 4);
net              1983 fs/afs/fsclient.c 			struct afs_net *net,
net              1992 fs/afs/fsclient.c 		return yfs_fs_fetch_status(fc, net, fid, scb, volsync);
net              1997 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSFetchStatus, 16, (21 + 3 + 6) * 4);
net              2148 fs/afs/fsclient.c 			      struct afs_net *net,
net              2159 fs/afs/fsclient.c 		return yfs_fs_inline_bulk_status(fc, net, fids, statuses,
net              2165 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSInlineBulkStatus,
net              2287 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              2293 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSFetchACL, 16, (21 + 6) * 4);
net              2358 fs/afs/fsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              2366 fs/afs/fsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSStoreACL,
net                56 fs/afs/internal.h 	struct afs_net		*net;		/* the AFS net namespace stuff */
net               111 fs/afs/internal.h 	struct afs_net		*net;		/* The network namespace */
net               246 fs/afs/internal.h 	struct net		*net_ns;	/* Network namespace */
net               275 fs/afs/internal.h 	struct net		*net;		/* Backpointer to the owning net namespace */
net               371 fs/afs/internal.h 	struct afs_net		*net;
net              1030 fs/afs/internal.h static inline struct afs_net *afs_net(struct net *net)
net              1032 fs/afs/internal.h 	return net_generic(net, afs_net_id);
net              1093 fs/afs/internal.h static inline int afs_proc_init(struct afs_net *net) { return 0; }
net              1094 fs/afs/internal.h static inline void afs_proc_cleanup(struct afs_net *net) {}
net                67 fs/afs/main.c  static int __net_init afs_net_init(struct net *net_ns)
net                70 fs/afs/main.c  	struct afs_net *net = afs_net(net_ns);
net                73 fs/afs/main.c  	net->net = net_ns;
net                74 fs/afs/main.c  	net->live = true;
net                75 fs/afs/main.c  	generate_random_uuid((unsigned char *)&net->uuid);
net                77 fs/afs/main.c  	INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation);
net                78 fs/afs/main.c  	mutex_init(&net->socket_mutex);
net                80 fs/afs/main.c  	net->cells = RB_ROOT;
net                81 fs/afs/main.c  	seqlock_init(&net->cells_lock);
net                82 fs/afs/main.c  	INIT_WORK(&net->cells_manager, afs_manage_cells);
net                83 fs/afs/main.c  	timer_setup(&net->cells_timer, afs_cells_timer, 0);
net                85 fs/afs/main.c  	mutex_init(&net->proc_cells_lock);
net                86 fs/afs/main.c  	INIT_HLIST_HEAD(&net->proc_cells);
net                88 fs/afs/main.c  	seqlock_init(&net->fs_lock);
net                89 fs/afs/main.c  	net->fs_servers = RB_ROOT;
net                90 fs/afs/main.c  	INIT_LIST_HEAD(&net->fs_updates);
net                91 fs/afs/main.c  	INIT_HLIST_HEAD(&net->fs_proc);
net                93 fs/afs/main.c  	INIT_HLIST_HEAD(&net->fs_addresses4);
net                94 fs/afs/main.c  	INIT_HLIST_HEAD(&net->fs_addresses6);
net                95 fs/afs/main.c  	seqlock_init(&net->fs_addr_lock);
net                97 fs/afs/main.c  	INIT_WORK(&net->fs_manager, afs_manage_servers);
net                98 fs/afs/main.c  	timer_setup(&net->fs_timer, afs_servers_timer, 0);
net               107 fs/afs/main.c  	net->sysnames = sysnames;
net               108 fs/afs/main.c  	rwlock_init(&net->sysnames_lock);
net               111 fs/afs/main.c  	ret = afs_proc_init(net);
net               116 fs/afs/main.c  	ret = afs_cell_init(net, rootcell);
net               121 fs/afs/main.c  	ret = afs_open_socket(net);
net               128 fs/afs/main.c  	net->live = false;
net               129 fs/afs/main.c  	afs_cell_purge(net);
net               130 fs/afs/main.c  	afs_purge_servers(net);
net               132 fs/afs/main.c  	net->live = false;
net               133 fs/afs/main.c  	afs_proc_cleanup(net);
net               135 fs/afs/main.c  	afs_put_sysnames(net->sysnames);
net               137 fs/afs/main.c  	net->live = false;
net               144 fs/afs/main.c  static void __net_exit afs_net_exit(struct net *net_ns)
net               146 fs/afs/main.c  	struct afs_net *net = afs_net(net_ns);
net               148 fs/afs/main.c  	net->live = false;
net               149 fs/afs/main.c  	afs_cell_purge(net);
net               150 fs/afs/main.c  	afs_purge_servers(net);
net               151 fs/afs/main.c  	afs_close_socket(net);
net               152 fs/afs/main.c  	afs_proc_cleanup(net);
net               153 fs/afs/main.c  	afs_put_sysnames(net->sysnames);
net                91 fs/afs/mntpt.c 		afs_put_cell(ctx->net, ctx->cell);
net               111 fs/afs/mntpt.c 		cell = afs_lookup_cell(ctx->net, p, size, NULL, false);
net                89 fs/afs/proc.c  	struct afs_net *net = afs_seq2net(m);
net               123 fs/afs/proc.c  		cell = afs_lookup_cell(net, name, strlen(name), args, true);
net               130 fs/afs/proc.c  			afs_put_cell(net, cell);
net               153 fs/afs/proc.c  	struct afs_net *net;
net               155 fs/afs/proc.c  	net = afs_seq2net_single(m);
net               156 fs/afs/proc.c  	if (rcu_access_pointer(net->ws_cell)) {
net               158 fs/afs/proc.c  		cell = rcu_dereference(net->ws_cell);
net               175 fs/afs/proc.c  	struct afs_net *net = afs_seq2net_single(m);
net               193 fs/afs/proc.c  	ret = afs_cell_init(net, buf);
net               429 fs/afs/proc.c  	struct afs_net *net = afs_seq2net(m);
net               430 fs/afs/proc.c  	struct afs_sysnames *sysnames = net->sysnames;
net               439 fs/afs/proc.c  	__acquires(&net->sysnames_lock)
net               441 fs/afs/proc.c  	struct afs_net *net = afs_seq2net(m);
net               444 fs/afs/proc.c  	read_lock(&net->sysnames_lock);
net               446 fs/afs/proc.c  	names = net->sysnames;
net               454 fs/afs/proc.c  	struct afs_net *net = afs_seq2net(m);
net               455 fs/afs/proc.c  	struct afs_sysnames *names = net->sysnames;
net               464 fs/afs/proc.c  	__releases(&net->sysnames_lock)
net               466 fs/afs/proc.c  	struct afs_net *net = afs_seq2net(m);
net               468 fs/afs/proc.c  	read_unlock(&net->sysnames_lock);
net               485 fs/afs/proc.c  	struct afs_net *net = afs_seq2net(m);
net               541 fs/afs/proc.c  	write_lock(&net->sysnames_lock);
net               542 fs/afs/proc.c  	kill = net->sysnames;
net               543 fs/afs/proc.c  	net->sysnames = sysnames;
net               544 fs/afs/proc.c  	write_unlock(&net->sysnames_lock);
net               573 fs/afs/proc.c  	struct afs_net *net = afs_seq2net_single(m);
net               578 fs/afs/proc.c  		   atomic_read(&net->n_lookup),
net               579 fs/afs/proc.c  		   atomic_read(&net->n_reval),
net               580 fs/afs/proc.c  		   atomic_read(&net->n_inval),
net               581 fs/afs/proc.c  		   atomic_read(&net->n_relpg));
net               584 fs/afs/proc.c  		   atomic_read(&net->n_read_dir));
net               587 fs/afs/proc.c  		   atomic_read(&net->n_dir_cr),
net               588 fs/afs/proc.c  		   atomic_read(&net->n_dir_rm));
net               591 fs/afs/proc.c  		   atomic_read(&net->n_fetches),
net               592 fs/afs/proc.c  		   atomic_long_read(&net->n_fetch_bytes));
net               594 fs/afs/proc.c  		   atomic_read(&net->n_stores),
net               595 fs/afs/proc.c  		   atomic_long_read(&net->n_store_bytes));
net               605 fs/afs/proc.c  	struct afs_net *net = cell->net;
net               607 fs/afs/proc.c  	_enter("%p{%s},%p", cell, cell->name, net->proc_afs);
net               609 fs/afs/proc.c  	dir = proc_net_mkdir(net->net, cell->name, net->proc_afs);
net               627 fs/afs/proc.c  	remove_proc_subtree(cell->name, net->proc_afs);
net               638 fs/afs/proc.c  	struct afs_net *net = cell->net;
net               641 fs/afs/proc.c  	remove_proc_subtree(cell->name, net->proc_afs);
net               648 fs/afs/proc.c  int afs_proc_init(struct afs_net *net)
net               654 fs/afs/proc.c  	p = proc_net_mkdir(net->net, "afs", net->net->proc_net);
net               677 fs/afs/proc.c  	net->proc_afs = p;
net               691 fs/afs/proc.c  void afs_proc_cleanup(struct afs_net *net)
net               693 fs/afs/proc.c  	proc_remove(net->proc_afs);
net               694 fs/afs/proc.c  	net->proc_afs = NULL;
net               618 fs/afs/rotate.c 	struct afs_net *net = afs_v2net(fc->vnode);
net               629 fs/afs/rotate.c 	afs_put_cb_interest(net, fc->cbi);
net               630 fs/afs/rotate.c 	afs_put_serverlist(net, fc->server_list);
net                36 fs/afs/rxrpc.c int afs_open_socket(struct afs_net *net)
net                45 fs/afs/rxrpc.c 	ret = sock_create_kern(net->net, AF_RXRPC, SOCK_DGRAM, PF_INET6, &socket);
net                93 fs/afs/rxrpc.c 	net->socket = socket;
net                94 fs/afs/rxrpc.c 	afs_charge_preallocation(&net->charge_preallocation_work);
net               108 fs/afs/rxrpc.c void afs_close_socket(struct afs_net *net)
net               112 fs/afs/rxrpc.c 	kernel_listen(net->socket, 0);
net               115 fs/afs/rxrpc.c 	if (net->spare_incoming_call) {
net               116 fs/afs/rxrpc.c 		afs_put_call(net->spare_incoming_call);
net               117 fs/afs/rxrpc.c 		net->spare_incoming_call = NULL;
net               120 fs/afs/rxrpc.c 	_debug("outstanding %u", atomic_read(&net->nr_outstanding_calls));
net               121 fs/afs/rxrpc.c 	wait_var_event(&net->nr_outstanding_calls,
net               122 fs/afs/rxrpc.c 		       !atomic_read(&net->nr_outstanding_calls));
net               125 fs/afs/rxrpc.c 	kernel_sock_shutdown(net->socket, SHUT_RDWR);
net               127 fs/afs/rxrpc.c 	sock_release(net->socket);
net               136 fs/afs/rxrpc.c static struct afs_call *afs_alloc_call(struct afs_net *net,
net               148 fs/afs/rxrpc.c 	call->net = net;
net               156 fs/afs/rxrpc.c 	o = atomic_inc_return(&net->nr_outstanding_calls);
net               167 fs/afs/rxrpc.c 	struct afs_net *net = call->net;
net               169 fs/afs/rxrpc.c 	int o = atomic_read(&net->nr_outstanding_calls);
net               180 fs/afs/rxrpc.c 			rxrpc_kernel_end_call(net->socket, call->rxcall);
net               186 fs/afs/rxrpc.c 		afs_put_server(call->net, call->server, afs_server_trace_put_call);
net               187 fs/afs/rxrpc.c 		afs_put_cb_interest(call->net, call->cbi);
net               195 fs/afs/rxrpc.c 		o = atomic_dec_return(&net->nr_outstanding_calls);
net               197 fs/afs/rxrpc.c 			wake_up_var(&net->nr_outstanding_calls);
net               207 fs/afs/rxrpc.c 		       atomic_read(&call->net->nr_outstanding_calls),
net               229 fs/afs/rxrpc.c struct afs_call *afs_alloc_flat_call(struct afs_net *net,
net               235 fs/afs/rxrpc.c 	call = afs_alloc_call(net, type, GFP_NOFS);
net               343 fs/afs/rxrpc.c 		ret = rxrpc_kernel_send_data(call->net->socket, call->rxcall, msg,
net               377 fs/afs/rxrpc.c 	       atomic_read(&call->net->nr_outstanding_calls));
net               410 fs/afs/rxrpc.c 	rxcall = rxrpc_kernel_begin_call(call->net->socket, srx, call->key,
net               429 fs/afs/rxrpc.c 		rxrpc_kernel_set_max_life(call->net->socket, rxcall,
net               443 fs/afs/rxrpc.c 	ret = rxrpc_kernel_send_data(call->net->socket, rxcall,
net               465 fs/afs/rxrpc.c 		rxrpc_kernel_abort_call(call->net->socket, rxcall,
net               469 fs/afs/rxrpc.c 		rxrpc_kernel_recv_data(call->net->socket, rxcall,
net               486 fs/afs/rxrpc.c 		rxrpc_kernel_end_call(call->net->socket, call->rxcall);
net               519 fs/afs/rxrpc.c 			ret = rxrpc_kernel_recv_data(call->net->socket,
net               536 fs/afs/rxrpc.c 		    rxrpc_kernel_get_reply_time(call->net->socket,
net               562 fs/afs/rxrpc.c 			rxrpc_kernel_abort_call(call->net->socket, call->rxcall,
net               575 fs/afs/rxrpc.c 			rxrpc_kernel_abort_call(call->net->socket, call->rxcall,
net               580 fs/afs/rxrpc.c 			rxrpc_kernel_abort_call(call->net->socket, call->rxcall,
net               634 fs/afs/rxrpc.c 		if (!rxrpc_kernel_check_life(call->net->socket, call->rxcall)) {
net               652 fs/afs/rxrpc.c 			if (rxrpc_kernel_abort_call(call->net->socket, call->rxcall,
net               709 fs/afs/rxrpc.c 			       atomic_read(&call->net->nr_outstanding_calls),
net               748 fs/afs/rxrpc.c 	struct afs_net *net =
net               750 fs/afs/rxrpc.c 	struct afs_call *call = net->spare_incoming_call;
net               754 fs/afs/rxrpc.c 			call = afs_alloc_call(net, &afs_RXCMxxxx, GFP_KERNEL);
net               765 fs/afs/rxrpc.c 		if (rxrpc_kernel_charge_accept(net->socket,
net               774 fs/afs/rxrpc.c 	net->spare_incoming_call = call;
net               795 fs/afs/rxrpc.c 	struct afs_net *net = afs_sock2net(sk);
net               797 fs/afs/rxrpc.c 	queue_work(afs_wq, &net->charge_preallocation_work);
net               848 fs/afs/rxrpc.c 	struct afs_net *net = call->net;
net               853 fs/afs/rxrpc.c 	rxrpc_kernel_set_tx_length(net->socket, call->rxcall, 0);
net               862 fs/afs/rxrpc.c 	switch (rxrpc_kernel_send_data(net->socket, call->rxcall, &msg, 0,
net               870 fs/afs/rxrpc.c 		rxrpc_kernel_abort_call(net->socket, call->rxcall,
net               884 fs/afs/rxrpc.c 	struct afs_net *net = call->net;
net               891 fs/afs/rxrpc.c 	rxrpc_kernel_set_tx_length(net->socket, call->rxcall, len);
net               902 fs/afs/rxrpc.c 	n = rxrpc_kernel_send_data(net->socket, call->rxcall, &msg, len,
net               912 fs/afs/rxrpc.c 		rxrpc_kernel_abort_call(net->socket, call->rxcall,
net               923 fs/afs/rxrpc.c 	struct afs_net *net = call->net;
net               931 fs/afs/rxrpc.c 	ret = rxrpc_kernel_recv_data(net->socket, call->rxcall, iter,
net                31 fs/afs/security.c 			      cell->net->net, NULL);
net                60 fs/afs/security.c 				  cell->net->net);
net                18 fs/afs/server.c static void afs_inc_servers_outstanding(struct afs_net *net)
net                20 fs/afs/server.c 	atomic_inc(&net->servers_outstanding);
net                23 fs/afs/server.c static void afs_dec_servers_outstanding(struct afs_net *net)
net                25 fs/afs/server.c 	if (atomic_dec_and_test(&net->servers_outstanding))
net                26 fs/afs/server.c 		wake_up_var(&net->servers_outstanding);
net                32 fs/afs/server.c struct afs_server *afs_find_server(struct afs_net *net,
net                44 fs/afs/server.c 			afs_put_server(net, server, afs_server_trace_put_find_rsq);
net                46 fs/afs/server.c 		read_seqbegin_or_lock(&net->fs_addr_lock, &seq);
net                50 fs/afs/server.c 			hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) {
net                66 fs/afs/server.c 			hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) {
net                86 fs/afs/server.c 	} while (need_seqretry(&net->fs_addr_lock, seq));
net                88 fs/afs/server.c 	done_seqretry(&net->fs_addr_lock, seq);
net                97 fs/afs/server.c struct afs_server *afs_find_server_by_uuid(struct afs_net *net, const uuid_t *uuid)
net               111 fs/afs/server.c 			afs_put_server(net, server, afs_server_trace_put_uuid_rsq);
net               114 fs/afs/server.c 		read_seqbegin_or_lock(&net->fs_lock, &seq);
net               116 fs/afs/server.c 		p = net->fs_servers.rb_node;
net               132 fs/afs/server.c 	} while (need_seqretry(&net->fs_lock, seq));
net               134 fs/afs/server.c 	done_seqretry(&net->fs_lock, seq);
net               143 fs/afs/server.c static struct afs_server *afs_install_server(struct afs_net *net,
net               153 fs/afs/server.c 	write_seqlock(&net->fs_lock);
net               156 fs/afs/server.c 	pp = &net->fs_servers.rb_node;
net               173 fs/afs/server.c 	rb_insert_color(&server->uuid_rb, &net->fs_servers);
net               174 fs/afs/server.c 	hlist_add_head_rcu(&server->proc_link, &net->fs_proc);
net               176 fs/afs/server.c 	write_seqlock(&net->fs_addr_lock);
net               178 fs/afs/server.c 					  lockdep_is_held(&net->fs_addr_lock.lock));
net               189 fs/afs/server.c 		hlist_add_head_rcu(&server->addr4_link, &net->fs_addresses4);
net               191 fs/afs/server.c 		hlist_add_head_rcu(&server->addr6_link, &net->fs_addresses6);
net               193 fs/afs/server.c 	write_sequnlock(&net->fs_addr_lock);
net               198 fs/afs/server.c 	write_sequnlock(&net->fs_lock);
net               205 fs/afs/server.c static struct afs_server *afs_alloc_server(struct afs_net *net,
net               229 fs/afs/server.c 	afs_inc_servers_outstanding(net);
net               273 fs/afs/server.c 	_enter("%p,%pU", cell->net, uuid);
net               275 fs/afs/server.c 	server = afs_find_server_by_uuid(cell->net, uuid);
net               283 fs/afs/server.c 	candidate = afs_alloc_server(cell->net, uuid, alist);
net               289 fs/afs/server.c 	server = afs_install_server(cell->net, candidate);
net               303 fs/afs/server.c static void afs_set_server_timer(struct afs_net *net, time64_t delay)
net               305 fs/afs/server.c 	if (net->live) {
net               306 fs/afs/server.c 		afs_inc_servers_outstanding(net);
net               307 fs/afs/server.c 		if (timer_reduce(&net->fs_timer, jiffies + delay * HZ))
net               308 fs/afs/server.c 			afs_dec_servers_outstanding(net);
net               318 fs/afs/server.c 	struct afs_net *net = container_of(timer, struct afs_net, fs_timer);
net               321 fs/afs/server.c 	if (!queue_work(afs_wq, &net->fs_manager))
net               322 fs/afs/server.c 		afs_dec_servers_outstanding(net);
net               340 fs/afs/server.c void afs_put_server(struct afs_net *net, struct afs_server *server,
net               357 fs/afs/server.c 	afs_set_server_timer(net, afs_server_gc_delay);
net               373 fs/afs/server.c static void afs_destroy_server(struct afs_net *net, struct afs_server *server)
net               386 fs/afs/server.c 		afs_fs_give_up_all_callbacks(net, server, &ac, NULL);
net               394 fs/afs/server.c 	afs_dec_servers_outstanding(net);
net               400 fs/afs/server.c static void afs_gc_servers(struct afs_net *net, struct afs_server *gc_list)
net               409 fs/afs/server.c 		write_seqlock(&net->fs_lock);
net               414 fs/afs/server.c 			rb_erase(&server->uuid_rb, &net->fs_servers);
net               417 fs/afs/server.c 		write_sequnlock(&net->fs_lock);
net               420 fs/afs/server.c 			write_seqlock(&net->fs_addr_lock);
net               425 fs/afs/server.c 			write_sequnlock(&net->fs_addr_lock);
net               426 fs/afs/server.c 			afs_destroy_server(net, server);
net               440 fs/afs/server.c 	struct afs_net *net = container_of(work, struct afs_net, fs_manager);
net               444 fs/afs/server.c 	bool purging = !net->live;
net               451 fs/afs/server.c 	read_seqlock_excl(&net->fs_lock);
net               453 fs/afs/server.c 	for (cursor = rb_first(&net->fs_servers); cursor; cursor = rb_next(cursor)) {
net               478 fs/afs/server.c 	read_sequnlock_excl(&net->fs_lock);
net               488 fs/afs/server.c 			if (queue_work(afs_wq, &net->fs_manager))
net               489 fs/afs/server.c 				afs_inc_servers_outstanding(net);
net               491 fs/afs/server.c 			afs_set_server_timer(net, next_manage - now);
net               495 fs/afs/server.c 	afs_gc_servers(net, gc_list);
net               497 fs/afs/server.c 	afs_dec_servers_outstanding(net);
net               498 fs/afs/server.c 	_leave(" [%d]", atomic_read(&net->servers_outstanding));
net               501 fs/afs/server.c static void afs_queue_server_manager(struct afs_net *net)
net               503 fs/afs/server.c 	afs_inc_servers_outstanding(net);
net               504 fs/afs/server.c 	if (!queue_work(afs_wq, &net->fs_manager))
net               505 fs/afs/server.c 		afs_dec_servers_outstanding(net);
net               511 fs/afs/server.c void afs_purge_servers(struct afs_net *net)
net               515 fs/afs/server.c 	if (del_timer_sync(&net->fs_timer))
net               516 fs/afs/server.c 		atomic_dec(&net->servers_outstanding);
net               518 fs/afs/server.c 	afs_queue_server_manager(net);
net               521 fs/afs/server.c 	wait_var_event(&net->servers_outstanding,
net               522 fs/afs/server.c 		       !atomic_read(&net->servers_outstanding));
net                12 fs/afs/server_list.c void afs_put_serverlist(struct afs_net *net, struct afs_server_list *slist)
net                18 fs/afs/server_list.c 			afs_put_cb_interest(net, slist->servers[i].cb_interest);
net                19 fs/afs/server_list.c 			afs_put_server(net, slist->servers[i].server,
net                71 fs/afs/server_list.c 				afs_put_server(cell->net, server,
net                93 fs/afs/server_list.c 	afs_put_serverlist(cell->net, slist);
net               296 fs/afs/super.c 		cell = afs_lookup_cell(ctx->net, cellname, cellnamesz,
net               303 fs/afs/super.c 		afs_put_cell(ctx->net, ctx->cell);
net               524 fs/afs/super.c 	struct afs_net *net = afs_net(as->net_ns);
net               533 fs/afs/super.c 		afs_clear_callback_interests(net, as->volume->servers);
net               602 fs/afs/super.c 	afs_put_cell(ctx->net, ctx->cell);
net               626 fs/afs/super.c 	ctx->net = afs_net(fc->net_ns);
net               630 fs/afs/super.c 	cell = afs_lookup_cell_rcu(ctx->net, NULL, 0);
net                39 fs/afs/vl_list.c void afs_put_vlserver(struct afs_net *net, struct afs_vlserver *vlserver)
net                63 fs/afs/vl_list.c void afs_put_vlserverlist(struct afs_net *net, struct afs_vlserver_list *vllist)
net                73 fs/afs/vl_list.c 				afs_put_vlserver(net, vllist->servers[i].server);
net               265 fs/afs/vl_list.c 			afs_put_vlserver(cell->net, server);
net               275 fs/afs/vl_list.c 				afs_put_vlserver(cell->net, server);
net               319 fs/afs/vl_list.c 	afs_put_vlserverlist(cell->net, previous);
net               324 fs/afs/vl_list.c 	afs_put_vlserver(cell->net, server);
net               326 fs/afs/vl_list.c 	afs_put_vlserverlist(cell->net, vllist);
net               327 fs/afs/vl_list.c 	afs_put_vlserverlist(cell->net, previous);
net                95 fs/afs/vl_probe.c 	rtt_us = rxrpc_kernel_get_srtt(call->net->socket, call->rxcall);
net               123 fs/afs/vl_probe.c static bool afs_do_probe_vlserver(struct afs_net *net,
net               147 fs/afs/vl_probe.c 		call = afs_vl_get_capabilities(net, &ac, key, server,
net               165 fs/afs/vl_probe.c int afs_send_vl_probes(struct afs_net *net, struct key *key,
net               181 fs/afs/vl_probe.c 		    afs_do_probe_vlserver(net, server, key, i, &e))
net               159 fs/afs/vl_rotate.c 	afs_put_vlserverlist(vc->cell->net, vc->server_list);
net               170 fs/afs/vl_rotate.c 	error = afs_send_vl_probes(vc->cell->net, vc->key, vc->server_list);
net               324 fs/afs/vl_rotate.c 	struct afs_net *net = vc->cell->net;
net               333 fs/afs/vl_rotate.c 	afs_put_vlserverlist(net, vc->server_list);
net               134 fs/afs/vlclient.c 	struct afs_net *net = vc->cell->net;
net               147 fs/afs/vlclient.c 	call = afs_alloc_flat_call(net, &afs_RXVLGetEntryByNameU, reqsz,
net               273 fs/afs/vlclient.c 	struct afs_net *net = vc->cell->net;
net               279 fs/afs/vlclient.c 	call = afs_alloc_flat_call(net, &afs_RXVLGetAddrsU,
net               357 fs/afs/vlclient.c 	afs_put_vlserver(call->net, call->vlserver);
net               379 fs/afs/vlclient.c struct afs_call *afs_vl_get_capabilities(struct afs_net *net,
net               390 fs/afs/vlclient.c 	call = afs_alloc_flat_call(net, &afs_RXVLGetCapabilities, 1 * 4, 16 * 4);
net               628 fs/afs/vlclient.c 	struct afs_net *net = vc->cell->net;
net               633 fs/afs/vlclient.c 	call = afs_alloc_flat_call(net, &afs_YFSVLGetEndpoints,
net                58 fs/afs/volume.c 	afs_put_cell(params->net, volume->cell);
net               151 fs/afs/volume.c static void afs_destroy_volume(struct afs_net *net, struct afs_volume *volume)
net               159 fs/afs/volume.c 	afs_put_serverlist(net, volume->servers);
net               160 fs/afs/volume.c 	afs_put_cell(net, volume->cell);
net               175 fs/afs/volume.c 			afs_destroy_volume(cell->net, volume);
net               273 fs/afs/volume.c 	afs_put_serverlist(volume->cell->net, discard);
net               402 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net               408 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSFetchStatus_vnode,
net               592 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net               599 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSFetchData64,
net               683 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               702 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &afs_RXFSCreateFile, reqsz, rplsz);
net               747 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               765 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXFSMakeDir, reqsz, rplsz);
net               839 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               847 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSRemoveFile2,
net               927 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net               935 fs/afs/yfsclient.c 		net, isdir ? &yfs_RXYFSRemoveDir : &yfs_RXYFSRemoveFile,
net              1009 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1016 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSLink,
net              1099 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(dvnode);
net              1107 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSSymlink,
net              1192 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(orig_dvnode);
net              1200 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSRename,
net              1254 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1275 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSStoreData64,
net              1339 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1345 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSStoreData64_as_Status,
net              1385 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1394 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSStoreStatus,
net              1569 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1574 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSGetVolumeStatus,
net              1641 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1646 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSSetLock,
net              1681 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1686 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSExtendLock,
net              1719 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              1724 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSReleaseLock,
net              1764 fs/afs/yfsclient.c 			struct afs_net *net,
net              1775 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSFetchStatus,
net              1931 fs/afs/yfsclient.c 			      struct afs_net *net,
net              1944 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSInlineBulkStatus,
net              2115 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              2121 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSFetchOpaqueACL,
net              2168 fs/afs/yfsclient.c 	struct afs_net *net = afs_v2net(vnode);
net              2176 fs/afs/yfsclient.c 	call = afs_alloc_flat_call(net, &yfs_RXYFSStoreOpaqueACL2,
net               672 fs/cifs/cifsglob.h 	struct net *net;
net               926 fs/cifs/cifsglob.h static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
net               928 fs/cifs/cifsglob.h 	return srv->net;
net               931 fs/cifs/cifsglob.h static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
net               933 fs/cifs/cifsglob.h 	srv->net = net;
net               938 fs/cifs/cifsglob.h static inline struct net *cifs_net_ns(struct TCP_Server_Info *srv)
net               943 fs/cifs/cifsglob.h static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
net                60 fs/lockd/clntlock.c 	status = lockd_up(nlm_init->net, nlm_init->cred);
net                67 fs/lockd/clntlock.c 				   nlm_init->net, nlm_init->cred);
net                78 fs/lockd/clntlock.c 	lockd_down(nlm_init->net);
net                90 fs/lockd/clntlock.c 	struct net *net = host->net;
net                93 fs/lockd/clntlock.c 	lockd_down(net);
net               236 fs/lockd/clntlock.c 	struct net *net = host->net;
net               245 fs/lockd/clntlock.c 	lockd_up(net, NULL);	/* note: this cannot fail as lockd is already running */
net               296 fs/lockd/clntlock.c 	lockd_down(net);
net                51 fs/lockd/host.c static void			nlm_gc_hosts(struct net *net);
net                62 fs/lockd/host.c 	struct net		*net;		/* network namespace to bind */
net               121 fs/lockd/host.c 		nsm = nsm_get_handle(ni->net, ni->sap, ni->salen,
net               165 fs/lockd/host.c 	host->net	   = ni->net;
net               181 fs/lockd/host.c 	struct lockd_net *ln = net_generic(host->net, lockd_net_id);
net               222 fs/lockd/host.c 				     struct net *net,
net               234 fs/lockd/host.c 		.net		= net,
net               240 fs/lockd/host.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               250 fs/lockd/host.c 		if (host->net != net)
net               337 fs/lockd/host.c 	struct net *net = SVC_NET(rqstp);
net               346 fs/lockd/host.c 		.net		= net,
net               348 fs/lockd/host.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               357 fs/lockd/host.c 		nlm_gc_hosts(net);
net               361 fs/lockd/host.c 		if (host->net != net)
net               457 fs/lockd/host.c 			.net		= host->net,
net               554 fs/lockd/host.c void nlm_host_rebooted(const struct net *net, const struct nlm_reboot *info)
net               559 fs/lockd/host.c 	nsm = nsm_reboot_lookup(net, info);
net               580 fs/lockd/host.c static void nlm_complain_hosts(struct net *net)
net               585 fs/lockd/host.c 	if (net) {
net               586 fs/lockd/host.c 		struct lockd_net *ln = net_generic(net, lockd_net_id);
net               591 fs/lockd/host.c 			net->ns.inum);
net               593 fs/lockd/host.c 			net->ns.inum);
net               602 fs/lockd/host.c 		if (net && host->net != net)
net               606 fs/lockd/host.c 			host->h_inuse, host->h_expires, host->net->ns.inum);
net               611 fs/lockd/host.c nlm_shutdown_hosts_net(struct net *net)
net               620 fs/lockd/host.c 		net ? net->ns.inum : 0);
net               622 fs/lockd/host.c 		if (net && host->net != net)
net               632 fs/lockd/host.c 	nlm_gc_hosts(net);
net               633 fs/lockd/host.c 	nlm_complain_hosts(net);
net               654 fs/lockd/host.c nlm_gc_hosts(struct net *net)
net               661 fs/lockd/host.c 		net ? net->ns.inum : 0);
net               663 fs/lockd/host.c 		if (net && host->net != net)
net               669 fs/lockd/host.c 	nlmsvc_mark_resources(net);
net               672 fs/lockd/host.c 		if (net && host->net != net)
net               679 fs/lockd/host.c 				host->net->ns.inum);
net               686 fs/lockd/host.c 	if (net) {
net               687 fs/lockd/host.c 		struct lockd_net *ln = net_generic(net, lockd_net_id);
net                68 fs/lockd/mon.c static struct rpc_clnt *nsm_create(struct net *net, const char *nodename)
net                75 fs/lockd/mon.c 		.net			= net,
net               111 fs/lockd/mon.c 	clnt = nsm_create(host->net, host->nodename);
net               115 fs/lockd/mon.c 			host->net->ns.inum);
net               314 fs/lockd/mon.c struct nsm_handle *nsm_get_handle(const struct net *net,
net               320 fs/lockd/mon.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               376 fs/lockd/mon.c struct nsm_handle *nsm_reboot_lookup(const struct net *net,
net               380 fs/lockd/mon.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               108 fs/lockd/svc.c static void set_grace_period(struct net *net)
net               111 fs/lockd/svc.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               113 fs/lockd/svc.c 	locks_start_grace(net, &ln->lockd_manager);
net               121 fs/lockd/svc.c 		struct net *net = &init_net;
net               122 fs/lockd/svc.c 		struct lockd_net *ln = net_generic(net, lockd_net_id);
net               127 fs/lockd/svc.c 		set_grace_period(net);
net               139 fs/lockd/svc.c 	struct net *net = &init_net;
net               140 fs/lockd/svc.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               191 fs/lockd/svc.c 				 struct net *net, const int family,
net               197 fs/lockd/svc.c 	xprt = svc_find_xprt(serv, name, net, family, 0);
net               199 fs/lockd/svc.c 		return svc_create_xprt(serv, name, net, family, port,
net               205 fs/lockd/svc.c static int create_lockd_family(struct svc_serv *serv, struct net *net,
net               210 fs/lockd/svc.c 	err = create_lockd_listener(serv, "udp", net, family, nlm_udpport,
net               215 fs/lockd/svc.c 	return create_lockd_listener(serv, "tcp", net, family, nlm_tcpport,
net               229 fs/lockd/svc.c static int make_socks(struct svc_serv *serv, struct net *net,
net               235 fs/lockd/svc.c 	err = create_lockd_family(serv, net, PF_INET, cred);
net               239 fs/lockd/svc.c 	err = create_lockd_family(serv, net, PF_INET6, cred);
net               250 fs/lockd/svc.c 	svc_shutdown_net(serv, net);
net               254 fs/lockd/svc.c static int lockd_up_net(struct svc_serv *serv, struct net *net,
net               257 fs/lockd/svc.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               263 fs/lockd/svc.c 	error = svc_bind(serv, net);
net               267 fs/lockd/svc.c 	error = make_socks(serv, net, cred);
net               270 fs/lockd/svc.c 	set_grace_period(net);
net               271 fs/lockd/svc.c 	dprintk("%s: per-net data created; net=%x\n", __func__, net->ns.inum);
net               279 fs/lockd/svc.c static void lockd_down_net(struct svc_serv *serv, struct net *net)
net               281 fs/lockd/svc.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               285 fs/lockd/svc.c 			nlm_shutdown_hosts_net(net);
net               288 fs/lockd/svc.c 			svc_shutdown_net(serv, net);
net               290 fs/lockd/svc.c 				__func__, net->ns.inum);
net               294 fs/lockd/svc.c 			__func__, nlmsvc_task, net->ns.inum);
net               470 fs/lockd/svc.c int lockd_up(struct net *net, const struct cred *cred)
net               483 fs/lockd/svc.c 	error = lockd_up_net(serv, net, cred);
net               491 fs/lockd/svc.c 		lockd_down_net(serv, net);
net               511 fs/lockd/svc.c lockd_down(struct net *net)
net               514 fs/lockd/svc.c 	lockd_down_net(nlmsvc_rqst->rq_server, net);
net               687 fs/lockd/svc.c static int lockd_init_net(struct net *net)
net               689 fs/lockd/svc.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               698 fs/lockd/svc.c static void lockd_exit_net(struct net *net)
net               700 fs/lockd/svc.c 	struct lockd_net *ln = net_generic(net, lockd_net_id);
net               704 fs/lockd/svc.c 		  net->ns.inum, __func__);
net               707 fs/lockd/svc.c 		  net->ns.inum, __func__);
net               710 fs/lockd/svc.c 		  net->ns.inum, __func__);
net               660 fs/lockd/svclock.c nlmsvc_unlock(struct net *net, struct nlm_file *file, struct nlm_lock *lock)
net               672 fs/lockd/svclock.c 	nlmsvc_cancel_blocked(net, file, lock);
net               688 fs/lockd/svclock.c nlmsvc_cancel_blocked(struct net *net, struct nlm_file *file, struct nlm_lock *lock)
net               700 fs/lockd/svclock.c 	if (locks_in_grace(net))
net               201 fs/lockd/svcproc.c 	struct net *net = SVC_NET(rqstp);
net               208 fs/lockd/svcproc.c 	if (locks_in_grace(net)) {
net               218 fs/lockd/svcproc.c 	resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
net               242 fs/lockd/svcproc.c 	struct net *net = SVC_NET(rqstp);
net               249 fs/lockd/svcproc.c 	if (locks_in_grace(net)) {
net               259 fs/lockd/svcproc.c 	resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
net               335 fs/lockd/svcsubs.c 	if ((hint->net == NULL) ||
net               336 fs/lockd/svcsubs.c 	    (host->net == hint->net))
net               370 fs/lockd/svcsubs.c nlmsvc_mark_resources(struct net *net)
net               374 fs/lockd/svcsubs.c 	dprintk("lockd: %s for net %x\n", __func__, net ? net->ns.inum : 0);
net               375 fs/lockd/svcsubs.c 	hint.net = net;
net                56 fs/nfs/blocklayout/rpc_pipefs.c 	struct net *net = server->nfs_client->cl_net;
net                57 fs/nfs/blocklayout/rpc_pipefs.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               169 fs/nfs/blocklayout/rpc_pipefs.c 	struct net *net = sb->s_fs_info;
net               170 fs/nfs/blocklayout/rpc_pipefs.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               207 fs/nfs/blocklayout/rpc_pipefs.c static struct dentry *nfs4blocklayout_register_net(struct net *net,
net               213 fs/nfs/blocklayout/rpc_pipefs.c 	pipefs_sb = rpc_get_sb_net(net);
net               217 fs/nfs/blocklayout/rpc_pipefs.c 	rpc_put_sb_net(net);
net               221 fs/nfs/blocklayout/rpc_pipefs.c static void nfs4blocklayout_unregister_net(struct net *net,
net               226 fs/nfs/blocklayout/rpc_pipefs.c 	pipefs_sb = rpc_get_sb_net(net);
net               229 fs/nfs/blocklayout/rpc_pipefs.c 		rpc_put_sb_net(net);
net               233 fs/nfs/blocklayout/rpc_pipefs.c static int nfs4blocklayout_net_init(struct net *net)
net               235 fs/nfs/blocklayout/rpc_pipefs.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               243 fs/nfs/blocklayout/rpc_pipefs.c 	dentry = nfs4blocklayout_register_net(net, nn->bl_device_pipe);
net               252 fs/nfs/blocklayout/rpc_pipefs.c static void nfs4blocklayout_net_exit(struct net *net)
net               254 fs/nfs/blocklayout/rpc_pipefs.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               256 fs/nfs/blocklayout/rpc_pipefs.c 	nfs4blocklayout_unregister_net(net, nn->bl_device_pipe);
net               127 fs/nfs/cache_lib.c int nfs_cache_register_net(struct net *net, struct cache_detail *cd)
net               133 fs/nfs/cache_lib.c 	pipefs_sb = rpc_get_sb_net(net);
net               136 fs/nfs/cache_lib.c 		rpc_put_sb_net(net);
net               148 fs/nfs/cache_lib.c void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd)
net               152 fs/nfs/cache_lib.c 	pipefs_sb = rpc_get_sb_net(net);
net               155 fs/nfs/cache_lib.c 		rpc_put_sb_net(net);
net                27 fs/nfs/cache_lib.h extern int nfs_cache_register_net(struct net *net, struct cache_detail *cd);
net                28 fs/nfs/cache_lib.h extern void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd);
net                42 fs/nfs/callback.c static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net)
net                46 fs/nfs/callback.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net                48 fs/nfs/callback.c 	ret = svc_create_xprt(serv, "tcp", net, PF_INET,
net                55 fs/nfs/callback.c 		nn->nfs_callback_tcpport, PF_INET, net->ns.inum);
net                57 fs/nfs/callback.c 	ret = svc_create_xprt(serv, "tcp", net, PF_INET6,
net                63 fs/nfs/callback.c 			nn->nfs_callback_tcpport6, PF_INET6, net->ns.inum);
net               184 fs/nfs/callback.c static void nfs_callback_down_net(u32 minorversion, struct svc_serv *serv, struct net *net)
net               186 fs/nfs/callback.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               191 fs/nfs/callback.c 	dprintk("NFS: destroy per-net callback data; net=%x\n", net->ns.inum);
net               192 fs/nfs/callback.c 	svc_shutdown_net(serv, net);
net               196 fs/nfs/callback.c 			       struct net *net, struct rpc_xprt *xprt)
net               198 fs/nfs/callback.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               204 fs/nfs/callback.c 	dprintk("NFS: create per-net callback data; net=%x\n", net->ns.inum);
net               206 fs/nfs/callback.c 	ret = svc_bind(serv, net);
net               214 fs/nfs/callback.c 		ret = nfs4_callback_up_net(serv, net);
net               227 fs/nfs/callback.c 	svc_rpcb_cleanup(serv, net);
net               231 fs/nfs/callback.c 			"net = %x\n", ret, net->ns.inum);
net               319 fs/nfs/callback.c 	struct net *net = xprt->xprt_net;
net               329 fs/nfs/callback.c 	ret = nfs_callback_up_net(minorversion, serv, net, xprt);
net               353 fs/nfs/callback.c 	nfs_callback_down_net(minorversion, serv, net);
net               361 fs/nfs/callback.c void nfs_callback_down(int minorversion, struct net *net)
net               368 fs/nfs/callback.c 	nfs_callback_down_net(minorversion, serv, net);
net                47 fs/nfs/callback.h 	struct net		*net;
net               206 fs/nfs/callback.h extern void nfs_callback_down(int minorversion, struct net *net);
net               513 fs/nfs/callback_proc.c 	clp = nfs4_find_client_sessionid(cps->net, args->csa_addr,
net               933 fs/nfs/callback_xdr.c 		.net = SVC_NET(rqstp),
net               181 fs/nfs/client.c 	clp->cl_net = get_net(cl_init->net);
net               198 fs/nfs/client.c static void nfs_cleanup_cb_ident_idr(struct net *net)
net               200 fs/nfs/client.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               220 fs/nfs/client.c static void nfs_cleanup_cb_ident_idr(struct net *net)
net               285 fs/nfs/client.c 	struct nfs_net *nn = net_generic(data->net, nfs_net_id);
net               397 fs/nfs/client.c 	struct nfs_net *nn = net_generic(cl_init->net, nfs_net_id);
net               497 fs/nfs/client.c 		.net		= clp->cl_net,
net               559 fs/nfs/client.c 		.net		= clp->cl_net,
net               662 fs/nfs/client.c 		.net = data->net,
net              1069 fs/nfs/client.c void nfs_clients_init(struct net *net)
net              1071 fs/nfs/client.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net              1081 fs/nfs/client.c 	nfs_netns_sysfs_setup(nn, net);
net              1084 fs/nfs/client.c void nfs_clients_exit(struct net *net)
net              1086 fs/nfs/client.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net              1089 fs/nfs/client.c 	nfs_cleanup_cb_ident_idr(net);
net              1261 fs/nfs/client.c int nfs_fs_proc_net_init(struct net *net)
net              1263 fs/nfs/client.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net              1266 fs/nfs/client.c 	nn->proc_nfsfs = proc_net_mkdir(net, "nfsfs", net->proc_net);
net              1284 fs/nfs/client.c 	remove_proc_subtree("nfsfs", net->proc_net);
net              1289 fs/nfs/client.c void nfs_fs_proc_net_exit(struct net *net)
net              1291 fs/nfs/client.c 	remove_proc_subtree("nfsfs", net->proc_net);
net                18 fs/nfs/dns_resolve.c ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen,
net                25 fs/nfs/dns_resolve.c 	ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL,
net                28 fs/nfs/dns_resolve.c 		ret = rpc_pton(net, ip_addr, ip_len, sa, salen);
net               245 fs/nfs/dns_resolve.c 	key.addrlen = rpc_pton(cd->net, buf1, len,
net               343 fs/nfs/dns_resolve.c ssize_t nfs_dns_resolve_name(struct net *net, char *name,
net               352 fs/nfs/dns_resolve.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               383 fs/nfs/dns_resolve.c int nfs_dns_resolver_cache_init(struct net *net)
net               386 fs/nfs/dns_resolve.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               388 fs/nfs/dns_resolve.c 	nn->nfs_dns_resolve = cache_create_net(&nfs_dns_resolve_template, net);
net               392 fs/nfs/dns_resolve.c 	err = nfs_cache_register_net(net, nn->nfs_dns_resolve);
net               398 fs/nfs/dns_resolve.c 	cache_destroy_net(nn->nfs_dns_resolve, net);
net               402 fs/nfs/dns_resolve.c void nfs_dns_resolver_cache_destroy(struct net *net)
net               404 fs/nfs/dns_resolve.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               406 fs/nfs/dns_resolve.c 	nfs_cache_unregister_net(net, nn->nfs_dns_resolve);
net               407 fs/nfs/dns_resolve.c 	cache_destroy_net(nn->nfs_dns_resolve, net);
net               410 fs/nfs/dns_resolve.c static int nfs4_dns_net_init(struct net *net)
net               412 fs/nfs/dns_resolve.c 	return nfs_dns_resolver_cache_init(net);
net               415 fs/nfs/dns_resolve.c static void nfs4_dns_net_exit(struct net *net)
net               417 fs/nfs/dns_resolve.c 	nfs_dns_resolver_cache_destroy(net);
net               429 fs/nfs/dns_resolve.c 	struct net *net = sb->s_fs_info;
net               430 fs/nfs/dns_resolve.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net                20 fs/nfs/dns_resolve.h static inline int nfs_dns_resolver_cache_init(struct net *net)
net                25 fs/nfs/dns_resolve.h static inline void nfs_dns_resolver_cache_destroy(struct net *net)
net                30 fs/nfs/dns_resolve.h extern int nfs_dns_resolver_cache_init(struct net *net);
net                31 fs/nfs/dns_resolve.h extern void nfs_dns_resolver_cache_destroy(struct net *net);
net                34 fs/nfs/dns_resolve.h extern ssize_t nfs_dns_resolve_name(struct net *net, char *name,
net              2170 fs/nfs/inode.c static int nfs_net_init(struct net *net)
net              2172 fs/nfs/inode.c 	nfs_clients_init(net);
net              2173 fs/nfs/inode.c 	return nfs_fs_proc_net_init(net);
net              2176 fs/nfs/inode.c static void nfs_net_exit(struct net *net)
net              2178 fs/nfs/inode.c 	nfs_fs_proc_net_exit(net);
net              2179 fs/nfs/inode.c 	nfs_clients_exit(net);
net                77 fs/nfs/internal.h 	struct net *net;
net               122 fs/nfs/internal.h 	struct net		*net;
net               137 fs/nfs/internal.h 	struct net		*net;
net               153 fs/nfs/internal.h extern void nfs_clients_init(struct net *net);
net               154 fs/nfs/internal.h extern void nfs_clients_exit(struct net *net);
net               169 fs/nfs/internal.h extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
net               171 fs/nfs/internal.h nfs4_find_client_sessionid(struct net *, const struct sockaddr *,
net               182 fs/nfs/internal.h 					struct net *net);
net               207 fs/nfs/internal.h extern int nfs_fs_proc_net_init(struct net *net);
net               208 fs/nfs/internal.h extern void nfs_fs_proc_net_exit(struct net *net);
net               210 fs/nfs/internal.h static inline int nfs_fs_proc_net_init(struct net *net)
net               214 fs/nfs/internal.h static inline void nfs_fs_proc_net_exit(struct net *net)
net               159 fs/nfs/mount_clnt.c 		.net		= info->net,
net               244 fs/nfs/mount_clnt.c 		.net		= info->net,
net                93 fs/nfs/nfs3client.c 		.net = mds_clp->cl_net,
net               774 fs/nfs/nfs4client.c nfs4_find_client_ident(struct net *net, int cb_ident)
net               777 fs/nfs/nfs4client.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               818 fs/nfs/nfs4client.c nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr,
net               822 fs/nfs/nfs4client.c 	struct nfs_net *nn = net_generic(net, nfs_net_id);
net               848 fs/nfs/nfs4client.c nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr,
net               865 fs/nfs/nfs4client.c 		struct net *net)
net               875 fs/nfs/nfs4client.c 		.net = net,
net               939 fs/nfs/nfs4client.c 		.net = mds_clp->cl_net,
net              1086 fs/nfs/nfs4client.c 			data->net);
net              1254 fs/nfs/nfs4client.c 		       struct sockaddr *sap, size_t salen, struct net *net)
net              1260 fs/nfs/nfs4client.c 		.net		= net,
net              1286 fs/nfs/nfs4client.c 				clp->cl_nconnect, net);
net               125 fs/nfs/nfs4namespace.c 		struct sockaddr *sa, size_t salen, struct net *net)
net               129 fs/nfs/nfs4namespace.c 	ret = rpc_pton(net, string, len, sa, salen);
net               131 fs/nfs/nfs4namespace.c 		ret = nfs_dns_resolve_name(net, string, len, sa, salen);
net               244 fs/nfs/nfs4namespace.c 	struct net *net = rpc_net_ns(NFS_SB(mountdata->sb)->client);
net               270 fs/nfs/nfs4namespace.c 				mountdata->addr, addr_bufsize, net);
net               428 fs/nfs/nfs4namespace.c 	struct net *net = rpc_net_ns(server->client);
net               450 fs/nfs/nfs4namespace.c 						sap, addr_bufsize, net);
net               460 fs/nfs/nfs4namespace.c 		error = nfs4_update_server(server, hostname, sap, salen, net);
net               385 fs/nfs/pnfs.h  struct nfs4_pnfs_ds_addr *nfs4_decode_mp_ds_addr(struct net *net,
net               621 fs/nfs/pnfs_nfs.c 				.net = clp->cl_net,
net               672 fs/nfs/pnfs_nfs.c 				.net = clp->cl_net,
net               782 fs/nfs/pnfs_nfs.c nfs4_decode_mp_ds_addr(struct net *net, struct xdr_stream *xdr, gfp_t gfp_flags)
net               861 fs/nfs/pnfs_nfs.c 	if (!rpc_pton(net, buf, portstr-buf, (struct sockaddr *)&da->da_addr,
net               952 fs/nfs/super.c 		data->net		= current->nsproxy->net_ns;
net              1538 fs/nfs/super.c 				rpc_pton(mnt->net, string, strlen(string),
net              1560 fs/nfs/super.c 				rpc_pton(mnt->net, string, strlen(string),
net              1777 fs/nfs/super.c 		.net		= args->net,
net              2315 fs/nfs/super.c 	data->net = current->nsproxy->net_ns;
net               131 fs/nfs/sysfs.c 	return container_of(kobj, struct nfs_netns_client, kobject)->net;
net               150 fs/nfs/sysfs.c 		struct net *net)
net               156 fs/nfs/sysfs.c 		p->net = net;
net               166 fs/nfs/sysfs.c void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net)
net               170 fs/nfs/sysfs.c 	clp = nfs_netns_client_alloc(nfs_client_kobj, net);
net                13 fs/nfs/sysfs.h 	struct net *net;
net                22 fs/nfs/sysfs.h void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net);
net                29 fs/nfs_common/grace.c locks_start_grace(struct net *net, struct lock_manager *lm)
net                31 fs/nfs_common/grace.c 	struct list_head *grace_list = net_generic(net, grace_net_id);
net                38 fs/nfs_common/grace.c 		     net->ns.inum, (net == &init_net) ? "(init_net)" : "");
net                64 fs/nfs_common/grace.c __state_in_grace(struct net *net, bool open)
net                66 fs/nfs_common/grace.c 	struct list_head *grace_list = net_generic(net, grace_net_id);
net                86 fs/nfs_common/grace.c bool locks_in_grace(struct net *net)
net                88 fs/nfs_common/grace.c 	return __state_in_grace(net, false);
net                92 fs/nfs_common/grace.c bool opens_in_grace(struct net *net)
net                94 fs/nfs_common/grace.c 	return __state_in_grace(net, true);
net                99 fs/nfs_common/grace.c grace_init_net(struct net *net)
net               101 fs/nfs_common/grace.c 	struct list_head *grace_list = net_generic(net, grace_net_id);
net               108 fs/nfs_common/grace.c grace_exit_net(struct net *net)
net               110 fs/nfs_common/grace.c 	struct list_head *grace_list = net_generic(net, grace_net_id);
net               114 fs/nfs_common/grace.c 		  net->ns.inum, __func__);
net               891 fs/nfsd/export.c exp_rootfh(struct net *net, struct auth_domain *clp, char *name,
net               899 fs/nfsd/export.c 	struct nfsd_net		*nn = net_generic(net, nfsd_net_id);
net               940 fs/nfsd/export.c 	struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id);
net              1244 fs/nfsd/export.c nfsd_export_init(struct net *net)
net              1247 fs/nfsd/export.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1249 fs/nfsd/export.c 	dprintk("nfsd: initializing export module (net: %x).\n", net->ns.inum);
net              1251 fs/nfsd/export.c 	nn->svc_export_cache = cache_create_net(&svc_export_cache_template, net);
net              1254 fs/nfsd/export.c 	rv = cache_register_net(nn->svc_export_cache, net);
net              1258 fs/nfsd/export.c 	nn->svc_expkey_cache = cache_create_net(&svc_expkey_cache_template, net);
net              1263 fs/nfsd/export.c 	rv = cache_register_net(nn->svc_expkey_cache, net);
net              1269 fs/nfsd/export.c 	cache_destroy_net(nn->svc_expkey_cache, net);
net              1271 fs/nfsd/export.c 	cache_unregister_net(nn->svc_export_cache, net);
net              1273 fs/nfsd/export.c 	cache_destroy_net(nn->svc_export_cache, net);
net              1281 fs/nfsd/export.c nfsd_export_flush(struct net *net)
net              1283 fs/nfsd/export.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1293 fs/nfsd/export.c nfsd_export_shutdown(struct net *net)
net              1295 fs/nfsd/export.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1297 fs/nfsd/export.c 	dprintk("nfsd: shutting down export module (net: %x).\n", net->ns.inum);
net              1299 fs/nfsd/export.c 	cache_unregister_net(nn->svc_expkey_cache, net);
net              1300 fs/nfsd/export.c 	cache_unregister_net(nn->svc_export_cache, net);
net              1301 fs/nfsd/export.c 	cache_destroy_net(nn->svc_expkey_cache, net);
net              1302 fs/nfsd/export.c 	cache_destroy_net(nn->svc_export_cache, net);
net              1303 fs/nfsd/export.c 	svcauth_unix_purge(net);
net              1305 fs/nfsd/export.c 	dprintk("nfsd: export shutdown complete (net: %x).\n", net->ns.inum);
net                92 fs/nfsd/export.h int			nfsd_export_init(struct net *);
net                93 fs/nfsd/export.h void			nfsd_export_shutdown(struct net *);
net                94 fs/nfsd/export.h void			nfsd_export_flush(struct net *);
net               100 fs/nfsd/export.h int			exp_rootfh(struct net *, struct auth_domain *,
net                50 fs/nfsd/fault_inject.c 	struct net *net = current->nsproxy->net_ns;
net                67 fs/nfsd/fault_inject.c 	size = rpc_pton(net, write_buf, size, (struct sockaddr *)&sa, sizeof(sa));
net               172 fs/nfsd/filecache.c 		struct net *net)
net               182 fs/nfsd/filecache.c 		nf->nf_net = net;
net               654 fs/nfsd/filecache.c nfsd_file_cache_purge(struct net *net)
net               670 fs/nfsd/filecache.c 			if (net && nf->nf_net != net)
net               735 fs/nfsd/filecache.c 			unsigned int hashval, struct net *net)
net               746 fs/nfsd/filecache.c 		if (nf->nf_net != net)
net               790 fs/nfsd/filecache.c 	struct net *net = SVC_NET(rqstp);
net               806 fs/nfsd/filecache.c 	nf = nfsd_file_find_locked(inode, may_flags, hashval, net);
net               811 fs/nfsd/filecache.c 	new = nfsd_file_alloc(inode, may_flags, hashval, net);
net               819 fs/nfsd/filecache.c 	nf = nfsd_file_find_locked(inode, may_flags, hashval, net);
net                37 fs/nfsd/filecache.h 	struct net		*nf_net;
net                52 fs/nfsd/filecache.h void nfsd_file_cache_purge(struct net *);
net                43 fs/nfsd/idmap.h int nfsd_idmap_init(struct net *);
net                44 fs/nfsd/idmap.h void nfsd_idmap_shutdown(struct net *);
net                46 fs/nfsd/idmap.h static inline int nfsd_idmap_init(struct net *net)
net                50 fs/nfsd/idmap.h static inline void nfsd_idmap_shutdown(struct net *net)
net               823 fs/nfsd/nfs4callback.c static int max_cb_time(struct net *net)
net               825 fs/nfsd/nfs4callback.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               851 fs/nfsd/nfs4callback.c 	int maxtime = max_cb_time(clp->net);
net               858 fs/nfsd/nfs4callback.c 		.net		= clp->net,
net               450 fs/nfsd/nfs4idmap.c nfsd_idmap_init(struct net *net)
net               453 fs/nfsd/nfs4idmap.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               455 fs/nfsd/nfs4idmap.c 	nn->idtoname_cache = cache_create_net(&idtoname_cache_template, net);
net               458 fs/nfsd/nfs4idmap.c 	rv = cache_register_net(nn->idtoname_cache, net);
net               461 fs/nfsd/nfs4idmap.c 	nn->nametoid_cache = cache_create_net(&nametoid_cache_template, net);
net               466 fs/nfsd/nfs4idmap.c 	rv = cache_register_net(nn->nametoid_cache, net);
net               472 fs/nfsd/nfs4idmap.c 	cache_destroy_net(nn->nametoid_cache, net);
net               474 fs/nfsd/nfs4idmap.c 	cache_unregister_net(nn->idtoname_cache, net);
net               476 fs/nfsd/nfs4idmap.c 	cache_destroy_net(nn->idtoname_cache, net);
net               481 fs/nfsd/nfs4idmap.c nfsd_idmap_shutdown(struct net *net)
net               483 fs/nfsd/nfs4idmap.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               485 fs/nfsd/nfs4idmap.c 	cache_unregister_net(nn->idtoname_cache, net);
net               486 fs/nfsd/nfs4idmap.c 	cache_unregister_net(nn->nametoid_cache, net);
net               487 fs/nfsd/nfs4idmap.c 	cache_destroy_net(nn->idtoname_cache, net);
net               488 fs/nfsd/nfs4idmap.c 	cache_destroy_net(nn->nametoid_cache, net);
net               674 fs/nfsd/nfs4layouts.c 		nn = net_generic(ls->ls_stid.sc_client->net, nfsd_net_id);
net               356 fs/nfsd/nfs4proc.c 	struct net *net = SVC_NET(rqstp);
net               357 fs/nfsd/nfs4proc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               410 fs/nfsd/nfs4proc.c 	if (opens_in_grace(net) && open->op_claim_type != NFS4_OPEN_CLAIM_PREVIOUS)
net               413 fs/nfsd/nfs4proc.c 	if (!opens_in_grace(net) && open->op_claim_type == NFS4_OPEN_CLAIM_PREVIOUS)
net               569 fs/nfsd/nfs4proc.c static void gen_boot_verifier(nfs4_verifier *verifier, struct net *net)
net               575 fs/nfsd/nfs4proc.c 	nfsd_copy_boot_verifier(verf, net_generic(net, nfsd_net_id));
net              1161 fs/nfsd/nfs4proc.c 	gen_boot_verifier(&copy->cp_res.wr_verifier, copy->cp_clp->net);
net                56 fs/nfsd/nfs4recover.c 	int (*init)(struct net *);
net                57 fs/nfsd/nfs4recover.c 	void (*exit)(struct net *);
net               172 fs/nfsd/nfs4recover.c 		nfsd4_client_tracking_exit(clp->net);
net               206 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               398 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               513 fs/nfsd/nfs4recover.c nfsd4_recdir_load(struct net *net) {
net               515 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn =  net_generic(net, nfsd_net_id);
net               532 fs/nfsd/nfs4recover.c nfsd4_init_recdir(struct net *net)
net               534 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               566 fs/nfsd/nfs4recover.c nfsd4_shutdown_recdir(struct net *net)
net               568 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               577 fs/nfsd/nfs4recover.c nfs4_legacy_state_init(struct net *net)
net               579 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               596 fs/nfsd/nfs4recover.c nfs4_legacy_state_shutdown(struct net *net)
net               598 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               604 fs/nfsd/nfs4recover.c nfsd4_load_reboot_recovery_data(struct net *net)
net               608 fs/nfsd/nfs4recover.c 	status = nfsd4_init_recdir(net);
net               612 fs/nfsd/nfs4recover.c 	status = nfsd4_recdir_load(net);
net               614 fs/nfsd/nfs4recover.c 		nfsd4_shutdown_recdir(net);
net               620 fs/nfsd/nfs4recover.c nfsd4_legacy_tracking_init(struct net *net)
net               625 fs/nfsd/nfs4recover.c 	if (net != &init_net) {
net               630 fs/nfsd/nfs4recover.c 	status = nfs4_legacy_state_init(net);
net               634 fs/nfsd/nfs4recover.c 	status = nfsd4_load_reboot_recovery_data(net);
net               641 fs/nfsd/nfs4recover.c 	nfs4_legacy_state_shutdown(net);
net               646 fs/nfsd/nfs4recover.c nfsd4_legacy_tracking_exit(struct net *net)
net               648 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               651 fs/nfsd/nfs4recover.c 	nfsd4_shutdown_recdir(net);
net               652 fs/nfsd/nfs4recover.c 	nfs4_legacy_state_shutdown(net);
net               688 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               963 fs/nfsd/nfs4recover.c nfsd4_cld_register_net(struct net *net, struct rpc_pipe *pipe)
net               968 fs/nfsd/nfs4recover.c 	sb = rpc_get_sb_net(net);
net               972 fs/nfsd/nfs4recover.c 	rpc_put_sb_net(net);
net               977 fs/nfsd/nfs4recover.c nfsd4_cld_unregister_net(struct net *net, struct rpc_pipe *pipe)
net               981 fs/nfsd/nfs4recover.c 	sb = rpc_get_sb_net(net);
net               984 fs/nfsd/nfs4recover.c 		rpc_put_sb_net(net);
net               990 fs/nfsd/nfs4recover.c __nfsd4_init_cld_pipe(struct net *net)
net               994 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1014 fs/nfsd/nfs4recover.c 	dentry = nfsd4_cld_register_net(net, cn->cn_pipe);
net              1035 fs/nfsd/nfs4recover.c nfsd4_init_cld_pipe(struct net *net)
net              1039 fs/nfsd/nfs4recover.c 	status = __nfsd4_init_cld_pipe(net);
net              1046 fs/nfsd/nfs4recover.c nfsd4_remove_cld_pipe(struct net *net)
net              1048 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1051 fs/nfsd/nfs4recover.c 	nfsd4_cld_unregister_net(net, cn->cn_pipe);
net              1108 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1145 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1214 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1256 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1295 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1338 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1489 fs/nfsd/nfs4recover.c nfs4_cld_state_init(struct net *net)
net              1491 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1510 fs/nfsd/nfs4recover.c nfs4_cld_state_shutdown(struct net *net)
net              1512 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1575 fs/nfsd/nfs4recover.c nfsd4_cld_tracking_init(struct net *net)
net              1578 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1583 fs/nfsd/nfs4recover.c 	status = nfs4_cld_state_init(net);
net              1587 fs/nfsd/nfs4recover.c 	status = __nfsd4_init_cld_pipe(net);
net              1628 fs/nfsd/nfs4recover.c 	nfsd4_remove_cld_pipe(net);
net              1630 fs/nfsd/nfs4recover.c 	nfs4_cld_state_shutdown(net);
net              1635 fs/nfsd/nfs4recover.c nfsd4_cld_tracking_exit(struct net *net)
net              1637 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1640 fs/nfsd/nfs4recover.c 	nfsd4_remove_cld_pipe(net);
net              1641 fs/nfsd/nfs4recover.c 	nfs4_cld_state_shutdown(net);
net              1872 fs/nfsd/nfs4recover.c nfsd4_umh_cltrack_init(struct net *net)
net              1875 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1879 fs/nfsd/nfs4recover.c 	if (net != &init_net) {
net              1912 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2030 fs/nfsd/nfs4recover.c nfsd4_client_tracking_init(struct net *net)
net              2034 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              2042 fs/nfsd/nfs4recover.c 	status = nn->client_tracking_ops->init(net);
net              2047 fs/nfsd/nfs4recover.c 		status = nn->client_tracking_ops->init(net);
net              2056 fs/nfsd/nfs4recover.c 	status = nn->client_tracking_ops->init(net);
net              2076 fs/nfsd/nfs4recover.c 	status = nn->client_tracking_ops->init(net);
net              2087 fs/nfsd/nfs4recover.c nfsd4_client_tracking_exit(struct net *net)
net              2089 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              2093 fs/nfsd/nfs4recover.c 			nn->client_tracking_ops->exit(net);
net              2101 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2110 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2119 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2138 fs/nfsd/nfs4recover.c 	struct net *net = sb->s_fs_info;
net              2139 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               144 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               158 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               178 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               192 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               219 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               231 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               293 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net               767 fs/nfsd/nfs4state.c 	nn = net_generic(copy->cp_clp->net, nfsd_net_id);
net              1434 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(oo->oo_owner.so_client->net,
net              1801 fs/nfsd/nfs4state.c __find_in_sessionid_hashtbl(struct nfs4_sessionid *sessionid, struct net *net)
net              1805 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1824 fs/nfsd/nfs4state.c find_in_sessionid_hashtbl(struct nfs4_sessionid *sessionid, struct net *net,
net              1830 fs/nfsd/nfs4state.c 	session = __find_in_sessionid_hashtbl(sessionid, net);
net              1846 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1962 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              1987 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2061 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2070 fs/nfsd/nfs4state.c 				clp->net->ns.inum);
net              2545 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2602 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(rqstp);
net              2603 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              2622 fs/nfsd/nfs4state.c 	clp->net = net;
net              2677 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2692 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
net              2776 fs/nfsd/nfs4state.c 	conn->cb_addrlen = rpc_uaddr2sockaddr(clp->net, se->se_callback_addr_val,
net              3412 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(rqstp);
net              3413 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              3418 fs/nfsd/nfs4state.c 	session = find_in_sessionid_hashtbl(&bcts->sessionid, net, &status);
net              3455 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(r);
net              3456 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              3466 fs/nfsd/nfs4state.c 	ses = find_in_sessionid_hashtbl(sessionid, net, &status);
net              3590 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(rqstp);
net              3591 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              3605 fs/nfsd/nfs4state.c 	session = find_in_sessionid_hashtbl(&seq->sessionid, net, &status);
net              4258 fs/nfsd/nfs4state.c move_to_close_lru(struct nfs4_ol_stateid *s, struct net *net)
net              4262 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(s->st_stid.sc_client->net,
net              4369 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(dp->dl_stid.sc_client->net,
net              4937 fs/nfsd/nfs4state.c 			if (locks_in_grace(clp->net))
net              5385 fs/nfsd/nfs4state.c check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags)
net              5389 fs/nfsd/nfs4state.c 	else if (opens_in_grace(net)) {
net              5406 fs/nfsd/nfs4state.c grace_disallows_io(struct net *net, struct inode *inode)
net              5408 fs/nfsd/nfs4state.c 	return opens_in_grace(net) && mandatory_lock(inode);
net              5615 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(rqstp);
net              5616 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              5623 fs/nfsd/nfs4state.c 	if (grace_disallows_io(net, ino))
net              5627 fs/nfsd/nfs4state.c 		status = check_special_stateids(net, fhp, stateid, flags);
net              5972 fs/nfsd/nfs4state.c 			move_to_close_lru(s, clp->net);
net              5986 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(rqstp);
net              5987 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              6116 fs/nfsd/nfs4state.c 	struct net			*net = lo->lo_owner.so_client->net;
net              6117 fs/nfsd/nfs4state.c 	struct nfsd_net			*nn = net_generic(net, nfsd_net_id);
net              6429 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(rqstp);
net              6430 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              6487 fs/nfsd/nfs4state.c 	if (locks_in_grace(net) && !lock->lk_reclaim)
net              6490 fs/nfsd/nfs4state.c 	if (!locks_in_grace(net) && lock->lk_reclaim)
net              7617 fs/nfsd/nfs4state.c static int nfs4_state_create_net(struct net *net)
net              7619 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              7661 fs/nfsd/nfs4state.c 	get_net(net);
net              7674 fs/nfsd/nfs4state.c nfs4_state_destroy_net(struct net *net)
net              7678 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              7699 fs/nfsd/nfs4state.c 	put_net(net);
net              7703 fs/nfsd/nfs4state.c nfs4_state_start_net(struct net *net)
net              7705 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              7708 fs/nfsd/nfs4state.c 	ret = nfs4_state_create_net(net);
net              7711 fs/nfsd/nfs4state.c 	locks_start_grace(net, &nn->nfsd4_manager);
net              7712 fs/nfsd/nfs4state.c 	nfsd4_client_tracking_init(net);
net              7716 fs/nfsd/nfs4state.c 	       nn->nfsd4_grace, net->ns.inum);
net              7722 fs/nfsd/nfs4state.c 			net->ns.inum);
net              7754 fs/nfsd/nfs4state.c nfs4_state_shutdown_net(struct net *net)
net              7758 fs/nfsd/nfs4state.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              7777 fs/nfsd/nfs4state.c 	nfsd4_client_tracking_exit(net);
net              7778 fs/nfsd/nfs4state.c 	nfs4_state_destroy_net(net);
net               140 fs/nfsd/nfsctl.c static int exports_net_open(struct net *net, struct file *file)
net               144 fs/nfsd/nfsctl.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               236 fs/nfsd/nfsctl.c static inline struct net *netns(struct file *file)
net               261 fs/nfsd/nfsctl.c 	struct net *net = netns(file);
net               274 fs/nfsd/nfsctl.c 	if (rpc_pton(net, fo_path, size, sap, salen) == 0)
net               437 fs/nfsd/nfsctl.c 	struct net *net = netns(file);
net               446 fs/nfsd/nfsctl.c 		rv = nfsd_svc(newthreads, net, file->f_cred);
net               450 fs/nfsd/nfsctl.c 		rv = nfsd_nrthreads(net);
net               488 fs/nfsd/nfsctl.c 	struct net *net = netns(file);
net               491 fs/nfsd/nfsctl.c 	npools = nfsd_nrpools(net);
net               519 fs/nfsd/nfsctl.c 		rv = nfsd_set_nrthreads(i, nthreads, net);
net               524 fs/nfsd/nfsctl.c 	rv = nfsd_get_nrthreads(npools, nthreads, net);
net               710 fs/nfsd/nfsctl.c static ssize_t __write_ports_names(char *buf, struct net *net)
net               712 fs/nfsd/nfsctl.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               724 fs/nfsd/nfsctl.c static ssize_t __write_ports_addfd(char *buf, struct net *net, const struct cred *cred)
net               728 fs/nfsd/nfsctl.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               734 fs/nfsd/nfsctl.c 	if (svc_alien_sock(net, fd)) {
net               739 fs/nfsd/nfsctl.c 	err = nfsd_create_serv(net);
net               745 fs/nfsd/nfsctl.c 		nfsd_destroy(net);
net               758 fs/nfsd/nfsctl.c static ssize_t __write_ports_addxprt(char *buf, struct net *net, const struct cred *cred)
net               763 fs/nfsd/nfsctl.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               771 fs/nfsd/nfsctl.c 	err = nfsd_create_serv(net);
net               775 fs/nfsd/nfsctl.c 	err = svc_create_xprt(nn->nfsd_serv, transport, net,
net               780 fs/nfsd/nfsctl.c 	err = svc_create_xprt(nn->nfsd_serv, transport, net,
net               789 fs/nfsd/nfsctl.c 	xprt = svc_find_xprt(nn->nfsd_serv, transport, net, PF_INET, port);
net               795 fs/nfsd/nfsctl.c 	nfsd_destroy(net);
net               800 fs/nfsd/nfsctl.c 			     struct net *net)
net               803 fs/nfsd/nfsctl.c 		return __write_ports_names(buf, net);
net               806 fs/nfsd/nfsctl.c 		return __write_ports_addfd(buf, net, file->f_cred);
net               809 fs/nfsd/nfsctl.c 		return __write_ports_addxprt(buf, net, file->f_cred);
net              1413 fs/nfsd/nfsctl.c 	struct net *net = sb->s_fs_info;
net              1416 fs/nfsd/nfsctl.c 	put_net(net);
net              1452 fs/nfsd/nfsctl.c static __net_init int nfsd_init_net(struct net *net)
net              1456 fs/nfsd/nfsctl.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1458 fs/nfsd/nfsctl.c 	retval = nfsd_export_init(net);
net              1461 fs/nfsd/nfsctl.c 	retval = nfsd_idmap_init(net);
net              1493 fs/nfsd/nfsctl.c 	nfsd_idmap_shutdown(net);
net              1495 fs/nfsd/nfsctl.c 	nfsd_export_shutdown(net);
net              1500 fs/nfsd/nfsctl.c static __net_exit void nfsd_exit_net(struct net *net)
net              1502 fs/nfsd/nfsctl.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net              1506 fs/nfsd/nfsctl.c 	nfsd_idmap_shutdown(net);
net              1507 fs/nfsd/nfsctl.c 	nfsd_export_shutdown(net);
net              1508 fs/nfsd/nfsctl.c 	nfsd_netns_free_versions(net_generic(net, nfsd_net_id));
net                78 fs/nfsd/nfsd.h int		nfsd_svc(int nrservs, struct net *net, const struct cred *cred);
net                81 fs/nfsd/nfsd.h int		nfsd_nrthreads(struct net *);
net                82 fs/nfsd/nfsd.h int		nfsd_nrpools(struct net *);
net                83 fs/nfsd/nfsd.h int		nfsd_get_nrthreads(int n, int *, struct net *);
net                84 fs/nfsd/nfsd.h int		nfsd_set_nrthreads(int n, int *, struct net *);
net                88 fs/nfsd/nfsd.h void		nfsd_destroy(struct net *net);
net               119 fs/nfsd/nfsd.h int nfsd_create_serv(struct net *net);
net               142 fs/nfsd/nfsd.h int nfs4_state_start_net(struct net *net);
net               144 fs/nfsd/nfsd.h void nfs4_state_shutdown_net(struct net *net);
net               153 fs/nfsd/nfsd.h static inline int nfs4_state_start_net(struct net *net) { return 0; }
net               155 fs/nfsd/nfsd.h static inline void nfs4_state_shutdown_net(struct net *net) { }
net                37 fs/nfsd/nfssvc.c static int			nfsd_acl_rpcbind_set(struct net *,
net                46 fs/nfsd/nfssvc.c static int			nfsd_rpcbind_set(struct net *,
net               274 fs/nfsd/nfssvc.c int nfsd_nrthreads(struct net *net)
net               277 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               286 fs/nfsd/nfssvc.c static int nfsd_init_socks(struct net *net, const struct cred *cred)
net               289 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               294 fs/nfsd/nfssvc.c 	error = svc_create_xprt(nn->nfsd_serv, "udp", net, PF_INET, NFS_PORT,
net               299 fs/nfsd/nfssvc.c 	error = svc_create_xprt(nn->nfsd_serv, "tcp", net, PF_INET, NFS_PORT,
net               375 fs/nfsd/nfssvc.c static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cred)
net               377 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               386 fs/nfsd/nfssvc.c 	ret = nfsd_init_socks(net, cred);
net               391 fs/nfsd/nfssvc.c 		ret = lockd_up(net, cred);
net               397 fs/nfsd/nfssvc.c 	ret = nfs4_state_start_net(net);
net               406 fs/nfsd/nfssvc.c 		lockd_down(net);
net               414 fs/nfsd/nfssvc.c static void nfsd_shutdown_net(struct net *net)
net               416 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               418 fs/nfsd/nfssvc.c 	nfsd_file_cache_purge(net);
net               419 fs/nfsd/nfssvc.c 	nfs4_state_shutdown_net(net);
net               421 fs/nfsd/nfssvc.c 		lockd_down(net);
net               433 fs/nfsd/nfssvc.c 	struct net *net = dev_net(dev);
net               434 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               464 fs/nfsd/nfssvc.c 	struct net *net = dev_net(dev);
net               465 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               494 fs/nfsd/nfssvc.c static void nfsd_last_thread(struct svc_serv *serv, struct net *net)
net               496 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               514 fs/nfsd/nfssvc.c 	svc_rpcb_cleanup(serv, net);
net               518 fs/nfsd/nfssvc.c 	nfsd_shutdown_net(net);
net               521 fs/nfsd/nfssvc.c 	nfsd_export_flush(net);
net               593 fs/nfsd/nfssvc.c int nfsd_create_serv(struct net *net)
net               596 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               612 fs/nfsd/nfssvc.c 	error = svc_bind(nn->nfsd_serv, net);
net               631 fs/nfsd/nfssvc.c int nfsd_nrpools(struct net *net)
net               633 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               641 fs/nfsd/nfssvc.c int nfsd_get_nrthreads(int n, int *nthreads, struct net *net)
net               644 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               654 fs/nfsd/nfssvc.c void nfsd_destroy(struct net *net)
net               656 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               660 fs/nfsd/nfssvc.c 		svc_shutdown_net(nn->nfsd_serv, net);
net               666 fs/nfsd/nfssvc.c int nfsd_set_nrthreads(int n, int *nthreads, struct net *net)
net               671 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               715 fs/nfsd/nfssvc.c 	nfsd_destroy(net);
net               725 fs/nfsd/nfssvc.c nfsd_svc(int nrservs, struct net *net, const struct cred *cred)
net               729 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               741 fs/nfsd/nfssvc.c 	error = nfsd_create_serv(net);
net               747 fs/nfsd/nfssvc.c 	error = nfsd_startup_net(nrservs, net, cred);
net               761 fs/nfsd/nfssvc.c 		nfsd_shutdown_net(net);
net               763 fs/nfsd/nfssvc.c 	nfsd_destroy(net);		/* Release server */
net               779 fs/nfsd/nfssvc.c nfsd_acl_rpcbind_set(struct net *net, const struct svc_program *progp,
net               784 fs/nfsd/nfssvc.c 	    !nfsd_vers(net_generic(net, nfsd_net_id), version, NFSD_TEST))
net               786 fs/nfsd/nfssvc.c 	return svc_generic_rpcbind_set(net, progp, version, family,
net               825 fs/nfsd/nfssvc.c nfsd_rpcbind_set(struct net *net, const struct svc_program *progp,
net               829 fs/nfsd/nfssvc.c 	if (!nfsd_vers(net_generic(net, nfsd_net_id), version, NFSD_TEST))
net               831 fs/nfsd/nfssvc.c 	return svc_generic_rpcbind_set(net, progp, version, family,
net               873 fs/nfsd/nfssvc.c 	struct net *net = perm_sock->xpt_net;
net               874 fs/nfsd/nfssvc.c 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
net               936 fs/nfsd/nfssvc.c 	nfsd_destroy(net);
net              1080 fs/nfsd/nfssvc.c 	struct net *net = inode->i_sb->s_fs_info;
net              1084 fs/nfsd/nfssvc.c 	nfsd_destroy(net);
net               367 fs/nfsd/state.h 	struct net		*net;
net               667 fs/nfsd/state.h extern int nfsd4_client_tracking_init(struct net *net);
net               668 fs/nfsd/state.h extern void nfsd4_client_tracking_exit(struct net *net);
net                32 fs/proc/proc_net.c static inline struct net *PDE_NET(struct proc_dir_entry *pde)
net                37 fs/proc/proc_net.c static struct net *get_proc_net(const struct inode *inode)
net                62 fs/proc/proc_net.c 	struct net *net;
net                69 fs/proc/proc_net.c 	net = get_proc_net(inode);
net                70 fs/proc/proc_net.c 	if (!net)
net                75 fs/proc/proc_net.c 		put_net(net);
net                79 fs/proc/proc_net.c 	p->net = net;
net               166 fs/proc/proc_net.c 	struct net *net;
net               169 fs/proc/proc_net.c 	net = get_proc_net(inode);
net               170 fs/proc/proc_net.c 	if (!net)
net               173 fs/proc/proc_net.c 	err = single_open(file, de->single_show, net);
net               175 fs/proc/proc_net.c 		put_net(net);
net               254 fs/proc/proc_net.c static struct net *get_proc_task_net(struct inode *dir)
net               258 fs/proc/proc_net.c 	struct net *net = NULL;
net               266 fs/proc/proc_net.c 			net = get_net(ns->net_ns);
net               271 fs/proc/proc_net.c 	return net;
net               278 fs/proc/proc_net.c 	struct net *net;
net               281 fs/proc/proc_net.c 	net = get_proc_task_net(dir);
net               282 fs/proc/proc_net.c 	if (net != NULL) {
net               283 fs/proc/proc_net.c 		de = proc_lookup_de(dir, dentry, net->proc_net);
net               284 fs/proc/proc_net.c 		put_net(net);
net               293 fs/proc/proc_net.c 	struct net *net;
net               295 fs/proc/proc_net.c 	net = get_proc_task_net(inode);
net               299 fs/proc/proc_net.c 	if (net != NULL) {
net               300 fs/proc/proc_net.c 		stat->nlink = net->proc_net->nlink;
net               301 fs/proc/proc_net.c 		put_net(net);
net               315 fs/proc/proc_net.c 	struct net *net;
net               318 fs/proc/proc_net.c 	net = get_proc_task_net(file_inode(file));
net               319 fs/proc/proc_net.c 	if (net != NULL) {
net               320 fs/proc/proc_net.c 		ret = proc_readdir_de(file, ctx, net->proc_net);
net               321 fs/proc/proc_net.c 		put_net(net);
net               332 fs/proc/proc_net.c static __net_init int proc_net_ns_init(struct net *net)
net               345 fs/proc/proc_net.c 	netd->data = net;
net               352 fs/proc/proc_net.c 	uid = make_kuid(net->user_ns, 0);
net               356 fs/proc/proc_net.c 	gid = make_kgid(net->user_ns, 0);
net               363 fs/proc/proc_net.c 	net_statd = proc_net_mkdir(net, "stat", netd);
net               367 fs/proc/proc_net.c 	net->proc_net = netd;
net               368 fs/proc/proc_net.c 	net->proc_net_stat = net_statd;
net               377 fs/proc/proc_net.c static __net_exit void proc_net_ns_exit(struct net *net)
net               379 fs/proc/proc_net.c 	remove_proc_entry("stat", net->proc_net);
net               380 fs/proc/proc_net.c 	pde_free(net->proc_net);
net                58 fs/sysfs/mount.c 	struct net *netns;
net                57 include/linux/can/core.h int can_rx_register(struct net *net, struct net_device *dev,
net                62 include/linux/can/core.h extern void can_rx_unregister(struct net *net, struct net_device *dev,
net                65 include/linux/ceph/messenger.h 	possible_net_t net;
net                29 include/linux/dns_resolver.h struct net;
net                30 include/linux/dns_resolver.h extern int dns_query(struct net *net, const char *type, const char *name, size_t namelen,
net              1054 include/linux/fs.h struct net;
net              1055 include/linux/fs.h void locks_start_grace(struct net *, struct lock_manager *);
net              1057 include/linux/fs.h bool locks_in_grace(struct net *);
net              1058 include/linux/fs.h bool opens_in_grace(struct net *);
net                22 include/linux/fs_context.h struct net;
net                94 include/linux/fs_context.h 	struct net		*net_ns;	/* The network namespace for this mount */
net                53 include/linux/if_bridge.h extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *));
net                59 include/linux/if_macvlan.h extern int macvlan_common_newlink(struct net *src_net, struct net_device *dev,
net                73 include/linux/if_pppox.h 	int		(*create)(struct net *net, struct socket *sock, int kern);
net                68 include/linux/if_vlan.h extern void vlan_ioctl_set(int (*hook)(struct net *, void __user *));
net                56 include/linux/inet.h extern int inet_pton_with_scope(struct net *net, unsigned short af,
net                52 include/linux/inet_diag.h struct sock *inet_diag_find_one_icsk(struct net *net,
net                54 include/linux/inetdevice.h #define IPV4_DEVCONF_ALL(net, attr) \
net                55 include/linux/inetdevice.h 	IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
net                85 include/linux/inetdevice.h #define IN_DEV_NET_ORCONF(in_dev, net, attr) \
net                86 include/linux/inetdevice.h 	(IPV4_DEVCONF_ALL(net, attr) || \
net               119 include/linux/inetdevice.h #define IN_DEV_NET_ROUTE_LOCALNET(in_dev, net)	\
net               120 include/linux/inetdevice.h 	IN_DEV_NET_ORCONF(in_dev, net, ROUTE_LOCALNET)
net               170 include/linux/inetdevice.h void inet_netconf_notify_devconf(struct net *net, int event, int type,
net               173 include/linux/inetdevice.h struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref);
net               174 include/linux/inetdevice.h static inline struct net_device *ip_dev_find(struct net *net, __be32 addr)
net               176 include/linux/inetdevice.h 	return __ip_dev_find(net, addr, true);
net               180 include/linux/inetdevice.h int devinet_ioctl(struct net *net, unsigned int cmd, struct ifreq *);
net               182 include/linux/inetdevice.h struct in_device *inetdev_by_index(struct net *, int);
net               184 include/linux/inetdevice.h __be32 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst,
net               188 include/linux/inetdevice.h struct in_ifaddr *inet_lookup_ifaddr_rcu(struct net *net, __be32 addr);
net               180 include/linux/ipv6.h static inline bool inet6_exact_dif_match(struct net *net, struct sk_buff *skb)
net               183 include/linux/ipv6.h 	if (!net->ipv4.sysctl_tcp_l3mdev_accept &&
net                34 include/linux/key.h struct net;
net               342 include/linux/key.h #define request_key_net(type, description, net, callout_info) \
net               343 include/linux/key.h 	request_key_tag(type, description, net->key_domain, callout_info);
net               354 include/linux/key.h #define request_key_net_rcu(type, description, net) \
net               355 include/linux/key.h 	request_key_rcu(type, description, net->key_domain);
net                47 include/linux/lockd/bind.h 	struct net		*net;
net                79 include/linux/lockd/bind.h extern int	lockd_up(struct net *net, const struct cred *cred);
net                80 include/linux/lockd/bind.h extern void	lockd_down(struct net *net);
net                72 include/linux/lockd/lockd.h 	struct net		*net;		/* host net */
net               233 include/linux/lockd/lockd.h 					struct net *net,
net               244 include/linux/lockd/lockd.h void		  nlm_shutdown_hosts_net(struct net *net);
net               245 include/linux/lockd/lockd.h void		  nlm_host_rebooted(const struct net *net,
net               254 include/linux/lockd/lockd.h struct nsm_handle *nsm_get_handle(const struct net *net,
net               259 include/linux/lockd/lockd.h struct nsm_handle *nsm_reboot_lookup(const struct net *net,
net               275 include/linux/lockd/lockd.h __be32		  nlmsvc_unlock(struct net *net, struct nlm_file *, struct nlm_lock *);
net               279 include/linux/lockd/lockd.h __be32		  nlmsvc_cancel_blocked(struct net *net, struct nlm_file *, struct nlm_lock *);
net               294 include/linux/lockd/lockd.h void		  nlmsvc_mark_resources(struct net *);
net                81 include/linux/lsm_audit.h 		struct lsm_network_audit *net;
net                84 include/linux/mroute.h int ipmr_get_route(struct net *net, struct sk_buff *skb,
net                97 include/linux/mroute6.h extern int ip6mr_get_route(struct net *net, struct sk_buff *skb,
net               101 include/linux/mroute6.h bool mroute6_is_socket(struct net *net, struct sk_buff *skb);
net               104 include/linux/mroute6.h static inline bool mroute6_is_socket(struct net *net, struct sk_buff *skb)
net                50 include/linux/mroute_base.h 				       struct net *net,
net                59 include/linux/mroute_base.h 			.net = net,
net                67 include/linux/mroute_base.h 	return call_fib_notifier(nb, net, event_type, &info.info);
net                70 include/linux/mroute_base.h static inline int mr_call_vif_notifiers(struct net *net,
net                80 include/linux/mroute_base.h 			.net = net,
net                90 include/linux/mroute_base.h 	return call_fib_notifiers(net, event_type, &info.info);
net               176 include/linux/mroute_base.h 				       struct net *net,
net               184 include/linux/mroute_base.h 			.net = net,
net               190 include/linux/mroute_base.h 	return call_fib_notifier(nb, net, event_type, &info.info);
net               193 include/linux/mroute_base.h static inline int mr_call_mfc_notifiers(struct net *net,
net               202 include/linux/mroute_base.h 			.net = net,
net               210 include/linux/mroute_base.h 	return call_fib_notifiers(net, event_type, &info.info);
net               245 include/linux/mroute_base.h 	possible_net_t		net;
net               271 include/linux/mroute_base.h mr_table_alloc(struct net *net, u32 id,
net               275 include/linux/mroute_base.h 				 struct net *net));
net               294 include/linux/mroute_base.h 		     struct mr_table *(*iter)(struct net *net,
net               302 include/linux/mroute_base.h int mr_dump(struct net *net, struct notifier_block *nb, unsigned short family,
net               303 include/linux/mroute_base.h 	    int (*rules_dump)(struct net *net,
net               305 include/linux/mroute_base.h 	    struct mr_table *(*mr_iter)(struct net *net,
net               344 include/linux/mroute_base.h 		 struct mr_table *(*iter)(struct net *net,
net               355 include/linux/mroute_base.h static inline int mr_dump(struct net *net, struct notifier_block *nb,
net               357 include/linux/mroute_base.h 			  int (*rules_dump)(struct net *net,
net               359 include/linux/mroute_base.h 			  struct mr_table *(*mr_iter)(struct net *net,
net               389 include/linux/mroute_base.h void *mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter, loff_t pos);
net               402 include/linux/mroute_base.h void *mr_mfc_seq_idx(struct net *net,
net               432 include/linux/mroute_base.h static inline void *mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter,
net               449 include/linux/mroute_base.h static inline void *mr_mfc_seq_idx(struct net *net,
net                31 include/linux/net.h struct net;
net               212 include/linux/net.h 	int		(*create)(struct net *net, struct socket *sock,
net               231 include/linux/net.h int __sock_create(struct net *net, int family, int type, int proto,
net               234 include/linux/net.h int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
net               636 include/linux/netdevice.h static inline bool net_has_fallback_tunnels(const struct net *net)
net               638 include/linux/netdevice.h 	return net == &init_net ||
net              2174 include/linux/netdevice.h struct net *dev_net(const struct net_device *dev)
net              2180 include/linux/netdevice.h void dev_net_set(struct net_device *dev, struct net *net)
net              2182 include/linux/netdevice.h 	write_pnet(&dev->nd_net, net);
net              2199 include/linux/netdevice.h #define SET_NETDEV_DEV(net, pdev)	((net)->dev.parent = (pdev))
net              2205 include/linux/netdevice.h #define SET_NETDEV_DEVTYPE(net, devtype)	((net)->dev.type = (devtype))
net              2557 include/linux/netdevice.h #define for_each_netdev(net, d)		\
net              2558 include/linux/netdevice.h 		list_for_each_entry(d, &(net)->dev_base_head, dev_list)
net              2559 include/linux/netdevice.h #define for_each_netdev_reverse(net, d)	\
net              2560 include/linux/netdevice.h 		list_for_each_entry_reverse(d, &(net)->dev_base_head, dev_list)
net              2561 include/linux/netdevice.h #define for_each_netdev_rcu(net, d)		\
net              2562 include/linux/netdevice.h 		list_for_each_entry_rcu(d, &(net)->dev_base_head, dev_list)
net              2563 include/linux/netdevice.h #define for_each_netdev_safe(net, d, n)	\
net              2564 include/linux/netdevice.h 		list_for_each_entry_safe(d, n, &(net)->dev_base_head, dev_list)
net              2565 include/linux/netdevice.h #define for_each_netdev_continue(net, d)		\
net              2566 include/linux/netdevice.h 		list_for_each_entry_continue(d, &(net)->dev_base_head, dev_list)
net              2567 include/linux/netdevice.h #define for_each_netdev_continue_rcu(net, d)		\
net              2568 include/linux/netdevice.h 	list_for_each_entry_continue_rcu(d, &(net)->dev_base_head, dev_list)
net              2577 include/linux/netdevice.h 	struct net *net;
net              2579 include/linux/netdevice.h 	net = dev_net(dev);
net              2581 include/linux/netdevice.h 	return lh == &net->dev_base_head ? NULL : net_device_entry(lh);
net              2587 include/linux/netdevice.h 	struct net *net;
net              2589 include/linux/netdevice.h 	net = dev_net(dev);
net              2591 include/linux/netdevice.h 	return lh == &net->dev_base_head ? NULL : net_device_entry(lh);
net              2594 include/linux/netdevice.h static inline struct net_device *first_net_device(struct net *net)
net              2596 include/linux/netdevice.h 	return list_empty(&net->dev_base_head) ? NULL :
net              2597 include/linux/netdevice.h 		net_device_entry(net->dev_base_head.next);
net              2600 include/linux/netdevice.h static inline struct net_device *first_net_device_rcu(struct net *net)
net              2602 include/linux/netdevice.h 	struct list_head *lh = rcu_dereference(list_next_rcu(&net->dev_base_head));
net              2604 include/linux/netdevice.h 	return lh == &net->dev_base_head ? NULL : net_device_entry(lh);
net              2609 include/linux/netdevice.h struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
net              2611 include/linux/netdevice.h struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type);
net              2612 include/linux/netdevice.h struct net_device *__dev_getfirstbyhwtype(struct net *net, unsigned short type);
net              2621 include/linux/netdevice.h struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags,
net              2623 include/linux/netdevice.h struct net_device *dev_get_by_name(struct net *net, const char *name);
net              2624 include/linux/netdevice.h struct net_device *dev_get_by_name_rcu(struct net *net, const char *name);
net              2625 include/linux/netdevice.h struct net_device *__dev_get_by_name(struct net *net, const char *name);
net              2631 include/linux/netdevice.h int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *newskb);
net              2653 include/linux/netdevice.h struct net_device *dev_get_by_index(struct net *net, int ifindex);
net              2654 include/linux/netdevice.h struct net_device *__dev_get_by_index(struct net *net, int ifindex);
net              2655 include/linux/netdevice.h struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
net              2657 include/linux/netdevice.h int netdev_get_name(struct net *net, char *name, int ifindex);
net              3655 include/linux/netdevice.h int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr,
net              3657 include/linux/netdevice.h int dev_ifconf(struct net *net, struct ifconf *, int);
net              3658 include/linux/netdevice.h int dev_ethtool(struct net *net, struct ifreq *);
net              3669 include/linux/netdevice.h int dev_change_net_namespace(struct net_device *, struct net *, const char *);
net              4093 include/linux/netdevice.h int dev_get_valid_name(struct net *net, struct net_device *dev,
net              4235 include/linux/netdevice.h void dev_load(struct net *net, const char *name);
net                72 include/linux/netfilter.h 	struct net *net;
net                73 include/linux/netfilter.h 	int (*okfn)(struct net *, struct sock *, struct sk_buff *);
net               144 include/linux/netfilter.h 				      struct net *net,
net               145 include/linux/netfilter.h 				      int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               152 include/linux/netfilter.h 	p->net = net;
net               183 include/linux/netfilter.h int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
net               184 include/linux/netfilter.h void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
net               185 include/linux/netfilter.h int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
net               187 include/linux/netfilter.h void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
net               209 include/linux/netfilter.h static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net,
net               212 include/linux/netfilter.h 			  int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               227 include/linux/netfilter.h 		hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]);
net               230 include/linux/netfilter.h 		hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]);
net               234 include/linux/netfilter.h 		if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp)))
net               236 include/linux/netfilter.h 		hook_head = rcu_dereference(net->nf.hooks_arp[hook]);
net               241 include/linux/netfilter.h 		hook_head = rcu_dereference(net->nf.hooks_bridge[hook]);
net               246 include/linux/netfilter.h 		hook_head = rcu_dereference(net->nf.hooks_decnet[hook]);
net               258 include/linux/netfilter.h 				   sk, net, okfn);
net               285 include/linux/netfilter.h NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
net               287 include/linux/netfilter.h 	     int (*okfn)(struct net *, struct sock *, struct sk_buff *),
net               293 include/linux/netfilter.h 	    ((ret = nf_hook(pf, hook, net, sk, skb, in, out, okfn)) == 1))
net               294 include/linux/netfilter.h 		ret = okfn(net, sk, skb);
net               299 include/linux/netfilter.h NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb,
net               301 include/linux/netfilter.h 	int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               303 include/linux/netfilter.h 	int ret = nf_hook(pf, hook, net, sk, skb, in, out, okfn);
net               305 include/linux/netfilter.h 		ret = okfn(net, sk, skb);
net               310 include/linux/netfilter.h NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
net               312 include/linux/netfilter.h 	     int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               320 include/linux/netfilter.h 		if (nf_hook(pf, hook, net, sk, skb, in, out, okfn) == 1)
net               349 include/linux/netfilter.h int nf_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
net               387 include/linux/netfilter.h NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
net               389 include/linux/netfilter.h 	     int (*okfn)(struct net *, struct sock *, struct sk_buff *),
net               392 include/linux/netfilter.h 	return okfn(net, sk, skb);
net               396 include/linux/netfilter.h NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
net               398 include/linux/netfilter.h 	int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               400 include/linux/netfilter.h 	return okfn(net, sk, skb);
net               404 include/linux/netfilter.h NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
net               406 include/linux/netfilter.h 	     int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               411 include/linux/netfilter.h static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net,
net               414 include/linux/netfilter.h 			  int (*okfn)(struct net *, struct sock *, struct sk_buff *))
net               447 include/linux/netfilter.h 	int (*update)(struct net *net, struct sk_buff *skb);
net               222 include/linux/netfilter/ipset/ip_set.h 	int (*create)(struct net *net, struct ip_set *set,
net               320 include/linux/netfilter/ipset/ip_set.h extern ip_set_id_t ip_set_get_byname(struct net *net,
net               322 include/linux/netfilter/ipset/ip_set.h extern void ip_set_put_byindex(struct net *net, ip_set_id_t index);
net               323 include/linux/netfilter/ipset/ip_set.h extern void ip_set_name_byindex(struct net *net, ip_set_id_t index, char *name);
net               324 include/linux/netfilter/ipset/ip_set.h extern ip_set_id_t ip_set_nfnl_get_byindex(struct net *net, ip_set_id_t index);
net               325 include/linux/netfilter/ipset/ip_set.h extern void ip_set_nfnl_put(struct net *net, ip_set_id_t index);
net                28 include/linux/netfilter/nf_conntrack_proto_gre.h void nf_ct_gre_keymap_flush(struct net *net);
net                33 include/linux/netfilter/nf_conntrack_proto_gre.h 		      struct net *net, struct nf_conntrack_tuple *tuple);
net                11 include/linux/netfilter/nfnetlink.h 	int (*call)(struct net *net, struct sock *nl, struct sk_buff *skb,
net                15 include/linux/netfilter/nfnetlink.h 	int (*call_rcu)(struct net *net, struct sock *nl, struct sk_buff *skb,
net                19 include/linux/netfilter/nfnetlink.h 	int (*call_batch)(struct net *net, struct sock *nl, struct sk_buff *skb,
net                33 include/linux/netfilter/nfnetlink.h 	int (*commit)(struct net *net, struct sk_buff *skb);
net                34 include/linux/netfilter/nfnetlink.h 	int (*abort)(struct net *net, struct sk_buff *skb, bool autoload);
net                35 include/linux/netfilter/nfnetlink.h 	void (*cleanup)(struct net *net);
net                36 include/linux/netfilter/nfnetlink.h 	bool (*valid_genid)(struct net *net, u32 genid);
net                42 include/linux/netfilter/nfnetlink.h int nfnetlink_has_listeners(struct net *net, unsigned int group);
net                43 include/linux/netfilter/nfnetlink.h int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
net                45 include/linux/netfilter/nfnetlink.h int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
net                46 include/linux/netfilter/nfnetlink.h int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid,
net                16 include/linux/netfilter/nfnetlink_acct.h struct nf_acct *nfnl_acct_find_get(struct net *net, const char *filter_name);
net                19 include/linux/netfilter/nfnetlink_acct.h int nfnl_acct_overquota(struct net *net, struct nf_acct *nfacct);
net                31 include/linux/netfilter/nfnetlink_osf.h 		  const struct nf_osf_info *info, struct net *net,
net                44 include/linux/netfilter/x_tables.h static inline struct net *xt_net(const struct xt_action_param *par)
net                46 include/linux/netfilter/x_tables.h 	return par->state->net;
net                93 include/linux/netfilter/x_tables.h 	struct net *net;
net               108 include/linux/netfilter/x_tables.h 	struct net *net;
net               124 include/linux/netfilter/x_tables.h 	struct net *net;
net               136 include/linux/netfilter/x_tables.h 	struct net *net;
net               239 include/linux/netfilter/x_tables.h 	int (*table_init)(struct net *net);
net               308 include/linux/netfilter/x_tables.h struct xt_table *xt_register_table(struct net *net,
net               325 include/linux/netfilter/x_tables.h struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
net               327 include/linux/netfilter/x_tables.h struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,
net               331 include/linux/netfilter/x_tables.h int xt_proto_init(struct net *net, u_int8_t af);
net               332 include/linux/netfilter/x_tables.h void xt_proto_fini(struct net *net, u_int8_t af);
net                52 include/linux/netfilter_arp/arp_tables.h int arpt_register_table(struct net *net, const struct xt_table *table,
net                55 include/linux/netfilter_arp/arp_tables.h void arpt_unregister_table(struct net *net, struct xt_table *table,
net                17 include/linux/netfilter_bridge.h int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net               109 include/linux/netfilter_bridge/ebtables.h extern int ebt_register_table(struct net *net,
net               113 include/linux/netfilter_bridge/ebtables.h extern void ebt_unregister_table(struct net *net, struct ebt_table *table,
net                19 include/linux/netfilter_ipv4.h int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
net                26 include/linux/netfilter_ipv4.h int nf_ip_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
net                34 include/linux/netfilter_ipv4.h static inline int nf_ip_route(struct net *net, struct dst_entry **dst,
net                25 include/linux/netfilter_ipv4/ip_tables.h int ipt_register_table(struct net *net, const struct xt_table *table,
net                28 include/linux/netfilter_ipv4/ip_tables.h void ipt_unregister_table(struct net *net, struct xt_table *table,
net                43 include/linux/netfilter_ipv6.h 	int (*chk_addr)(struct net *net, const struct in6_addr *addr,
net                45 include/linux/netfilter_ipv6.h 	int (*route_me_harder)(struct net *net, struct sk_buff *skb);
net                46 include/linux/netfilter_ipv6.h 	int (*dev_get_saddr)(struct net *net, const struct net_device *dev,
net                49 include/linux/netfilter_ipv6.h 	int (*route)(struct net *net, struct dst_entry **dst, struct flowi *fl,
net                57 include/linux/netfilter_ipv6.h 	int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
net                58 include/linux/netfilter_ipv6.h 			int (*output)(struct net *, struct sock *, struct sk_buff *));
net                61 include/linux/netfilter_ipv6.h 	int (*br_defrag)(struct net *net, struct sk_buff *skb, u32 user);
net                62 include/linux/netfilter_ipv6.h 	int (*br_fragment)(struct net *net, struct sock *sk,
net                65 include/linux/netfilter_ipv6.h 			   int (*output)(struct net *, struct sock *sk,
net                80 include/linux/netfilter_ipv6.h static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
net                89 include/linux/netfilter_ipv6.h 	return v6_ops->chk_addr(net, addr, dev, strict);
net                91 include/linux/netfilter_ipv6.h 	return ipv6_chk_addr(net, addr, dev, strict);
net                97 include/linux/netfilter_ipv6.h int __nf_ip6_route(struct net *net, struct dst_entry **dst,
net               100 include/linux/netfilter_ipv6.h static inline int nf_ip6_route(struct net *net, struct dst_entry **dst,
net               107 include/linux/netfilter_ipv6.h 		return v6ops->route(net, dst, fl, strict);
net               112 include/linux/netfilter_ipv6.h 	return __nf_ip6_route(net, dst, fl, strict);
net               120 include/linux/netfilter_ipv6.h static inline int nf_ipv6_br_defrag(struct net *net, struct sk_buff *skb,
net               129 include/linux/netfilter_ipv6.h 	return v6_ops->br_defrag(net, skb, user);
net               131 include/linux/netfilter_ipv6.h 	return nf_ct_frag6_gather(net, skb, user);
net               137 include/linux/netfilter_ipv6.h int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               139 include/linux/netfilter_ipv6.h 		    int (*output)(struct net *, struct sock *sk,
net               143 include/linux/netfilter_ipv6.h static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk,
net               146 include/linux/netfilter_ipv6.h 				     int (*output)(struct net *, struct sock *sk,
net               156 include/linux/netfilter_ipv6.h 	return v6_ops->br_fragment(net, sk, skb, data, output);
net               158 include/linux/netfilter_ipv6.h 	return br_ip6_fragment(net, sk, skb, data, output);
net               164 include/linux/netfilter_ipv6.h int ip6_route_me_harder(struct net *net, struct sk_buff *skb);
net               166 include/linux/netfilter_ipv6.h static inline int nf_ip6_route_me_harder(struct net *net, struct sk_buff *skb)
net               174 include/linux/netfilter_ipv6.h 	return v6_ops->route_me_harder(net, skb);
net               176 include/linux/netfilter_ipv6.h 	return ip6_route_me_harder(net, skb);
net                27 include/linux/netfilter_ipv6/ip6_tables.h int ip6t_register_table(struct net *net, const struct xt_table *table,
net                30 include/linux/netfilter_ipv6/ip6_tables.h void ip6t_unregister_table(struct net *net, struct xt_table *table,
net                12 include/linux/netlink.h struct net;
net                49 include/linux/netlink.h 	int		(*bind)(struct net *net, int group);
net                50 include/linux/netlink.h 	void		(*unbind)(struct net *net, int group);
net                51 include/linux/netlink.h 	bool		(*compare)(struct net *net, struct sock *sk);
net                54 include/linux/netlink.h struct sock *__netlink_kernel_create(struct net *net, int unit,
net                58 include/linux/netlink.h netlink_kernel_create(struct net *net, int unit, struct netlink_kernel_cfg *cfg)
net                60 include/linux/netlink.h 	return __netlink_kernel_create(net, unit, THIS_MODULE, cfg);
net               206 include/linux/netlink.h 	struct net *net;
net               124 include/linux/nfs_fs_sb.h 	struct net		*cl_net;
net                37 include/linux/nsproxy.h 	struct net 	     *net_ns;
net                57 include/linux/ppp_channel.h extern int ppp_register_net_channel(struct net *, struct ppp_channel *);
net               134 include/linux/proc_fs.h struct net;
net               137 include/linux/proc_fs.h 	struct net *net, const char *name, struct proc_dir_entry *parent)
net               139 include/linux/proc_fs.h 	return proc_mkdir_data(name, 0, parent, net);
net               178 include/linux/rio.h 	struct rio_net *net;	/* RIO net this device resides in */
net               270 include/linux/rio.h 	struct rio_net *net;	/* RIO net this mport is attached to */
net               329 include/linux/rio.h 	void (*release)(struct rio_net *net);
net               148 include/linux/rio_drv.h 	return rio_mport_read_config_32(rdev->net->hport, rdev->destid,
net               164 include/linux/rio_drv.h 	return rio_mport_write_config_32(rdev->net->hport, rdev->destid,
net               180 include/linux/rio_drv.h 	return rio_mport_read_config_16(rdev->net->hport, rdev->destid,
net               196 include/linux/rio_drv.h 	return rio_mport_write_config_16(rdev->net->hport, rdev->destid,
net               211 include/linux/rio_drv.h 	return rio_mport_read_config_8(rdev->net->hport, rdev->destid,
net               226 include/linux/rio_drv.h 	return rio_mport_write_config_8(rdev->net->hport, rdev->destid,
net               243 include/linux/rio_drv.h 	return rio_mport_send_doorbell(rdev->net->hport, rdev->destid, data);
net                12 include/linux/rtnetlink.h extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo);
net                13 include/linux/rtnetlink.h extern int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid);
net                14 include/linux/rtnetlink.h extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid,
net                16 include/linux/rtnetlink.h extern void rtnl_set_sk_err(struct net *net, u32 group, int error);
net                 7 include/linux/seq_file_net.h struct net;
net                 8 include/linux/seq_file_net.h extern struct net init_net;
net                12 include/linux/seq_file_net.h 	struct net *net;
net                16 include/linux/seq_file_net.h static inline struct net *seq_file_net(struct seq_file *seq)
net                19 include/linux/seq_file_net.h 	return ((struct seq_net_private *)seq->private)->net;
net                29 include/linux/seq_file_net.h static inline struct net *seq_file_single_net(struct seq_file *seq)
net                32 include/linux/seq_file_net.h 	return (struct net *)seq->private;
net              1284 include/linux/skbuff.h bool __skb_flow_dissect(const struct net *net,
net              1309 include/linux/skbuff.h skb_flow_dissect_flow_keys_basic(const struct net *net,
net              1316 include/linux/skbuff.h 	return __skb_flow_dissect(net, skb, &flow_keys_basic_dissector, flow,
net                72 include/linux/sock_diag.h 	const struct net *n = sock_net(sk);
net                17 include/linux/sunrpc/addr.h size_t		rpc_pton(struct net *, const char *, const size_t,
net                20 include/linux/sunrpc/addr.h size_t		rpc_uaddr2sockaddr(struct net *, const char *, const size_t,
net               119 include/linux/sunrpc/cache.h 	struct net		*net;
net               218 include/linux/sunrpc/cache.h extern int cache_register_net(struct cache_detail *cd, struct net *net);
net               219 include/linux/sunrpc/cache.h extern void cache_unregister_net(struct cache_detail *cd, struct net *net);
net               221 include/linux/sunrpc/cache.h extern struct cache_detail *cache_create_net(const struct cache_detail *tmpl, struct net *net);
net               222 include/linux/sunrpc/cache.h extern void cache_destroy_net(struct cache_detail *cd, struct net *net);
net               115 include/linux/sunrpc/clnt.h 	struct net		*net;
net               170 include/linux/sunrpc/clnt.h int		rpcb_create_local(struct net *);
net               171 include/linux/sunrpc/clnt.h void		rpcb_put_local(struct net *);
net               172 include/linux/sunrpc/clnt.h int		rpcb_register(struct net *, u32, u32, int, unsigned short);
net               173 include/linux/sunrpc/clnt.h int		rpcb_v4_register(struct net *net, const u32 program,
net               194 include/linux/sunrpc/clnt.h struct net *	rpc_net_ns(struct rpc_clnt *);
net                88 include/linux/sunrpc/rpc_pipe_fs.h extern int rpc_pipefs_init_net(struct net *net);
net                89 include/linux/sunrpc/rpc_pipe_fs.h extern void rpc_pipefs_exit_net(struct net *net);
net                90 include/linux/sunrpc/rpc_pipe_fs.h extern struct super_block *rpc_get_sb_net(const struct net *net);
net                91 include/linux/sunrpc/rpc_pipe_fs.h extern void rpc_put_sb_net(const struct net *net);
net               105 include/linux/sunrpc/rpc_pipe_fs.h extern int rpc_add_pipe_dir_object(struct net *net,
net               108 include/linux/sunrpc/rpc_pipe_fs.h extern void rpc_remove_pipe_dir_object(struct net *net,
net               112 include/linux/sunrpc/rpc_pipe_fs.h 		struct net *net,
net               133 include/linux/sunrpc/rpc_pipe_fs.h extern bool gssd_running(struct net *net);
net               267 include/linux/sunrpc/sched.h struct net;
net               268 include/linux/sunrpc/sched.h void		rpc_show_tasks(struct net *);
net                42 include/linux/sunrpc/stats.h struct net;
net                44 include/linux/sunrpc/stats.h int			rpc_proc_init(struct net *);
net                45 include/linux/sunrpc/stats.h void			rpc_proc_exit(struct net *);
net                47 include/linux/sunrpc/stats.h static inline int rpc_proc_init(struct net *net)
net                52 include/linux/sunrpc/stats.h static inline void rpc_proc_exit(struct net *net)
net                62 include/linux/sunrpc/stats.h struct proc_dir_entry *	rpc_proc_register(struct net *,struct rpc_stat *);
net                63 include/linux/sunrpc/stats.h void			rpc_proc_unregister(struct net *,const char *);
net                65 include/linux/sunrpc/stats.h struct proc_dir_entry *	svc_proc_register(struct net *, struct svc_stat *,
net                67 include/linux/sunrpc/stats.h void			svc_proc_unregister(struct net *, const char *);
net                73 include/linux/sunrpc/stats.h static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; }
net                74 include/linux/sunrpc/stats.h static inline void rpc_proc_unregister(struct net *net, const char *p) {}
net                77 include/linux/sunrpc/stats.h static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s,
net                79 include/linux/sunrpc/stats.h static inline void svc_proc_unregister(struct net *net, const char *p) {}
net                58 include/linux/sunrpc/svc.h 	void		(*svo_shutdown)(struct svc_serv *, struct net *);
net               299 include/linux/sunrpc/svc.h 	struct net		*rq_bc_net;	/* pointer to backchannel's
net               413 include/linux/sunrpc/svc.h 	int			(*pg_rpcbind_set)(struct net *net,
net               490 include/linux/sunrpc/svc.h int svc_rpcb_setup(struct svc_serv *serv, struct net *net);
net               491 include/linux/sunrpc/svc.h void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net);
net               492 include/linux/sunrpc/svc.h int svc_bind(struct svc_serv *serv, struct net *net);
net               509 include/linux/sunrpc/svc.h void		   svc_shutdown_net(struct svc_serv *, struct net *);
net               513 include/linux/sunrpc/svc.h int		   svc_register(const struct svc_serv *, struct net *, const int,
net               530 include/linux/sunrpc/svc.h int		   svc_generic_rpcbind_set(struct net *net,
net               535 include/linux/sunrpc/svc.h int		   svc_rpcbind_set_version(struct net *net,
net                17 include/linux/sunrpc/svc_xprt.h 				       struct net *net,
net                88 include/linux/sunrpc/svc_xprt.h 	struct net		*xpt_net;
net               120 include/linux/sunrpc/svc_xprt.h void	svc_xprt_init(struct net *, struct svc_xprt_class *, struct svc_xprt *,
net               122 include/linux/sunrpc/svc_xprt.h int	svc_create_xprt(struct svc_serv *, const char *, struct net *,
net               133 include/linux/sunrpc/svc_xprt.h 			struct net *net, const sa_family_t af,
net               162 include/linux/sunrpc/svcauth.h extern int auth_unix_add_addr(struct net *net, struct in6_addr *addr, struct auth_domain *dom);
net               165 include/linux/sunrpc/svcauth.h extern struct auth_domain *auth_unix_lookup(struct net *net, struct in6_addr *addr);
net               167 include/linux/sunrpc/svcauth.h extern void svcauth_unix_purge(struct net *net);
net               171 include/linux/sunrpc/svcauth.h extern int unix_gid_cache_create(struct net *net);
net               172 include/linux/sunrpc/svcauth.h extern void unix_gid_cache_destroy(struct net *net);
net                22 include/linux/sunrpc/svcauth_gss.h int gss_svc_init_net(struct net *net);
net                23 include/linux/sunrpc/svcauth_gss.h void gss_svc_shutdown_net(struct net *net);
net                55 include/linux/sunrpc/svcsock.h void		svc_close_net(struct svc_serv *, struct net *);
net                60 include/linux/sunrpc/svcsock.h bool		svc_alien_sock(struct net *net, int fd);
net                60 include/linux/sunrpc/xprt.h struct net;
net               282 include/linux/sunrpc/xprt.h 	struct net		*xprt_net;
net               317 include/linux/sunrpc/xprt.h 	struct net *		net;
net               365 include/linux/sunrpc/xprt.h struct rpc_xprt *	xprt_alloc(struct net *net, size_t size,
net                22 include/linux/sunrpc/xprtmultipath.h 	struct net *		xps_net;
net                33 include/linux/udp.h static inline u32 udp_hashfn(const struct net *net, u32 num, u32 mask)
net                35 include/linux/udp.h 	return (num + net_hash_mix(net)) & mask;
net               147 include/linux/usb/cdc_ncm.h int cdc_ncm_change_mtu(struct net_device *net, int new_mtu);
net                49 include/linux/usb/usbnet.h 	struct net_device	*net;
net               252 include/linux/usb/usbnet.h extern int usbnet_open(struct net_device *net);
net               253 include/linux/usb/usbnet.h extern int usbnet_stop(struct net_device *net);
net               255 include/linux/usb/usbnet.h 				     struct net_device *net);
net               256 include/linux/usb/usbnet.h extern void usbnet_tx_timeout(struct net_device *net);
net               257 include/linux/usb/usbnet.h extern int usbnet_change_mtu(struct net_device *net, int new_mtu);
net               269 include/linux/usb/usbnet.h extern int usbnet_get_link_ksettings(struct net_device *net,
net               271 include/linux/usb/usbnet.h extern int usbnet_set_link_ksettings(struct net_device *net,
net               273 include/linux/usb/usbnet.h extern u32 usbnet_get_link(struct net_device *net);
net               277 include/linux/usb/usbnet.h extern int usbnet_nway_reset(struct net_device *net);
net                36 include/media/videobuf2-dvb.h 	struct dvb_net		net;
net                18 include/net/act_api.h 	struct net	*net;
net                94 include/net/act_api.h 	int     (*lookup)(struct net *net, struct tc_action **a, u32 index);
net                95 include/net/act_api.h 	int     (*init)(struct net *net, struct nlattr *nla,
net                99 include/net/act_api.h 	int     (*walk)(struct net *, struct sk_buff *,
net               118 include/net/act_api.h int tc_action_net_init(struct net *net, struct tc_action_net *tn,
net               127 include/net/act_api.h 	tn->idrinfo->net = net;
net               139 include/net/act_api.h 	struct net *net;
net               142 include/net/act_api.h 	list_for_each_entry(net, net_list, exit_list) {
net               143 include/net/act_api.h 		struct tc_action_net *tn = net_generic(net, id);
net               177 include/net/act_api.h int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
net               181 include/net/act_api.h struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
net                79 include/net/addrconf.h int addrconf_add_ifaddr(struct net *net, void __user *arg);
net                80 include/net/addrconf.h int addrconf_del_ifaddr(struct net *net, void __user *arg);
net                81 include/net/addrconf.h int addrconf_set_dstaddr(struct net *net, void __user *arg);
net                83 include/net/addrconf.h int ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
net                85 include/net/addrconf.h int ipv6_chk_addr_and_flags(struct net *net, const struct in6_addr *addr,
net                90 include/net/addrconf.h int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr);
net                99 include/net/addrconf.h struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net,
net               103 include/net/addrconf.h int ipv6_dev_get_saddr(struct net *net, const struct net_device *dev,
net               119 include/net/addrconf.h int addrconf_prefix_rcv_add_addr(struct net *net, struct net_device *dev,
net               199 include/net/addrconf.h u32 ipv6_addr_label(struct net *net, const struct in6_addr *addr,
net               281 include/net/addrconf.h bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev,
net               283 include/net/addrconf.h bool ipv6_chk_acast_addr_src(struct net *net, struct net_device *dev,
net               297 include/net/addrconf.h void inet6_netconf_notify_devconf(struct net *net, int event, int type,
net                81 include/net/af_unix.h int unix_sysctl_register(struct net *net);
net                82 include/net/af_unix.h void unix_sysctl_unregister(struct net *net);
net                84 include/net/af_unix.h static inline int unix_sysctl_register(struct net *net) { return 0; }
net                85 include/net/af_unix.h static inline void unix_sysctl_unregister(struct net *net) {}
net                73 include/net/af_vsock.h struct sock *__vsock_create(struct net *net,
net                67 include/net/arp.h int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg);
net               387 include/net/bluetooth/bluetooth.h int bt_procfs_init(struct net *net, const char *name,
net               390 include/net/bluetooth/bluetooth.h void bt_procfs_cleanup(struct net *net, const char *name);
net               604 include/net/bonding.h 	struct net		*net;	/* Associated network namespace */
net               614 include/net/bonding.h int bond_create(struct net *net, const char *name);
net               615 include/net/bonding.h int bond_create_sysfs(struct bond_net *net);
net               616 include/net/bonding.h void bond_destroy_sysfs(struct bond_net *net);
net                67 include/net/caif/caif_dev.h int caif_connect_client(struct net *net,
net                77 include/net/caif/caif_dev.h int caif_disconnect_client(struct net *net, struct cflayer *client_layer);
net                48 include/net/caif/caif_device.h 	void (*flowctrl)(struct net_device *net, int on);
net                40 include/net/caif/cfcnfg.h struct cfcnfg *get_cfcnfg(struct net *net);
net              4687 include/net/cfg80211.h static inline struct net *wiphy_net(struct wiphy *wiphy)
net              4692 include/net/cfg80211.h static inline void wiphy_net_set(struct wiphy *wiphy, struct net *net)
net              4694 include/net/cfg80211.h 	write_pnet(&wiphy->_net, net);
net               220 include/net/cfg802154.h static inline struct net *wpan_phy_net(struct wpan_phy *wpan_phy)
net               225 include/net/cfg802154.h static inline void wpan_phy_net_set(struct wpan_phy *wpan_phy, struct net *net)
net               227 include/net/cfg802154.h 	write_pnet(&wpan_phy->_net, net);
net                22 include/net/dn_neigh.h int dn_neigh_router_hello(struct net *net, struct sock *sk, struct sk_buff *skb);
net                23 include/net/dn_neigh.h int dn_neigh_endnode_hello(struct net *net, struct sock *sk, struct sk_buff *skb);
net                26 include/net/dn_neigh.h int dn_to_neigh_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net                35 include/net/dst.h 	int			(*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
net               333 include/net/dst.h 				   struct net *net)
net               344 include/net/dst.h 	skb_scrub_packet(skb, !net_eq(net, dev_net(dev)));
net               358 include/net/dst.h 				 struct net *net)
net               363 include/net/dst.h 	__skb_tunnel_rx(skb, dev, net);
net               378 include/net/dst.h int dst_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net               434 include/net/dst.h static inline int dst_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               436 include/net/dst.h 	return skb_dst(skb)->output(net, sk, skb);
net               461 include/net/dst.h static inline struct dst_entry *xfrm_lookup(struct net *net,
net               471 include/net/dst.h xfrm_lookup_with_ifid(struct net *net, struct dst_entry *dst_orig,
net               478 include/net/dst.h static inline struct dst_entry *xfrm_lookup_route(struct net *net,
net               493 include/net/dst.h struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
net               497 include/net/dst.h struct dst_entry *xfrm_lookup_with_ifid(struct net *net,
net               503 include/net/dst.h struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig,
net                13 include/net/dst_ops.h struct net;
net                34 include/net/dst_ops.h 	int			(*local_out)(struct net *net, struct sock *sk, struct sk_buff *skb);
net                11 include/net/fib_notifier.h 	struct net *net;
net                32 include/net/fib_notifier.h 	unsigned int (*fib_seq_read)(struct net *net);
net                33 include/net/fib_notifier.h 	int (*fib_dump)(struct net *net, struct notifier_block *nb);
net                38 include/net/fib_notifier.h int call_fib_notifier(struct notifier_block *nb, struct net *net,
net                41 include/net/fib_notifier.h int call_fib_notifiers(struct net *net, enum fib_event_type event_type,
net                47 include/net/fib_notifier.h fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net);
net                34 include/net/fib_rules.h 	struct net		*fr_net;
net                96 include/net/fib_rules.h 	struct net		*fro_net;
net               190 include/net/fib_rules.h 					 struct net *);
net               198 include/net/fib_rules.h int fib_rules_dump(struct net *net, struct notifier_block *nb, int family);
net               199 include/net/fib_rules.h unsigned int fib_rules_seq_read(struct net *net, int family);
net               292 include/net/flow_offload.h 	struct net *net;
net                67 include/net/genetlink.h 	int			(*mcast_bind)(struct net *net, int group);
net                68 include/net/genetlink.h 	void			(*mcast_unbind)(struct net *net, int group);
net               104 include/net/genetlink.h static inline struct net *genl_info_net(struct genl_info *info)
net               109 include/net/genetlink.h static inline void genl_info_net_set(struct genl_info *info, struct net *net)
net               111 include/net/genetlink.h 	write_pnet(&info->_net, net);
net               276 include/net/genetlink.h 					  struct net *net, struct sk_buff *skb,
net               282 include/net/genetlink.h 	return nlmsg_multicast(net->genl_sock, skb, portid, group, flags);
net               320 include/net/genetlink.h static inline int genlmsg_unicast(struct net *net, struct sk_buff *skb, u32 portid)
net               322 include/net/genetlink.h 	return nlmsg_unicast(net->genl_sock, skb, portid);
net               396 include/net/genetlink.h 			       struct net *net, u32 portid,
net               402 include/net/genetlink.h 	return netlink_set_err(net->genl_sock, portid, group, code);
net               406 include/net/genetlink.h 				     struct net *net, unsigned int group)
net               411 include/net/genetlink.h 	return netlink_has_listeners(net->genl_sock, group);
net                72 include/net/geneve.h struct net_device *geneve_dev_create_fb(struct net *net, const char *name,
net                35 include/net/gre.h struct net_device *gretap_fb_dev_create(struct net *net, const char *name,
net                29 include/net/icmp.h #define ICMP_INC_STATS(net, field)	SNMP_INC_STATS((net)->mib.icmp_statistics, field)
net                30 include/net/icmp.h #define __ICMP_INC_STATS(net, field)	__SNMP_INC_STATS((net)->mib.icmp_statistics, field)
net                31 include/net/icmp.h #define ICMPMSGOUT_INC_STATS(net, field)	SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field+256)
net                32 include/net/icmp.h #define ICMPMSGIN_INC_STATS(net, field)		SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field)
net                37 include/net/icmp.h struct net;
net                49 include/net/icmp.h void icmp_out_count(struct net *net, unsigned char type);
net                43 include/net/inet6_hashtables.h struct sock *__inet6_lookup_established(struct net *net,
net                51 include/net/inet6_hashtables.h struct sock *inet6_lookup_listener(struct net *net,
net                60 include/net/inet6_hashtables.h static inline struct sock *__inet6_lookup(struct net *net,
net                70 include/net/inet6_hashtables.h 	struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr,
net                77 include/net/inet6_hashtables.h 	return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport,
net               100 include/net/inet6_hashtables.h struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
net                45 include/net/inet_common.h 			 struct net *net);
net                16 include/net/inet_frag.h 	struct net		*net;
net               115 include/net/inet_frag.h int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net);
net                93 include/net/inet_hashtables.h static inline struct net *ib_net(struct inet_bind_bucket *ib)
net               200 include/net/inet_hashtables.h static inline bool inet_sk_bound_dev_eq(struct net *net, int bound_dev_if,
net               204 include/net/inet_hashtables.h 	return inet_bound_dev_eq(!!net->ipv4.sysctl_tcp_l3mdev_accept,
net               212 include/net/inet_hashtables.h inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net,
net               218 include/net/inet_hashtables.h static inline u32 inet_bhashfn(const struct net *net, const __u16 lport,
net               221 include/net/inet_hashtables.h 	return (lport + net_hash_mix(net)) & (bhash_size - 1);
net               228 include/net/inet_hashtables.h static inline u32 inet_lhashfn(const struct net *net, const unsigned short num)
net               230 include/net/inet_hashtables.h 	return (num + net_hash_mix(net)) & (INET_LHTABLE_SIZE - 1);
net               256 include/net/inet_hashtables.h struct sock *__inet_lookup_listener(struct net *net,
net               264 include/net/inet_hashtables.h static inline struct sock *inet_lookup_listener(struct net *net,
net               270 include/net/inet_hashtables.h 	return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, sport,
net               325 include/net/inet_hashtables.h struct sock *__inet_lookup_established(struct net *net,
net               332 include/net/inet_hashtables.h 	inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo,
net               337 include/net/inet_hashtables.h 	return __inet_lookup_established(net, hashinfo, saddr, sport, daddr,
net               341 include/net/inet_hashtables.h static inline struct sock *__inet_lookup(struct net *net,
net               352 include/net/inet_hashtables.h 	sk = __inet_lookup_established(net, hashinfo, saddr, sport,
net               358 include/net/inet_hashtables.h 	return __inet_lookup_listener(net, hashinfo, skb, doff, saddr,
net               362 include/net/inet_hashtables.h static inline struct sock *inet_lookup(struct net *net,
net               372 include/net/inet_hashtables.h 	sk = __inet_lookup(net, hashinfo, skb, doff, saddr, sport, daddr,
net               401 include/net/inet_hashtables.h u32 inet6_ehashfn(const struct net *net,
net               120 include/net/inet_sock.h 	struct net *net = sock_net(sk);
net               122 include/net/inet_sock.h 	if (!sk->sk_bound_dev_if && net->ipv4.sysctl_tcp_l3mdev_accept)
net               123 include/net/inet_sock.h 		return l3mdev_master_ifindex_by_index(net, skb->skb_iif);
net               132 include/net/inet_sock.h 	struct net *net = sock_net(sk);
net               134 include/net/inet_sock.h 	if (!net->ipv4.sysctl_tcp_l3mdev_accept)
net               135 include/net/inet_sock.h 		return l3mdev_master_ifindex_by_index(net,
net               375 include/net/inet_sock.h static inline bool inet_can_nonlocal_bind(struct net *net,
net               378 include/net/inet_sock.h 	return net->ipv4.sysctl_ip_nonlocal_bind ||
net               116 include/net/inet_timewait_sock.h struct net *twsk_net(const struct inet_timewait_sock *twsk)
net               122 include/net/inet_timewait_sock.h void twsk_net_set(struct inet_timewait_sock *twsk, struct net *net)
net               124 include/net/inet_timewait_sock.h 	write_pnet(&twsk->tw_net, net);
net               159 include/net/ip.h void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int proto);
net               161 include/net/ip.h int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net               162 include/net/ip.h int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net               163 include/net/ip.h int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               164 include/net/ip.h 		   int (*output)(struct net *, struct sock *, struct sk_buff *));
net               204 include/net/ip.h int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net               205 include/net/ip.h int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net               224 include/net/ip.h int ip_send_skb(struct net *net, struct sk_buff *skb);
net               285 include/net/ip.h #define IP_INC_STATS(net, field)	SNMP_INC_STATS64((net)->mib.ip_statistics, field)
net               286 include/net/ip.h #define __IP_INC_STATS(net, field)	__SNMP_INC_STATS64((net)->mib.ip_statistics, field)
net               287 include/net/ip.h #define IP_ADD_STATS(net, field, val)	SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val)
net               288 include/net/ip.h #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val)
net               289 include/net/ip.h #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val)
net               290 include/net/ip.h #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val)
net               291 include/net/ip.h #define NET_INC_STATS(net, field)	SNMP_INC_STATS((net)->mib.net_statistics, field)
net               292 include/net/ip.h #define __NET_INC_STATS(net, field)	__SNMP_INC_STATS((net)->mib.net_statistics, field)
net               293 include/net/ip.h #define NET_ADD_STATS(net, field, adnd)	SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd)
net               294 include/net/ip.h #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd)
net               339 include/net/ip.h void inet_get_local_port_range(struct net *net, int *low, int *high);
net               342 include/net/ip.h static inline int inet_is_local_reserved_port(struct net *net, int port)
net               344 include/net/ip.h 	if (!net->ipv4.sysctl_local_reserved_ports)
net               346 include/net/ip.h 	return test_bit(port, net->ipv4.sysctl_local_reserved_ports);
net               354 include/net/ip.h static inline int inet_prot_sock(struct net *net)
net               356 include/net/ip.h 	return net->ipv4.sysctl_ip_prot_sock;
net               360 include/net/ip.h static inline int inet_is_local_reserved_port(struct net *net, int port)
net               365 include/net/ip.h static inline int inet_prot_sock(struct net *net)
net               382 include/net/ip.h #define IP4_REPLY_MARK(net, mark) \
net               383 include/net/ip.h 	((net)->ipv4.sysctl_fwmark_reflect ? (mark) : 0)
net               441 include/net/ip.h 	struct net *net = dev_net(dst->dev);
net               443 include/net/ip.h 	if (net->ipv4.sysctl_ip_fwd_use_pmtu ||
net               463 include/net/ip.h struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx,
net               495 include/net/ip.h void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
net               497 include/net/ip.h static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb,
net               515 include/net/ip.h 		__ip_select_ident(net, iph, segs);
net               519 include/net/ip.h static inline void ip_select_ident(struct net *net, struct sk_buff *skb,
net               522 include/net/ip.h 	ip_select_ident_segs(net, skb, sk, 1);
net               638 include/net/ip.h static inline u32 ipv4_portaddr_hash(const struct net *net,
net               642 include/net/ip.h 	return jhash_1word((__force u32)saddr, net_hash_mix(net)) ^ port;
net               677 include/net/ip.h int ip_defrag(struct net *net, struct sk_buff *skb, u32 user);
net               679 include/net/ip.h struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user);
net               681 include/net/ip.h static inline struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user)
net               700 include/net/ip.h int __ip_options_echo(struct net *net, struct ip_options *dopt,
net               702 include/net/ip.h static inline int ip_options_echo(struct net *net, struct ip_options *dopt,
net               705 include/net/ip.h 	return __ip_options_echo(net, dopt, skb, &IPCB(skb)->opt);
net               709 include/net/ip.h int __ip_options_compile(struct net *net, struct ip_options *opt,
net               711 include/net/ip.h int ip_options_compile(struct net *net, struct ip_options *opt,
net               713 include/net/ip.h int ip_options_get(struct net *net, struct ip_options_rcu **optp,
net               715 include/net/ip.h int ip_options_get_from_user(struct net *net, struct ip_options_rcu **optp,
net               392 include/net/ip6_fib.h struct fib6_table *fib6_get_table(struct net *net, u32 id);
net               393 include/net/ip6_fib.h struct fib6_table *fib6_new_table(struct net *net, u32 id);
net               394 include/net/ip6_fib.h struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
net               401 include/net/ip6_fib.h int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
net               405 include/net/ip6_fib.h int fib6_table_lookup(struct net *net, struct fib6_table *table,
net               409 include/net/ip6_fib.h void fib6_select_path(const struct net *net, struct fib6_result *res,
net               421 include/net/ip6_fib.h void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
net               423 include/net/ip6_fib.h void fib6_clean_all_skip_notify(struct net *net,
net               450 include/net/ip6_fib.h int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
net               455 include/net/ip6_fib.h int call_fib6_entry_notifiers(struct net *net,
net               459 include/net/ip6_fib.h int call_fib6_multipath_entry_notifiers(struct net *net,
net               464 include/net/ip6_fib.h void fib6_rt_update(struct net *net, struct fib6_info *rt,
net               469 include/net/ip6_fib.h void fib6_run_gc(unsigned long expires, struct net *net, bool force);
net               485 include/net/ip6_fib.h int call_fib6_notifier(struct notifier_block *nb, struct net *net,
net               488 include/net/ip6_fib.h int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
net               491 include/net/ip6_fib.h int __net_init fib6_notifier_init(struct net *net);
net               492 include/net/ip6_fib.h void __net_exit fib6_notifier_exit(struct net *net);
net               494 include/net/ip6_fib.h unsigned int fib6_tables_seq_read(struct net *net);
net               495 include/net/ip6_fib.h int fib6_tables_dump(struct net *net, struct notifier_block *nb);
net               497 include/net/ip6_fib.h void fib6_update_sernum(struct net *net, struct fib6_info *rt);
net               498 include/net/ip6_fib.h void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt);
net               499 include/net/ip6_fib.h void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
net               511 include/net/ip6_fib.h int fib6_rules_dump(struct net *net, struct notifier_block *nb);
net               512 include/net/ip6_fib.h unsigned int fib6_rules_seq_read(struct net *net);
net               514 include/net/ip6_fib.h static inline bool fib6_rules_early_flow_dissect(struct net *net,
net               521 include/net/ip6_fib.h 	if (!net->ipv6.fib6_rules_require_fldissect)
net               544 include/net/ip6_fib.h static inline int fib6_rules_dump(struct net *net, struct notifier_block *nb)
net               548 include/net/ip6_fib.h static inline unsigned int fib6_rules_seq_read(struct net *net)
net               552 include/net/ip6_fib.h static inline bool fib6_rules_early_flow_dissect(struct net *net,
net                82 include/net/ip6_route.h struct dst_entry *ip6_route_input_lookup(struct net *net,
net                87 include/net/ip6_route.h struct dst_entry *ip6_route_output_flags_noref(struct net *net,
net                91 include/net/ip6_route.h struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
net                94 include/net/ip6_route.h static inline struct dst_entry *ip6_route_output(struct net *net,
net                98 include/net/ip6_route.h 	return ip6_route_output_flags(net, sk, fl6, 0);
net               111 include/net/ip6_route.h struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
net               113 include/net/ip6_route.h struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
net               121 include/net/ip6_route.h int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg);
net               125 include/net/ip6_route.h int ip6_ins_rt(struct net *net, struct fib6_info *f6i);
net               126 include/net/ip6_route.h int ip6_del_rt(struct net *net, struct fib6_info *f6i);
net               132 include/net/ip6_route.h static inline int ip6_route_get_saddr(struct net *net, struct fib6_info *f6i,
net               144 include/net/ip6_route.h 		err = ipv6_dev_get_saddr(net, dev, daddr, prefs, saddr);
net               150 include/net/ip6_route.h struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr,
net               153 include/net/ip6_route.h u32 rt6_multipath_hash(const struct net *net, const struct flowi6 *fl6,
net               158 include/net/ip6_route.h void fib6_force_start_gc(struct net *net);
net               160 include/net/ip6_route.h struct fib6_info *addrconf_f6i_alloc(struct net *net, struct inet6_dev *idev,
net               164 include/net/ip6_route.h struct rt6_info *ip6_dst_alloc(struct net *net, struct net_device *dev,
net               171 include/net/ip6_route.h struct fib6_info *rt6_get_dflt_router(struct net *net,
net               174 include/net/ip6_route.h struct fib6_info *rt6_add_dflt_router(struct net *net,
net               178 include/net/ip6_route.h void rt6_purge_dflt_routers(struct net *net);
net               183 include/net/ip6_route.h void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif,
net               186 include/net/ip6_route.h void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark,
net               188 include/net/ip6_route.h void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif);
net               196 include/net/ip6_route.h 	struct net *net;
net               203 include/net/ip6_route.h void rt6_clean_tohost(struct net *net, struct in6_addr *gateway);
net               261 include/net/ip6_route.h int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               262 include/net/ip6_route.h 		 int (*output)(struct net *, struct sock *, struct sk_buff *));
net                49 include/net/ip6_tunnel.h 	struct net *net;	/* netns for packet i/o */
net               149 include/net/ip6_tunnel.h struct net *ip6_tnl_get_link_net(const struct net_device *dev);
net               135 include/net/ip_fib.h 	struct net		*fib_net;
net               199 include/net/ip_fib.h __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
net               201 include/net/ip_fib.h __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
net               222 include/net/ip_fib.h int call_fib4_notifier(struct notifier_block *nb, struct net *net,
net               225 include/net/ip_fib.h int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
net               228 include/net/ip_fib.h int __net_init fib4_notifier_init(struct net *net);
net               229 include/net/ip_fib.h void __net_exit fib4_notifier_exit(struct net *net);
net               231 include/net/ip_fib.h void fib_info_notify_update(struct net *net, struct nl_info *info);
net               232 include/net/ip_fib.h void fib_notify(struct net *net, struct notifier_block *nb);
net               257 include/net/ip_fib.h int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
net               259 include/net/ip_fib.h int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
net               263 include/net/ip_fib.h int fib_table_flush(struct net *net, struct fib_table *table, bool flush_all);
net               273 include/net/ip_fib.h static inline struct fib_table *fib_get_table(struct net *net, u32 id)
net               279 include/net/ip_fib.h 		&net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] :
net               280 include/net/ip_fib.h 		&net->ipv4.fib_table_hash[TABLE_MAIN_INDEX];
net               287 include/net/ip_fib.h static inline struct fib_table *fib_new_table(struct net *net, u32 id)
net               289 include/net/ip_fib.h 	return fib_get_table(net, id);
net               292 include/net/ip_fib.h static inline int fib_lookup(struct net *net, const struct flowi4 *flp,
net               300 include/net/ip_fib.h 	tb = fib_get_table(net, RT_TABLE_MAIN);
net               317 include/net/ip_fib.h static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb)
net               322 include/net/ip_fib.h static inline unsigned int fib4_rules_seq_read(struct net *net)
net               327 include/net/ip_fib.h static inline bool fib4_rules_early_flow_dissect(struct net *net,
net               335 include/net/ip_fib.h int __net_init fib4_rules_init(struct net *net);
net               336 include/net/ip_fib.h void __net_exit fib4_rules_exit(struct net *net);
net               338 include/net/ip_fib.h struct fib_table *fib_new_table(struct net *net, u32 id);
net               339 include/net/ip_fib.h struct fib_table *fib_get_table(struct net *net, u32 id);
net               341 include/net/ip_fib.h int __fib_lookup(struct net *net, struct flowi4 *flp,
net               344 include/net/ip_fib.h static inline int fib_lookup(struct net *net, struct flowi4 *flp,
net               351 include/net/ip_fib.h 	if (net->ipv4.fib_has_custom_rules)
net               352 include/net/ip_fib.h 		return __fib_lookup(net, flp, res, flags);
net               358 include/net/ip_fib.h 	tb = rcu_dereference_rtnl(net->ipv4.fib_main);
net               365 include/net/ip_fib.h 	tb = rcu_dereference_rtnl(net->ipv4.fib_default);
net               379 include/net/ip_fib.h int fib4_rules_dump(struct net *net, struct notifier_block *nb);
net               380 include/net/ip_fib.h unsigned int fib4_rules_seq_read(struct net *net);
net               382 include/net/ip_fib.h static inline bool fib4_rules_early_flow_dissect(struct net *net,
net               389 include/net/ip_fib.h 	if (!net->ipv4.fib_rules_require_fldissect)
net               413 include/net/ip_fib.h static inline int fib_num_tclassid_users(struct net *net)
net               415 include/net/ip_fib.h 	return net->ipv4.fib_num_tclassid_users;
net               418 include/net/ip_fib.h static inline int fib_num_tclassid_users(struct net *net)
net               423 include/net/ip_fib.h int fib_unmerge(struct net *net);
net               444 include/net/ip_fib.h int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
net               447 include/net/ip_fib.h int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
net               450 include/net/ip_fib.h void fib_select_path(struct net *net, struct fib_result *res,
net               453 include/net/ip_fib.h int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
net               456 include/net/ip_fib.h void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
net               491 include/net/ip_fib.h void fib_flush(struct net *net);
net               506 include/net/ip_fib.h int __net_init fib_proc_init(struct net *net);
net               507 include/net/ip_fib.h void __net_exit fib_proc_exit(struct net *net);
net               509 include/net/ip_fib.h static inline int fib_proc_init(struct net *net)
net               513 include/net/ip_fib.h static inline void fib_proc_exit(struct net *net)
net               520 include/net/ip_fib.h int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
net               108 include/net/ip_tunnels.h 	struct net		*net;	/* netns for packet i/o */
net               260 include/net/ip_tunnels.h struct net *ip_tunnel_get_link_net(const struct net_device *dev);
net               262 include/net/ip_tunnels.h int ip_tunnel_init_net(struct net *net, unsigned int ip_tnl_net_id,
net                39 include/net/ip_vs.h static inline struct netns_ipvs *net_ipvs(struct net* net)
net                41 include/net/ip_vs.h 	return net->ipvs;
net               958 include/net/ip_vs.h 	struct net		*net;            /* Needed by timer routines */
net              1651 include/net/ip_vs.h 		ret = nf_ct_netns_get(svc->ipvs->net, svc->af);
net              1667 include/net/ip_vs.h 		nf_ct_netns_put(svc->ipvs->net, svc->af);
net               197 include/net/ipv6.h #define IP6_REPLY_MARK(net, mark) \
net               198 include/net/ipv6.h 	((net)->ipv6.sysctl.fwmark_reflect ? (mark) : 0)
net               206 include/net/ipv6.h #define _DEVINC(net, statname, mod, idev, field)			\
net               211 include/net/ipv6.h 	mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
net               215 include/net/ipv6.h #define _DEVINCATOMIC(net, statname, mod, idev, field)			\
net               220 include/net/ipv6.h 	mod##SNMP_INC_STATS((net)->mib.statname##_statistics, (field));\
net               224 include/net/ipv6.h #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field)		\
net               229 include/net/ipv6.h 	SNMP_INC_STATS_ATOMIC_LONG((net)->mib.statname##_statistics, (field));\
net               232 include/net/ipv6.h #define _DEVADD(net, statname, mod, idev, field, val)			\
net               237 include/net/ipv6.h 	mod##SNMP_ADD_STATS((net)->mib.statname##_statistics, (field), (val));\
net               240 include/net/ipv6.h #define _DEVUPD(net, statname, mod, idev, field, val)			\
net               245 include/net/ipv6.h 	mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
net               250 include/net/ipv6.h #define IP6_INC_STATS(net, idev,field)		\
net               251 include/net/ipv6.h 		_DEVINC(net, ipv6, , idev, field)
net               252 include/net/ipv6.h #define __IP6_INC_STATS(net, idev,field)	\
net               253 include/net/ipv6.h 		_DEVINC(net, ipv6, __, idev, field)
net               254 include/net/ipv6.h #define IP6_ADD_STATS(net, idev,field,val)	\
net               255 include/net/ipv6.h 		_DEVADD(net, ipv6, , idev, field, val)
net               256 include/net/ipv6.h #define __IP6_ADD_STATS(net, idev,field,val)	\
net               257 include/net/ipv6.h 		_DEVADD(net, ipv6, __, idev, field, val)
net               258 include/net/ipv6.h #define IP6_UPD_PO_STATS(net, idev,field,val)   \
net               259 include/net/ipv6.h 		_DEVUPD(net, ipv6, , idev, field, val)
net               260 include/net/ipv6.h #define __IP6_UPD_PO_STATS(net, idev,field,val)   \
net               261 include/net/ipv6.h 		_DEVUPD(net, ipv6, __, idev, field, val)
net               262 include/net/ipv6.h #define ICMP6_INC_STATS(net, idev, field)	\
net               263 include/net/ipv6.h 		_DEVINCATOMIC(net, icmpv6, , idev, field)
net               264 include/net/ipv6.h #define __ICMP6_INC_STATS(net, idev, field)	\
net               265 include/net/ipv6.h 		_DEVINCATOMIC(net, icmpv6, __, idev, field)
net               267 include/net/ipv6.h #define ICMP6MSGOUT_INC_STATS(net, idev, field)		\
net               268 include/net/ipv6.h 	_DEVINC_ATOMIC_ATOMIC(net, icmpv6msg, idev, field +256)
net               269 include/net/ipv6.h #define ICMP6MSGIN_INC_STATS(net, idev, field)	\
net               270 include/net/ipv6.h 	_DEVINC_ATOMIC_ATOMIC(net, icmpv6msg, idev, field)
net               327 include/net/ipv6.h 	struct net		*fl_net;
net               414 include/net/ipv6.h bool ip6_autoflowlabel(struct net *net, const struct ipv6_pinfo *np);
net               699 include/net/ipv6.h static inline u32 ipv6_portaddr_hash(const struct net *net,
net               703 include/net/ipv6.h 	unsigned int hash, mix = net_hash_mix(net);
net               806 include/net/ipv6.h __be32 ipv6_select_ident(struct net *net,
net               809 include/net/ipv6.h __be32 ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb);
net               843 include/net/ipv6.h static inline bool ipv6_can_nonlocal_bind(struct net *net,
net               846 include/net/ipv6.h 	return net->ipv6.sysctl.ip_nonlocal_bind ||
net               860 include/net/ipv6.h static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
net               872 include/net/ipv6.h 	    net->ipv6.sysctl.auto_flowlabels == IP6_AUTO_FLOW_LABEL_OFF ||
net               874 include/net/ipv6.h 	     net->ipv6.sysctl.auto_flowlabels != IP6_AUTO_FLOW_LABEL_FORCED))
net               887 include/net/ipv6.h 	if (net->ipv6.sysctl.flowlabel_state_ranges)
net               893 include/net/ipv6.h static inline int ip6_default_np_autolabel(struct net *net)
net               895 include/net/ipv6.h 	switch (net->ipv6.sysctl.auto_flowlabels) {
net               907 include/net/ipv6.h static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
net               913 include/net/ipv6.h static inline int ip6_default_np_autolabel(struct net *net)
net               920 include/net/ipv6.h static inline int ip6_multipath_hash_policy(const struct net *net)
net               922 include/net/ipv6.h 	return net->ipv6.sysctl.multipath_hash_policy;
net               925 include/net/ipv6.h static inline int ip6_multipath_hash_policy(const struct net *net)
net               978 include/net/ipv6.h int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net              1018 include/net/ipv6.h int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
net              1020 include/net/ipv6.h struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
net              1025 include/net/ipv6.h struct dst_entry *ip6_blackhole_route(struct net *net,
net              1032 include/net/ipv6.h int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net              1036 include/net/ipv6.h void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr,
net              1039 include/net/ipv6.h int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net              1040 include/net/ipv6.h int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net              1129 include/net/ipv6.h int ac6_proc_init(struct net *net);
net              1130 include/net/ipv6.h void ac6_proc_exit(struct net *net);
net              1133 include/net/ipv6.h int tcp6_proc_init(struct net *net);
net              1134 include/net/ipv6.h void tcp6_proc_exit(struct net *net);
net              1135 include/net/ipv6.h int udp6_proc_init(struct net *net);
net              1136 include/net/ipv6.h void udp6_proc_exit(struct net *net);
net              1145 include/net/ipv6.h static inline int ac6_proc_init(struct net *net) { return 0; }
net              1146 include/net/ipv6.h static inline void ac6_proc_exit(struct net *net) { }
net              1152 include/net/ipv6.h struct ctl_table *ipv6_icmp_sysctl_init(struct net *net);
net              1153 include/net/ipv6.h struct ctl_table *ipv6_route_sysctl_init(struct net *net);
net                64 include/net/ipv6_frag.h ip6frag_expire_frag_queue(struct net *net, struct frag_queue *fq)
net                79 include/net/ipv6_frag.h 	dev = dev_get_by_index_rcu(net, fq->iif);
net                83 include/net/ipv6_frag.h 	__IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
net                84 include/net/ipv6_frag.h 	__IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMTIMEOUT);
net                27 include/net/ipv6_stubs.h 	struct dst_entry *(*ipv6_dst_lookup_flow)(struct net *net,
net                33 include/net/ipv6_stubs.h 	struct fib6_table *(*fib6_get_table)(struct net *net, u32 id);
net                34 include/net/ipv6_stubs.h 	int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6,
net                36 include/net/ipv6_stubs.h 	int (*fib6_table_lookup)(struct net *net, struct fib6_table *table,
net                39 include/net/ipv6_stubs.h 	void (*fib6_select_path)(const struct net *net, struct fib6_result *res,
net                46 include/net/ipv6_stubs.h 	int (*fib6_nh_init)(struct net *net, struct fib6_nh *fib6_nh,
net                50 include/net/ipv6_stubs.h 	void (*fib6_update_sernum)(struct net *net, struct fib6_info *rt);
net                51 include/net/ipv6_stubs.h 	int (*ip6_del_rt)(struct net *net, struct fib6_info *rt);
net                52 include/net/ipv6_stubs.h 	void (*fib6_rt_update)(struct net *net, struct fib6_info *rt,
net                67 include/net/ipv6_stubs.h 	struct sock *(*udp6_lib_lookup)(struct net *net,
net                21 include/net/ipx.h 	__be32  net;
net               143 include/net/ipx.h struct ipx_interface *ipxitf_find_using_net(__be32 net);
net               152 include/net/ipx.h struct ipx_route *ipxrtr_lookup(__be32 net);
net                40 include/net/l3mdev.h int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
net                43 include/net/l3mdev.h void l3mdev_update_flow(struct net *net, struct flowi *fl);
net                57 include/net/l3mdev.h static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex)
net                65 include/net/l3mdev.h 		dev = dev_get_by_index_rcu(net, ifindex);
net               100 include/net/l3mdev.h int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
net               102 include/net/l3mdev.h int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex)
net               105 include/net/l3mdev.h 	ifindex = l3mdev_master_upper_ifindex_by_index_rcu(net, ifindex);
net               112 include/net/l3mdev.h u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
net               124 include/net/l3mdev.h static inline bool netif_index_is_l3_master(struct net *net, int ifindex)
net               134 include/net/l3mdev.h 	dev = dev_get_by_index_rcu(net, ifindex);
net               143 include/net/l3mdev.h struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6);
net               213 include/net/l3mdev.h static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex)
net               219 include/net/l3mdev.h int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex)
net               224 include/net/l3mdev.h int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex)
net               243 include/net/l3mdev.h static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex)
net               248 include/net/l3mdev.h static inline bool netif_index_is_l3_master(struct net *net, int ifindex)
net               254 include/net/l3mdev.h struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6)
net               284 include/net/l3mdev.h int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
net               290 include/net/l3mdev.h void l3mdev_update_flow(struct net *net, struct flowi *fl)
net                98 include/net/llc_conn.h struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority,
net                30 include/net/lwtunnel.h 	int		(*orig_output)(struct net *net, struct sock *sk, struct sk_buff *skb);
net                42 include/net/lwtunnel.h 	int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
net               126 include/net/lwtunnel.h int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net               244 include/net/lwtunnel.h static inline int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               215 include/net/ndisc.h 	void	(*prefix_rcv_add_addr)(struct net *net, struct net_device *dev,
net               293 include/net/ndisc.h static inline void ndisc_ops_prefix_rcv_add_addr(struct net *net,
net               305 include/net/ndisc.h 		dev->ndisc_ops->prefix_rcv_add_addr(net, dev, pinfo, in6_dev,
net                71 include/net/neighbour.h 	possible_net_t net;
net               173 include/net/neighbour.h 	possible_net_t		net;
net               315 include/net/neighbour.h struct neighbour *neigh_lookup_nodev(struct neigh_table *tbl, struct net *net,
net               346 include/net/neighbour.h struct net *neigh_parms_net(const struct neigh_parms *parms)
net               348 include/net/neighbour.h 	return read_pnet(&parms->net);
net               355 include/net/neighbour.h struct pneigh_entry *pneigh_lookup(struct neigh_table *tbl, struct net *net,
net               358 include/net/neighbour.h struct pneigh_entry *__pneigh_lookup(struct neigh_table *tbl, struct net *net,
net               360 include/net/neighbour.h int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *key,
net               363 include/net/neighbour.h static inline struct net *pneigh_net(const struct pneigh_entry *pneigh)
net               365 include/net/neighbour.h 	return read_pnet(&pneigh->net);
net               189 include/net/net_namespace.h extern struct net init_net;
net               192 include/net/net_namespace.h struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
net               193 include/net/net_namespace.h 			struct net *old_net);
net               195 include/net/net_namespace.h void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
net               201 include/net/net_namespace.h static inline struct net *copy_net_ns(unsigned long flags,
net               202 include/net/net_namespace.h 	struct user_namespace *user_ns, struct net *old_net)
net               209 include/net/net_namespace.h static inline void net_ns_get_ownership(const struct net *net,
net               222 include/net/net_namespace.h struct net *get_net_ns_by_pid(pid_t pid);
net               223 include/net/net_namespace.h struct net *get_net_ns_by_fd(int fd);
net               234 include/net/net_namespace.h void __put_net(struct net *net);
net               236 include/net/net_namespace.h static inline struct net *get_net(struct net *net)
net               238 include/net/net_namespace.h 	refcount_inc(&net->count);
net               239 include/net/net_namespace.h 	return net;
net               242 include/net/net_namespace.h static inline struct net *maybe_get_net(struct net *net)
net               249 include/net/net_namespace.h 	if (!refcount_inc_not_zero(&net->count))
net               250 include/net/net_namespace.h 		net = NULL;
net               251 include/net/net_namespace.h 	return net;
net               254 include/net/net_namespace.h static inline void put_net(struct net *net)
net               256 include/net/net_namespace.h 	if (refcount_dec_and_test(&net->count))
net               257 include/net/net_namespace.h 		__put_net(net);
net               261 include/net/net_namespace.h int net_eq(const struct net *net1, const struct net *net2)
net               266 include/net/net_namespace.h static inline int check_net(const struct net *net)
net               268 include/net/net_namespace.h 	return refcount_read(&net->count) != 0;
net               275 include/net/net_namespace.h static inline struct net *get_net(struct net *net)
net               277 include/net/net_namespace.h 	return net;
net               280 include/net/net_namespace.h static inline void put_net(struct net *net)
net               284 include/net/net_namespace.h static inline struct net *maybe_get_net(struct net *net)
net               286 include/net/net_namespace.h 	return net;
net               290 include/net/net_namespace.h int net_eq(const struct net *net1, const struct net *net2)
net               295 include/net/net_namespace.h static inline int check_net(const struct net *net)
net               306 include/net/net_namespace.h 	struct net *net;
net               310 include/net/net_namespace.h static inline void write_pnet(possible_net_t *pnet, struct net *net)
net               313 include/net/net_namespace.h 	pnet->net = net;
net               317 include/net/net_namespace.h static inline struct net *read_pnet(const possible_net_t *pnet)
net               320 include/net/net_namespace.h 	return pnet->net;
net               345 include/net/net_namespace.h int peernet2id_alloc(struct net *net, struct net *peer, gfp_t gfp);
net               346 include/net/net_namespace.h int peernet2id(struct net *net, struct net *peer);
net               347 include/net/net_namespace.h bool peernet_has_id(struct net *net, struct net *peer);
net               348 include/net/net_namespace.h struct net *get_net_ns_by_id(struct net *net, int id);
net               374 include/net/net_namespace.h 	int (*init)(struct net *net);
net               375 include/net/net_namespace.h 	void (*pre_exit)(struct net *net);
net               376 include/net/net_namespace.h 	void (*exit)(struct net *net);
net               411 include/net/net_namespace.h struct ctl_table_header *register_net_sysctl(struct net *net, const char *path,
net               416 include/net/net_namespace.h static inline struct ctl_table_header *register_net_sysctl(struct net *net,
net               426 include/net/net_namespace.h static inline int rt_genid_ipv4(struct net *net)
net               428 include/net/net_namespace.h 	return atomic_read(&net->ipv4.rt_genid);
net               432 include/net/net_namespace.h static inline int rt_genid_ipv6(const struct net *net)
net               434 include/net/net_namespace.h 	return atomic_read(&net->ipv6.fib6_sernum);
net               438 include/net/net_namespace.h static inline void rt_genid_bump_ipv4(struct net *net)
net               440 include/net/net_namespace.h 	atomic_inc(&net->ipv4.rt_genid);
net               443 include/net/net_namespace.h extern void (*__fib6_flush_trees)(struct net *net);
net               444 include/net/net_namespace.h static inline void rt_genid_bump_ipv6(struct net *net)
net               447 include/net/net_namespace.h 		__fib6_flush_trees(net);
net               452 include/net/net_namespace.h net_ieee802154_lowpan(struct net *net)
net               454 include/net/net_namespace.h 	return &net->ieee802154_lowpan;
net               459 include/net/net_namespace.h static inline void rt_genid_bump_all(struct net *net)
net               461 include/net/net_namespace.h 	rt_genid_bump_ipv4(net);
net               462 include/net/net_namespace.h 	rt_genid_bump_ipv6(net);
net               465 include/net/net_namespace.h static inline int fnhe_genid(struct net *net)
net               467 include/net/net_namespace.h 	return atomic_read(&net->fnhe_genid);
net               470 include/net/net_namespace.h static inline void fnhe_genid_bump(struct net *net)
net               472 include/net/net_namespace.h 	atomic_inc(&net->fnhe_genid);
net                25 include/net/netfilter/br_netfilter.h int br_nf_hook_thresh(unsigned int hook, struct net *net, struct sock *sk,
net                28 include/net/netfilter/br_netfilter.h 		      int (*okfn)(struct net *, struct sock *,
net                41 include/net/netfilter/br_netfilter.h int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb);
net                56 include/net/netfilter/br_netfilter.h 				     const struct net *net);
net                59 include/net/netfilter/br_netfilter.h int br_validate_ipv6(struct net *net, struct sk_buff *skb);
net                64 include/net/netfilter/br_netfilter.h static inline int br_validate_ipv6(struct net *net, struct sk_buff *skb)
net                 5 include/net/netfilter/ipv4/nf_defrag_ipv4.h struct net;
net                 6 include/net/netfilter/ipv4/nf_defrag_ipv4.h int nf_defrag_ipv4_enable(struct net *);
net                 8 include/net/netfilter/ipv4/nf_dup_ipv4.h void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,
net                11 include/net/netfilter/ipv4/nf_reject.h void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook);
net                 8 include/net/netfilter/ipv6/nf_defrag_ipv6.h int nf_defrag_ipv6_enable(struct net *);
net                12 include/net/netfilter/ipv6/nf_defrag_ipv6.h int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user);
net                 7 include/net/netfilter/ipv6/nf_dup_ipv6.h void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum,
net                 8 include/net/netfilter/ipv6/nf_reject.h void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
net                11 include/net/netfilter/ipv6/nf_reject.h void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook);
net               132 include/net/netfilter/nf_conntrack.h extern struct net init_net;
net               134 include/net/netfilter/nf_conntrack.h static inline struct net *nf_ct_net(const struct nf_conn *ct)
net               170 include/net/netfilter/nf_conntrack.h int nf_ct_netns_get(struct net *net, u8 nfproto);
net               171 include/net/netfilter/nf_conntrack.h void nf_ct_netns_put(struct net *net, u8 nfproto);
net               183 include/net/netfilter/nf_conntrack.h 		       u_int16_t l3num, struct net *net,
net               218 include/net/netfilter/nf_conntrack.h void nf_ct_unconfirmed_destroy(struct net *);
net               221 include/net/netfilter/nf_conntrack.h void nf_ct_iterate_cleanup_net(struct net *net,
net               232 include/net/netfilter/nf_conntrack.h struct nf_conn *nf_conntrack_alloc(struct net *net,
net               309 include/net/netfilter/nf_conntrack.h struct nf_conn *nf_ct_tmpl_alloc(struct net *net,
net               322 include/net/netfilter/nf_conntrack.h #define NF_CT_STAT_INC(net, count)	  __this_cpu_inc((net)->ct.stat->count)
net               323 include/net/netfilter/nf_conntrack.h #define NF_CT_STAT_INC_ATOMIC(net, count) this_cpu_inc((net)->ct.stat->count)
net               324 include/net/netfilter/nf_conntrack.h #define NF_CT_STAT_ADD_ATOMIC(net, count, v) this_cpu_add((net)->ct.stat->count, (v))
net                33 include/net/netfilter/nf_conntrack_acct.h 	struct net *net = nf_ct_net(ct);
net                36 include/net/netfilter/nf_conntrack_acct.h 	if (!net->ct.sysctl_acct)
net                51 include/net/netfilter/nf_conntrack_acct.h static inline bool nf_ct_acct_enabled(struct net *net)
net                54 include/net/netfilter/nf_conntrack_acct.h 	return net->ct.sysctl_acct != 0;
net                61 include/net/netfilter/nf_conntrack_acct.h static inline void nf_ct_set_acct(struct net *net, bool enable)
net                64 include/net/netfilter/nf_conntrack_acct.h 	net->ct.sysctl_acct = enable;
net                68 include/net/netfilter/nf_conntrack_acct.h void nf_conntrack_acct_pernet_init(struct net *net);
net                28 include/net/netfilter/nf_conntrack_core.h int nf_conntrack_init_net(struct net *net);
net                29 include/net/netfilter/nf_conntrack_core.h void nf_conntrack_cleanup_net(struct net *net);
net                32 include/net/netfilter/nf_conntrack_core.h void nf_conntrack_proto_pernet_init(struct net *net);
net                33 include/net/netfilter/nf_conntrack_core.h void nf_conntrack_proto_pernet_fini(struct net *net);
net                49 include/net/netfilter/nf_conntrack_core.h nf_conntrack_find_get(struct net *net,
net                17 include/net/netfilter/nf_conntrack_count.h struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int family,
net                19 include/net/netfilter/nf_conntrack_count.h void nf_conncount_destroy(struct net *net, unsigned int family,
net                22 include/net/netfilter/nf_conntrack_count.h unsigned int nf_conncount_count(struct net *net,
net                28 include/net/netfilter/nf_conntrack_count.h int nf_conncount_add(struct net *net, struct nf_conncount_list *list,
net                34 include/net/netfilter/nf_conntrack_count.h bool nf_conncount_gc_list(struct net *net,
net                45 include/net/netfilter/nf_conntrack_ecache.h 	struct net *net = nf_ct_net(ct);
net                48 include/net/netfilter/nf_conntrack_ecache.h 	if (!ctmask && !expmask && net->ct.sysctl_events) {
net                79 include/net/netfilter/nf_conntrack_ecache.h int nf_conntrack_register_notifier(struct net *net,
net                81 include/net/netfilter/nf_conntrack_ecache.h void nf_conntrack_unregister_notifier(struct net *net,
net               108 include/net/netfilter/nf_conntrack_ecache.h 	struct net *net = nf_ct_net(ct);
net               111 include/net/netfilter/nf_conntrack_ecache.h 	if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb))
net               127 include/net/netfilter/nf_conntrack_ecache.h 	const struct net *net = nf_ct_net(ct);
net               129 include/net/netfilter/nf_conntrack_ecache.h 	if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb))
net               142 include/net/netfilter/nf_conntrack_ecache.h 	const struct net *net = nf_ct_net(ct);
net               144 include/net/netfilter/nf_conntrack_ecache.h 	if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb))
net               165 include/net/netfilter/nf_conntrack_ecache.h int nf_ct_expect_register_notifier(struct net *net,
net               167 include/net/netfilter/nf_conntrack_ecache.h void nf_ct_expect_unregister_notifier(struct net *net,
net               174 include/net/netfilter/nf_conntrack_ecache.h void nf_conntrack_ecache_pernet_init(struct net *net);
net               175 include/net/netfilter/nf_conntrack_ecache.h void nf_conntrack_ecache_pernet_fini(struct net *net);
net               189 include/net/netfilter/nf_conntrack_ecache.h static inline void nf_conntrack_ecache_pernet_init(struct net *net)
net               193 include/net/netfilter/nf_conntrack_ecache.h static inline void nf_conntrack_ecache_pernet_fini(struct net *net)
net               208 include/net/netfilter/nf_conntrack_ecache.h static inline void nf_conntrack_ecache_delayed_work(struct net *net)
net               211 include/net/netfilter/nf_conntrack_ecache.h 	if (!delayed_work_pending(&net->ct.ecache_dwork)) {
net               212 include/net/netfilter/nf_conntrack_ecache.h 		schedule_delayed_work(&net->ct.ecache_dwork, HZ);
net               213 include/net/netfilter/nf_conntrack_ecache.h 		net->ct.ecache_dwork_pending = true;
net               218 include/net/netfilter/nf_conntrack_ecache.h static inline void nf_conntrack_ecache_work(struct net *net)
net               221 include/net/netfilter/nf_conntrack_ecache.h 	if (net->ct.ecache_dwork_pending) {
net               222 include/net/netfilter/nf_conntrack_ecache.h 		net->ct.ecache_dwork_pending = false;
net               223 include/net/netfilter/nf_conntrack_ecache.h 		mod_delayed_work(system_wq, &net->ct.ecache_dwork, 0);
net                63 include/net/netfilter/nf_conntrack_expect.h static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp)
net                84 include/net/netfilter/nf_conntrack_expect.h int nf_conntrack_expect_pernet_init(struct net *net);
net                85 include/net/netfilter/nf_conntrack_expect.h void nf_conntrack_expect_pernet_fini(struct net *net);
net                91 include/net/netfilter/nf_conntrack_expect.h __nf_ct_expect_find(struct net *net,
net                96 include/net/netfilter/nf_conntrack_expect.h nf_ct_expect_find_get(struct net *net,
net               101 include/net/netfilter/nf_conntrack_expect.h nf_ct_find_expectation(struct net *net,
net               117 include/net/netfilter/nf_conntrack_expect.h void nf_ct_expect_iterate_net(struct net *net,
net               134 include/net/netfilter/nf_conntrack_helper.h void nf_conntrack_helper_pernet_init(struct net *net);
net                50 include/net/netfilter/nf_conntrack_l4proto.h 				     struct net *net, void *data);
net                65 include/net/netfilter/nf_conntrack_l4proto.h 		       struct net *net,
net                70 include/net/netfilter/nf_conntrack_l4proto.h 			 struct net *net,
net               135 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_generic_init_net(struct net *net);
net               136 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_tcp_init_net(struct net *net);
net               137 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_udp_init_net(struct net *net);
net               138 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_gre_init_net(struct net *net);
net               139 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_dccp_init_net(struct net *net);
net               140 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_sctp_init_net(struct net *net);
net               141 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_icmp_init_net(struct net *net);
net               142 include/net/netfilter/nf_conntrack_l4proto.h void nf_conntrack_icmpv6_init_net(struct net *net);
net               166 include/net/netfilter/nf_conntrack_l4proto.h 			    struct net *net,
net               171 include/net/netfilter/nf_conntrack_l4proto.h void nf_l4proto_log_invalid(const struct sk_buff *skb, struct net *net,
net               180 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_generic_net *nf_generic_pernet(struct net *net)
net               182 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.generic;
net               185 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_tcp_net *nf_tcp_pernet(struct net *net)
net               187 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.tcp;
net               190 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_udp_net *nf_udp_pernet(struct net *net)
net               192 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.udp;
net               195 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_icmp_net *nf_icmp_pernet(struct net *net)
net               197 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.icmp;
net               200 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_icmp_net *nf_icmpv6_pernet(struct net *net)
net               202 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.icmpv6;
net               207 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_dccp_net *nf_dccp_pernet(struct net *net)
net               209 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.dccp;
net               214 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_sctp_net *nf_sctp_pernet(struct net *net)
net               216 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.sctp;
net               221 include/net/netfilter/nf_conntrack_l4proto.h static inline struct nf_gre_net *nf_gre_pernet(struct net *net)
net               223 include/net/netfilter/nf_conntrack_l4proto.h 	return &net->ct.nf_ct_proto.gre;
net                32 include/net/netfilter/nf_conntrack_labels.h 	struct net *net = nf_ct_net(ct);
net                34 include/net/netfilter/nf_conntrack_labels.h 	if (net->ct.labels_used == 0)
net                49 include/net/netfilter/nf_conntrack_labels.h int nf_connlabels_get(struct net *net, unsigned int bit);
net                50 include/net/netfilter/nf_conntrack_labels.h void nf_connlabels_put(struct net *net);
net                54 include/net/netfilter/nf_conntrack_labels.h static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; }
net                55 include/net/netfilter/nf_conntrack_labels.h static inline void nf_connlabels_put(struct net *net) {}
net                94 include/net/netfilter/nf_conntrack_timeout.h void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout);
net                95 include/net/netfilter/nf_conntrack_timeout.h int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, u8 l3num, u8 l4num,
net               109 include/net/netfilter/nf_conntrack_timeout.h static inline int nf_ct_set_timeout(struct net *net, struct nf_conn *ct,
net               123 include/net/netfilter/nf_conntrack_timeout.h extern struct nf_ct_timeout *(*nf_ct_timeout_find_get_hook)(struct net *net, const char *name);
net                30 include/net/netfilter/nf_conntrack_timestamp.h 	struct net *net = nf_ct_net(ct);
net                32 include/net/netfilter/nf_conntrack_timestamp.h 	if (!net->ct.sysctl_tstamp)
net                42 include/net/netfilter/nf_conntrack_timestamp.h void nf_conntrack_tstamp_pernet_init(struct net *net);
net                47 include/net/netfilter/nf_conntrack_timestamp.h static inline void nf_conntrack_tstamp_pernet_init(struct net *net) {}
net                39 include/net/netfilter/nf_log.h typedef void nf_logfn(struct net *net,
net                62 include/net/netfilter/nf_log.h int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger);
net                63 include/net/netfilter/nf_log.h void nf_log_unset(struct net *net, const struct nf_logger *logger);
net                65 include/net/netfilter/nf_log.h int nf_log_bind_pf(struct net *net, u_int8_t pf,
net                67 include/net/netfilter/nf_log.h void nf_log_unbind_pf(struct net *net, u_int8_t pf);
net                78 include/net/netfilter/nf_log.h void nf_log_packet(struct net *net,
net                88 include/net/netfilter/nf_log.h void nf_log_trace(struct net *net,
net               109 include/net/netfilter/nf_log.h void nf_log_dump_sk_uid_gid(struct net *net, struct nf_log_buf *m,
net               117 include/net/netfilter/nf_log.h void nf_log_l2packet(struct net *net, u_int8_t pf,
net                71 include/net/netfilter/nf_nat.h int nf_nat_register_fn(struct net *net, u8 pf, const struct nf_hook_ops *ops,
net                73 include/net/netfilter/nf_nat.h void nf_nat_unregister_fn(struct net *net, u8 pf, const struct nf_hook_ops *ops,
net                94 include/net/netfilter/nf_nat.h int nf_nat_ipv4_register_fn(struct net *net, const struct nf_hook_ops *ops);
net                95 include/net/netfilter/nf_nat.h void nf_nat_ipv4_unregister_fn(struct net *net, const struct nf_hook_ops *ops);
net                97 include/net/netfilter/nf_nat.h int nf_nat_ipv6_register_fn(struct net *net, const struct nf_hook_ops *ops);
net                98 include/net/netfilter/nf_nat.h void nf_nat_ipv6_unregister_fn(struct net *net, const struct nf_hook_ops *ops);
net               100 include/net/netfilter/nf_nat.h int nf_nat_inet_register_fn(struct net *net, const struct nf_hook_ops *ops);
net               101 include/net/netfilter/nf_nat.h void nf_nat_inet_unregister_fn(struct net *net, const struct nf_hook_ops *ops);
net               107 include/net/netfilter/nf_nat.h int nf_xfrm_me_harder(struct net *n, struct sk_buff *s, unsigned int family);
net                30 include/net/netfilter/nf_queue.h 	void		(*nf_hook_drop)(struct net *net);
net                33 include/net/netfilter/nf_queue.h void nf_register_queue_handler(struct net *net, const struct nf_queue_handler *qh);
net                34 include/net/netfilter/nf_queue.h void nf_unregister_queue_handler(struct net *net);
net                 7 include/net/netfilter/nf_socket.h struct sock *nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb,
net                10 include/net/netfilter/nf_socket.h struct sock *nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb,
net                30 include/net/netfilter/nf_synproxy.h static inline struct synproxy_net *synproxy_pernet(struct net *net)
net                32 include/net/netfilter/nf_synproxy.h 	return net_generic(net, synproxy_net_id);
net                52 include/net/netfilter/nf_synproxy.h void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb,
net                56 include/net/netfilter/nf_synproxy.h bool synproxy_recv_client_ack(struct net *net,
net                65 include/net/netfilter/nf_synproxy.h int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net);
net                66 include/net/netfilter/nf_synproxy.h void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net);
net                69 include/net/netfilter/nf_synproxy.h void synproxy_send_client_synack_ipv6(struct net *net,
net                74 include/net/netfilter/nf_synproxy.h bool synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb,
net                80 include/net/netfilter/nf_synproxy.h int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net);
net                81 include/net/netfilter/nf_synproxy.h void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net);
net                84 include/net/netfilter/nf_synproxy.h nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) { return 0; }
net                86 include/net/netfilter/nf_synproxy.h nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net) {};
net                29 include/net/netfilter/nf_tables.h static inline struct net *nft_net(const struct nft_pktinfo *pkt)
net                31 include/net/netfilter/nf_tables.h 	return pkt->xt.state->net;
net               170 include/net/netfilter/nf_tables.h 	struct net			*net;
net               322 include/net/netfilter/nf_tables.h 	bool				(*lookup)(const struct net *net,
net               337 include/net/netfilter/nf_tables.h 	int				(*insert)(const struct net *net,
net               341 include/net/netfilter/nf_tables.h 	void				(*activate)(const struct net *net,
net               344 include/net/netfilter/nf_tables.h 	void *				(*deactivate)(const struct net *net,
net               347 include/net/netfilter/nf_tables.h 	bool				(*flush)(const struct net *net,
net               350 include/net/netfilter/nf_tables.h 	void				(*remove)(const struct net *net,
net               356 include/net/netfilter/nf_tables.h 	void *				(*get)(const struct net *net,
net               426 include/net/netfilter/nf_tables.h 	possible_net_t			net;
net               466 include/net/netfilter/nf_tables.h struct nft_set *nft_set_lookup_global(const struct net *net,
net               801 include/net/netfilter/nf_tables.h 	bool				(*gc)(struct net *net,
net               952 include/net/netfilter/nf_tables.h 	int				(*ops_register)(struct net *net, const struct nf_hook_ops *ops);
net               953 include/net/netfilter/nf_tables.h 	void				(*ops_unregister)(struct net *net, const struct nf_hook_ops *ops);
net              1088 include/net/netfilter/nf_tables.h struct nft_object *nft_obj_lookup(const struct net *net,
net              1093 include/net/netfilter/nf_tables.h void nft_obj_notify(struct net *net, const struct nft_table *table,
net              1252 include/net/netfilter/nf_tables.h static inline unsigned int nft_gencursor_next(const struct net *net)
net              1254 include/net/netfilter/nf_tables.h 	return net->nft.gencursor + 1 == 1 ? 1 : 0;
net              1257 include/net/netfilter/nf_tables.h static inline u8 nft_genmask_next(const struct net *net)
net              1259 include/net/netfilter/nf_tables.h 	return 1 << nft_gencursor_next(net);
net              1262 include/net/netfilter/nf_tables.h static inline u8 nft_genmask_cur(const struct net *net)
net              1265 include/net/netfilter/nf_tables.h 	return 1 << READ_ONCE(net->nft.gencursor);
net              1306 include/net/netfilter/nf_tables.h static inline void nft_set_elem_change_active(const struct net *net,
net              1310 include/net/netfilter/nf_tables.h 	ext->genmask ^= nft_genmask_next(net);
net                29 include/net/netfilter/nf_tables_offload.h 	struct net				*net;
net                65 include/net/netfilter/nf_tables_offload.h struct nft_flow_rule *nft_flow_rule_create(struct net *net, const struct nft_rule *rule);
net                67 include/net/netfilter/nf_tables_offload.h int nft_flow_rule_offload_commit(struct net *net);
net                48 include/net/netfilter/nf_tproxy.h nf_tproxy_handle_time_wait4(struct net *net, struct sk_buff *skb,
net                75 include/net/netfilter/nf_tproxy.h nf_tproxy_get_sock_v4(struct net *net, struct sk_buff *skb,
net               108 include/net/netfilter/nf_tproxy.h 			    struct net *net,
net               114 include/net/netfilter/nf_tproxy.h nf_tproxy_get_sock_v6(struct net *net, struct sk_buff *skb, int thoff,
net                24 include/net/netfilter/xt_rateest.h struct xt_rateest *xt_rateest_lookup(struct net *net, const char *name);
net                25 include/net/netfilter/xt_rateest.h void xt_rateest_put(struct net *net, struct xt_rateest *est);
net               413 include/net/netlabel.h int netlbl_cfg_unlbl_static_add(struct net *net,
net               420 include/net/netlabel.h int netlbl_cfg_unlbl_static_del(struct net *net,
net               521 include/net/netlabel.h static inline int netlbl_cfg_unlbl_static_add(struct net *net,
net               531 include/net/netlabel.h static inline int netlbl_cfg_unlbl_static_del(struct net *net,
net               388 include/net/netlink.h 	struct net		*nl_net;
net                39 include/net/netns/generic.h static inline void *net_generic(const struct net *net, unsigned int id)
net                45 include/net/netns/generic.h 	ng = rcu_dereference(net->gen);
net                 7 include/net/netns/hash.h static inline u32 net_hash_mix(const struct net *net)
net                 9 include/net/netns/hash.h 	return net->hash_mix;
net                85 include/net/nexthop.h 	struct net		*net;
net               103 include/net/nexthop.h struct nexthop *nexthop_find_by_id(struct net *net, u32 id);
net                38 include/net/phonet/phonet.h struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa);
net                39 include/net/phonet/phonet.h void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb);
net                45 include/net/phonet/phonet.h struct sock *pn_find_sock_by_res(struct net *net, u8 res);
net                18 include/net/phonet/pn_dev.h struct phonet_device_list *phonet_device_list(struct net *net);
net                30 include/net/phonet/pn_dev.h struct net_device *phonet_device_get(struct net *net);
net                35 include/net/phonet/pn_dev.h int phonet_address_lookup(struct net *net, u8 addr);
net                41 include/net/phonet/pn_dev.h struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr);
net                42 include/net/phonet/pn_dev.h struct net_device *phonet_route_output(struct net *net, u8 daddr);
net                41 include/net/ping.h 	int (*ipv6_chk_addr)(struct net *net, const struct in6_addr *addr,
net               194 include/net/pkt_cls.h 	struct net *net;
net               203 include/net/pkt_cls.h static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net,
net               209 include/net/pkt_cls.h 	exts->net = net;
net               227 include/net/pkt_cls.h 	exts->net = maybe_get_net(exts->net);
net               228 include/net/pkt_cls.h 	return exts->net != NULL;
net               237 include/net/pkt_cls.h 	if (exts->net)
net               238 include/net/pkt_cls.h 		put_net(exts->net);
net               305 include/net/pkt_cls.h int tcf_exts_validate(struct net *net, struct tcf_proto *tp,
net               341 include/net/pkt_cls.h 	struct net		*net;
net               405 include/net/pkt_cls.h 	int			(*change)(struct net *net, void *,
net               485 include/net/pkt_cls.h tcf_change_indev(struct net *net, struct nlattr *indev_tlv,
net               495 include/net/pkt_cls.h 	dev = __dev_get_by_name(net, indev);
net               150 include/net/pkt_sched.h static inline struct net *qdisc_net(struct Qdisc *q)
net                10 include/net/psample.h 	struct net *net;
net                17 include/net/psample.h struct psample_group *psample_group_get(struct net *net, u32 group_num);
net                23 include/net/raw.h struct sock *__raw_v4_lookup(struct net *net, struct sock *sk,
net                74 include/net/raw.h static inline bool raw_sk_bound_dev_eq(struct net *net, int bound_dev_if,
net                78 include/net/raw.h 	return inet_bound_dev_eq(!!net->ipv4.sysctl_raw_l3mdev_accept,
net                 8 include/net/rawv6.h struct sock *__raw_v6_lookup(struct net *net, struct sock *sk,
net               115 include/net/route.h void rt_cache_flush(struct net *net);
net               117 include/net/route.h struct rtable *ip_route_output_key_hash(struct net *net, struct flowi4 *flp,
net               119 include/net/route.h struct rtable *ip_route_output_key_hash_rcu(struct net *net, struct flowi4 *flp,
net               123 include/net/route.h static inline struct rtable *__ip_route_output_key(struct net *net,
net               126 include/net/route.h 	return ip_route_output_key_hash(net, flp, NULL);
net               129 include/net/route.h struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
net               131 include/net/route.h struct dst_entry *ipv4_blackhole_route(struct net *net,
net               134 include/net/route.h static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp)
net               136 include/net/route.h 	return ip_route_output_flow(net, flp, NULL);
net               139 include/net/route.h static inline struct rtable *ip_route_output(struct net *net, __be32 daddr,
net               148 include/net/route.h 	return ip_route_output_key(net, &fl4);
net               151 include/net/route.h static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4,
net               160 include/net/route.h 			   daddr, saddr, dport, sport, sock_net_uid(net, sk));
net               163 include/net/route.h 	return ip_route_output_flow(net, fl4, sk);
net               166 include/net/route.h static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4,
net               177 include/net/route.h 	return ip_route_output_key(net, fl4);
net               205 include/net/route.h void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif,
net               208 include/net/route.h void ipv4_redirect(struct sk_buff *skb, struct net *net, int oif, u8 protocol);
net               212 include/net/route.h unsigned int inet_addr_type(struct net *net, __be32 addr);
net               213 include/net/route.h unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id);
net               214 include/net/route.h unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev,
net               216 include/net/route.h unsigned int inet_addr_type_dev_table(struct net *net,
net               220 include/net/route.h int ip_rt_ioctl(struct net *, unsigned int cmd, struct rtentry *rt);
net               302 include/net/route.h 	struct net *net = sock_net(sk);
net               309 include/net/route.h 		rt = __ip_route_output_key(net, fl4);
net               316 include/net/route.h 	return ip_route_output_flow(net, fl4, sk);
net               350 include/net/route.h 	struct net *net = dev_net(dst->dev);
net               353 include/net/route.h 		hoplimit = net->ipv4.sysctl_ip_default_ttl;
net                73 include/net/rtnetlink.h 	int			(*newlink)(struct net *src_net,
net               107 include/net/rtnetlink.h 	struct net		*(*get_link_net)(const struct net_device *dev);
net               158 include/net/rtnetlink.h struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
net               159 include/net/rtnetlink.h struct net_device *rtnl_create_link(struct net *net, const char *ifname,
net               169 include/net/rtnetlink.h struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid);
net               303 include/net/sch_generic.h 	int			(*change)(struct net *net, struct sk_buff *,
net               323 include/net/sch_generic.h 	void *			(*tmplt_create)(struct net *net,
net               330 include/net/sch_generic.h 	int			(*dump)(struct net*, struct tcf_proto*, void *,
net               334 include/net/sch_generic.h 					      struct net *net,
net               412 include/net/sch_generic.h 	struct net *net;
net                82 include/net/sctp/sctp.h int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *addr,
net                86 include/net/sctp/sctp.h void sctp_addr_wq_mgmt(struct net *, struct sctp_sockaddr_entry *, int);
net               108 include/net/sctp/sctp.h struct sctp_transport *sctp_transport_get_next(struct net *net,
net               110 include/net/sctp/sctp.h struct sctp_transport *sctp_transport_get_idx(struct net *net,
net               113 include/net/sctp/sctp.h 				  struct net *net,
net               118 include/net/sctp/sctp.h 			    struct net *net, int *pos, void *p);
net               126 include/net/sctp/sctp.h int sctp_primitive_ASSOCIATE(struct net *, struct sctp_association *, void *arg);
net               127 include/net/sctp/sctp.h int sctp_primitive_SHUTDOWN(struct net *, struct sctp_association *, void *arg);
net               128 include/net/sctp/sctp.h int sctp_primitive_ABORT(struct net *, struct sctp_association *, void *arg);
net               129 include/net/sctp/sctp.h int sctp_primitive_SEND(struct net *, struct sctp_association *, void *arg);
net               130 include/net/sctp/sctp.h int sctp_primitive_REQUESTHEARTBEAT(struct net *, struct sctp_association *, void *arg);
net               131 include/net/sctp/sctp.h int sctp_primitive_ASCONF(struct net *, struct sctp_association *, void *arg);
net               132 include/net/sctp/sctp.h int sctp_primitive_RECONF(struct net *net, struct sctp_association *asoc,
net               142 include/net/sctp/sctp.h struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *,
net               160 include/net/sctp/sctp.h 				struct net *net,
net               170 include/net/sctp/sctp.h int __net_init sctp_proc_init(struct net *net);
net               209 include/net/sctp/sctp.h #define SCTP_INC_STATS(net, field)	SNMP_INC_STATS((net)->sctp.sctp_statistics, field)
net               210 include/net/sctp/sctp.h #define __SCTP_INC_STATS(net, field)	__SNMP_INC_STATS((net)->sctp.sctp_statistics, field)
net               211 include/net/sctp/sctp.h #define SCTP_DEC_STATS(net, field)	SNMP_DEC_STATS((net)->sctp.sctp_statistics, field)
net               300 include/net/sctp/sctp.h void sctp_dbg_objcnt_init(struct net *);
net               307 include/net/sctp/sctp.h static inline void sctp_dbg_objcnt_init(struct net *net) { return; }
net               314 include/net/sctp/sctp.h int sctp_sysctl_net_register(struct net *net);
net               315 include/net/sctp/sctp.h void sctp_sysctl_net_unregister(struct net *net);
net               319 include/net/sctp/sctp.h static inline int sctp_sysctl_net_register(struct net *net) { return 0; }
net               320 include/net/sctp/sctp.h static inline void sctp_sysctl_net_unregister(struct net *net) { return; }
net               498 include/net/sctp/sctp.h static inline int sctp_phashfn(struct net *net, __u16 lport)
net               500 include/net/sctp/sctp.h 	return (net_hash_mix(net) + lport) & (sctp_port_hashsize - 1);
net               504 include/net/sctp/sctp.h static inline int sctp_ep_hashfn(struct net *net, __u16 lport)
net               506 include/net/sctp/sctp.h 	return (net_hash_mix(net) + lport) & (sctp_ep_hashsize - 1);
net                54 include/net/sctp/sm.h 					struct net *net,
net               160 include/net/sctp/sm.h 					struct net *net,
net               301 include/net/sctp/sm.h int sctp_do_sm(struct net *net, enum sctp_event_type event_type,
net                89 include/net/sctp/structs.h 	struct net	*net;
net               984 include/net/sctp/structs.h struct sctp_transport *sctp_transport_new(struct net *, const union sctp_addr *,
net              1167 include/net/sctp/structs.h int sctp_bind_addr_copy(struct net *net, struct sctp_bind_addr *dest,
net              1196 include/net/sctp/structs.h int sctp_in_scope(struct net *net, const union sctp_addr *addr,
net              1243 include/net/sctp/structs.h 	struct net *net;
net              1370 include/net/sctp/structs.h 					struct net *, const union sctp_addr *);
net              1371 include/net/sctp/structs.h bool sctp_has_association(struct net *net, const union sctp_addr *laddr,
net              1374 include/net/sctp/structs.h int sctp_verify_init(struct net *net, const struct sctp_endpoint *ep,
net               140 include/net/sctp/ulpevent.h 	struct net *net, struct sk_buff_head *queue,
net                12 include/net/secure_seq.h u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr);
net                15 include/net/secure_seq.h u32 secure_tcpv6_ts_off(const struct net *net,
net                44 include/net/seg6.h static inline struct seg6_pernet_data *seg6_pernet(struct net *net)
net                47 include/net/seg6.h 	return net->ipv6.seg6_data;
net                45 include/net/seg6_hmac.h extern struct seg6_hmac_info *seg6_hmac_info_lookup(struct net *net, u32 key);
net                46 include/net/seg6_hmac.h extern int seg6_hmac_info_add(struct net *net, u32 key,
net                48 include/net/seg6_hmac.h extern int seg6_hmac_info_del(struct net *net, u32 key);
net                49 include/net/seg6_hmac.h extern int seg6_push_hmac(struct net *net, struct in6_addr *saddr,
net                54 include/net/seg6_hmac.h extern int seg6_hmac_net_init(struct net *net);
net                55 include/net/seg6_hmac.h extern void seg6_hmac_net_exit(struct net *net);
net               112 include/net/sock.h struct net;
net              1328 include/net/sock.h void sock_prot_inuse_add(struct net *net, struct proto *prot, int inc);
net              1329 include/net/sock.h int sock_prot_inuse_get(struct net *net, struct proto *proto);
net              1330 include/net/sock.h int sock_inuse_get(struct net *net);
net              1332 include/net/sock.h static inline void sock_prot_inuse_add(struct net *net, struct proto *prot,
net              1602 include/net/sock.h struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
net              1846 include/net/sock.h static inline kuid_t sock_net_uid(const struct net *net, const struct sock *sk)
net              1848 include/net/sock.h 	return sk ? sk->sk_uid : make_kuid(net->user_ns, 0);
net              2473 include/net/sock.h struct net *sock_net(const struct sock *sk)
net              2479 include/net/sock.h void sock_net_set(struct sock *sk, struct net *net)
net              2481 include/net/sock.h 	write_pnet(&sk->sk_net, net);
net                 9 include/net/tc_act/tc_connmark.h 	struct net *net;
net                 9 include/net/tc_act/tc_ctinfo.h 	struct net *net;
net               308 include/net/tcp.h #define TCP_INC_STATS(net, field)	SNMP_INC_STATS((net)->mib.tcp_statistics, field)
net               309 include/net/tcp.h #define __TCP_INC_STATS(net, field)	__SNMP_INC_STATS((net)->mib.tcp_statistics, field)
net               310 include/net/tcp.h #define TCP_DEC_STATS(net, field)	SNMP_DEC_STATS((net)->mib.tcp_statistics, field)
net               311 include/net/tcp.h #define TCP_ADD_STATS(net, field, val)	SNMP_ADD_STATS((net)->mib.tcp_statistics, field, val)
net               412 include/net/tcp.h void tcp_parse_options(const struct net *net, const struct sk_buff *skb,
net               552 include/net/tcp.h bool cookie_timestamp_decode(const struct net *net,
net               555 include/net/tcp.h 		   const struct net *net, const struct dst_entry *dst);
net               925 include/net/tcp.h static inline bool inet_exact_dif_match(struct net *net, struct sk_buff *skb)
net               928 include/net/tcp.h 	if (!net->ipv4.sysctl_tcp_l3mdev_accept &&
net              1083 include/net/tcp.h int tcp_set_default_congestion_control(struct net *net, const char *name);
net              1084 include/net/tcp.h void tcp_get_default_congestion_control(struct net *net, char *name);
net              1099 include/net/tcp.h u32 tcp_ca_get_key_by_name(struct net *net, const char *name, bool *ecn_ca);
net              1426 include/net/tcp.h 	struct net *net = sock_net((struct sock *)tp);
net              1428 include/net/tcp.h 	return tp->keepalive_intvl ? : net->ipv4.sysctl_tcp_keepalive_intvl;
net              1433 include/net/tcp.h 	struct net *net = sock_net((struct sock *)tp);
net              1435 include/net/tcp.h 	return tp->keepalive_time ? : net->ipv4.sysctl_tcp_keepalive_time;
net              1440 include/net/tcp.h 	struct net *net = sock_net((struct sock *)tp);
net              1442 include/net/tcp.h 	return tp->keepalive_probes ? : net->ipv4.sysctl_tcp_keepalive_probes;
net              1506 include/net/tcp.h bool tcp_oow_rate_limited(struct net *net, const struct sk_buff *skb,
net              1509 include/net/tcp.h static inline void tcp_mib_init(struct net *net)
net              1512 include/net/tcp.h 	TCP_ADD_STATS(net, TCP_MIB_RTOALGORITHM, 1);
net              1513 include/net/tcp.h 	TCP_ADD_STATS(net, TCP_MIB_RTOMIN, TCP_RTO_MIN*1000/HZ);
net              1514 include/net/tcp.h 	TCP_ADD_STATS(net, TCP_MIB_RTOMAX, TCP_RTO_MAX*1000/HZ);
net              1515 include/net/tcp.h 	TCP_ADD_STATS(net, TCP_MIB_MAXCONN, -1);
net              1650 include/net/tcp.h void tcp_fastopen_ctx_destroy(struct net *net);
net              1651 include/net/tcp.h int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk,
net              1658 include/net/tcp.h void tcp_fastopen_init_key_once(struct net *net);
net              1933 include/net/tcp.h 	struct net *net = sock_net((struct sock *)tp);
net              1934 include/net/tcp.h 	return tp->notsent_lowat ?: net->ipv4.sysctl_tcp_notsent_lowat;
net              1996 include/net/tcp.h 	u32 (*init_ts_off)(const struct net *net, const struct sk_buff *skb);
net              2050 include/net/tcp.h static inline struct ip_options_rcu *tcp_v4_save_options(struct net *net,
net              2060 include/net/tcp.h 		if (dopt && __ip_options_echo(net, &dopt->opt, skb, opt)) {
net                44 include/net/transp_v6.h int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg,
net                80 include/net/udp.h 					     struct net *net, unsigned int num)
net                82 include/net/udp.h 	return &table->hash[udp_hashfn(net, num, table->mask)];
net               210 include/net/udp.h static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb,
net               217 include/net/udp.h 		inet_get_local_port_range(net, &min, &max);
net               251 include/net/udp.h static inline bool udp_sk_bound_dev_eq(struct net *net, int bound_dev_if,
net               255 include/net/udp.h 	return inet_bound_dev_eq(!!net->ipv4.sysctl_udp_l3mdev_accept,
net               304 include/net/udp.h struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
net               306 include/net/udp.h struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
net               311 include/net/udp.h struct sock *udp6_lib_lookup(struct net *net,
net               315 include/net/udp.h struct sock *__udp6_lib_lookup(struct net *net,
net               399 include/net/udp.h #define UDP_INC_STATS(net, field, is_udplite)		      do { \
net               400 include/net/udp.h 	if (is_udplite) SNMP_INC_STATS((net)->mib.udplite_statistics, field);       \
net               401 include/net/udp.h 	else		SNMP_INC_STATS((net)->mib.udp_statistics, field);  }  while(0)
net               402 include/net/udp.h #define __UDP_INC_STATS(net, field, is_udplite) 	      do { \
net               403 include/net/udp.h 	if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_statistics, field);         \
net               404 include/net/udp.h 	else		__SNMP_INC_STATS((net)->mib.udp_statistics, field);    }  while(0)
net               406 include/net/udp.h #define __UDP6_INC_STATS(net, field, is_udplite)	    do { \
net               407 include/net/udp.h 	if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_stats_in6, field);\
net               408 include/net/udp.h 	else		__SNMP_INC_STATS((net)->mib.udp_stats_in6, field);  \
net               410 include/net/udp.h #define UDP6_INC_STATS(net, field, __lite)		    do { \
net               411 include/net/udp.h 	if (__lite) SNMP_INC_STATS((net)->mib.udplite_stats_in6, field);  \
net               412 include/net/udp.h 	else	    SNMP_INC_STATS((net)->mib.udp_stats_in6, field);      \
net                40 include/net/udp_tunnel.h int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg,
net                44 include/net/udp_tunnel.h int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg,
net                47 include/net/udp_tunnel.h static inline int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg,
net                54 include/net/udp_tunnel.h static inline int udp_sock_create(struct net *net,
net                59 include/net/udp_tunnel.h 		return udp_sock_create4(net, cfg, sockp);
net                62 include/net/udp_tunnel.h 		return udp_sock_create6(net, cfg, sockp);
net                89 include/net/udp_tunnel.h void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
net               242 include/net/vxlan.h 	struct net	  *net;		/* netns for packet i/o */
net               292 include/net/vxlan.h struct net_device *vxlan_dev_create(struct net *net, const char *name,
net                 7 include/net/wext.h struct net;
net                10 include/net/wext.h int wext_handle_ioctl(struct net *net, unsigned int cmd,
net                12 include/net/wext.h int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
net                18 include/net/wext.h static inline int wext_handle_ioctl(struct net *net, unsigned int cmd,
net                23 include/net/wext.h static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
net                31 include/net/wext.h int wext_proc_init(struct net *net);
net                32 include/net/wext.h void wext_proc_exit(struct net *net);
net                34 include/net/wext.h static inline int wext_proc_init(struct net *net)
net                38 include/net/wext.h static inline void wext_proc_exit(struct net *net)
net                52 include/net/xfrm.h #define XFRM_INC_STATS(net, field)	SNMP_INC_STATS((net)->mib.xfrm_statistics, field)
net                54 include/net/xfrm.h #define XFRM_INC_STATS(net, field)	((void)(net))
net               262 include/net/xfrm.h static inline struct net *xs_net(struct xfrm_state *x)
net               293 include/net/xfrm.h 	struct net *net;
net               321 include/net/xfrm.h 	struct dst_entry	*(*dst_lookup)(struct net *net,
net               326 include/net/xfrm.h 	int			(*get_saddr)(struct net *net, int oif,
net               333 include/net/xfrm.h 	struct dst_entry	*(*blackhole_route)(struct net *net, struct dst_entry *orig);
net               362 include/net/xfrm.h 	int			(*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
net               532 include/net/xfrm.h static inline struct net *xp_net(const struct xfrm_policy *xp)
net               576 include/net/xfrm.h 	int			(*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
net               993 include/net/xfrm.h 	struct net *net;		/* netns for packet i/o */
net              1093 include/net/xfrm.h 	struct net *net = dev_net(skb->dev);
net              1099 include/net/xfrm.h 	return	(!net->xfrm.policy_count[dir] && !secpath_exists(skb)) ||
net              1151 include/net/xfrm.h 	struct net *net = dev_net(skb->dev);
net              1153 include/net/xfrm.h 	return	!net->xfrm.policy_count[XFRM_POLICY_OUT] ||
net              1435 include/net/xfrm.h int xfrm_state_init(struct net *net);
net              1436 include/net/xfrm.h void xfrm_state_fini(struct net *net);
net              1458 include/net/xfrm.h int xfrm_proc_init(struct net *net);
net              1459 include/net/xfrm.h void xfrm_proc_fini(struct net *net);
net              1462 include/net/xfrm.h int xfrm_sysctl_init(struct net *net);
net              1464 include/net/xfrm.h void xfrm_sysctl_fini(struct net *net);
net              1466 include/net/xfrm.h static inline void xfrm_sysctl_fini(struct net *net)
net              1473 include/net/xfrm.h int xfrm_state_walk(struct net *net, struct xfrm_state_walk *walk,
net              1475 include/net/xfrm.h void xfrm_state_walk_done(struct xfrm_state_walk *walk, struct net *net);
net              1476 include/net/xfrm.h struct xfrm_state *xfrm_state_alloc(struct net *net);
net              1484 include/net/xfrm.h struct xfrm_state *xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id,
net              1489 include/net/xfrm.h struct xfrm_state *xfrm_state_lookup_byspi(struct net *net, __be32 spi,
net              1495 include/net/xfrm.h struct xfrm_state *xfrm_state_lookup(struct net *net, u32 mark,
net              1498 include/net/xfrm.h struct xfrm_state *xfrm_state_lookup_byaddr(struct net *net, u32 mark,
net              1537 include/net/xfrm.h struct xfrm_state *xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq);
net              1539 include/net/xfrm.h int xfrm_state_flush(struct net *net, u8 proto, bool task_valid, bool sync);
net              1540 include/net/xfrm.h int xfrm_dev_state_flush(struct net *net, struct net_device *dev, bool task_valid);
net              1541 include/net/xfrm.h void xfrm_sad_getinfo(struct net *net, struct xfrmk_sadinfo *si);
net              1542 include/net/xfrm.h void xfrm_spd_getinfo(struct net *net, struct xfrmk_spdinfo *si);
net              1551 include/net/xfrm.h 		     int (*finish)(struct net *, struct sock *,
net              1578 include/net/xfrm.h int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net              1599 include/net/xfrm.h __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr);
net              1600 include/net/xfrm.h __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr);
net              1602 include/net/xfrm.h int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
net              1625 include/net/xfrm.h struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, int oif,
net              1630 include/net/xfrm.h struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp);
net              1633 include/net/xfrm.h int xfrm_policy_walk(struct net *net, struct xfrm_policy_walk *walk,
net              1636 include/net/xfrm.h void xfrm_policy_walk_done(struct xfrm_policy_walk *walk, struct net *net);
net              1638 include/net/xfrm.h struct xfrm_policy *xfrm_policy_bysel_ctx(struct net *net, u32 mark, u32 if_id,
net              1643 include/net/xfrm.h struct xfrm_policy *xfrm_policy_byid(struct net *net, u32 mark, u32 if_id, u8,
net              1645 include/net/xfrm.h int xfrm_policy_flush(struct net *net, u8 type, bool task_valid);
net              1646 include/net/xfrm.h void xfrm_policy_hash_rebuild(struct net *net);
net              1650 include/net/xfrm.h struct xfrm_state *xfrm_find_acq(struct net *net, const struct xfrm_mark *mark,
net              1662 include/net/xfrm.h struct xfrm_state *xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net);
net              1668 include/net/xfrm.h 		 struct xfrm_kmaddress *k, struct net *net,
net              1674 include/net/xfrm.h int km_report(struct net *net, u8 proto, struct xfrm_selector *sel,
net              1720 include/net/xfrm.h static inline int xfrm_aevent_is_on(struct net *net)
net              1726 include/net/xfrm.h 	nlsk = rcu_dereference(net->xfrm.nlsk);
net              1733 include/net/xfrm.h static inline int xfrm_acquire_is_on(struct net *net)
net              1739 include/net/xfrm.h 	nlsk = rcu_dereference(net->xfrm.nlsk);
net              1851 include/net/xfrm.h int xfrm_dev_state_add(struct net *net, struct xfrm_state *x,
net              1915 include/net/xfrm.h static inline int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, struct xfrm_user_offload *xuo)
net                69 include/rdma/ib_addr.h 	struct net *net;
net              4663 include/rdma/ib_verbs.h 			   const struct net *net);
net               139 include/rdma/rdma_cm.h struct rdma_cm_id *__rdma_create_id(struct net *net,
net               161 include/rdma/rdma_cm.h #define rdma_create_id(net, event_handler, context, ps, qp_type) \
net               162 include/rdma/rdma_cm.h 	__rdma_create_id((net), (event_handler), (context), (ps), (qp_type), \
net                84 include/rdma/rdma_netlink.h int rdma_nl_unicast(struct net *net, struct sk_buff *skb, u32 pid);
net                93 include/rdma/rdma_netlink.h int rdma_nl_unicast_wait(struct net *net, struct sk_buff *skb, __u32 pid);
net               103 include/rdma/rdma_netlink.h int rdma_nl_multicast(struct net *net, struct sk_buff *skb,
net                15 include/trace/events/fib6.h 	TP_PROTO(const struct net *net, const struct fib6_result *res,
net                18 include/trace/events/fib6.h 	TP_ARGS(net, res, table, flp),
net                70 include/trace/events/fib6.h 		if (res->f6i == net->ipv6.fib6_null_entry) {
net                 3 include/trace/events/net.h #define TRACE_SYSTEM net
net               108 kernel/audit.c 	struct net *net;
net               201 kernel/audit.c 	struct net *net;
net               285 kernel/audit.c static struct sock *audit_get_sk(const struct net *net)
net               289 kernel/audit.c 	if (!net)
net               292 kernel/audit.c 	aunet = net_generic(net, audit_net_id);
net               478 kernel/audit.c 	put_net(ac->net);
net               492 kernel/audit.c static int auditd_set(struct pid *pid, u32 portid, struct net *net)
net               497 kernel/audit.c 	if (!pid || !net)
net               505 kernel/audit.c 	ac_new->net = get_net(net);
net               655 kernel/audit.c 	struct net *net;
net               674 kernel/audit.c 	net = get_net(ac->net);
net               675 kernel/audit.c 	sk = audit_get_sk(net);
net               680 kernel/audit.c 	put_net(net);
net               809 kernel/audit.c 	struct net *net = NULL;
net               824 kernel/audit.c 		net = get_net(ac->net);
net               825 kernel/audit.c 		sk = audit_get_sk(net);
net               863 kernel/audit.c 		if (net) {
net               864 kernel/audit.c 			put_net(net);
net               865 kernel/audit.c 			net = NULL;
net               886 kernel/audit.c 	struct sock *sk = audit_get_sk(dest->net);
net               895 kernel/audit.c 	put_net(dest->net);
net               929 kernel/audit.c 	struct sock *sk = audit_get_sk(reply->net);
net               937 kernel/audit.c 	put_net(reply->net);
net               958 kernel/audit.c 	struct net *net = sock_net(NETLINK_CB(request_skb).sk);
net               971 kernel/audit.c 	reply->net = get_net(net);
net              1528 kernel/audit.c static int audit_bind(struct net *net, int group)
net              1536 kernel/audit.c static int __net_init audit_net_init(struct net *net)
net              1545 kernel/audit.c 	struct audit_net *aunet = net_generic(net, audit_net_id);
net              1547 kernel/audit.c 	aunet->sk = netlink_kernel_create(net, NETLINK_AUDIT, &cfg);
net              1557 kernel/audit.c static void __net_exit audit_net_exit(struct net *net)
net              1559 kernel/audit.c 	struct audit_net *aunet = net_generic(net, audit_net_id);
net               228 kernel/audit.h 	struct net *net;
net              1165 kernel/auditfilter.c 	struct net *net = sock_net(NETLINK_CB(request_skb).sk);
net              1179 kernel/auditfilter.c 	dest->net = get_net(net);
net               584 kernel/bpf/devmap.c static struct bpf_dtab_netdev *__dev_map_alloc_node(struct net *net,
net               610 kernel/bpf/devmap.c 	dev->dev = dev_get_by_index(net, ifindex);
net               623 kernel/bpf/devmap.c static int __dev_map_update_elem(struct net *net, struct bpf_map *map,
net               641 kernel/bpf/devmap.c 		dev = __dev_map_alloc_node(net, dtab, ifindex, i);
net               664 kernel/bpf/devmap.c static int __dev_map_hash_update_elem(struct net *net, struct bpf_map *map,
net               683 kernel/bpf/devmap.c 	dev = __dev_map_alloc_node(net, dtab, ifindex, idx);
net               273 kernel/bpf/offload.c 	struct net *net;
net               280 kernel/bpf/offload.c 		net = dev_net(aux->offload->netdev);
net               281 kernel/bpf/offload.c 		get_net(net);
net               282 kernel/bpf/offload.c 		ns = &net->ns;
net               364 kernel/bpf/offload.c 	struct net *net = current->nsproxy->net_ns;
net               383 kernel/bpf/offload.c 	offmap->netdev = __dev_get_by_index(net, attr->map_ifindex);
net               500 kernel/bpf/offload.c 	struct net *net;
net               507 kernel/bpf/offload.c 		net = dev_net(args->offmap->netdev);
net               508 kernel/bpf/offload.c 		get_net(net);
net               509 kernel/bpf/offload.c 		ns = &net->ns;
net              1232 kernel/sysctl_binary.c 			struct net *net = current->nsproxy->net_ns;
net              1234 kernel/sysctl_binary.c 			dev = dev_get_by_index(net, ctl_name);
net               389 lib/kobject_uevent.c 	const struct net *net = NULL;
net               405 lib/kobject_uevent.c 			net = kobj->ktype->namespace(kobj);
net               407 lib/kobject_uevent.c 	if (!net)
net               411 lib/kobject_uevent.c 		ret = uevent_net_broadcast_tagged(net->uevent_sock->sk, env,
net               727 lib/kobject_uevent.c 	struct net *net;
net               738 lib/kobject_uevent.c 	net = sock_net(NETLINK_CB(skb).sk);
net               739 lib/kobject_uevent.c 	if (!netlink_ns_capable(skb, net->user_ns, CAP_SYS_ADMIN)) {
net               745 lib/kobject_uevent.c 	ret = uevent_net_broadcast(net->uevent_sock->sk, skb, extack);
net               756 lib/kobject_uevent.c static int uevent_net_init(struct net *net)
net               769 lib/kobject_uevent.c 	ue_sk->sk = netlink_kernel_create(net, NETLINK_KOBJECT_UEVENT, &cfg);
net               776 lib/kobject_uevent.c 	net->uevent_sock = ue_sk;
net               788 lib/kobject_uevent.c static void uevent_net_exit(struct net *net)
net               790 lib/kobject_uevent.c 	struct uevent_sock *ue_sk = net->uevent_sock;
net               196 net/6lowpan/ndisc.c static void lowpan_ndisc_prefix_rcv_add_addr(struct net *net,
net               212 net/6lowpan/ndisc.c 		err = addrconf_prefix_rcv_add_addr(net, dev, pinfo, in6_dev,
net               217 net/8021q/vlan.c 	struct net *net = dev_net(real_dev);
net               218 net/8021q/vlan.c 	struct vlan_net *vn = net_generic(net, vlan_net_id);
net               262 net/8021q/vlan.c 	dev_net_set(new_dev, net);
net               541 net/8021q/vlan.c static int vlan_ioctl_handler(struct net *net, void __user *arg)
net               565 net/8021q/vlan.c 		dev = __dev_get_by_name(net, args.device1);
net               577 net/8021q/vlan.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               587 net/8021q/vlan.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               596 net/8021q/vlan.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               605 net/8021q/vlan.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               610 net/8021q/vlan.c 			vn = net_generic(net, vlan_net_id);
net               620 net/8021q/vlan.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               627 net/8021q/vlan.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               658 net/8021q/vlan.c static int __net_init vlan_init_net(struct net *net)
net               660 net/8021q/vlan.c 	struct vlan_net *vn = net_generic(net, vlan_net_id);
net               665 net/8021q/vlan.c 	err = vlan_proc_init(net);
net               670 net/8021q/vlan.c static void __net_exit vlan_exit_net(struct net *net)
net               672 net/8021q/vlan.c 	vlan_proc_cleanup(net);
net               136 net/8021q/vlan_netlink.c static int vlan_newlink(struct net *src_net, struct net_device *dev,
net               275 net/8021q/vlan_netlink.c static struct net *vlan_get_link_net(const struct net_device *dev)
net                92 net/8021q/vlanproc.c void vlan_proc_cleanup(struct net *net)
net                94 net/8021q/vlanproc.c 	struct vlan_net *vn = net_generic(net, vlan_net_id);
net               100 net/8021q/vlanproc.c 		remove_proc_entry(name_root, net->proc_net);
net               111 net/8021q/vlanproc.c int __net_init vlan_proc_init(struct net *net)
net               113 net/8021q/vlanproc.c 	struct vlan_net *vn = net_generic(net, vlan_net_id);
net               115 net/8021q/vlanproc.c 	vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net);
net               128 net/8021q/vlanproc.c 	vlan_proc_cleanup(net);
net               171 net/8021q/vlanproc.c 	struct net *net = seq_file_net(seq);
net               178 net/8021q/vlanproc.c 	for_each_netdev_rcu(net, dev) {
net               192 net/8021q/vlanproc.c 	struct net *net = seq_file_net(seq);
net               198 net/8021q/vlanproc.c 		dev = net_device_entry(&net->dev_base_head);
net               200 net/8021q/vlanproc.c 	for_each_netdev_continue_rcu(net, dev) {
net               218 net/8021q/vlanproc.c 	struct net *net = seq_file_net(seq);
net               219 net/8021q/vlanproc.c 	struct vlan_net *vn = net_generic(net, vlan_net_id);
net                 6 net/8021q/vlanproc.h struct net;
net                 8 net/8021q/vlanproc.h int vlan_proc_init(struct net *net);
net                11 net/8021q/vlanproc.h void vlan_proc_cleanup(struct net *net);
net                15 net/8021q/vlanproc.h #define vlan_proc_init(net)	(0)
net                16 net/8021q/vlanproc.h #define vlan_proc_cleanup(net)	do {} while (0)
net               394 net/appletalk/ddp.c static struct atalk_iface *atalk_find_interface(__be16 net, int node)
net               403 net/appletalk/ddp.c 		    iface->address.s_net == net &&
net               408 net/appletalk/ddp.c 		if (node == ATADDR_ANYNODE && net != ATADDR_ANYNET &&
net               409 net/appletalk/ddp.c 		    ntohs(iface->nets.nr_firstnet) <= ntohs(net) &&
net               410 net/appletalk/ddp.c 		    ntohs(net) <= ntohs(iface->nets.nr_lastnet))
net              1011 net/appletalk/ddp.c static int atalk_create(struct net *net, struct socket *sock, int protocol,
net              1017 net/appletalk/ddp.c 	if (!net_eq(net, &init_net))
net              1032 net/appletalk/ddp.c 	sk = sk_alloc(net, PF_APPLETALK, GFP_KERNEL, &ddp_proto, kern);
net               140 net/atm/common.c int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern)
net               148 net/atm/common.c 	sk = sk_alloc(net, family, GFP_KERNEL, &vcc_proto, kern);
net                14 net/atm/common.h int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern);
net               133 net/atm/pvc.c  static int pvc_create(struct net *net, struct socket *sock, int protocol,
net               136 net/atm/pvc.c  	if (net != &init_net)
net               140 net/atm/pvc.c  	return vcc_create(net, sock, protocol, PF_ATMPVC, kern);
net                31 net/atm/svc.c  static int svc_create(struct net *net, struct socket *sock, int protocol,
net               656 net/atm/svc.c  static int svc_create(struct net *net, struct socket *sock, int protocol,
net               661 net/atm/svc.c  	if (!net_eq(net, &init_net))
net               665 net/atm/svc.c  	error = vcc_create(net, sock, protocol, AF_ATMSVC, kern);
net               807 net/ax25/af_ax25.c static int ax25_create(struct net *net, struct socket *sock, int protocol,
net               816 net/ax25/af_ax25.c 	if (!net_eq(net, &init_net))
net               867 net/ax25/af_ax25.c 	sk = sk_alloc(net, PF_AX25, GFP_ATOMIC, &ax25_proto, kern);
net              2208 net/batman-adv/bridge_loop_avoidance.c 	struct net *net = sock_net(cb->skb->sk);
net              2222 net/batman-adv/bridge_loop_avoidance.c 	soft_iface = dev_get_by_index(net, ifindex);
net              2446 net/batman-adv/bridge_loop_avoidance.c 	struct net *net = sock_net(cb->skb->sk);
net              2460 net/batman-adv/bridge_loop_avoidance.c 	soft_iface = dev_get_by_index(net, ifindex);
net               320 net/batman-adv/debugfs.c 	struct net *net = dev_net(hard_iface->net_dev);
net               323 net/batman-adv/debugfs.c 	if (net != &init_net)
net               359 net/batman-adv/debugfs.c 	struct net *net = dev_net(hard_iface->net_dev);
net               361 net/batman-adv/debugfs.c 	if (net != &init_net)
net               380 net/batman-adv/debugfs.c 	struct net *net = dev_net(dev);
net               382 net/batman-adv/debugfs.c 	if (net != &init_net)
net               431 net/batman-adv/debugfs.c 	struct net *net = dev_net(dev);
net               433 net/batman-adv/debugfs.c 	if (net != &init_net)
net               993 net/batman-adv/distributed-arp-table.c 	struct net *net = sock_net(cb->skb->sk);
net              1007 net/batman-adv/distributed-arp-table.c 	soft_iface = dev_get_by_index(net, ifindex);
net               562 net/batman-adv/gateway_client.c 	struct net *net = sock_net(cb->skb->sk);
net               573 net/batman-adv/gateway_client.c 	soft_iface = dev_get_by_index(net, ifindex);
net                91 net/batman-adv/hard-interface.c static struct net *batadv_getlink_net(const struct net_device *netdev,
net                92 net/batman-adv/hard-interface.c 				      struct net *fallback_net)
net               115 net/batman-adv/hard-interface.c 				  struct net *net1,
net               117 net/batman-adv/hard-interface.c 				  struct net *net2)
net               121 net/batman-adv/hard-interface.c 	const struct net *dev1_parent_net;
net               122 net/batman-adv/hard-interface.c 	const struct net *dev2_parent_net;
net               151 net/batman-adv/hard-interface.c 	struct net *net = dev_net(net_dev);
net               153 net/batman-adv/hard-interface.c 	struct net *parent_net;
net               165 net/batman-adv/hard-interface.c 	parent_net = batadv_getlink_net(net_dev, net);
net               168 net/batman-adv/hard-interface.c 	parent_dev = __dev_get_by_index((struct net *)parent_net,
net               176 net/batman-adv/hard-interface.c 	if (batadv_mutual_parents(net_dev, net, parent_dev, parent_net))
net               217 net/batman-adv/hard-interface.c 	struct net *real_net;
net               218 net/batman-adv/hard-interface.c 	struct net *net;
net               235 net/batman-adv/hard-interface.c 	net = dev_net(hard_iface->soft_iface);
net               237 net/batman-adv/hard-interface.c 	real_net = batadv_getlink_net(netdev, net);
net               712 net/batman-adv/hard-interface.c 				   struct net *net, const char *iface_name)
net               725 net/batman-adv/hard-interface.c 	soft_iface = dev_get_by_name(net, iface_name);
net               728 net/batman-adv/hard-interface.c 		soft_iface = batadv_softif_create(net, iface_name);
net               100 net/batman-adv/hard-interface.h 				   struct net *net, const char *iface_name);
net              2332 net/batman-adv/multicast.c 	struct net *net = sock_net(cb->skb->sk);
net              2342 net/batman-adv/multicast.c 	soft_iface = dev_get_by_index(net, ifindex);
net               956 net/batman-adv/netlink.c 	struct net *net = sock_net(cb->skb->sk);
net               970 net/batman-adv/netlink.c 	soft_iface = dev_get_by_index(net, ifindex);
net              1146 net/batman-adv/netlink.c batadv_get_softif_from_info(struct net *net, struct genl_info *info)
net              1156 net/batman-adv/netlink.c 	soft_iface = dev_get_by_index(net, ifindex);
net              1181 net/batman-adv/netlink.c batadv_get_hardif_from_info(struct batadv_priv *bat_priv, struct net *net,
net              1193 net/batman-adv/netlink.c 	hard_dev = dev_get_by_index(net, hardif_index);
net              1227 net/batman-adv/netlink.c batadv_get_vlan_from_info(struct batadv_priv *bat_priv, struct net *net,
net              1256 net/batman-adv/netlink.c 	struct net *net = genl_info_net(info);
net              1275 net/batman-adv/netlink.c 		soft_iface = batadv_get_softif_from_info(net, info);
net              1284 net/batman-adv/netlink.c 		hard_iface = batadv_get_hardif_from_info(bat_priv, net, info);
net              1294 net/batman-adv/netlink.c 		vlan = batadv_get_vlan_from_info(bat_priv, net, info);
net               782 net/batman-adv/originator.c 	struct net *net = sock_net(cb->skb->sk);
net               795 net/batman-adv/originator.c 	soft_iface = dev_get_by_index(net, ifindex);
net               812 net/batman-adv/originator.c 		hard_iface = dev_get_by_index(net, hard_ifindex);
net              1479 net/batman-adv/originator.c 	struct net *net = sock_net(cb->skb->sk);
net              1492 net/batman-adv/originator.c 	soft_iface = dev_get_by_index(net, ifindex);
net              1509 net/batman-adv/originator.c 		hard_iface = dev_get_by_index(net, hard_ifindex);
net               853 net/batman-adv/soft-interface.c 	struct net *net = dev_net(dev);
net               860 net/batman-adv/soft-interface.c 	ret = batadv_hardif_enable_interface(hard_iface, net, dev->name);
net              1052 net/batman-adv/soft-interface.c struct net_device *batadv_softif_create(struct net *net, const char *name)
net              1062 net/batman-adv/soft-interface.c 	dev_net_set(soft_iface, net);
net                22 net/batman-adv/soft-interface.h struct net_device *batadv_softif_create(struct net *net, const char *name);
net               980 net/batman-adv/sysfs.c 	struct net *net = dev_net(net_dev);
net              1014 net/batman-adv/sysfs.c 	ret = batadv_hardif_enable_interface(hard_iface, net, ifname);
net               647 net/batman-adv/translation-table.c 	struct net *net = dev_net(soft_iface);
net               660 net/batman-adv/translation-table.c 		in_dev = dev_get_by_index(net, ifindex);
net              1253 net/batman-adv/translation-table.c 	struct net *net = sock_net(cb->skb->sk);
net              1268 net/batman-adv/translation-table.c 	soft_iface = dev_get_by_index(net, ifindex);
net              2169 net/batman-adv/translation-table.c 	struct net *net = sock_net(cb->skb->sk);
net              2186 net/batman-adv/translation-table.c 	soft_iface = dev_get_by_index(net, ifindex);
net               111 net/bluetooth/af_bluetooth.c static int bt_sock_create(struct net *net, struct socket *sock, int proto,
net               116 net/bluetooth/af_bluetooth.c 	if (net != &init_net)
net               130 net/bluetooth/af_bluetooth.c 		err = bt_proto[proto]->create(net, sock, proto, kern);
net               678 net/bluetooth/af_bluetooth.c int bt_procfs_init(struct net *net, const char *name,
net               684 net/bluetooth/af_bluetooth.c 	if (!proc_create_seq_data(name, 0, net->proc_net, &bt_seq_ops, sk_list))
net               689 net/bluetooth/af_bluetooth.c void bt_procfs_cleanup(struct net *net, const char *name)
net               691 net/bluetooth/af_bluetooth.c 	remove_proc_entry(name, net->proc_net);
net               694 net/bluetooth/af_bluetooth.c int bt_procfs_init(struct net *net, const char *name,
net               701 net/bluetooth/af_bluetooth.c void bt_procfs_cleanup(struct net *net, const char *name)
net               199 net/bluetooth/bnep/sock.c static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
net               209 net/bluetooth/bnep/sock.c 	sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &bnep_proto, kern);
net               202 net/bluetooth/cmtp/sock.c static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol,
net               212 net/bluetooth/cmtp/sock.c 	sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &cmtp_proto, kern);
net              1997 net/bluetooth/hci_sock.c static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
net              2009 net/bluetooth/hci_sock.c 	sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &hci_sk_proto, kern);
net               250 net/bluetooth/hidp/sock.c static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
net               260 net/bluetooth/hidp/sock.c 	sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &hidp_proto, kern);
net                46 net/bluetooth/l2cap_sock.c static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
net              1587 net/bluetooth/l2cap_sock.c static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
net              1593 net/bluetooth/l2cap_sock.c 	sk = sk_alloc(net, PF_BLUETOOTH, prio, &l2cap_proto, kern);
net              1621 net/bluetooth/l2cap_sock.c static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol,
net              1639 net/bluetooth/l2cap_sock.c 	sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net               274 net/bluetooth/rfcomm/sock.c static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern)
net               279 net/bluetooth/rfcomm/sock.c 	sk = sk_alloc(net, PF_BLUETOOTH, prio, &rfcomm_proto, kern);
net               315 net/bluetooth/rfcomm/sock.c static int rfcomm_sock_create(struct net *net, struct socket *sock,
net               329 net/bluetooth/rfcomm/sock.c 	sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net               469 net/bluetooth/sco.c static struct sock *sco_sock_alloc(struct net *net, struct socket *sock,
net               474 net/bluetooth/sco.c 	sk = sk_alloc(net, PF_BLUETOOTH, prio, &sco_proto, kern);
net               497 net/bluetooth/sco.c static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
net               511 net/bluetooth/sco.c 	sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net               288 net/bridge/br.c static void __net_exit br_net_exit(struct net *net)
net               294 net/bridge/br.c 	for_each_netdev(net, dev)
net               694 net/bridge/br_fdb.c 	struct net *net = dev_net(br->dev);
net               712 net/bridge/br_fdb.c 	rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC);
net               715 net/bridge/br_fdb.c 	rtnl_set_sk_err(net, RTNLGRP_NEIGH, err);
net                33 net/bridge/br_forward.c int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net                62 net/bridge/br_forward.c int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net                66 net/bridge/br_forward.c 		       net, sk, skb, NULL, skb->dev,
net                77 net/bridge/br_forward.c 	struct net *net;
net                94 net/bridge/br_forward.c 		net = dev_net(indev);
net               105 net/bridge/br_forward.c 		net = dev_net(skb->dev);
net               110 net/bridge/br_forward.c 		net, NULL, skb, indev, skb->dev,
net               442 net/bridge/br_if.c int br_add_bridge(struct net *net, const char *name)
net               453 net/bridge/br_if.c 	dev_net_set(dev, net);
net               462 net/bridge/br_if.c int br_del_bridge(struct net *net, const char *name)
net               468 net/bridge/br_if.c 	dev = __dev_get_by_name(net, name);
net                26 net/bridge/br_input.c br_netif_receive_skb(struct net *net, struct sock *sk, struct sk_buff *skb)
net                70 net/bridge/br_input.c int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               191 net/bridge/br_input.c static int br_handle_local_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               205 net/bridge/br_input.c 	struct net *net;
net               208 net/bridge/br_input.c 	net = dev_net(skb->dev);
net               214 net/bridge/br_input.c 	e = rcu_dereference(net->nf.hooks_bridge[NF_BR_PRE_ROUTING]);
net               220 net/bridge/br_input.c 			   net, br_handle_frame_finish);
net               244 net/bridge/br_input.c 	net = dev_net(skb->dev);
net               245 net/bridge/br_input.c 	br_handle_frame_finish(net, NULL, skb);
net                20 net/bridge/br_ioctl.c static int get_bridge_ifindices(struct net *net, int *indices, int num)
net                26 net/bridge/br_ioctl.c 	for_each_netdev_rcu(net, dev) {
net                85 net/bridge/br_ioctl.c 	struct net *net = dev_net(br->dev);
net                89 net/bridge/br_ioctl.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net                92 net/bridge/br_ioctl.c 	dev = __dev_get_by_index(net, ifindex);
net               300 net/bridge/br_ioctl.c static int old_deviceless(struct net *net, void __user *uarg)
net               322 net/bridge/br_ioctl.c 		args[2] = get_bridge_ifindices(net, indices, args[2]);
net               336 net/bridge/br_ioctl.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               345 net/bridge/br_ioctl.c 			return br_add_bridge(net, buf);
net               347 net/bridge/br_ioctl.c 		return br_del_bridge(net, buf);
net               354 net/bridge/br_ioctl.c int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg)
net               359 net/bridge/br_ioctl.c 		return old_deviceless(net, uarg);
net               366 net/bridge/br_ioctl.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               374 net/bridge/br_ioctl.c 			return br_add_bridge(net, buf);
net               376 net/bridge/br_ioctl.c 		return br_del_bridge(net, buf);
net               211 net/bridge/br_mdb.c 	struct net *net = sock_net(skb->sk);
net               226 net/bridge/br_mdb.c 	cb->seq = net->dev_base_seq;
net               228 net/bridge/br_mdb.c 	for_each_netdev_rcu(net, dev) {
net               394 net/bridge/br_mdb.c 	struct net *net = dev_net(dev);
net               398 net/bridge/br_mdb.c 	port_dev = __dev_get_by_index(net, entry->ifindex);
net               434 net/bridge/br_mdb.c 	rtnl_notify(skb, net, 0, RTNLGRP_MDB, NULL, GFP_ATOMIC);
net               437 net/bridge/br_mdb.c 	rtnl_set_sk_err(net, RTNLGRP_MDB, err);
net               504 net/bridge/br_mdb.c 	struct net *net = dev_net(dev);
net               520 net/bridge/br_mdb.c 	rtnl_notify(skb, net, 0, RTNLGRP_MDB, NULL, GFP_ATOMIC);
net               524 net/bridge/br_mdb.c 	rtnl_set_sk_err(net, RTNLGRP_MDB, err);
net               555 net/bridge/br_mdb.c 	struct net *net = sock_net(skb->sk);
net               573 net/bridge/br_mdb.c 	dev = __dev_get_by_index(net, bpm->ifindex);
net               651 net/bridge/br_mdb.c static int __br_mdb_add(struct net *net, struct net_bridge *br,
net               663 net/bridge/br_mdb.c 		dev = __dev_get_by_index(net, entry->ifindex);
net               683 net/bridge/br_mdb.c 	struct net *net = sock_net(skb->sk);
net               699 net/bridge/br_mdb.c 		pdev = __dev_get_by_index(net, entry->ifindex);
net               717 net/bridge/br_mdb.c 			err = __br_mdb_add(net, br, entry);
net               723 net/bridge/br_mdb.c 		err = __br_mdb_add(net, br, entry);
net               788 net/bridge/br_mdb.c 	struct net *net = sock_net(skb->sk);
net               804 net/bridge/br_mdb.c 		pdev = __dev_get_by_index(net, entry->ifindex);
net                85 net/bridge/br_netfilter_hooks.c static inline bool is_vlan_ip(const struct sk_buff *skb, const struct net *net)
net                87 net/bridge/br_netfilter_hooks.c 	struct brnf_net *brnet = net_generic(net, brnf_net_id);
net                93 net/bridge/br_netfilter_hooks.c 				const struct net *net)
net                95 net/bridge/br_netfilter_hooks.c 	struct brnf_net *brnet = net_generic(net, brnf_net_id);
net               101 net/bridge/br_netfilter_hooks.c static inline bool is_vlan_arp(const struct sk_buff *skb, const struct net *net)
net               103 net/bridge/br_netfilter_hooks.c 	struct brnf_net *brnet = net_generic(net, brnf_net_id);
net               114 net/bridge/br_netfilter_hooks.c static inline bool is_pppoe_ip(const struct sk_buff *skb, const struct net *net)
net               116 net/bridge/br_netfilter_hooks.c 	struct brnf_net *brnet = net_generic(net, brnf_net_id);
net               123 net/bridge/br_netfilter_hooks.c 				 const struct net *net)
net               125 net/bridge/br_netfilter_hooks.c 	struct brnf_net *brnet = net_generic(net, brnf_net_id);
net               196 net/bridge/br_netfilter_hooks.c static int br_validate_ipv4(struct net *net, struct sk_buff *skb)
net               219 net/bridge/br_netfilter_hooks.c 		__IP_INC_STATS(net, IPSTATS_MIB_INTRUNCATEDPKTS);
net               225 net/bridge/br_netfilter_hooks.c 		__IP_INC_STATS(net, IPSTATS_MIB_INDISCARDS);
net               238 net/bridge/br_netfilter_hooks.c 	__IP_INC_STATS(net, IPSTATS_MIB_CSUMERRORS);
net               240 net/bridge/br_netfilter_hooks.c 	__IP_INC_STATS(net, IPSTATS_MIB_INHDRERRORS);
net               266 net/bridge/br_netfilter_hooks.c int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb)
net               283 net/bridge/br_netfilter_hooks.c 			ret = br_handle_frame_finish(net, sk, skb);
net               352 net/bridge/br_netfilter_hooks.c static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               381 net/bridge/br_netfilter_hooks.c 			rt = ip_route_output(net, iph->daddr, 0,
net               402 net/bridge/br_netfilter_hooks.c 						  net, sk, skb, skb->dev,
net               422 net/bridge/br_netfilter_hooks.c 	br_nf_hook_thresh(NF_BR_PRE_ROUTING, net, sk, skb, skb->dev, NULL,
net               429 net/bridge/br_netfilter_hooks.c 					       const struct net *net)
net               432 net/bridge/br_netfilter_hooks.c 	struct brnf_net *brnet = net_generic(net, brnf_net_id);
net               446 net/bridge/br_netfilter_hooks.c struct net_device *setup_pre_routing(struct sk_buff *skb, const struct net *net)
net               457 net/bridge/br_netfilter_hooks.c 	skb->dev = brnf_get_logical_dev(skb, skb->dev, net);
net               493 net/bridge/br_netfilter_hooks.c 	brnet = net_generic(state->net, brnf_net_id);
net               494 net/bridge/br_netfilter_hooks.c 	if (IS_IPV6(skb) || is_vlan_ipv6(skb, state->net) ||
net               495 net/bridge/br_netfilter_hooks.c 	    is_pppoe_ipv6(skb, state->net)) {
net               511 net/bridge/br_netfilter_hooks.c 	if (!IS_IP(skb) && !is_vlan_ip(skb, state->net) &&
net               512 net/bridge/br_netfilter_hooks.c 	    !is_pppoe_ip(skb, state->net))
net               517 net/bridge/br_netfilter_hooks.c 	if (br_validate_ipv4(state->net, skb))
net               522 net/bridge/br_netfilter_hooks.c 	if (!setup_pre_routing(skb, state->net))
net               531 net/bridge/br_netfilter_hooks.c 	NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, state->net, state->sk, skb,
net               540 net/bridge/br_netfilter_hooks.c static int br_nf_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               545 net/bridge/br_netfilter_hooks.c 	if (!IS_ARP(skb) && !is_vlan_arp(skb, net)) {
net               564 net/bridge/br_netfilter_hooks.c 	br_nf_hook_thresh(NF_BR_FORWARD, net, sk, skb, in, skb->dev,
net               600 net/bridge/br_netfilter_hooks.c 	if (IS_IP(skb) || is_vlan_ip(skb, state->net) ||
net               601 net/bridge/br_netfilter_hooks.c 	    is_pppoe_ip(skb, state->net))
net               603 net/bridge/br_netfilter_hooks.c 	else if (IS_IPV6(skb) || is_vlan_ipv6(skb, state->net) ||
net               604 net/bridge/br_netfilter_hooks.c 		 is_pppoe_ipv6(skb, state->net))
net               617 net/bridge/br_netfilter_hooks.c 		if (br_validate_ipv4(state->net, skb))
net               623 net/bridge/br_netfilter_hooks.c 		if (br_validate_ipv6(state->net, skb))
net               634 net/bridge/br_netfilter_hooks.c 	NF_HOOK(pf, NF_INET_FORWARD, state->net, NULL, skb,
net               635 net/bridge/br_netfilter_hooks.c 		brnf_get_logical_dev(skb, state->in, state->net),
net               655 net/bridge/br_netfilter_hooks.c 	brnet = net_generic(state->net, brnf_net_id);
net               660 net/bridge/br_netfilter_hooks.c 		if (!is_vlan_arp(skb, state->net))
net               669 net/bridge/br_netfilter_hooks.c 		if (is_vlan_arp(skb, state->net))
net               674 net/bridge/br_netfilter_hooks.c 	NF_HOOK(NFPROTO_ARP, NF_ARP_FORWARD, state->net, state->sk, skb,
net               680 net/bridge/br_netfilter_hooks.c static int br_nf_push_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net               700 net/bridge/br_netfilter_hooks.c 	return br_dev_queue_push_xmit(net, sk, skb);
net               704 net/bridge/br_netfilter_hooks.c br_nf_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               705 net/bridge/br_netfilter_hooks.c 		  int (*output)(struct net *, struct sock *, struct sk_buff *))
net               713 net/bridge/br_netfilter_hooks.c 		IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
net               718 net/bridge/br_netfilter_hooks.c 	return ip_do_fragment(net, sk, skb, output);
net               730 net/bridge/br_netfilter_hooks.c static int br_nf_dev_queue_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net               743 net/bridge/br_netfilter_hooks.c 		return br_dev_queue_push_xmit(net, sk, skb);
net               753 net/bridge/br_netfilter_hooks.c 		if (br_validate_ipv4(net, skb))
net               775 net/bridge/br_netfilter_hooks.c 		return br_nf_ip_fragment(net, sk, skb, br_nf_push_frag_xmit);
net               782 net/bridge/br_netfilter_hooks.c 		if (br_validate_ipv6(net, skb))
net               797 net/bridge/br_netfilter_hooks.c 			return v6ops->fragment(net, sk, skb, br_nf_push_frag_xmit);
net               803 net/bridge/br_netfilter_hooks.c 	return br_dev_queue_push_xmit(net, sk, skb);
net               829 net/bridge/br_netfilter_hooks.c 	if (IS_IP(skb) || is_vlan_ip(skb, state->net) ||
net               830 net/bridge/br_netfilter_hooks.c 	    is_pppoe_ip(skb, state->net))
net               832 net/bridge/br_netfilter_hooks.c 	else if (IS_IPV6(skb) || is_vlan_ipv6(skb, state->net) ||
net               833 net/bridge/br_netfilter_hooks.c 		 is_pppoe_ipv6(skb, state->net))
net               851 net/bridge/br_netfilter_hooks.c 	NF_HOOK(pf, NF_INET_POST_ROUTING, state->net, state->sk, skb,
net               870 net/bridge/br_netfilter_hooks.c 		state->okfn(state->net, state->sk, skb);
net               965 net/bridge/br_netfilter_hooks.c 	struct net *net;
net               973 net/bridge/br_netfilter_hooks.c 	net = dev_net(dev);
net               974 net/bridge/br_netfilter_hooks.c 	brnet = net_generic(net, brnf_net_id);
net               978 net/bridge/br_netfilter_hooks.c 	ret = nf_register_net_hooks(net, br_nf_ops, ARRAY_SIZE(br_nf_ops));
net               995 net/bridge/br_netfilter_hooks.c int br_nf_hook_thresh(unsigned int hook, struct net *net,
net               999 net/bridge/br_netfilter_hooks.c 		      int (*okfn)(struct net *, struct sock *,
net              1008 net/bridge/br_netfilter_hooks.c 	e = rcu_dereference(net->nf.hooks_bridge[hook]);
net              1010 net/bridge/br_netfilter_hooks.c 		return okfn(net, sk, skb);
net              1018 net/bridge/br_netfilter_hooks.c 			   sk, net, okfn);
net              1022 net/bridge/br_netfilter_hooks.c 		ret = okfn(net, sk, skb);
net              1091 net/bridge/br_netfilter_hooks.c static int br_netfilter_sysctl_init_net(struct net *net)
net              1096 net/bridge/br_netfilter_hooks.c 	if (!net_eq(net, &init_net)) {
net              1102 net/bridge/br_netfilter_hooks.c 	brnet = net_generic(net, brnf_net_id);
net              1112 net/bridge/br_netfilter_hooks.c 	brnet->ctl_hdr = register_net_sysctl(net, "net/bridge", table);
net              1114 net/bridge/br_netfilter_hooks.c 		if (!net_eq(net, &init_net))
net              1123 net/bridge/br_netfilter_hooks.c static void br_netfilter_sysctl_exit_net(struct net *net,
net              1129 net/bridge/br_netfilter_hooks.c 	if (!net_eq(net, &init_net))
net              1133 net/bridge/br_netfilter_hooks.c static int __net_init brnf_init_net(struct net *net)
net              1135 net/bridge/br_netfilter_hooks.c 	return br_netfilter_sysctl_init_net(net);
net              1139 net/bridge/br_netfilter_hooks.c static void __net_exit brnf_exit_net(struct net *net)
net              1143 net/bridge/br_netfilter_hooks.c 	brnet = net_generic(net, brnf_net_id);
net              1145 net/bridge/br_netfilter_hooks.c 		nf_unregister_net_hooks(net, br_nf_ops, ARRAY_SIZE(br_nf_ops));
net              1150 net/bridge/br_netfilter_hooks.c 	br_netfilter_sysctl_exit_net(net, brnet);
net                99 net/bridge/br_netfilter_ipv6.c int br_validate_ipv6(struct net *net, struct sk_buff *skb)
net               121 net/bridge/br_netfilter_ipv6.c 			__IP6_INC_STATS(net, idev,
net               126 net/bridge/br_netfilter_ipv6.c 			__IP6_INC_STATS(net, idev,
net               142 net/bridge/br_netfilter_ipv6.c 	__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               160 net/bridge/br_netfilter_ipv6.c static int br_nf_pre_routing_finish_ipv6(struct net *net, struct sock *sk, struct sk_buff *skb)
net               188 net/bridge/br_netfilter_ipv6.c 					  net, sk, skb, skb->dev, NULL,
net               206 net/bridge/br_netfilter_ipv6.c 	br_nf_hook_thresh(NF_BR_PRE_ROUTING, net, sk, skb,
net               221 net/bridge/br_netfilter_ipv6.c 	if (br_validate_ipv6(state->net, skb))
net               227 net/bridge/br_netfilter_ipv6.c 	if (!setup_pre_routing(skb, state->net))
net               236 net/bridge/br_netfilter_ipv6.c 	NF_HOOK(NFPROTO_IPV6, NF_INET_PRE_ROUTING, state->net, state->sk, skb,
net               473 net/bridge/br_netlink.c 	struct net *net;
net               487 net/bridge/br_netlink.c 	net = dev_net(dev);
net               501 net/bridge/br_netlink.c 	rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC);
net               504 net/bridge/br_netlink.c 	rtnl_set_sk_err(net, RTNLGRP_LINK, err);
net              1308 net/bridge/br_netlink.c static int br_dev_newlink(struct net *src_net, struct net_device *dev,
net               598 net/bridge/br_private.h int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb);
net               601 net/bridge/br_private.h int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net               615 net/bridge/br_private.h int br_add_bridge(struct net *net, const char *name);
net               616 net/bridge/br_private.h int br_del_bridge(struct net *net, const char *name);
net               628 net/bridge/br_private.h int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net               654 net/bridge/br_private.h int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd,
net                29 net/bridge/br_stp_bpdu.c static int br_send_bpdu_finish(struct net *net, struct sock *sk,
net                74 net/bridge/netfilter/ebt_log.c ebt_log_packet(struct net *net, u_int8_t pf, unsigned int hooknum,
net                82 net/bridge/netfilter/ebt_log.c 	if (!net_eq(net, &init_net) && !sysctl_nf_log_all_netns)
net               183 net/bridge/netfilter/ebt_log.c 	struct net *net = xt_net(par);
net               194 net/bridge/netfilter/ebt_log.c 		nf_log_packet(net, NFPROTO_BRIDGE, xt_hooknum(par), skb,
net               198 net/bridge/netfilter/ebt_log.c 		ebt_log_packet(net, NFPROTO_BRIDGE, xt_hooknum(par), skb,
net                27 net/bridge/netfilter/ebt_nflog.c 	struct net *net = xt_net(par);
net                36 net/bridge/netfilter/ebt_nflog.c 	nf_log_packet(net, PF_BRIDGE, xt_hooknum(par), skb, xt_in(par),
net                67 net/bridge/netfilter/ebtable_broute.c 			   s->net, NULL);
net                69 net/bridge/netfilter/ebtable_broute.c 	ret = ebt_do_table(skb, &state, state.net->xt.broute_table);
net               102 net/bridge/netfilter/ebtable_broute.c static int __net_init broute_net_init(struct net *net)
net               104 net/bridge/netfilter/ebtable_broute.c 	return ebt_register_table(net, &broute_table, &ebt_ops_broute,
net               105 net/bridge/netfilter/ebtable_broute.c 				  &net->xt.broute_table);
net               108 net/bridge/netfilter/ebtable_broute.c static void __net_exit broute_net_exit(struct net *net)
net               110 net/bridge/netfilter/ebtable_broute.c 	ebt_unregister_table(net, net->xt.broute_table, &ebt_ops_broute);
net                65 net/bridge/netfilter/ebtable_filter.c 	return ebt_do_table(skb, state, state->net->xt.frame_filter);
net                72 net/bridge/netfilter/ebtable_filter.c 	return ebt_do_table(skb, state, state->net->xt.frame_filter);
net                96 net/bridge/netfilter/ebtable_filter.c static int __net_init frame_filter_net_init(struct net *net)
net                98 net/bridge/netfilter/ebtable_filter.c 	return ebt_register_table(net, &frame_filter, ebt_ops_filter,
net                99 net/bridge/netfilter/ebtable_filter.c 				  &net->xt.frame_filter);
net               102 net/bridge/netfilter/ebtable_filter.c static void __net_exit frame_filter_net_exit(struct net *net)
net               104 net/bridge/netfilter/ebtable_filter.c 	ebt_unregister_table(net, net->xt.frame_filter, ebt_ops_filter);
net                65 net/bridge/netfilter/ebtable_nat.c 	return ebt_do_table(skb, state, state->net->xt.frame_nat);
net                72 net/bridge/netfilter/ebtable_nat.c 	return ebt_do_table(skb, state, state->net->xt.frame_nat);
net                96 net/bridge/netfilter/ebtable_nat.c static int __net_init frame_nat_net_init(struct net *net)
net                98 net/bridge/netfilter/ebtable_nat.c 	return ebt_register_table(net, &frame_nat, ebt_ops_nat,
net                99 net/bridge/netfilter/ebtable_nat.c 				  &net->xt.frame_nat);
net               102 net/bridge/netfilter/ebtable_nat.c static void __net_exit frame_nat_net_exit(struct net *net)
net               104 net/bridge/netfilter/ebtable_nat.c 	ebt_unregister_table(net, net->xt.frame_nat, ebt_ops_nat);
net               336 net/bridge/netfilter/ebtables.c find_table_lock(struct net *net, const char *name, int *error,
net               339 net/bridge/netfilter/ebtables.c 	return find_inlist_lock(&net->xt.tables[NFPROTO_BRIDGE], name,
net               581 net/bridge/netfilter/ebtables.c ebt_cleanup_match(struct ebt_entry_match *m, struct net *net, unsigned int *i)
net               588 net/bridge/netfilter/ebtables.c 	par.net       = net;
net               599 net/bridge/netfilter/ebtables.c ebt_cleanup_watcher(struct ebt_entry_watcher *w, struct net *net, unsigned int *i)
net               606 net/bridge/netfilter/ebtables.c 	par.net      = net;
net               617 net/bridge/netfilter/ebtables.c ebt_cleanup_entry(struct ebt_entry *e, struct net *net, unsigned int *cnt)
net               627 net/bridge/netfilter/ebtables.c 	EBT_WATCHER_ITERATE(e, ebt_cleanup_watcher, net, NULL);
net               628 net/bridge/netfilter/ebtables.c 	EBT_MATCH_ITERATE(e, ebt_cleanup_match, net, NULL);
net               631 net/bridge/netfilter/ebtables.c 	par.net      = net;
net               642 net/bridge/netfilter/ebtables.c ebt_check_entry(struct ebt_entry *e, struct net *net,
net               695 net/bridge/netfilter/ebtables.c 	mtpar.net	= tgpar.net       = net;
net               751 net/bridge/netfilter/ebtables.c 	EBT_WATCHER_ITERATE(e, ebt_cleanup_watcher, net, &j);
net               753 net/bridge/netfilter/ebtables.c 	EBT_MATCH_ITERATE(e, ebt_cleanup_match, net, &i);
net               828 net/bridge/netfilter/ebtables.c static int translate_table(struct net *net, const char *name,
net               936 net/bridge/netfilter/ebtables.c 	   ebt_check_entry, net, newinfo, name, &i, cl_s, udc_cnt);
net               939 net/bridge/netfilter/ebtables.c 				  ebt_cleanup_entry, net, &i);
net               967 net/bridge/netfilter/ebtables.c static int do_replace_finish(struct net *net, struct ebt_replace *repl,
net               991 net/bridge/netfilter/ebtables.c 	ret = translate_table(net, repl->name, newinfo);
net               996 net/bridge/netfilter/ebtables.c 	t = find_table_lock(net, repl->name, &ret, &ebt_mutex);
net              1042 net/bridge/netfilter/ebtables.c 			  ebt_cleanup_entry, net, NULL);
net              1063 net/bridge/netfilter/ebtables.c 			  ebt_cleanup_entry, net, NULL);
net              1072 net/bridge/netfilter/ebtables.c static int do_replace(struct net *net, const void __user *user,
net              1118 net/bridge/netfilter/ebtables.c 	ret = do_replace_finish(net, &tmp, newinfo);
net              1128 net/bridge/netfilter/ebtables.c static void __ebt_unregister_table(struct net *net, struct ebt_table *table)
net              1134 net/bridge/netfilter/ebtables.c 			  ebt_cleanup_entry, net, NULL);
net              1143 net/bridge/netfilter/ebtables.c int ebt_register_table(struct net *net, const struct ebt_table *input_table,
net              1192 net/bridge/netfilter/ebtables.c 	ret = translate_table(net, repl->name, newinfo);
net              1204 net/bridge/netfilter/ebtables.c 	list_for_each_entry(t, &net->xt.tables[NFPROTO_BRIDGE], list) {
net              1216 net/bridge/netfilter/ebtables.c 	list_add(&table->list, &net->xt.tables[NFPROTO_BRIDGE]);
net              1220 net/bridge/netfilter/ebtables.c 	ret = nf_register_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1222 net/bridge/netfilter/ebtables.c 		__ebt_unregister_table(net, table);
net              1240 net/bridge/netfilter/ebtables.c void ebt_unregister_table(struct net *net, struct ebt_table *table,
net              1243 net/bridge/netfilter/ebtables.c 	nf_unregister_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1244 net/bridge/netfilter/ebtables.c 	__ebt_unregister_table(net, table);
net              1248 net/bridge/netfilter/ebtables.c static int do_update_counters(struct net *net, const char *name,
net              1264 net/bridge/netfilter/ebtables.c 	t = find_table_lock(net, name, &ret, &ebt_mutex);
net              1294 net/bridge/netfilter/ebtables.c static int update_counters(struct net *net, const void __user *user,
net              1305 net/bridge/netfilter/ebtables.c 	return do_update_counters(net, hlp.name, hlp.counters,
net              1462 net/bridge/netfilter/ebtables.c 	struct net *net = sock_net(sk);
net              1464 net/bridge/netfilter/ebtables.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1469 net/bridge/netfilter/ebtables.c 		ret = do_replace(net, user, len);
net              1472 net/bridge/netfilter/ebtables.c 		ret = update_counters(net, user, len);
net              1485 net/bridge/netfilter/ebtables.c 	struct net *net = sock_net(sk);
net              1487 net/bridge/netfilter/ebtables.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1495 net/bridge/netfilter/ebtables.c 	t = find_table_lock(net, tmp.name, &ret, &ebt_mutex);
net              2202 net/bridge/netfilter/ebtables.c static int compat_do_replace(struct net *net, void __user *user,
net              2214 net/bridge/netfilter/ebtables.c 		if (ret == -EINVAL && do_replace(net, user, len) == 0)
net              2291 net/bridge/netfilter/ebtables.c 	ret = do_replace_finish(net, &tmp, newinfo);
net              2305 net/bridge/netfilter/ebtables.c static int compat_update_counters(struct net *net, void __user *user,
net              2315 net/bridge/netfilter/ebtables.c 		return update_counters(net, user, len);
net              2317 net/bridge/netfilter/ebtables.c 	return do_update_counters(net, hlp.name, compat_ptr(hlp.counters),
net              2325 net/bridge/netfilter/ebtables.c 	struct net *net = sock_net(sk);
net              2327 net/bridge/netfilter/ebtables.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              2332 net/bridge/netfilter/ebtables.c 		ret = compat_do_replace(net, user, len);
net              2335 net/bridge/netfilter/ebtables.c 		ret = compat_update_counters(net, user, len);
net              2349 net/bridge/netfilter/ebtables.c 	struct net *net = sock_net(sk);
net              2351 net/bridge/netfilter/ebtables.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              2364 net/bridge/netfilter/ebtables.c 	t = find_table_lock(net, tmp.name, &ret, &ebt_mutex);
net                27 net/bridge/netfilter/nf_conntrack_bridge.c static int nf_br_ip_fragment(struct net *net, struct sock *sk,
net                30 net/bridge/netfilter/nf_conntrack_bridge.c 			     int (*output)(struct net *, struct sock *sk,
net                85 net/bridge/netfilter/nf_conntrack_bridge.c 			err = output(net, sk, data, skb);
net               110 net/bridge/netfilter/nf_conntrack_bridge.c 		err = output(net, sk, data, skb2);
net               156 net/bridge/netfilter/nf_conntrack_bridge.c 	err = ip_defrag(state->net, skb,
net               183 net/bridge/netfilter/nf_conntrack_bridge.c 	err = nf_ipv6_br_defrag(state->net, skb,
net               298 net/bridge/netfilter/nf_conntrack_bridge.c 		    int (*output)(struct net *, struct sock *sk,
net               310 net/bridge/netfilter/nf_conntrack_bridge.c 		nf_br_ip_fragment(state->net, state->sk, skb, &data, output);
net               313 net/bridge/netfilter/nf_conntrack_bridge.c 		nf_br_ip6_fragment(state->net, state->sk, skb, &data, output);
net               345 net/bridge/netfilter/nf_conntrack_bridge.c static int nf_ct_bridge_refrag_post(struct net *net, struct sock *sk,
net               355 net/bridge/netfilter/nf_conntrack_bridge.c 	return br_dev_queue_push_xmit(net, sk, skb);
net                16 net/bridge/netfilter/nf_log_bridge.c static void nf_log_bridge_packet(struct net *net, u_int8_t pf,
net                24 net/bridge/netfilter/nf_log_bridge.c 	nf_log_l2packet(net, pf, eth_hdr(skb)->h_proto, hooknum, skb,
net                35 net/bridge/netfilter/nf_log_bridge.c static int __net_init nf_log_bridge_net_init(struct net *net)
net                37 net/bridge/netfilter/nf_log_bridge.c 	return nf_log_set(net, NFPROTO_BRIDGE, &nf_bridge_logger);
net                40 net/bridge/netfilter/nf_log_bridge.c static void __net_exit nf_log_bridge_net_exit(struct net *net)
net                42 net/bridge/netfilter/nf_log_bridge.c 	nf_log_unset(net, &nf_bridge_logger);
net                69 net/bridge/netfilter/nft_reject_bridge.c static void nft_reject_br_send_v4_tcp_reset(struct net *net,
net                93 net/bridge/netfilter/nft_reject_bridge.c 				   net->ipv4.sysctl_ip_default_ttl);
net               103 net/bridge/netfilter/nft_reject_bridge.c static void nft_reject_br_send_v4_unreach(struct net *net,
net               145 net/bridge/netfilter/nft_reject_bridge.c 				   net->ipv4.sysctl_ip_default_ttl);
net               184 net/bridge/netfilter/nft_reject_bridge.c static void nft_reject_br_send_v6_tcp_reset(struct net *net,
net               209 net/bridge/netfilter/nft_reject_bridge.c 				     net->ipv6.devconf_all->hop_limit);
net               243 net/bridge/netfilter/nft_reject_bridge.c static void nft_reject_br_send_v6_unreach(struct net *net,
net               274 net/bridge/netfilter/nft_reject_bridge.c 				     net->ipv6.devconf_all->hop_limit);
net                58 net/caif/caif_dev.c struct cfcnfg *get_cfcnfg(struct net *net)
net                61 net/caif/caif_dev.c 	caifn = net_generic(net, caif_net_id);
net                66 net/caif/caif_dev.c static struct caif_device_entry_list *caif_device_list(struct net *net)
net                69 net/caif/caif_dev.c 	caifn = net_generic(net, caif_net_id);
net               501 net/caif/caif_dev.c static int caif_init_net(struct net *net)
net               503 net/caif/caif_dev.c 	struct caif_net *caifn = net_generic(net, caif_net_id);
net               514 net/caif/caif_dev.c static void caif_exit_net(struct net *net)
net               518 net/caif/caif_dev.c 	    caif_device_list(net);
net               519 net/caif/caif_dev.c 	struct cfcnfg *cfg =  get_cfcnfg(net);
net              1027 net/caif/caif_socket.c static int caif_create(struct net *net, struct socket *sock, int protocol,
net              1061 net/caif/caif_socket.c 	sk = sk_alloc(net, PF_CAIF, GFP_KERNEL, &prot, kern);
net               179 net/caif/cfcnfg.c int caif_disconnect_client(struct net *net, struct cflayer *adap_layer)
net               182 net/caif/cfcnfg.c 	struct cfcnfg *cfg = get_cfcnfg(net);
net               300 net/caif/cfcnfg.c int caif_connect_client(struct net *net, struct caif_connect_request *conn_req,
net               308 net/caif/cfcnfg.c 	struct cfcnfg *cfg = get_cfcnfg(net);
net               462 net/caif/chnl_net.c static int ipcaif_newlink(struct net *src_net, struct net_device *dev,
net               114 net/can/af_can.c static int can_create(struct net *net, struct socket *sock, int protocol,
net               158 net/can/af_can.c 	sk = sk_alloc(net, PF_CAN, GFP_KERNEL, cp->prot, kern);
net               303 net/can/af_can.c static struct can_dev_rcv_lists *can_dev_rcv_lists_find(struct net *net,
net               310 net/can/af_can.c 		return net->can.rx_alldev_list;
net               441 net/can/af_can.c int can_rx_register(struct net *net, struct net_device *dev, canid_t can_id,
net               448 net/can/af_can.c 	struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats;
net               456 net/can/af_can.c 	if (dev && !net_eq(net, dev_net(dev)))
net               463 net/can/af_can.c 	spin_lock_bh(&net->can.rcvlists_lock);
net               465 net/can/af_can.c 	dev_rcv_lists = can_dev_rcv_lists_find(net, dev);
net               482 net/can/af_can.c 	spin_unlock_bh(&net->can.rcvlists_lock);
net               510 net/can/af_can.c void can_rx_unregister(struct net *net, struct net_device *dev, canid_t can_id,
net               516 net/can/af_can.c 	struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats;
net               522 net/can/af_can.c 	if (dev && !net_eq(net, dev_net(dev)))
net               525 net/can/af_can.c 	spin_lock_bh(&net->can.rcvlists_lock);
net               527 net/can/af_can.c 	dev_rcv_lists = can_dev_rcv_lists_find(net, dev);
net               556 net/can/af_can.c 	spin_unlock_bh(&net->can.rcvlists_lock);
net               641 net/can/af_can.c 	struct net *net = dev_net(dev);
net               642 net/can/af_can.c 	struct can_pkg_stats *pkg_stats = net->can.pkg_stats;
net               656 net/can/af_can.c 	matches = can_rcv_filter(net->can.rx_alldev_list, skb);
net               659 net/can/af_can.c 	dev_rcv_lists = can_dev_rcv_lists_find(net, dev);
net               789 net/can/af_can.c static int can_pernet_init(struct net *net)
net               791 net/can/af_can.c 	spin_lock_init(&net->can.rcvlists_lock);
net               792 net/can/af_can.c 	net->can.rx_alldev_list =
net               793 net/can/af_can.c 		kzalloc(sizeof(*net->can.rx_alldev_list), GFP_KERNEL);
net               794 net/can/af_can.c 	if (!net->can.rx_alldev_list)
net               796 net/can/af_can.c 	net->can.pkg_stats = kzalloc(sizeof(*net->can.pkg_stats), GFP_KERNEL);
net               797 net/can/af_can.c 	if (!net->can.pkg_stats)
net               799 net/can/af_can.c 	net->can.rcv_lists_stats = kzalloc(sizeof(*net->can.rcv_lists_stats), GFP_KERNEL);
net               800 net/can/af_can.c 	if (!net->can.rcv_lists_stats)
net               806 net/can/af_can.c 			timer_setup(&net->can.stattimer, can_stat_update,
net               808 net/can/af_can.c 			mod_timer(&net->can.stattimer,
net               811 net/can/af_can.c 		net->can.pkg_stats->jiffies_init = jiffies;
net               812 net/can/af_can.c 		can_init_proc(net);
net               818 net/can/af_can.c 	kfree(net->can.pkg_stats);
net               820 net/can/af_can.c 	kfree(net->can.rx_alldev_list);
net               825 net/can/af_can.c static void can_pernet_exit(struct net *net)
net               828 net/can/af_can.c 		can_remove_proc(net);
net               830 net/can/af_can.c 			del_timer_sync(&net->can.stattimer);
net               833 net/can/af_can.c 	kfree(net->can.rx_alldev_list);
net               834 net/can/af_can.c 	kfree(net->can.pkg_stats);
net               835 net/can/af_can.c 	kfree(net->can.rcv_lists_stats);
net                99 net/can/af_can.h void can_init_proc(struct net *net);
net               100 net/can/af_can.h void can_remove_proc(struct net *net);
net               170 net/can/bcm.c  static char *bcm_proc_getifname(struct net *net, char *result, int ifindex)
net               178 net/can/bcm.c  	dev = dev_get_by_index_rcu(net, ifindex);
net               191 net/can/bcm.c  	struct net *net = m->private;
net               200 net/can/bcm.c  	seq_printf(m, " / bound %s", bcm_proc_getifname(net, ifname, bo->ifindex));
net               212 net/can/bcm.c  			   bcm_proc_getifname(net, ifname, op->ifindex));
net               241 net/can/bcm.c  			   bcm_proc_getifname(net, ifname, op->ifindex));
net              1462 net/can/bcm.c  	struct net *net;
net              1469 net/can/bcm.c  	net = sock_net(sk);
net              1495 net/can/bcm.c  				dev = dev_get_by_index(net, op->ifindex);
net              1502 net/can/bcm.c  			can_rx_unregister(net, NULL, op->can_id,
net              1511 net/can/bcm.c  	if (net->can.bcmproc_dir && bo->bcm_proc_read)
net              1512 net/can/bcm.c  		remove_proc_entry(bo->procname, net->can.bcmproc_dir);
net              1536 net/can/bcm.c  	struct net *net = sock_net(sk);
net              1553 net/can/bcm.c  		dev = dev_get_by_index(net, addr->can_ifindex);
net              1573 net/can/bcm.c  	if (net->can.bcmproc_dir) {
net              1577 net/can/bcm.c  						     net->can.bcmproc_dir,
net              1673 net/can/bcm.c  static int canbcm_pernet_init(struct net *net)
net              1677 net/can/bcm.c  	net->can.bcmproc_dir = proc_net_mkdir(net, "can-bcm", net->proc_net);
net              1683 net/can/bcm.c  static void canbcm_pernet_exit(struct net *net)
net              1687 net/can/bcm.c  	if (net->can.bcmproc_dir)
net              1688 net/can/bcm.c  		remove_proc_entry("can-bcm", net->proc_net);
net               506 net/can/gw.c   static inline int cgw_register_filter(struct net *net, struct cgw_job *gwj)
net               508 net/can/gw.c   	return can_rx_register(net, gwj->src.dev, gwj->ccgw.filter.can_id,
net               513 net/can/gw.c   static inline void cgw_unregister_filter(struct net *net, struct cgw_job *gwj)
net               515 net/can/gw.c   	can_rx_unregister(net, gwj->src.dev, gwj->ccgw.filter.can_id,
net               523 net/can/gw.c   	struct net *net = dev_net(dev);
net               534 net/can/gw.c   		hlist_for_each_entry_safe(gwj, nx, &net->can.cgw_list, list) {
net               537 net/can/gw.c   				cgw_unregister_filter(net, gwj);
net               689 net/can/gw.c   	struct net *net = sock_net(skb->sk);
net               695 net/can/gw.c   	hlist_for_each_entry_rcu(gwj, &net->can.cgw_list, list) {
net               991 net/can/gw.c   	struct net *net = sock_net(skb->sk);
net              1021 net/can/gw.c   		hlist_for_each_entry(gwj, &net->can.cgw_list, list) {
net              1058 net/can/gw.c   	gwj->src.dev = __dev_get_by_index(net, gwj->ccgw.src_idx);
net              1066 net/can/gw.c   	gwj->dst.dev = __dev_get_by_index(net, gwj->ccgw.dst_idx);
net              1076 net/can/gw.c   	err = cgw_register_filter(net, gwj);
net              1078 net/can/gw.c   		hlist_add_head_rcu(&gwj->list, &net->can.cgw_list);
net              1086 net/can/gw.c   static void cgw_remove_all_jobs(struct net *net)
net              1093 net/can/gw.c   	hlist_for_each_entry_safe(gwj, nx, &net->can.cgw_list, list) {
net              1095 net/can/gw.c   		cgw_unregister_filter(net, gwj);
net              1103 net/can/gw.c   	struct net *net = sock_net(skb->sk);
net              1132 net/can/gw.c   		cgw_remove_all_jobs(net);
net              1141 net/can/gw.c   	hlist_for_each_entry_safe(gwj, nx, &net->can.cgw_list, list) {
net              1163 net/can/gw.c   		cgw_unregister_filter(net, gwj);
net              1172 net/can/gw.c   static int __net_init cangw_pernet_init(struct net *net)
net              1174 net/can/gw.c   	INIT_HLIST_HEAD(&net->can.cgw_list);
net              1178 net/can/gw.c   static void __net_exit cangw_pernet_exit(struct net *net)
net              1181 net/can/gw.c   	cgw_remove_all_jobs(net);
net               428 net/can/j1939/socket.c 	struct net *net;
net               439 net/can/j1939/socket.c 	net = sock_net(sk);
net               457 net/can/j1939/socket.c 		ndev = dev_get_by_index(net, addr->can_ifindex);
net                80 net/can/proc.c static void can_init_stats(struct net *net)
net                82 net/can/proc.c 	struct can_pkg_stats *pkg_stats = net->can.pkg_stats;
net                83 net/can/proc.c 	struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats;
net               122 net/can/proc.c 	struct net *net = from_timer(net, t, can.stattimer);
net               123 net/can/proc.c 	struct can_pkg_stats *pkg_stats = net->can.pkg_stats;
net               128 net/can/proc.c 		can_init_stats(net);
net               132 net/can/proc.c 		can_init_stats(net);
net               136 net/can/proc.c 		can_init_stats(net);
net               140 net/can/proc.c 		can_init_stats(net);
net               144 net/can/proc.c 		can_init_stats(net);
net               181 net/can/proc.c 	mod_timer(&net->can.stattimer, round_jiffies(jiffies + HZ));
net               215 net/can/proc.c 	struct net *net = m->private;
net               216 net/can/proc.c 	struct can_pkg_stats *pkg_stats = net->can.pkg_stats;
net               217 net/can/proc.c 	struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats;
net               226 net/can/proc.c 	if (net->can.stattimer.function == can_stat_update) {
net               277 net/can/proc.c 	struct net *net = m->private;
net               278 net/can/proc.c 	struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats;
net               279 net/can/proc.c 	struct can_pkg_stats *pkg_stats = net->can.pkg_stats;
net               283 net/can/proc.c 	if (net->can.stattimer.function == can_stat_update) {
net               288 net/can/proc.c 			can_init_stats(net);
net               320 net/can/proc.c 	struct net *net = m->private;
net               327 net/can/proc.c 	dev_rcv_lists = net->can.rx_alldev_list;
net               331 net/can/proc.c 	for_each_netdev_rcu(net, dev) {
net               371 net/can/proc.c 	struct net *net = m->private;
net               379 net/can/proc.c 	dev_rcv_lists = net->can.rx_alldev_list;
net               384 net/can/proc.c 	for_each_netdev_rcu(net, dev) {
net               402 net/can/proc.c 	struct net *net = m->private;
net               410 net/can/proc.c 	dev_rcv_lists = net->can.rx_alldev_list;
net               415 net/can/proc.c 	for_each_netdev_rcu(net, dev) {
net               432 net/can/proc.c void can_init_proc(struct net *net)
net               435 net/can/proc.c 	net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net);
net               437 net/can/proc.c 	if (!net->can.proc_dir) {
net               444 net/can/proc.c 	net->can.pde_version = proc_create_net_single(CAN_PROC_VERSION, 0644,
net               445 net/can/proc.c 			net->can.proc_dir, can_version_proc_show, NULL);
net               446 net/can/proc.c 	net->can.pde_stats = proc_create_net_single(CAN_PROC_STATS, 0644,
net               447 net/can/proc.c 			net->can.proc_dir, can_stats_proc_show, NULL);
net               448 net/can/proc.c 	net->can.pde_reset_stats = proc_create_net_single(CAN_PROC_RESET_STATS,
net               449 net/can/proc.c 			0644, net->can.proc_dir, can_reset_stats_proc_show,
net               451 net/can/proc.c 	net->can.pde_rcvlist_err = proc_create_net_single(CAN_PROC_RCVLIST_ERR,
net               452 net/can/proc.c 			0644, net->can.proc_dir, can_rcvlist_proc_show,
net               454 net/can/proc.c 	net->can.pde_rcvlist_all = proc_create_net_single(CAN_PROC_RCVLIST_ALL,
net               455 net/can/proc.c 			0644, net->can.proc_dir, can_rcvlist_proc_show,
net               457 net/can/proc.c 	net->can.pde_rcvlist_fil = proc_create_net_single(CAN_PROC_RCVLIST_FIL,
net               458 net/can/proc.c 			0644, net->can.proc_dir, can_rcvlist_proc_show,
net               460 net/can/proc.c 	net->can.pde_rcvlist_inv = proc_create_net_single(CAN_PROC_RCVLIST_INV,
net               461 net/can/proc.c 			0644, net->can.proc_dir, can_rcvlist_proc_show,
net               463 net/can/proc.c 	net->can.pde_rcvlist_eff = proc_create_net_single(CAN_PROC_RCVLIST_EFF,
net               464 net/can/proc.c 			0644, net->can.proc_dir, can_rcvlist_eff_proc_show, NULL);
net               465 net/can/proc.c 	net->can.pde_rcvlist_sff = proc_create_net_single(CAN_PROC_RCVLIST_SFF,
net               466 net/can/proc.c 			0644, net->can.proc_dir, can_rcvlist_sff_proc_show, NULL);
net               472 net/can/proc.c void can_remove_proc(struct net *net)
net               474 net/can/proc.c 	if (net->can.pde_version)
net               475 net/can/proc.c 		remove_proc_entry(CAN_PROC_VERSION, net->can.proc_dir);
net               477 net/can/proc.c 	if (net->can.pde_stats)
net               478 net/can/proc.c 		remove_proc_entry(CAN_PROC_STATS, net->can.proc_dir);
net               480 net/can/proc.c 	if (net->can.pde_reset_stats)
net               481 net/can/proc.c 		remove_proc_entry(CAN_PROC_RESET_STATS, net->can.proc_dir);
net               483 net/can/proc.c 	if (net->can.pde_rcvlist_err)
net               484 net/can/proc.c 		remove_proc_entry(CAN_PROC_RCVLIST_ERR, net->can.proc_dir);
net               486 net/can/proc.c 	if (net->can.pde_rcvlist_all)
net               487 net/can/proc.c 		remove_proc_entry(CAN_PROC_RCVLIST_ALL, net->can.proc_dir);
net               489 net/can/proc.c 	if (net->can.pde_rcvlist_fil)
net               490 net/can/proc.c 		remove_proc_entry(CAN_PROC_RCVLIST_FIL, net->can.proc_dir);
net               492 net/can/proc.c 	if (net->can.pde_rcvlist_inv)
net               493 net/can/proc.c 		remove_proc_entry(CAN_PROC_RCVLIST_INV, net->can.proc_dir);
net               495 net/can/proc.c 	if (net->can.pde_rcvlist_eff)
net               496 net/can/proc.c 		remove_proc_entry(CAN_PROC_RCVLIST_EFF, net->can.proc_dir);
net               498 net/can/proc.c 	if (net->can.pde_rcvlist_sff)
net               499 net/can/proc.c 		remove_proc_entry(CAN_PROC_RCVLIST_SFF, net->can.proc_dir);
net               501 net/can/proc.c 	if (net->can.proc_dir)
net               502 net/can/proc.c 		remove_proc_entry("can", net->proc_net);
net               181 net/can/raw.c  static int raw_enable_filters(struct net *net, struct net_device *dev,
net               189 net/can/raw.c  		err = can_rx_register(net, dev, filter[i].can_id,
net               195 net/can/raw.c  				can_rx_unregister(net, dev, filter[i].can_id,
net               205 net/can/raw.c  static int raw_enable_errfilter(struct net *net, struct net_device *dev,
net               211 net/can/raw.c  		err = can_rx_register(net, dev, 0, err_mask | CAN_ERR_FLAG,
net               217 net/can/raw.c  static void raw_disable_filters(struct net *net, struct net_device *dev,
net               224 net/can/raw.c  		can_rx_unregister(net, dev, filter[i].can_id,
net               228 net/can/raw.c  static inline void raw_disable_errfilter(struct net *net,
net               235 net/can/raw.c  		can_rx_unregister(net, dev, 0, err_mask | CAN_ERR_FLAG,
net               239 net/can/raw.c  static inline void raw_disable_allfilters(struct net *net,
net               245 net/can/raw.c  	raw_disable_filters(net, dev, sk, ro->filter, ro->count);
net               246 net/can/raw.c  	raw_disable_errfilter(net, dev, sk, ro->err_mask);
net               249 net/can/raw.c  static int raw_enable_allfilters(struct net *net, struct net_device *dev,
net               255 net/can/raw.c  	err = raw_enable_filters(net, dev, sk, ro->filter, ro->count);
net               257 net/can/raw.c  		err = raw_enable_errfilter(net, dev, sk, ro->err_mask);
net               259 net/can/raw.c  			raw_disable_filters(net, dev, sk, ro->filter,
net               144 net/ceph/ceph_common.c 	if (!net_eq(current->nsproxy->net_ns, read_pnet(&client->msgr.net)))
net               464 net/ceph/messenger.c 	ret = sock_create_kern(read_pnet(&con->msgr->net), ss.ss_family,
net              3058 net/ceph/messenger.c 	write_pnet(&msgr->net, get_net(current->nsproxy->net_ns));
net              3066 net/ceph/messenger.c 	put_net(read_pnet(&msgr->net));
net               199 net/core/dev.c static inline void dev_base_seq_inc(struct net *net)
net               201 net/core/dev.c 	while (++net->dev_base_seq == 0)
net               205 net/core/dev.c static inline struct hlist_head *dev_name_hash(struct net *net, const char *name)
net               207 net/core/dev.c 	unsigned int hash = full_name_hash(net, name, strnlen(name, IFNAMSIZ));
net               209 net/core/dev.c 	return &net->dev_name_head[hash_32(hash, NETDEV_HASHBITS)];
net               212 net/core/dev.c static inline struct hlist_head *dev_index_hash(struct net *net, int ifindex)
net               214 net/core/dev.c 	return &net->dev_index_head[ifindex & (NETDEV_HASHENTRIES - 1)];
net               234 net/core/dev.c 	struct net *net = dev_net(dev);
net               239 net/core/dev.c 	list_add_tail_rcu(&dev->dev_list, &net->dev_base_head);
net               240 net/core/dev.c 	hlist_add_head_rcu(&dev->name_hlist, dev_name_hash(net, dev->name));
net               242 net/core/dev.c 			   dev_index_hash(net, dev->ifindex));
net               245 net/core/dev.c 	dev_base_seq_inc(net);
net               652 net/core/dev.c struct net_device *__dev_get_by_name(struct net *net, const char *name)
net               655 net/core/dev.c 	struct hlist_head *head = dev_name_hash(net, name);
net               677 net/core/dev.c struct net_device *dev_get_by_name_rcu(struct net *net, const char *name)
net               680 net/core/dev.c 	struct hlist_head *head = dev_name_hash(net, name);
net               702 net/core/dev.c struct net_device *dev_get_by_name(struct net *net, const char *name)
net               707 net/core/dev.c 	dev = dev_get_by_name_rcu(net, name);
net               727 net/core/dev.c struct net_device *__dev_get_by_index(struct net *net, int ifindex)
net               730 net/core/dev.c 	struct hlist_head *head = dev_index_hash(net, ifindex);
net               751 net/core/dev.c struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex)
net               754 net/core/dev.c 	struct hlist_head *head = dev_index_hash(net, ifindex);
net               776 net/core/dev.c struct net_device *dev_get_by_index(struct net *net, int ifindex)
net               781 net/core/dev.c 	dev = dev_get_by_index_rcu(net, ifindex);
net               824 net/core/dev.c int netdev_get_name(struct net *net, char *name, int ifindex)
net               832 net/core/dev.c 	dev = dev_get_by_index_rcu(net, ifindex);
net               862 net/core/dev.c struct net_device *dev_getbyhwaddr_rcu(struct net *net, unsigned short type,
net               867 net/core/dev.c 	for_each_netdev_rcu(net, dev)
net               876 net/core/dev.c struct net_device *__dev_getfirstbyhwtype(struct net *net, unsigned short type)
net               881 net/core/dev.c 	for_each_netdev(net, dev)
net               889 net/core/dev.c struct net_device *dev_getfirstbyhwtype(struct net *net, unsigned short type)
net               894 net/core/dev.c 	for_each_netdev_rcu(net, dev)
net               916 net/core/dev.c struct net_device *__dev_get_by_flags(struct net *net, unsigned short if_flags,
net               924 net/core/dev.c 	for_each_netdev(net, dev) {
net               975 net/core/dev.c static int __dev_alloc_name(struct net *net, const char *name, char *buf)
net              1001 net/core/dev.c 		for_each_netdev(net, d) {
net              1018 net/core/dev.c 	if (!__dev_get_by_name(net, buf))
net              1028 net/core/dev.c static int dev_alloc_name_ns(struct net *net,
net              1035 net/core/dev.c 	BUG_ON(!net);
net              1036 net/core/dev.c 	ret = __dev_alloc_name(net, name, buf);
net              1062 net/core/dev.c int dev_get_valid_name(struct net *net, struct net_device *dev,
net              1065 net/core/dev.c 	BUG_ON(!net);
net              1071 net/core/dev.c 		return dev_alloc_name_ns(net, dev, name);
net              1072 net/core/dev.c 	else if (__dev_get_by_name(net, name))
net              1095 net/core/dev.c 	struct net *net;
net              1100 net/core/dev.c 	net = dev_net(dev);
net              1127 net/core/dev.c 	err = dev_get_valid_name(net, dev, newname);
net              1159 net/core/dev.c 	hlist_add_head_rcu(&dev->name_hlist, dev_name_hash(net, dev->name));
net              1558 net/core/dev.c 	struct net *net;
net              1569 net/core/dev.c 	for_each_net(net) {
net              1570 net/core/dev.c 		for_each_netdev(net, dev) {
net              1590 net/core/dev.c 	for_each_net(net) {
net              1591 net/core/dev.c 		for_each_netdev(net, dev) {
net              1627 net/core/dev.c 	struct net *net;
net              1637 net/core/dev.c 	for_each_net(net) {
net              1638 net/core/dev.c 		for_each_netdev(net, dev) {
net              3482 net/core/dev.c int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net              7528 net/core/dev.c 	struct net *net = dev_net(dev);
net              7531 net/core/dev.c 		if (!net_eq(net, dev_net(iter->dev)))
net              7540 net/core/dev.c 		if (!net_eq(net, dev_net(iter->dev)))
net              7553 net/core/dev.c 	struct net *net = dev_net(dev);
net              7556 net/core/dev.c 		if (!net_eq(net, dev_net(iter->dev)))
net              7565 net/core/dev.c 		if (!net_eq(net, dev_net(iter->dev)))
net              7578 net/core/dev.c 	struct net *net = dev_net(dev);
net              7581 net/core/dev.c 		if (!net_eq(net, dev_net(iter->dev)))
net              7590 net/core/dev.c 		if (!net_eq(net, dev_net(iter->dev)))
net              8456 net/core/dev.c static int dev_new_index(struct net *net)
net              8458 net/core/dev.c 	int ifindex = net->ifindex;
net              8463 net/core/dev.c 		if (!__dev_get_by_index(net, ifindex))
net              8464 net/core/dev.c 			return net->ifindex = ifindex;
net              8991 net/core/dev.c 	struct net *net = dev_net(dev);
net              9002 net/core/dev.c 	BUG_ON(!net);
net              9007 net/core/dev.c 	ret = dev_get_valid_name(net, dev, dev->name);
net              9032 net/core/dev.c 		dev->ifindex = dev_new_index(net);
net              9033 net/core/dev.c 	else if (__dev_get_by_index(net, dev->ifindex))
net              9715 net/core/dev.c int dev_change_net_namespace(struct net_device *dev, struct net *net, const char *pat)
net              9732 net/core/dev.c 	if (net_eq(dev_net(dev), net))
net              9739 net/core/dev.c 	if (__dev_get_by_name(net, dev->name)) {
net              9743 net/core/dev.c 		err = dev_get_valid_name(net, dev, pat);
net              9773 net/core/dev.c 	new_nsid = peernet2id_alloc(dev_net(dev), net, GFP_KERNEL);
net              9775 net/core/dev.c 	if (__dev_get_by_index(net, dev->ifindex))
net              9776 net/core/dev.c 		new_ifindex = dev_new_index(net);
net              9794 net/core/dev.c 	dev_net_set(dev, net);
net              9932 net/core/dev.c static int __net_init netdev_init(struct net *net)
net              9937 net/core/dev.c 	if (net != &init_net)
net              9938 net/core/dev.c 		INIT_LIST_HEAD(&net->dev_base_head);
net              9940 net/core/dev.c 	net->dev_name_head = netdev_create_hash();
net              9941 net/core/dev.c 	if (net->dev_name_head == NULL)
net              9944 net/core/dev.c 	net->dev_index_head = netdev_create_hash();
net              9945 net/core/dev.c 	if (net->dev_index_head == NULL)
net              9951 net/core/dev.c 	kfree(net->dev_name_head);
net              10039 net/core/dev.c static void __net_exit netdev_exit(struct net *net)
net              10041 net/core/dev.c 	kfree(net->dev_name_head);
net              10042 net/core/dev.c 	kfree(net->dev_index_head);
net              10043 net/core/dev.c 	if (net != &init_net)
net              10044 net/core/dev.c 		WARN_ON_ONCE(!list_empty(&net->dev_base_head));
net              10052 net/core/dev.c static void __net_exit default_device_exit(struct net *net)
net              10060 net/core/dev.c 	for_each_netdev_safe(net, dev, aux) {
net              10091 net/core/dev.c 	struct net *net;
net              10099 net/core/dev.c 		list_for_each_entry(net, net_list, exit_list) {
net              10100 net/core/dev.c 			if (net->dev_unreg_count > 0) {
net              10122 net/core/dev.c 	struct net *net;
net              10137 net/core/dev.c 	list_for_each_entry(net, net_list, exit_list) {
net              10138 net/core/dev.c 		for_each_netdev_reverse(net, dev) {
net                21 net/core/dev_ioctl.c static int dev_ifname(struct net *net, struct ifreq *ifr)
net                24 net/core/dev_ioctl.c 	return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex);
net                53 net/core/dev_ioctl.c int dev_ifconf(struct net *net, struct ifconf *ifc, int size)
net                73 net/core/dev_ioctl.c 	for_each_netdev(net, dev) {
net               103 net/core/dev_ioctl.c static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd)
net               106 net/core/dev_ioctl.c 	struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name);
net               224 net/core/dev_ioctl.c static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
net               227 net/core/dev_ioctl.c 	struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name);
net               343 net/core/dev_ioctl.c void dev_load(struct net *net, const char *name)
net               349 net/core/dev_ioctl.c 	dev = dev_get_by_name_rcu(net, name);
net               378 net/core/dev_ioctl.c int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr, bool *need_copyout)
net               386 net/core/dev_ioctl.c 		return dev_ifname(net, ifr);
net               413 net/core/dev_ioctl.c 		dev_load(net, ifr->ifr_name);
net               415 net/core/dev_ioctl.c 		ret = dev_ifsioc_locked(net, ifr, cmd);
net               422 net/core/dev_ioctl.c 		dev_load(net, ifr->ifr_name);
net               424 net/core/dev_ioctl.c 		ret = dev_ethtool(net, ifr);
net               439 net/core/dev_ioctl.c 		dev_load(net, ifr->ifr_name);
net               440 net/core/dev_ioctl.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               443 net/core/dev_ioctl.c 		ret = dev_ifsioc(net, ifr, cmd);
net               482 net/core/dev_ioctl.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               487 net/core/dev_ioctl.c 		dev_load(net, ifr->ifr_name);
net               489 net/core/dev_ioctl.c 		ret = dev_ifsioc(net, ifr, cmd);
net               512 net/core/dev_ioctl.c 			dev_load(net, ifr->ifr_name);
net               514 net/core/dev_ioctl.c 			ret = dev_ifsioc(net, ifr, cmd);
net                98 net/core/devlink.c static struct net *devlink_net(const struct devlink *devlink)
net               103 net/core/devlink.c static void devlink_net_set(struct devlink *devlink, struct net *net)
net               105 net/core/devlink.c 	write_pnet(&devlink->_net, net);
net               108 net/core/devlink.c static struct devlink *devlink_get_from_attrs(struct net *net,
net               126 net/core/devlink.c 		    net_eq(devlink_net(devlink), net))
net                30 net/core/dst.c int dst_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net               244 net/core/dst.c static int dst_md_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net              2561 net/core/ethtool.c int dev_ethtool(struct net *net, struct ifreq *ifr)
net              2563 net/core/ethtool.c 	struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name);
net              2621 net/core/ethtool.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               217 net/core/failover.c 	struct net *net = dev_net(failover_dev);
net               221 net/core/failover.c 	for_each_netdev(net, dev) {
net                19 net/core/fib_notifier.c int call_fib_notifier(struct notifier_block *nb, struct net *net,
net                25 net/core/fib_notifier.c 	info->net = net;
net                31 net/core/fib_notifier.c int call_fib_notifiers(struct net *net, enum fib_event_type event_type,
net                36 net/core/fib_notifier.c 	info->net = net;
net                47 net/core/fib_notifier.c 	struct net *net;
net                51 net/core/fib_notifier.c 	for_each_net(net) {
net                52 net/core/fib_notifier.c 		fn_net = net_generic(net, fib_notifier_net_id);
net                57 net/core/fib_notifier.c 			fib_seq += ops->fib_seq_read(net);
net                68 net/core/fib_notifier.c static int fib_net_dump(struct net *net, struct notifier_block *nb)
net                70 net/core/fib_notifier.c 	struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id);
net                78 net/core/fib_notifier.c 		err = ops->fib_dump(net, nb);
net               109 net/core/fib_notifier.c 		struct net *net;
net               112 net/core/fib_notifier.c 		for_each_net_rcu(net) {
net               113 net/core/fib_notifier.c 			err = fib_net_dump(net, nb);
net               138 net/core/fib_notifier.c 				       struct net *net)
net               140 net/core/fib_notifier.c 	struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id);
net               151 net/core/fib_notifier.c fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net)
net               160 net/core/fib_notifier.c 	err = __fib_notifier_ops_register(ops, net);
net               179 net/core/fib_notifier.c static int __net_init fib_notifier_net_init(struct net *net)
net               181 net/core/fib_notifier.c 	struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id);
net               187 net/core/fib_notifier.c static void __net_exit fib_notifier_net_exit(struct net *net)
net               189 net/core/fib_notifier.c 	struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id);
net                90 net/core/fib_rules.c static struct fib_rules_ops *lookup_rules_ops(struct net *net, int family)
net                95 net/core/fib_rules.c 	list_for_each_entry_rcu(ops, &net->rules_ops, list) {
net               124 net/core/fib_rules.c 	struct net *net;
net               126 net/core/fib_rules.c 	net = ops->fro_net;
net               136 net/core/fib_rules.c 	spin_lock(&net->rules_mod_lock);
net               137 net/core/fib_rules.c 	list_for_each_entry(o, &net->rules_ops, list)
net               141 net/core/fib_rules.c 	list_add_tail_rcu(&ops->list, &net->rules_ops);
net               144 net/core/fib_rules.c 	spin_unlock(&net->rules_mod_lock);
net               150 net/core/fib_rules.c fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net)
net               160 net/core/fib_rules.c 	ops->fro_net = net;
net               186 net/core/fib_rules.c 	struct net *net = ops->fro_net;
net               188 net/core/fib_rules.c 	spin_lock(&net->rules_mod_lock);
net               190 net/core/fib_rules.c 	spin_unlock(&net->rules_mod_lock);
net               324 net/core/fib_rules.c static int call_fib_rule_notifier(struct notifier_block *nb, struct net *net,
net               333 net/core/fib_rules.c 	return call_fib_notifier(nb, net, event_type, &info.info);
net               336 net/core/fib_rules.c static int call_fib_rule_notifiers(struct net *net,
net               349 net/core/fib_rules.c 	return call_fib_notifiers(net, event_type, &info.info);
net               353 net/core/fib_rules.c int fib_rules_dump(struct net *net, struct notifier_block *nb, int family)
net               358 net/core/fib_rules.c 	ops = lookup_rules_ops(net, family);
net               362 net/core/fib_rules.c 		call_fib_rule_notifier(nb, net, FIB_EVENT_RULE_ADD, rule,
net               370 net/core/fib_rules.c unsigned int fib_rules_seq_read(struct net *net, int family)
net               377 net/core/fib_rules.c 	ops = lookup_rules_ops(net, family);
net               493 net/core/fib_rules.c 	struct net *net = sock_net(skb->sk);
net               520 net/core/fib_rules.c 	nlrule->fr_net = net;
net               537 net/core/fib_rules.c 		dev = __dev_get_by_name(net, nlrule->iifname);
net               547 net/core/fib_rules.c 		dev = __dev_get_by_name(net, nlrule->oifname);
net               608 net/core/fib_rules.c 		if (current_user_ns() != net->user_ns) {
net               726 net/core/fib_rules.c 	struct net *net = sock_net(skb->sk);
net               739 net/core/fib_rules.c 	ops = lookup_rules_ops(net, frh->family);
net               767 net/core/fib_rules.c 	err = call_fib_rule_notifiers(net, FIB_EVENT_RULE_ADD, rule, ops,
net               834 net/core/fib_rules.c 	struct net *net = sock_net(skb->sk);
net               847 net/core/fib_rules.c 	ops = lookup_rules_ops(net, frh->family);
net               915 net/core/fib_rules.c 	call_fib_rule_notifiers(net, FIB_EVENT_RULE_DEL, rule, ops,
net              1094 net/core/fib_rules.c 	struct net *net = sock_net(skb->sk);
net              1108 net/core/fib_rules.c 		ops = lookup_rules_ops(net, family);
net              1118 net/core/fib_rules.c 	list_for_each_entry_rcu(ops, &net->rules_ops, list) {
net              1139 net/core/fib_rules.c 	struct net *net;
net              1143 net/core/fib_rules.c 	net = ops->fro_net;
net              1156 net/core/fib_rules.c 	rtnl_notify(skb, net, pid, ops->nlgroup, nlh, GFP_KERNEL);
net              1160 net/core/fib_rules.c 		rtnl_set_sk_err(net, ops->nlgroup, err);
net              1194 net/core/fib_rules.c 	struct net *net = dev_net(dev);
net              1201 net/core/fib_rules.c 		list_for_each_entry(ops, &net->rules_ops, list)
net              1206 net/core/fib_rules.c 		list_for_each_entry(ops, &net->rules_ops, list) {
net              1213 net/core/fib_rules.c 		list_for_each_entry(ops, &net->rules_ops, list)
net              1225 net/core/fib_rules.c static int __net_init fib_rules_net_init(struct net *net)
net              1227 net/core/fib_rules.c 	INIT_LIST_HEAD(&net->rules_ops);
net              1228 net/core/fib_rules.c 	spin_lock_init(&net->rules_mod_lock);
net              1232 net/core/fib_rules.c static void __net_exit fib_rules_net_exit(struct net *net)
net              1234 net/core/fib_rules.c 	WARN_ON_ONCE(!list_empty(&net->rules_ops));
net              1769 net/core/filter.c 	u8 *net = skb_network_header(skb);
net              1781 net/core/filter.c 		ptr = net + offset;
net              4614 net/core/filter.c static int bpf_ipv4_fib_lookup(struct net *net, struct bpf_fib_lookup *params,
net              4626 net/core/filter.c 	dev = dev_get_by_index_rcu(net, params->ifindex);
net              4656 net/core/filter.c 		tb = fib_get_table(net, tbid);
net              4665 net/core/filter.c 		fl4.flowi4_uid = sock_net_uid(net, NULL);
net              4667 net/core/filter.c 		err = fib_lookup(net, &fl4, &res, FIB_LOOKUP_NOREF);
net              4686 net/core/filter.c 		fib_select_path(net, &res, &fl4, NULL);
net              4729 net/core/filter.c static int bpf_ipv6_fib_lookup(struct net *net, struct bpf_fib_lookup *params,
net              4747 net/core/filter.c 	dev = dev_get_by_index_rcu(net, params->ifindex);
net              4778 net/core/filter.c 		tb = ipv6_stub->fib6_get_table(net, tbid);
net              4782 net/core/filter.c 		err = ipv6_stub->fib6_table_lookup(net, tb, oif, &fl6, &res,
net              4788 net/core/filter.c 		fl6.flowi6_uid = sock_net_uid(net, NULL);
net              4790 net/core/filter.c 		err = ipv6_stub->fib6_lookup(net, oif, &fl6, &res, strict);
net              4794 net/core/filter.c 		     res.f6i == net->ipv6.fib6_null_entry))
net              4811 net/core/filter.c 	ipv6_stub->fib6_select_path(net, &res, &fl6, fl6.flowi6_oif,
net              4877 net/core/filter.c 	struct net *net = dev_net(skb->dev);
net              4889 net/core/filter.c 		rc = bpf_ipv4_fib_lookup(net, params, flags, false);
net              4894 net/core/filter.c 		rc = bpf_ipv6_fib_lookup(net, params, flags, false);
net              4902 net/core/filter.c 		dev = dev_get_by_index_rcu(net, params->ifindex);
net              5207 net/core/filter.c static struct sock *sk_lookup(struct net *net, struct bpf_sock_tuple *tuple,
net              5218 net/core/filter.c 			sk = __inet_lookup(net, &tcp_hashinfo, NULL, 0,
net              5223 net/core/filter.c 			sk = __udp4_lib_lookup(net, src4, tuple->ipv4.sport,
net              5232 net/core/filter.c 			sk = __inet6_lookup(net, &tcp_hashinfo, NULL, 0,
net              5237 net/core/filter.c 			sk = ipv6_bpf_stub->udp6_lib_lookup(net,
net              5259 net/core/filter.c 		 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id,
net              5264 net/core/filter.c 	struct net *net;
net              5284 net/core/filter.c 		net = caller_net;
net              5285 net/core/filter.c 		sk = sk_lookup(net, tuple, ifindex, sdif, family, proto);
net              5287 net/core/filter.c 		net = get_net_ns_by_id(caller_net, netns_id);
net              5288 net/core/filter.c 		if (unlikely(!net))
net              5290 net/core/filter.c 		sk = sk_lookup(net, tuple, ifindex, sdif, family, proto);
net              5291 net/core/filter.c 		put_net(net);
net              5300 net/core/filter.c 		struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id,
net              5321 net/core/filter.c 	struct net *caller_net;
net              5429 net/core/filter.c 	struct net *caller_net = dev_net(ctx->rxq->dev);
net              5452 net/core/filter.c 	struct net *caller_net = dev_net(ctx->rxq->dev);
net              5475 net/core/filter.c 	struct net *caller_net = dev_net(ctx->rxq->dev);
net                79 net/core/flow_dissector.c 	struct net *net;
net                84 net/core/flow_dissector.c 	net = get_net_ns_by_fd(attr->query.target_fd);
net                85 net/core/flow_dissector.c 	if (IS_ERR(net))
net                86 net/core/flow_dissector.c 		return PTR_ERR(net);
net                89 net/core/flow_dissector.c 	attached = rcu_dereference(net->flow_dissector_prog);
net                96 net/core/flow_dissector.c 	put_net(net);
net               116 net/core/flow_dissector.c 	struct net *net;
net               118 net/core/flow_dissector.c 	net = current->nsproxy->net_ns;
net               120 net/core/flow_dissector.c 	attached = rcu_dereference_protected(net->flow_dissector_prog,
net               127 net/core/flow_dissector.c 	rcu_assign_pointer(net->flow_dissector_prog, prog);
net               132 net/core/flow_dissector.c static int flow_dissector_bpf_prog_detach(struct net *net)
net               137 net/core/flow_dissector.c 	attached = rcu_dereference_protected(net->flow_dissector_prog,
net               143 net/core/flow_dissector.c 	RCU_INIT_POINTER(net->flow_dissector_prog, NULL);
net               175 net/core/flow_dissector.c static void __net_exit flow_dissector_pernet_pre_exit(struct net *net)
net               180 net/core/flow_dissector.c 	if (rcu_access_pointer(net->flow_dissector_prog))
net               181 net/core/flow_dissector.c 		flow_dissector_bpf_prog_detach(net);
net               893 net/core/flow_dissector.c bool __skb_flow_dissect(const struct net *net,
net               950 net/core/flow_dissector.c 		if (!net) {
net               952 net/core/flow_dissector.c 				net = dev_net(skb->dev);
net               954 net/core/flow_dissector.c 				net = sock_net(skb->sk);
net               958 net/core/flow_dissector.c 	WARN_ON_ONCE(!net);
net               959 net/core/flow_dissector.c 	if (net) {
net               961 net/core/flow_dissector.c 		attached = rcu_dereference(net->flow_dissector_prog);
net               138 net/core/lwt_bpf.c static int bpf_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               158 net/core/lwt_bpf.c 	return dst->lwtstate->orig_output(net, sk, skb);
net               182 net/core/lwt_bpf.c 	struct net *net;
net               196 net/core/lwt_bpf.c 		net = sock_net(sk);
net               198 net/core/lwt_bpf.c 		net = dev_net(skb_dst(skb)->dev);
net               208 net/core/lwt_bpf.c 		fl4.flowi4_uid = sock_net_uid(net, sk);
net               215 net/core/lwt_bpf.c 		rt = ip_route_output_key(net, &fl4);
net               227 net/core/lwt_bpf.c 		fl6.flowi6_uid = sock_net_uid(net, sk);
net               233 net/core/lwt_bpf.c 		dst = ipv6_stub->ipv6_dst_lookup_flow(net, skb->sk, &fl6, NULL);
net               312 net/core/lwtunnel.c int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               331 net/core/lwtunnel.c 		ret = ops->output(net, sk, skb);
net               541 net/core/neighbour.c struct neighbour *neigh_lookup_nodev(struct neigh_table *tbl, struct net *net,
net               559 net/core/neighbour.c 		    net_eq(dev_net(n->dev), net)) {
net               686 net/core/neighbour.c 					      struct net *net,
net               693 net/core/neighbour.c 		    net_eq(pneigh_net(n), net) &&
net               702 net/core/neighbour.c 		struct net *net, const void *pkey, struct net_device *dev)
net               708 net/core/neighbour.c 				 net, pkey, key_len, dev);
net               713 net/core/neighbour.c 				    struct net *net, const void *pkey,
net               722 net/core/neighbour.c 			      net, pkey, key_len, dev);
net               735 net/core/neighbour.c 	write_pnet(&n->net, net);
net               759 net/core/neighbour.c int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *pkey,
net               770 net/core/neighbour.c 		    net_eq(pneigh_net(n), net)) {
net              1595 net/core/neighbour.c 						      struct net *net, int ifindex)
net              1600 net/core/neighbour.c 		if ((p->dev && p->dev->ifindex == ifindex && net_eq(neigh_parms_net(p), net)) ||
net              1601 net/core/neighbour.c 		    (!p->dev && !ifindex && net_eq(net, &init_net)))
net              1612 net/core/neighbour.c 	struct net *net = dev_net(dev);
net              1623 net/core/neighbour.c 		write_pnet(&p->net, net);
net              1681 net/core/neighbour.c 	write_pnet(&tbl->parms.net, &init_net);
net              1787 net/core/neighbour.c 	struct net *net = sock_net(skb->sk);
net              1807 net/core/neighbour.c 		dev = __dev_get_by_index(net, ndm->ndm_ifindex);
net              1824 net/core/neighbour.c 		err = pneigh_delete(tbl, net, nla_data(dst_attr), dev);
net              1854 net/core/neighbour.c 	struct net *net = sock_net(skb->sk);
net              1878 net/core/neighbour.c 		dev = __dev_get_by_index(net, ndm->ndm_ifindex);
net              1909 net/core/neighbour.c 		pn = pneigh_lookup(tbl, net, dst, dev, 1);
net              2178 net/core/neighbour.c 	struct net *net = sock_net(skb->sk);
net              2232 net/core/neighbour.c 		p = lookup_neigh_parms(tbl, net, ifindex);
net              2314 net/core/neighbour.c 	    !net_eq(net, &init_net))
net              2364 net/core/neighbour.c 	struct net *net = sock_net(skb->sk);
net              2397 net/core/neighbour.c 			if (!net_eq(neigh_parms_net(p), net))
net              2549 net/core/neighbour.c 	struct net *net = sock_net(skb->sk);
net              2568 net/core/neighbour.c 			if (idx < s_idx || !net_eq(dev_net(n->dev), net))
net              2597 net/core/neighbour.c 	struct net *net = sock_net(skb->sk);
net              2611 net/core/neighbour.c 			if (idx < s_idx || pneigh_net(n) != net)
net              2814 net/core/neighbour.c static int neigh_get_reply(struct net *net, struct neighbour *neigh,
net              2830 net/core/neighbour.c 	err = rtnl_unicast(skb, net, pid);
net              2842 net/core/neighbour.c static int pneigh_get_reply(struct net *net, struct pneigh_entry *neigh,
net              2858 net/core/neighbour.c 	err = rtnl_unicast(skb, net, pid);
net              2866 net/core/neighbour.c 	struct net *net = sock_net(in_skb->sk);
net              2881 net/core/neighbour.c 		dev = __dev_get_by_index(net, dev_idx);
net              2896 net/core/neighbour.c 		pn = pneigh_lookup(tbl, net, dst, dev, 0);
net              2901 net/core/neighbour.c 		return pneigh_get_reply(net, pn, NETLINK_CB(in_skb).portid,
net              2916 net/core/neighbour.c 	err = neigh_get_reply(net, neigh, NETLINK_CB(in_skb).portid,
net              3030 net/core/neighbour.c 	struct net *net = seq_file_net(seq);
net              3040 net/core/neighbour.c 			if (!net_eq(dev_net(n->dev), net))
net              3071 net/core/neighbour.c 	struct net *net = seq_file_net(seq);
net              3083 net/core/neighbour.c 			if (!net_eq(dev_net(n->dev), net))
net              3132 net/core/neighbour.c 	struct net *net = seq_file_net(seq);
net              3140 net/core/neighbour.c 		while (pn && !net_eq(pneigh_net(pn), net))
net              3155 net/core/neighbour.c 	struct net *net = seq_file_net(seq);
net              3160 net/core/neighbour.c 	} while (pn && !net_eq(pneigh_net(pn), net));
net              3166 net/core/neighbour.c 		while (pn && !net_eq(pneigh_net(pn), net))
net              3347 net/core/neighbour.c 	struct net *net = dev_net(n->dev);
net              3362 net/core/neighbour.c 	rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC);
net              3366 net/core/neighbour.c 		rtnl_set_sk_err(net, RTNLGRP_NEIGH, err);
net              3408 net/core/neighbour.c static void neigh_copy_dflt_parms(struct net *net, struct neigh_parms *p,
net              3415 net/core/neighbour.c 	for_each_netdev_rcu(net, dev) {
net              3429 net/core/neighbour.c 	struct net *net = neigh_parms_net(p);
net              3439 net/core/neighbour.c 		neigh_copy_dflt_parms(net, p, index);
net                18 net/core/net-procfs.c 	struct net *net = seq_file_net(seq);
net                23 net/core/net-procfs.c 	h = &net->dev_name_head[get_bucket(*pos)];
net               275 net/core/net-procfs.c static int __net_init dev_proc_net_init(struct net *net)
net               279 net/core/net-procfs.c 	if (!proc_create_net("dev", 0444, net->proc_net, &dev_seq_ops,
net               282 net/core/net-procfs.c 	if (!proc_create_seq("softnet_stat", 0444, net->proc_net,
net               285 net/core/net-procfs.c 	if (!proc_create_net("ptype", 0444, net->proc_net, &ptype_seq_ops,
net               289 net/core/net-procfs.c 	if (wext_proc_init(net))
net               295 net/core/net-procfs.c 	remove_proc_entry("ptype", net->proc_net);
net               297 net/core/net-procfs.c 	remove_proc_entry("softnet_stat", net->proc_net);
net               299 net/core/net-procfs.c 	remove_proc_entry("dev", net->proc_net);
net               303 net/core/net-procfs.c static void __net_exit dev_proc_net_exit(struct net *net)
net               305 net/core/net-procfs.c 	wext_proc_exit(net);
net               307 net/core/net-procfs.c 	remove_proc_entry("ptype", net->proc_net);
net               308 net/core/net-procfs.c 	remove_proc_entry("softnet_stat", net->proc_net);
net               309 net/core/net-procfs.c 	remove_proc_entry("dev", net->proc_net);
net               343 net/core/net-procfs.c static int __net_init dev_mc_net_init(struct net *net)
net               345 net/core/net-procfs.c 	if (!proc_create_net("dev_mcast", 0, net->proc_net, &dev_mc_seq_ops,
net               351 net/core/net-procfs.c static void __net_exit dev_mc_net_exit(struct net *net)
net               353 net/core/net-procfs.c 	remove_proc_entry("dev_mcast", net->proc_net);
net                81 net/core/net-sysfs.c 	struct net *net = dev_net(netdev);
net                85 net/core/net-sysfs.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               377 net/core/net-sysfs.c 	struct net *net = dev_net(netdev);
net               381 net/core/net-sysfs.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               903 net/core/net-sysfs.c 	const struct net *net = rx_queue_namespace(kobj);
net               905 net/core/net-sysfs.c 	net_ns_get_ownership(net, uid, gid);
net              1380 net/core/net-sysfs.c 	struct net *net = dev_net(dev);
net              1384 net/core/net-sysfs.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1446 net/core/net-sysfs.c 	const struct net *net = netdev_queue_namespace(kobj);
net              1448 net/core/net-sysfs.c 	net_ns_get_ownership(net, uid, gid);
net              1575 net/core/net-sysfs.c 	struct net *net = current->nsproxy->net_ns;
net              1577 net/core/net-sysfs.c 	return ns_capable(net->user_ns, CAP_SYS_ADMIN);
net              1582 net/core/net-sysfs.c 	struct net *ns = current->nsproxy->net_ns;
net              1657 net/core/net-sysfs.c 	const struct net *net = dev_net(dev);
net              1659 net/core/net-sysfs.c 	net_ns_get_ownership(net, uid, gid);
net                 9 net/core/net-sysfs.h int netdev_queue_update_kobjects(struct net_device *net,
net                46 net/core/net_namespace.c struct net init_net = {
net                84 net/core/net_namespace.c static int net_assign_generic(struct net *net, unsigned int id, void *data)
net                90 net/core/net_namespace.c 	old_ng = rcu_dereference_protected(net->gen,
net               116 net/core/net_namespace.c 	rcu_assign_pointer(net->gen, ng);
net               121 net/core/net_namespace.c static int ops_init(const struct pernet_operations *ops, struct net *net)
net               131 net/core/net_namespace.c 		err = net_assign_generic(net, *ops->id, data);
net               137 net/core/net_namespace.c 		err = ops->init(net);
net               148 net/core/net_namespace.c static void ops_free(const struct pernet_operations *ops, struct net *net)
net               151 net/core/net_namespace.c 		kfree(net_generic(net, *ops->id));
net               158 net/core/net_namespace.c 	struct net *net;
net               161 net/core/net_namespace.c 		list_for_each_entry(net, net_exit_list, exit_list)
net               162 net/core/net_namespace.c 			ops->pre_exit(net);
net               169 net/core/net_namespace.c 	struct net *net;
net               171 net/core/net_namespace.c 		list_for_each_entry(net, net_exit_list, exit_list)
net               172 net/core/net_namespace.c 			ops->exit(net);
net               181 net/core/net_namespace.c 	struct net *net;
net               183 net/core/net_namespace.c 		list_for_each_entry(net, net_exit_list, exit_list)
net               184 net/core/net_namespace.c 			ops_free(ops, net);
net               189 net/core/net_namespace.c static int alloc_netid(struct net *net, struct net *peer, int reqid)
net               198 net/core/net_namespace.c 	return idr_alloc(&net->netns_ids, peer, min, max, GFP_ATOMIC);
net               207 net/core/net_namespace.c static int net_eq_idr(int id, void *net, void *peer)
net               209 net/core/net_namespace.c 	if (net_eq(net, peer))
net               218 net/core/net_namespace.c static int __peernet2id_alloc(struct net *net, struct net *peer, bool *alloc)
net               220 net/core/net_namespace.c 	int id = idr_for_each(&net->netns_ids, net_eq_idr, peer);
net               232 net/core/net_namespace.c 		id = alloc_netid(net, peer, -1);
net               241 net/core/net_namespace.c static int __peernet2id(struct net *net, struct net *peer)
net               245 net/core/net_namespace.c 	return __peernet2id_alloc(net, peer, &no);
net               248 net/core/net_namespace.c static void rtnl_net_notifyid(struct net *net, int cmd, int id, u32 portid,
net               253 net/core/net_namespace.c int peernet2id_alloc(struct net *net, struct net *peer, gfp_t gfp)
net               258 net/core/net_namespace.c 	if (refcount_read(&net->count) == 0)
net               260 net/core/net_namespace.c 	spin_lock_bh(&net->nsid_lock);
net               269 net/core/net_namespace.c 	id = __peernet2id_alloc(net, peer, &alloc);
net               270 net/core/net_namespace.c 	spin_unlock_bh(&net->nsid_lock);
net               272 net/core/net_namespace.c 		rtnl_net_notifyid(net, RTM_NEWNSID, id, 0, NULL, gfp);
net               280 net/core/net_namespace.c int peernet2id(struct net *net, struct net *peer)
net               284 net/core/net_namespace.c 	spin_lock_bh(&net->nsid_lock);
net               285 net/core/net_namespace.c 	id = __peernet2id(net, peer);
net               286 net/core/net_namespace.c 	spin_unlock_bh(&net->nsid_lock);
net               294 net/core/net_namespace.c bool peernet_has_id(struct net *net, struct net *peer)
net               296 net/core/net_namespace.c 	return peernet2id(net, peer) >= 0;
net               299 net/core/net_namespace.c struct net *get_net_ns_by_id(struct net *net, int id)
net               301 net/core/net_namespace.c 	struct net *peer;
net               307 net/core/net_namespace.c 	peer = idr_find(&net->netns_ids, id);
net               318 net/core/net_namespace.c static __net_init int setup_net(struct net *net, struct user_namespace *user_ns)
net               325 net/core/net_namespace.c 	refcount_set(&net->count, 1);
net               326 net/core/net_namespace.c 	refcount_set(&net->passive, 1);
net               327 net/core/net_namespace.c 	get_random_bytes(&net->hash_mix, sizeof(u32));
net               328 net/core/net_namespace.c 	net->dev_base_seq = 1;
net               329 net/core/net_namespace.c 	net->user_ns = user_ns;
net               330 net/core/net_namespace.c 	idr_init(&net->netns_ids);
net               331 net/core/net_namespace.c 	spin_lock_init(&net->nsid_lock);
net               332 net/core/net_namespace.c 	mutex_init(&net->ipv4.ra_mutex);
net               335 net/core/net_namespace.c 		error = ops_init(ops, net);
net               340 net/core/net_namespace.c 	list_add_tail_rcu(&net->list, &net_namespace_list);
net               349 net/core/net_namespace.c 	list_add(&net->exit_list, &net_exit_list);
net               368 net/core/net_namespace.c static int __net_init net_defaults_init_net(struct net *net)
net               370 net/core/net_namespace.c 	net->core.sysctl_somaxconn = SOMAXCONN;
net               402 net/core/net_namespace.c static struct net *net_alloc(void)
net               404 net/core/net_namespace.c 	struct net *net = NULL;
net               411 net/core/net_namespace.c 	net = kmem_cache_zalloc(net_cachep, GFP_KERNEL);
net               412 net/core/net_namespace.c 	if (!net)
net               416 net/core/net_namespace.c 	net->key_domain = kzalloc(sizeof(struct key_tag), GFP_KERNEL);
net               417 net/core/net_namespace.c 	if (!net->key_domain)
net               419 net/core/net_namespace.c 	refcount_set(&net->key_domain->usage, 1);
net               422 net/core/net_namespace.c 	rcu_assign_pointer(net->gen, ng);
net               424 net/core/net_namespace.c 	return net;
net               428 net/core/net_namespace.c 	kmem_cache_free(net_cachep, net);
net               429 net/core/net_namespace.c 	net = NULL;
net               436 net/core/net_namespace.c static void net_free(struct net *net)
net               438 net/core/net_namespace.c 	kfree(rcu_access_pointer(net->gen));
net               439 net/core/net_namespace.c 	kmem_cache_free(net_cachep, net);
net               444 net/core/net_namespace.c 	struct net *ns = p;
net               449 net/core/net_namespace.c struct net *copy_net_ns(unsigned long flags,
net               450 net/core/net_namespace.c 			struct user_namespace *user_ns, struct net *old_net)
net               453 net/core/net_namespace.c 	struct net *net;
net               463 net/core/net_namespace.c 	net = net_alloc();
net               464 net/core/net_namespace.c 	if (!net) {
net               468 net/core/net_namespace.c 	refcount_set(&net->passive, 1);
net               469 net/core/net_namespace.c 	net->ucounts = ucounts;
net               476 net/core/net_namespace.c 	rv = setup_net(net, user_ns);
net               482 net/core/net_namespace.c 		key_remove_domain(net->key_domain);
net               484 net/core/net_namespace.c 		net_drop_ns(net);
net               489 net/core/net_namespace.c 	return net;
net               501 net/core/net_namespace.c void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid)
net               503 net/core/net_namespace.c 	if (net) {
net               504 net/core/net_namespace.c 		kuid_t ns_root_uid = make_kuid(net->user_ns, 0);
net               505 net/core/net_namespace.c 		kgid_t ns_root_gid = make_kgid(net->user_ns, 0);
net               519 net/core/net_namespace.c static void unhash_nsid(struct net *net, struct net *last)
net               521 net/core/net_namespace.c 	struct net *tmp;
net               532 net/core/net_namespace.c 		id = __peernet2id(tmp, net);
net               542 net/core/net_namespace.c 	spin_lock_bh(&net->nsid_lock);
net               543 net/core/net_namespace.c 	idr_destroy(&net->netns_ids);
net               544 net/core/net_namespace.c 	spin_unlock_bh(&net->nsid_lock);
net               552 net/core/net_namespace.c 	struct net *net, *tmp, *last;
net               563 net/core/net_namespace.c 	llist_for_each_entry(net, net_kill_list, cleanup_list)
net               564 net/core/net_namespace.c 		list_del_rcu(&net->list);
net               575 net/core/net_namespace.c 	last = list_last_entry(&net_namespace_list, struct net, list);
net               578 net/core/net_namespace.c 	llist_for_each_entry(net, net_kill_list, cleanup_list) {
net               579 net/core/net_namespace.c 		unhash_nsid(net, last);
net               580 net/core/net_namespace.c 		list_add_tail(&net->exit_list, &net_exit_list);
net               611 net/core/net_namespace.c 	list_for_each_entry_safe(net, tmp, &net_exit_list, exit_list) {
net               612 net/core/net_namespace.c 		list_del_init(&net->exit_list);
net               613 net/core/net_namespace.c 		dec_net_namespaces(net->ucounts);
net               614 net/core/net_namespace.c 		key_remove_domain(net->key_domain);
net               615 net/core/net_namespace.c 		put_user_ns(net->user_ns);
net               616 net/core/net_namespace.c 		net_drop_ns(net);
net               638 net/core/net_namespace.c void __put_net(struct net *net)
net               641 net/core/net_namespace.c 	if (llist_add(&net->cleanup_list, &cleanup_list))
net               646 net/core/net_namespace.c struct net *get_net_ns_by_fd(int fd)
net               650 net/core/net_namespace.c 	struct net *net;
net               658 net/core/net_namespace.c 		net = get_net(container_of(ns, struct net, ns));
net               660 net/core/net_namespace.c 		net = ERR_PTR(-EINVAL);
net               663 net/core/net_namespace.c 	return net;
net               667 net/core/net_namespace.c struct net *get_net_ns_by_fd(int fd)
net               674 net/core/net_namespace.c struct net *get_net_ns_by_pid(pid_t pid)
net               677 net/core/net_namespace.c 	struct net *net;
net               680 net/core/net_namespace.c 	net = ERR_PTR(-ESRCH);
net               688 net/core/net_namespace.c 			net = get_net(nsproxy->net_ns);
net               692 net/core/net_namespace.c 	return net;
net               696 net/core/net_namespace.c static __net_init int net_ns_net_init(struct net *net)
net               699 net/core/net_namespace.c 	net->ns.ops = &netns_operations;
net               701 net/core/net_namespace.c 	return ns_alloc_inum(&net->ns);
net               704 net/core/net_namespace.c static __net_exit void net_ns_net_exit(struct net *net)
net               706 net/core/net_namespace.c 	ns_free_inum(&net->ns);
net               725 net/core/net_namespace.c 	struct net *net = sock_net(skb->sk);
net               728 net/core/net_namespace.c 	struct net *peer;
net               757 net/core/net_namespace.c 	spin_lock_bh(&net->nsid_lock);
net               758 net/core/net_namespace.c 	if (__peernet2id(net, peer) >= 0) {
net               759 net/core/net_namespace.c 		spin_unlock_bh(&net->nsid_lock);
net               767 net/core/net_namespace.c 	err = alloc_netid(net, peer, nsid);
net               768 net/core/net_namespace.c 	spin_unlock_bh(&net->nsid_lock);
net               770 net/core/net_namespace.c 		rtnl_net_notifyid(net, RTM_NEWNSID, err, NETLINK_CB(skb).portid,
net               869 net/core/net_namespace.c 	struct net *net = sock_net(skb->sk);
net               876 net/core/net_namespace.c 	struct net *peer, *target = net;
net               891 net/core/net_namespace.c 		peer = get_net_ns_by_id(net, nla_get_s32(tb[NETNSA_NSID]));
net               918 net/core/net_namespace.c 		fillargs.ref_nsid = peernet2id(net, peer);
net               932 net/core/net_namespace.c 	err = rtnl_unicast(msg, net, NETLINK_CB(skb).portid);
net               945 net/core/net_namespace.c 	struct net *tgt_net;
net               946 net/core/net_namespace.c 	struct net *ref_net;
net               992 net/core/net_namespace.c 			struct net *net;
net               994 net/core/net_namespace.c 			net = rtnl_get_net_ns_capable(sk, nla_get_s32(tb[i]));
net               995 net/core/net_namespace.c 			if (IS_ERR(net)) {
net               999 net/core/net_namespace.c 				return PTR_ERR(net);
net              1003 net/core/net_namespace.c 			net_cb->tgt_net = net;
net              1058 net/core/net_namespace.c static void rtnl_net_notifyid(struct net *net, int cmd, int id, u32 portid,
net              1078 net/core/net_namespace.c 	rtnl_notify(msg, net, portid, RTNLGRP_NSID, nlh, gfp);
net              1084 net/core/net_namespace.c 	rtnl_set_sk_err(net, RTNLGRP_NSID, err);
net              1092 net/core/net_namespace.c 	net_cachep = kmem_cache_create("net_namespace", sizeof(struct net),
net              1132 net/core/net_namespace.c 	struct net *net;
net              1141 net/core/net_namespace.c 		for_each_net(net) {
net              1142 net/core/net_namespace.c 			error = ops_init(ops, net);
net              1145 net/core/net_namespace.c 			list_add_tail(&net->exit_list, &net_exit_list);
net              1162 net/core/net_namespace.c 	struct net *net;
net              1167 net/core/net_namespace.c 	for_each_net(net)
net              1168 net/core/net_namespace.c 		list_add_tail(&net->exit_list, &net_exit_list);
net              1336 net/core/net_namespace.c 	struct net *net = NULL;
net              1342 net/core/net_namespace.c 		net = get_net(nsproxy->net_ns);
net              1345 net/core/net_namespace.c 	return net ? &net->ns : NULL;
net              1348 net/core/net_namespace.c static inline struct net *to_net_ns(struct ns_common *ns)
net              1350 net/core/net_namespace.c 	return container_of(ns, struct net, ns);
net              1360 net/core/net_namespace.c 	struct net *net = to_net_ns(ns);
net              1362 net/core/net_namespace.c 	if (!ns_capable(net->user_ns, CAP_SYS_ADMIN) ||
net              1367 net/core/net_namespace.c 	nsproxy->net_ns = get_net(net);
net               646 net/core/netpoll.c 		struct net *net = current->nsproxy->net_ns;
net               647 net/core/netpoll.c 		ndev = __dev_get_by_name(net, np->dev_name);
net               432 net/core/pktgen.c 	struct net		*net;
net               453 net/core/pktgen.c 	struct pktgen_net *net;
net              1982 net/core/pktgen.c 	return dev_get_by_name(pn->net, b);
net              2247 net/core/pktgen.c 			x = xfrm_state_lookup_byspi(pn->net, htonl(pkt_dev->spi), AF_INET);
net              2250 net/core/pktgen.c 			x = xfrm_stateonly_find(pn->net, DUMMY_MARK, 0,
net              2501 net/core/pktgen.c 	struct net *net = dev_net(pkt_dev->odev);
net              2520 net/core/pktgen.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEMODEERROR);
net              2525 net/core/pktgen.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEPROTOERROR);
net              3273 net/core/pktgen.c 	remove_proc_entry(t->tsk->comm, t->net->proc_dir);
net              3481 net/core/pktgen.c 			if (t->net->pktgen_exiting)
net              3598 net/core/pktgen.c 	pkt_dev = __pktgen_NN_threads(t->net, ifname, FIND);
net              3635 net/core/pktgen.c 	err = pktgen_setup_dev(t->net, pkt_dev, ifname);
net              3641 net/core/pktgen.c 	pkt_dev->entry = proc_create_data(ifname, 0600, t->net->proc_dir,
net              3722 net/core/pktgen.c 	t->net = pn;
net              3783 net/core/pktgen.c static int __net_init pg_net_init(struct net *net)
net              3785 net/core/pktgen.c 	struct pktgen_net *pn = net_generic(net, pg_net_id);
net              3789 net/core/pktgen.c 	pn->net = net;
net              3792 net/core/pktgen.c 	pn->proc_dir = proc_mkdir(PG_PROC_DIR, pn->net->proc_net);
net              3824 net/core/pktgen.c 	remove_proc_entry(PG_PROC_DIR, pn->net->proc_net);
net              3828 net/core/pktgen.c static void __net_exit pg_net_exit(struct net *net)
net              3830 net/core/pktgen.c 	struct pktgen_net *pn = net_generic(net, pg_net_id);
net              3851 net/core/pktgen.c 	remove_proc_entry(PG_PROC_DIR, pn->net->proc_net);
net               412 net/core/rtnetlink.c static void __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops)
net               417 net/core/rtnetlink.c 	for_each_netdev(net, dev) {
net               434 net/core/rtnetlink.c 	struct net *net;
net               436 net/core/rtnetlink.c 	for_each_net(net) {
net               437 net/core/rtnetlink.c 		__rtnl_kill_links(net, ops);
net               448 net/core/rtnetlink.c 	struct net *net;
net               459 net/core/rtnetlink.c 		for_each_net(net) {
net               460 net/core/rtnetlink.c 			if (net->dev_unreg_count > 0) {
net               706 net/core/rtnetlink.c int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned int group, int echo)
net               708 net/core/rtnetlink.c 	struct sock *rtnl = net->rtnl;
net               720 net/core/rtnetlink.c int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid)
net               722 net/core/rtnetlink.c 	struct sock *rtnl = net->rtnl;
net               728 net/core/rtnetlink.c void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, u32 group,
net               731 net/core/rtnetlink.c 	struct sock *rtnl = net->rtnl;
net               741 net/core/rtnetlink.c void rtnl_set_sk_err(struct net *net, u32 group, int error)
net               743 net/core/rtnetlink.c 	struct sock *rtnl = net->rtnl;
net              1526 net/core/rtnetlink.c 				  struct net *src_net, gfp_t gfp)
net              1531 net/core/rtnetlink.c 		struct net *link_net = dev->rtnl_link_ops->get_link_net(dev);
net              1588 net/core/rtnetlink.c 			    struct net_device *dev, struct net *src_net,
net              1864 net/core/rtnetlink.c struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid)
net              1866 net/core/rtnetlink.c 	struct net *net;
net              1868 net/core/rtnetlink.c 	net = get_net_ns_by_id(sock_net(sk), netnsid);
net              1869 net/core/rtnetlink.c 	if (!net)
net              1875 net/core/rtnetlink.c 	if (!sk_ns_capable(sk, net->user_ns, CAP_NET_ADMIN)) {
net              1876 net/core/rtnetlink.c 		put_net(net);
net              1879 net/core/rtnetlink.c 	return net;
net              1931 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              1932 net/core/rtnetlink.c 	struct net *tgt_net = net;
net              1999 net/core/rtnetlink.c 			err = rtnl_fill_ifinfo(skb, dev, net,
net              2021 net/core/rtnetlink.c 	cb->seq = net->dev_base_seq;
net              2037 net/core/rtnetlink.c struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[])
net              2039 net/core/rtnetlink.c 	struct net *net;
net              2044 net/core/rtnetlink.c 		net = get_net_ns_by_pid(nla_get_u32(tb[IFLA_NET_NS_PID]));
net              2046 net/core/rtnetlink.c 		net = get_net_ns_by_fd(nla_get_u32(tb[IFLA_NET_NS_FD]));
net              2048 net/core/rtnetlink.c 		net = get_net(src_net);
net              2049 net/core/rtnetlink.c 	return net;
net              2060 net/core/rtnetlink.c static struct net *rtnl_link_get_net_by_nlattr(struct net *src_net,
net              2063 net/core/rtnetlink.c 	struct net *net;
net              2071 net/core/rtnetlink.c 	net = get_net_ns_by_id(src_net, nla_get_u32(tb[IFLA_TARGET_NETNSID]));
net              2072 net/core/rtnetlink.c 	if (!net)
net              2075 net/core/rtnetlink.c 	return net;
net              2078 net/core/rtnetlink.c static struct net *rtnl_link_get_net_capable(const struct sk_buff *skb,
net              2079 net/core/rtnetlink.c 					     struct net *src_net,
net              2082 net/core/rtnetlink.c 	struct net *net;
net              2084 net/core/rtnetlink.c 	net = rtnl_link_get_net_by_nlattr(src_net, tb);
net              2085 net/core/rtnetlink.c 	if (IS_ERR(net))
net              2086 net/core/rtnetlink.c 		return net;
net              2088 net/core/rtnetlink.c 	if (!netlink_ns_capable(skb, net->user_ns, cap)) {
net              2089 net/core/rtnetlink.c 		put_net(net);
net              2093 net/core/rtnetlink.c 	return net;
net              2417 net/core/rtnetlink.c 		struct net *net = rtnl_link_get_net_capable(skb, dev_net(dev),
net              2419 net/core/rtnetlink.c 		if (IS_ERR(net)) {
net              2420 net/core/rtnetlink.c 			err = PTR_ERR(net);
net              2424 net/core/rtnetlink.c 		err = dev_change_net_namespace(dev, net, ifname);
net              2425 net/core/rtnetlink.c 		put_net(net);
net              2750 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              2774 net/core/rtnetlink.c 		dev = __dev_get_by_index(net, ifm->ifi_index);
net              2776 net/core/rtnetlink.c 		dev = __dev_get_by_name(net, ifname);
net              2790 net/core/rtnetlink.c static int rtnl_group_dellink(const struct net *net, int group)
net              2799 net/core/rtnetlink.c 	for_each_netdev(net, dev) {
net              2813 net/core/rtnetlink.c 	for_each_netdev_safe(net, dev, aux) {
net              2845 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              2846 net/core/rtnetlink.c 	struct net *tgt_net = net;
net              2923 net/core/rtnetlink.c struct net_device *rtnl_create_link(struct net *net, const char *ifname,
net              2958 net/core/rtnetlink.c 	dev_net_set(dev, net);
net              2999 net/core/rtnetlink.c 		struct net *net, int group,
net              3007 net/core/rtnetlink.c 	for_each_netdev_safe(net, dev, aux) {
net              3026 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              3029 net/core/rtnetlink.c 	struct net *dest_net, *link_net;
net              3057 net/core/rtnetlink.c 		dev = __dev_get_by_index(net, ifm->ifi_index);
net              3060 net/core/rtnetlink.c 			dev = __dev_get_by_name(net, ifname);
net              3165 net/core/rtnetlink.c 			return rtnl_group_changelink(skb, net,
net              3197 net/core/rtnetlink.c 	dest_net = rtnl_link_get_net_capable(skb, net, tb, CAP_NET_ADMIN);
net              3227 net/core/rtnetlink.c 		err = ops->newlink(link_net ? : net, dev, tb, data, extack);
net              3340 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              3341 net/core/rtnetlink.c 	struct net *tgt_net = net;
net              3390 net/core/rtnetlink.c 	err = rtnl_fill_ifinfo(nskb, dev, net,
net              3399 net/core/rtnetlink.c 		err = rtnl_unicast(nskb, net, NETLINK_CB(skb).portid);
net              3409 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              3432 net/core/rtnetlink.c 	for_each_netdev_rcu(net, dev) {
net              3494 net/core/rtnetlink.c 	struct net *net = dev_net(dev);
net              3515 net/core/rtnetlink.c 		rtnl_set_sk_err(net, RTNLGRP_LINK, err);
net              3521 net/core/rtnetlink.c 	struct net *net = dev_net(dev);
net              3523 net/core/rtnetlink.c 	rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, flags);
net              3602 net/core/rtnetlink.c 	struct net *net = dev_net(dev);
net              3617 net/core/rtnetlink.c 	rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC);
net              3620 net/core/rtnetlink.c 	rtnl_set_sk_err(net, RTNLGRP_NEIGH, err);
net              3685 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              3704 net/core/rtnetlink.c 	dev = __dev_get_by_index(net, ndm->ndm_ifindex);
net              3793 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              3815 net/core/rtnetlink.c 	dev = __dev_get_by_index(net, ndm->ndm_ifindex);
net              4029 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              4048 net/core/rtnetlink.c 		br_dev = __dev_get_by_index(net, br_idx);
net              4060 net/core/rtnetlink.c 		head = &net->dev_index_head[h];
net              4191 net/core/rtnetlink.c 	struct net *net = sock_net(in_skb->sk);
net              4212 net/core/rtnetlink.c 		dev = __dev_get_by_index(net, brport_idx);
net              4225 net/core/rtnetlink.c 		br_dev = __dev_get_by_index(net, br_idx);
net              4276 net/core/rtnetlink.c 	return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              4446 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              4460 net/core/rtnetlink.c 	for_each_netdev_rcu(net, dev) {
net              4520 net/core/rtnetlink.c 	struct net *net = dev_net(dev);
net              4540 net/core/rtnetlink.c 	rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC);
net              4546 net/core/rtnetlink.c 		rtnl_set_sk_err(net, RTNLGRP_LINK, err);
net              4553 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              4568 net/core/rtnetlink.c 	dev = __dev_get_by_index(net, ifm->ifi_index);
net              4630 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              4645 net/core/rtnetlink.c 	dev = __dev_get_by_index(net, ifm->ifi_index);
net              5045 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              5060 net/core/rtnetlink.c 		dev = __dev_get_by_index(net, ifsm->ifindex);
net              5083 net/core/rtnetlink.c 		err = rtnl_unicast(nskb, net, NETLINK_CB(skb).portid);
net              5093 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              5106 net/core/rtnetlink.c 	cb->seq = net->dev_base_seq;
net              5121 net/core/rtnetlink.c 		head = &net->dev_index_head[h];
net              5158 net/core/rtnetlink.c 	struct net *net = sock_net(skb->sk);
net              5210 net/core/rtnetlink.c 		rtnl = net->rtnl;
net              5275 net/core/rtnetlink.c static int rtnetlink_bind(struct net *net, int group)
net              5280 net/core/rtnetlink.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              5319 net/core/rtnetlink.c static int __net_init rtnetlink_net_init(struct net *net)
net              5330 net/core/rtnetlink.c 	sk = netlink_kernel_create(net, NETLINK_ROUTE, &cfg);
net              5333 net/core/rtnetlink.c 	net->rtnl = sk;
net              5337 net/core/rtnetlink.c static void __net_exit rtnetlink_net_exit(struct net *net)
net              5339 net/core/rtnetlink.c 	netlink_kernel_release(net->rtnl);
net              5340 net/core/rtnetlink.c 	net->rtnl = NULL;
net                55 net/core/secure_seq.c u32 secure_tcpv6_ts_off(const struct net *net,
net                66 net/core/secure_seq.c 	if (net->ipv4.sysctl_tcp_timestamps != 1)
net               118 net/core/secure_seq.c u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr)
net               120 net/core/secure_seq.c 	if (net->ipv4.sysctl_tcp_timestamps != 1)
net               144 net/core/sock.c static void sock_inuse_add(struct net *net, int val);
net               576 net/core/sock.c 	struct net *net = sock_net(sk);
net               580 net/core/sock.c 	if (!ns_capable(net->user_ns, CAP_NET_RAW))
net               605 net/core/sock.c 	struct net *net = sock_net(sk);
net               631 net/core/sock.c 		dev = dev_get_by_name_rcu(net, devname);
net               655 net/core/sock.c 	struct net *net = sock_net(sk);
net               667 net/core/sock.c 	ret = netdev_get_name(net, devname, sk->sk_bound_dev_if);
net              1654 net/core/sock.c struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
net              1671 net/core/sock.c 			get_net(net);
net              1672 net/core/sock.c 			sock_inuse_add(net, 1);
net              1675 net/core/sock.c 		sock_net_set(sk, net);
net              3232 net/core/sock.c void sock_prot_inuse_add(struct net *net, struct proto *prot, int val)
net              3234 net/core/sock.c 	__this_cpu_add(net->core.prot_inuse->val[prot->inuse_idx], val);
net              3238 net/core/sock.c int sock_prot_inuse_get(struct net *net, struct proto *prot)
net              3244 net/core/sock.c 		res += per_cpu_ptr(net->core.prot_inuse, cpu)->val[idx];
net              3250 net/core/sock.c static void sock_inuse_add(struct net *net, int val)
net              3252 net/core/sock.c 	this_cpu_add(*net->core.sock_inuse, val);
net              3255 net/core/sock.c int sock_inuse_get(struct net *net)
net              3260 net/core/sock.c 		res += *per_cpu_ptr(net->core.sock_inuse, cpu);
net              3267 net/core/sock.c static int __net_init sock_inuse_init_net(struct net *net)
net              3269 net/core/sock.c 	net->core.prot_inuse = alloc_percpu(struct prot_inuse);
net              3270 net/core/sock.c 	if (net->core.prot_inuse == NULL)
net              3273 net/core/sock.c 	net->core.sock_inuse = alloc_percpu(int);
net              3274 net/core/sock.c 	if (net->core.sock_inuse == NULL)
net              3280 net/core/sock.c 	free_percpu(net->core.prot_inuse);
net              3284 net/core/sock.c static void __net_exit sock_inuse_exit_net(struct net *net)
net              3286 net/core/sock.c 	free_percpu(net->core.prot_inuse);
net              3287 net/core/sock.c 	free_percpu(net->core.sock_inuse);
net              3333 net/core/sock.c static void sock_inuse_add(struct net *net, int val)
net              3572 net/core/sock.c static __net_init int proto_init_net(struct net *net)
net              3574 net/core/sock.c 	if (!proc_create_net("protocols", 0444, net->proc_net, &proto_seq_ops,
net              3581 net/core/sock.c static __net_exit void proto_exit_net(struct net *net)
net              3583 net/core/sock.c 	remove_proc_entry("protocols", net->proc_net);
net               279 net/core/sock_diag.c static int sock_diag_bind(struct net *net, int group)
net               308 net/core/sock_diag.c static int __net_init diag_net_init(struct net *net)
net               317 net/core/sock_diag.c 	net->diag_nlsk = netlink_kernel_create(net, NETLINK_SOCK_DIAG, &cfg);
net               318 net/core/sock_diag.c 	return net->diag_nlsk == NULL ? -ENOMEM : 0;
net               321 net/core/sock_diag.c static void __net_exit diag_net_exit(struct net *net)
net               323 net/core/sock_diag.c 	netlink_kernel_release(net->diag_nlsk);
net               324 net/core/sock_diag.c 	net->diag_nlsk = NULL;
net               595 net/core/sysctl_net_core.c static __net_init int sysctl_core_net_init(struct net *net)
net               600 net/core/sysctl_net_core.c 	if (!net_eq(net, &init_net)) {
net               605 net/core/sysctl_net_core.c 		tbl[0].data = &net->core.sysctl_somaxconn;
net               608 net/core/sysctl_net_core.c 		if (net->user_ns != &init_user_ns) {
net               613 net/core/sysctl_net_core.c 	net->core.sysctl_hdr = register_net_sysctl(net, "net/core", tbl);
net               614 net/core/sysctl_net_core.c 	if (net->core.sysctl_hdr == NULL)
net               626 net/core/sysctl_net_core.c static __net_exit void sysctl_core_net_exit(struct net *net)
net               630 net/core/sysctl_net_core.c 	tbl = net->core.sysctl_hdr->ctl_table_arg;
net               631 net/core/sysctl_net_core.c 	unregister_net_sysctl_table(net->core.sysctl_hdr);
net               320 net/core/utils.c static int inet6_pton(struct net *net, const char *src, u16 port_num,
net               344 net/core/utils.c 		dev = dev_get_by_name(net, scope_id);
net               369 net/core/utils.c int inet_pton_with_scope(struct net *net, __kernel_sa_family_t af,
net               387 net/core/utils.c 		ret = inet6_pton(net, src, port_num, addr);
net               392 net/core/utils.c 			ret = inet6_pton(net, src, port_num, addr);
net              1373 net/dcb/dcbnl.c 	struct net *net = dev_net(dev);
net              1394 net/dcb/dcbnl.c 		rtnl_set_sk_err(net, RTNLGRP_DCB, err);
net              1398 net/dcb/dcbnl.c 		rtnl_notify(skb, net, 0, RTNLGRP_DCB, NULL, GFP_KERNEL);
net              1735 net/dcb/dcbnl.c 	struct net *net = sock_net(skb->sk);
net              1764 net/dcb/dcbnl.c 	netdev = __dev_get_by_name(net, nla_data(tb[DCB_ATTR_IFNAME]));
net              1784 net/dcb/dcbnl.c 	ret = rtnl_unicast(reply_skb, net, portid);
net               197 net/dccp/ipv4.c 	struct net *net = sock_net(sk);
net               204 net/dccp/ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_OUTOFWINDOWICMPS);
net               242 net/dccp/ipv4.c 	struct net *net = dev_net(skb->dev);
net               252 net/dccp/ipv4.c 	sk = __inet_lookup_established(net, &dccp_hashinfo,
net               257 net/dccp/ipv4.c 		__ICMP_INC_STATS(net, ICMP_MIB_INERRORS);
net               276 net/dccp/ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_LOCKDROPPEDICMPS);
net               284 net/dccp/ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_OUTOFWINDOWICMPS);
net               452 net/dccp/ipv4.c static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk,
net               468 net/dccp/ipv4.c 	rt = ip_route_output_flow(net, &fl4, sk);
net               470 net/dccp/ipv4.c 		IP_INC_STATS(net, IPSTATS_MIB_OUTNOROUTES);
net               514 net/dccp/ipv4.c 	struct net *net = dev_net(skb_dst(rxskb)->dev);
net               515 net/dccp/ipv4.c 	struct sock *ctl_sk = net->dccp.v4_ctl_sk;
net               524 net/dccp/ipv4.c 	dst = dccp_v4_route_skb(net, ctl_sk, rxskb);
net              1014 net/dccp/ipv4.c static int __net_init dccp_v4_init_net(struct net *net)
net              1019 net/dccp/ipv4.c 	return inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET,
net              1020 net/dccp/ipv4.c 				    SOCK_DCCP, IPPROTO_DCCP, net);
net              1023 net/dccp/ipv4.c static void __net_exit dccp_v4_exit_net(struct net *net)
net              1025 net/dccp/ipv4.c 	inet_ctl_sock_destroy(net->dccp.v4_ctl_sk);
net                77 net/dccp/ipv6.c 	struct net *net = dev_net(skb->dev);
net                87 net/dccp/ipv6.c 	sk = __inet6_lookup_established(net, &dccp_hashinfo,
net                93 net/dccp/ipv6.c 		__ICMP6_INC_STATS(net, __in6_dev_get(skb->dev),
net               110 net/dccp/ipv6.c 		__NET_INC_STATS(net, LINUX_MIB_LOCKDROPPEDICMPS);
net               118 net/dccp/ipv6.c 		__NET_INC_STATS(net, LINUX_MIB_OUTOFWINDOWICMPS);
net               256 net/dccp/ipv6.c 	struct net *net = dev_net(skb_dst(rxskb)->dev);
net               257 net/dccp/ipv6.c 	struct sock *ctl_sk = net->dccp.v6_ctl_sk;
net              1098 net/dccp/ipv6.c static int __net_init dccp_v6_init_net(struct net *net)
net              1103 net/dccp/ipv6.c 	return inet_ctl_sock_create(&net->dccp.v6_ctl_sk, PF_INET6,
net              1104 net/dccp/ipv6.c 				    SOCK_DCCP, IPPROTO_DCCP, net);
net              1107 net/dccp/ipv6.c static void __net_exit dccp_v6_exit_net(struct net *net)
net              1109 net/dccp/ipv6.c 	inet_ctl_sock_destroy(net->dccp.v6_ctl_sk);
net               464 net/decnet/af_decnet.c static struct sock *dn_alloc_sock(struct net *net, struct socket *sock, gfp_t gfp, int kern)
net               467 net/decnet/af_decnet.c 	struct sock *sk = sk_alloc(net, PF_DECnet, gfp, &dn_proto, kern);
net               668 net/decnet/af_decnet.c static int dn_create(struct net *net, struct socket *sock, int protocol,
net               676 net/decnet/af_decnet.c 	if (!net_eq(net, &init_net))
net               691 net/decnet/af_decnet.c 	if ((sk = dn_alloc_sock(net, sock, GFP_KERNEL, kern)) == NULL)
net               572 net/decnet/dn_dev.c 	struct net *net = sock_net(skb->sk);
net               583 net/decnet/dn_dev.c 	if (!net_eq(net, &init_net))
net               618 net/decnet/dn_dev.c 	struct net *net = sock_net(skb->sk);
net               629 net/decnet/dn_dev.c 	if (!net_eq(net, &init_net))
net               743 net/decnet/dn_dev.c 	struct net *net = sock_net(skb->sk);
net               749 net/decnet/dn_dev.c 	if (!net_eq(net, &init_net))
net               508 net/decnet/dn_fib.c 	struct net *net = sock_net(skb->sk);
net               517 net/decnet/dn_fib.c 	if (!net_eq(net, &init_net))
net               535 net/decnet/dn_fib.c 	struct net *net = sock_net(skb->sk);
net               544 net/decnet/dn_fib.c 	if (!net_eq(net, &init_net))
net               198 net/decnet/dn_neigh.c static int dn_neigh_output_packet(struct net *net, struct sock *sk, struct sk_buff *skb)
net               338 net/decnet/dn_neigh.c int dn_to_neigh_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               382 net/decnet/dn_neigh.c int dn_neigh_router_hello(struct net *net, struct sock *sk, struct sk_buff *skb)
net               444 net/decnet/dn_neigh.c int dn_neigh_endnode_hello(struct net *net, struct sock *sk, struct sk_buff *skb)
net               710 net/decnet/dn_nsp_in.c static int dn_nsp_rx_packet(struct net *net, struct sock *sk2,
net               501 net/decnet/dn_route.c static int dn_route_rx_packet(struct net *net, struct sock *sk, struct sk_buff *skb)
net               599 net/decnet/dn_route.c static int dn_route_discard(struct net *net, struct sock *sk, struct sk_buff *skb)
net               609 net/decnet/dn_route.c static int dn_route_ptp_hello(struct net *net, struct sock *sk, struct sk_buff *skb)
net               733 net/decnet/dn_route.c static int dn_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               819 net/decnet/dn_route.c static int dn_rt_bug_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net              1636 net/decnet/dn_route.c 	struct net *net = sock_net(in_skb->sk);
net              1645 net/decnet/dn_route.c 	if (!net_eq(net, &init_net))
net              1722 net/decnet/dn_route.c 	struct net *net = sock_net(skb->sk);
net              1728 net/decnet/dn_route.c 	if (!net_eq(net, &init_net))
net               491 net/decnet/dn_table.c 	struct net *net = sock_net(skb->sk);
net               497 net/decnet/dn_table.c 	if (!net_eq(net, &init_net))
net                74 net/dns_resolver/dns_query.c int dns_query(struct net *net,
net               128 net/dns_resolver/dns_query.c 	rkey = request_key_net(&key_type_dns_resolver, desc, net, options);
net                30 net/hsr/hsr_netlink.c static int hsr_newlink(struct net *src_net, struct net_device *dev,
net               123 net/ieee802154/6lowpan/core.c static int lowpan_newlink(struct net *src_net, struct net_device *ldev,
net                63 net/ieee802154/6lowpan/reassembly.c fq_find(struct net *net, const struct lowpan_802154_cb *cb,
net                68 net/ieee802154/6lowpan/reassembly.c 		net_ieee802154_lowpan(net);
net               279 net/ieee802154/6lowpan/reassembly.c 	struct net *net = dev_net(skb->dev);
net               302 net/ieee802154/6lowpan/reassembly.c 	fq = fq_find(net, cb, &hdr.source, &hdr.dest);
net               356 net/ieee802154/6lowpan/reassembly.c static int __net_init lowpan_frags_ns_sysctl_register(struct net *net)
net               361 net/ieee802154/6lowpan/reassembly.c 		net_ieee802154_lowpan(net);
net               364 net/ieee802154/6lowpan/reassembly.c 	if (!net_eq(net, &init_net)) {
net               371 net/ieee802154/6lowpan/reassembly.c 		if (net->user_ns != &init_user_ns)
net               381 net/ieee802154/6lowpan/reassembly.c 	hdr = register_net_sysctl(net, "net/ieee802154/6lowpan", table);
net               389 net/ieee802154/6lowpan/reassembly.c 	if (!net_eq(net, &init_net))
net               395 net/ieee802154/6lowpan/reassembly.c static void __net_exit lowpan_frags_ns_sysctl_unregister(struct net *net)
net               399 net/ieee802154/6lowpan/reassembly.c 		net_ieee802154_lowpan(net);
net               403 net/ieee802154/6lowpan/reassembly.c 	if (!net_eq(net, &init_net))
net               422 net/ieee802154/6lowpan/reassembly.c static inline int lowpan_frags_ns_sysctl_register(struct net *net)
net               427 net/ieee802154/6lowpan/reassembly.c static inline void lowpan_frags_ns_sysctl_unregister(struct net *net)
net               441 net/ieee802154/6lowpan/reassembly.c static int __net_init lowpan_frags_init_net(struct net *net)
net               444 net/ieee802154/6lowpan/reassembly.c 		net_ieee802154_lowpan(net);
net               448 net/ieee802154/6lowpan/reassembly.c 	res = fqdir_init(&ieee802154_lowpan->fqdir, &lowpan_frags, net);
net               456 net/ieee802154/6lowpan/reassembly.c 	res = lowpan_frags_ns_sysctl_register(net);
net               462 net/ieee802154/6lowpan/reassembly.c static void __net_exit lowpan_frags_pre_exit_net(struct net *net)
net               465 net/ieee802154/6lowpan/reassembly.c 		net_ieee802154_lowpan(net);
net               470 net/ieee802154/6lowpan/reassembly.c static void __net_exit lowpan_frags_exit_net(struct net *net)
net               473 net/ieee802154/6lowpan/reassembly.c 		net_ieee802154_lowpan(net);
net               475 net/ieee802154/6lowpan/reassembly.c 	lowpan_frags_ns_sysctl_unregister(net);
net               199 net/ieee802154/core.c 			   struct net *net)
net               208 net/ieee802154/core.c 		err = dev_change_net_namespace(wpan_dev->netdev, net, "wpan%d");
net               216 net/ieee802154/core.c 		net = wpan_phy_net(&rdev->wpan_phy);
net               224 net/ieee802154/core.c 			err = dev_change_net_namespace(wpan_dev->netdev, net,
net               233 net/ieee802154/core.c 	wpan_phy_net_set(&rdev->wpan_phy, net);
net               320 net/ieee802154/core.c static void __net_exit cfg802154_pernet_exit(struct net *net)
net               326 net/ieee802154/core.c 		if (net_eq(wpan_phy_net(&rdev->wpan_phy), net))
net                43 net/ieee802154/core.h 			   struct net *net);
net               440 net/ieee802154/nl-mac.c 	struct net *net = sock_net(skb->sk);
net               448 net/ieee802154/nl-mac.c 	for_each_netdev(net, dev) {
net               772 net/ieee802154/nl-mac.c 	struct net *net = sock_net(skb->sk);
net               779 net/ieee802154/nl-mac.c 	for_each_netdev(net, dev) {
net                37 net/ieee802154/nl802154.c __cfg802154_wpan_dev_from_attrs(struct net *netns, struct nlattr **attrs)
net                92 net/ieee802154/nl802154.c __cfg802154_rdev_from_attrs(struct net *netns, struct nlattr **attrs)
net               171 net/ieee802154/nl802154.c cfg802154_get_dev_from_info(struct net *netns, struct genl_info *info)
net              1267 net/ieee802154/nl802154.c 	struct net *net;
net              1273 net/ieee802154/nl802154.c 		net = get_net_ns_by_pid(pid);
net              1277 net/ieee802154/nl802154.c 		net = get_net_ns_by_fd(fd);
net              1282 net/ieee802154/nl802154.c 	if (IS_ERR(net))
net              1283 net/ieee802154/nl802154.c 		return PTR_ERR(net);
net              1288 net/ieee802154/nl802154.c 	if (!net_eq(wpan_phy_net(&rdev->wpan_phy), net))
net              1289 net/ieee802154/nl802154.c 		err = cfg802154_switch_netns(rdev, net);
net              1291 net/ieee802154/nl802154.c 	put_net(net);
net                32 net/ieee802154/socket.c ieee802154_get_dev(struct net *net, const struct ieee802154_addr *addr)
net                43 net/ieee802154/socket.c 		dev = dev_getbyhwaddr_rcu(net, ARPHRD_IEEE802154, hwaddr);
net                56 net/ieee802154/socket.c 		for_each_netdev(net, tmp) {
net               882 net/ieee802154/socket.c 	struct net *net = sock_net(sk);
net               902 net/ieee802154/socket.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN) &&
net               903 net/ieee802154/socket.c 		    !ns_capable(net->user_ns, CAP_NET_RAW)) {
net               926 net/ieee802154/socket.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN) &&
net               927 net/ieee802154/socket.c 		    !ns_capable(net->user_ns, CAP_NET_RAW)) {
net               998 net/ieee802154/socket.c static int ieee802154_create(struct net *net, struct socket *sock,
net              1006 net/ieee802154/socket.c 	if (!net_eq(net, &init_net))
net              1027 net/ieee802154/socket.c 	sk = sk_alloc(net, PF_IEEE802154, GFP_KERNEL, proto, kern);
net               247 net/ipv4/af_inet.c static int inet_create(struct net *net, struct socket *sock, int protocol,
net               310 net/ipv4/af_inet.c 	    !ns_capable(net->user_ns, CAP_NET_RAW))
net               321 net/ipv4/af_inet.c 	sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot, kern);
net               340 net/ipv4/af_inet.c 	if (net->ipv4.sysctl_ip_no_pmtu_disc)
net               462 net/ipv4/af_inet.c 	struct net *net = sock_net(sk);
net               478 net/ipv4/af_inet.c 	tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id;
net               479 net/ipv4/af_inet.c 	chk_addr_ret = inet_addr_type_table(net, addr->sin_addr.s_addr, tb_id);
net               489 net/ipv4/af_inet.c 	if (!inet_can_nonlocal_bind(net, inet) &&
net               498 net/ipv4/af_inet.c 	if (snum && snum < inet_prot_sock(net) &&
net               499 net/ipv4/af_inet.c 	    !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE))
net               917 net/ipv4/af_inet.c 	struct net *net = sock_net(sk);
net               927 net/ipv4/af_inet.c 		err = ip_rt_ioctl(net, cmd, &rt);
net               935 net/ipv4/af_inet.c 		err = arp_ioctl(net, cmd, (void __user *)arg);
net               944 net/ipv4/af_inet.c 		err = devinet_ioctl(net, cmd, &ifr);
net               957 net/ipv4/af_inet.c 		err = devinet_ioctl(net, cmd, &ifr);
net              1626 net/ipv4/af_inet.c 			 struct net *net)
net              1629 net/ipv4/af_inet.c 	int rc = sock_create_kern(net, family, type, protocol, &sock);
net              1734 net/ipv4/af_inet.c static __net_init int ipv4_mib_init_net(struct net *net)
net              1738 net/ipv4/af_inet.c 	net->mib.tcp_statistics = alloc_percpu(struct tcp_mib);
net              1739 net/ipv4/af_inet.c 	if (!net->mib.tcp_statistics)
net              1741 net/ipv4/af_inet.c 	net->mib.ip_statistics = alloc_percpu(struct ipstats_mib);
net              1742 net/ipv4/af_inet.c 	if (!net->mib.ip_statistics)
net              1747 net/ipv4/af_inet.c 		af_inet_stats = per_cpu_ptr(net->mib.ip_statistics, i);
net              1751 net/ipv4/af_inet.c 	net->mib.net_statistics = alloc_percpu(struct linux_mib);
net              1752 net/ipv4/af_inet.c 	if (!net->mib.net_statistics)
net              1754 net/ipv4/af_inet.c 	net->mib.udp_statistics = alloc_percpu(struct udp_mib);
net              1755 net/ipv4/af_inet.c 	if (!net->mib.udp_statistics)
net              1757 net/ipv4/af_inet.c 	net->mib.udplite_statistics = alloc_percpu(struct udp_mib);
net              1758 net/ipv4/af_inet.c 	if (!net->mib.udplite_statistics)
net              1760 net/ipv4/af_inet.c 	net->mib.icmp_statistics = alloc_percpu(struct icmp_mib);
net              1761 net/ipv4/af_inet.c 	if (!net->mib.icmp_statistics)
net              1763 net/ipv4/af_inet.c 	net->mib.icmpmsg_statistics = kzalloc(sizeof(struct icmpmsg_mib),
net              1765 net/ipv4/af_inet.c 	if (!net->mib.icmpmsg_statistics)
net              1768 net/ipv4/af_inet.c 	tcp_mib_init(net);
net              1772 net/ipv4/af_inet.c 	free_percpu(net->mib.icmp_statistics);
net              1774 net/ipv4/af_inet.c 	free_percpu(net->mib.udplite_statistics);
net              1776 net/ipv4/af_inet.c 	free_percpu(net->mib.udp_statistics);
net              1778 net/ipv4/af_inet.c 	free_percpu(net->mib.net_statistics);
net              1780 net/ipv4/af_inet.c 	free_percpu(net->mib.ip_statistics);
net              1782 net/ipv4/af_inet.c 	free_percpu(net->mib.tcp_statistics);
net              1787 net/ipv4/af_inet.c static __net_exit void ipv4_mib_exit_net(struct net *net)
net              1789 net/ipv4/af_inet.c 	kfree(net->mib.icmpmsg_statistics);
net              1790 net/ipv4/af_inet.c 	free_percpu(net->mib.icmp_statistics);
net              1791 net/ipv4/af_inet.c 	free_percpu(net->mib.udplite_statistics);
net              1792 net/ipv4/af_inet.c 	free_percpu(net->mib.udp_statistics);
net              1793 net/ipv4/af_inet.c 	free_percpu(net->mib.net_statistics);
net              1794 net/ipv4/af_inet.c 	free_percpu(net->mib.ip_statistics);
net              1795 net/ipv4/af_inet.c 	free_percpu(net->mib.tcp_statistics);
net              1808 net/ipv4/af_inet.c static __net_init int inet_init_net(struct net *net)
net              1813 net/ipv4/af_inet.c 	seqlock_init(&net->ipv4.ip_local_ports.lock);
net              1814 net/ipv4/af_inet.c 	net->ipv4.ip_local_ports.range[0] =  32768;
net              1815 net/ipv4/af_inet.c 	net->ipv4.ip_local_ports.range[1] =  60999;
net              1817 net/ipv4/af_inet.c 	seqlock_init(&net->ipv4.ping_group_range.lock);
net              1822 net/ipv4/af_inet.c 	net->ipv4.ping_group_range.range[0] = make_kgid(&init_user_ns, 1);
net              1823 net/ipv4/af_inet.c 	net->ipv4.ping_group_range.range[1] = make_kgid(&init_user_ns, 0);
net              1828 net/ipv4/af_inet.c 	net->ipv4.sysctl_ip_default_ttl = IPDEFTTL;
net              1829 net/ipv4/af_inet.c 	net->ipv4.sysctl_ip_fwd_update_priority = 1;
net              1830 net/ipv4/af_inet.c 	net->ipv4.sysctl_ip_dynaddr = 0;
net              1831 net/ipv4/af_inet.c 	net->ipv4.sysctl_ip_early_demux = 1;
net              1832 net/ipv4/af_inet.c 	net->ipv4.sysctl_udp_early_demux = 1;
net              1833 net/ipv4/af_inet.c 	net->ipv4.sysctl_tcp_early_demux = 1;
net              1835 net/ipv4/af_inet.c 	net->ipv4.sysctl_ip_prot_sock = PROT_SOCK;
net              1839 net/ipv4/af_inet.c 	net->ipv4.sysctl_igmp_max_memberships = 20;
net              1840 net/ipv4/af_inet.c 	net->ipv4.sysctl_igmp_max_msf = 10;
net              1842 net/ipv4/af_inet.c 	net->ipv4.sysctl_igmp_llm_reports = 1;
net              1843 net/ipv4/af_inet.c 	net->ipv4.sysctl_igmp_qrv = 2;
net               444 net/ipv4/ah4.c 	struct net *net = dev_net(skb->dev);
net               459 net/ipv4/ah4.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net               465 net/ipv4/ah4.c 		ipv4_update_pmtu(skb, net, info, 0, IPPROTO_AH);
net               467 net/ipv4/ah4.c 		ipv4_redirect(skb, net, 0, IPPROTO_AH);
net               395 net/ipv4/arp.c 	struct net *net = dev_net(in_dev->dev);
net               426 net/ipv4/arp.c 	return !inet_confirm_addr(net, in_dev, sip, tip, scope);
net               434 net/ipv4/arp.c 	struct net *net = dev_net(dev);
net               436 net/ipv4/arp.c 	rt = ip_route_output(net, sip, tip, 0, l3mdev_master_ifindex_rcu(dev));
net               440 net/ipv4/arp.c 		__NET_INC_STATS(net, LINUX_MIB_ARPFILTER);
net               628 net/ipv4/arp.c static int arp_xmit_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               645 net/ipv4/arp.c static bool arp_is_garp(struct net *net, struct net_device *dev,
net               664 net/ipv4/arp.c 		*addr_type = inet_addr_type_dev_table(net, dev, sip);
net               675 net/ipv4/arp.c static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb)
net               806 net/ipv4/arp.c 		    inet_addr_type_dev_table(net, dev, tip) == RTN_LOCAL &&
net               841 net/ipv4/arp.c 			      pneigh_lookup(&arp_tbl, net, &tip, dev, 0)))) {
net               869 net/ipv4/arp.c 		is_garp = arp_is_garp(net, dev, &addr_type, arp->ar_op,
net               884 net/ipv4/arp.c 			inet_addr_type_dev_table(net, dev, sip) ==
net               982 net/ipv4/arp.c static int arp_req_set_proxy(struct net *net, struct net_device *dev, int on)
net               985 net/ipv4/arp.c 		IPV4_DEVCONF_ALL(net, PROXY_ARP) = on;
net               995 net/ipv4/arp.c static int arp_req_set_public(struct net *net, struct arpreq *r,
net              1004 net/ipv4/arp.c 		dev = dev_getbyhwaddr_rcu(net, r->arp_ha.sa_family,
net              1010 net/ipv4/arp.c 		if (!pneigh_lookup(&arp_tbl, net, &ip, dev, 1))
net              1015 net/ipv4/arp.c 	return arp_req_set_proxy(net, dev, 1);
net              1018 net/ipv4/arp.c static int arp_req_set(struct net *net, struct arpreq *r,
net              1026 net/ipv4/arp.c 		return arp_req_set_public(net, r, dev);
net              1032 net/ipv4/arp.c 		struct rtable *rt = ip_route_output(net, ip, 0, RTO_ONLINK, 0);
net              1133 net/ipv4/arp.c static int arp_req_delete_public(struct net *net, struct arpreq *r,
net              1140 net/ipv4/arp.c 		return pneigh_delete(&arp_tbl, net, &ip, dev);
net              1145 net/ipv4/arp.c 	return arp_req_set_proxy(net, dev, 0);
net              1148 net/ipv4/arp.c static int arp_req_delete(struct net *net, struct arpreq *r,
net              1154 net/ipv4/arp.c 		return arp_req_delete_public(net, r, dev);
net              1158 net/ipv4/arp.c 		struct rtable *rt = ip_route_output(net, ip, 0, RTO_ONLINK, 0);
net              1173 net/ipv4/arp.c int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg)
net              1182 net/ipv4/arp.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1206 net/ipv4/arp.c 		dev = __dev_get_by_name(net, r.arp_dev);
net              1223 net/ipv4/arp.c 		err = arp_req_delete(net, &r, dev);
net              1226 net/ipv4/arp.c 		err = arp_req_set(net, &r, dev);
net              1421 net/ipv4/arp.c static int __net_init arp_net_init(struct net *net)
net              1423 net/ipv4/arp.c 	if (!proc_create_net("arp", 0444, net->proc_net, &arp_seq_ops,
net              1429 net/ipv4/arp.c static void __net_exit arp_net_exit(struct net *net)
net              1431 net/ipv4/arp.c 	remove_proc_entry("arp", net->proc_net);
net                93 net/ipv4/devinet.c #define IPV4_DEVCONF_DFLT(net, attr) \
net                94 net/ipv4/devinet.c 	IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr)
net               121 net/ipv4/devinet.c static u32 inet_addr_hash(const struct net *net, __be32 addr)
net               123 net/ipv4/devinet.c 	u32 val = (__force u32) addr ^ net_hash_mix(net);
net               128 net/ipv4/devinet.c static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa)
net               130 net/ipv4/devinet.c 	u32 hash = inet_addr_hash(net, ifa->ifa_local);
net               150 net/ipv4/devinet.c struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref)
net               156 net/ipv4/devinet.c 	ifa = inet_lookup_ifaddr_rcu(net, addr);
net               165 net/ipv4/devinet.c 		local = fib_get_table(net, RT_TABLE_LOCAL);
net               181 net/ipv4/devinet.c struct in_ifaddr *inet_lookup_ifaddr_rcu(struct net *net, __be32 addr)
net               183 net/ipv4/devinet.c 	u32 hash = inet_addr_hash(net, addr);
net               188 net/ipv4/devinet.c 		    net_eq(dev_net(ifa->ifa_dev->dev), net))
net               588 net/ipv4/devinet.c struct in_device *inetdev_by_index(struct net *net, int ifindex)
net               594 net/ipv4/devinet.c 	dev = dev_get_by_index_rcu(net, ifindex);
net               618 net/ipv4/devinet.c static int ip_mc_autojoin_config(struct net *net, bool join,
net               626 net/ipv4/devinet.c 	struct sock *sk = net->ipv4.mc_autojoin_sk;
net               647 net/ipv4/devinet.c 	struct net *net = sock_net(skb->sk);
net               664 net/ipv4/devinet.c 	in_dev = inetdev_by_index(net, ifm->ifa_index);
net               685 net/ipv4/devinet.c 			ip_mc_autojoin_config(net, false, ifa);
net               823 net/ipv4/devinet.c static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh,
net               844 net/ipv4/devinet.c 	dev = __dev_get_by_index(net, ifm->ifa_index);
net               931 net/ipv4/devinet.c 	struct net *net = sock_net(skb->sk);
net               939 net/ipv4/devinet.c 	ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft, extack);
net               950 net/ipv4/devinet.c 			int ret = ip_mc_autojoin_config(net, true, ifa);
net              1009 net/ipv4/devinet.c int devinet_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr)
net              1030 net/ipv4/devinet.c 	dev_load(net, ifr->ifr_name);
net              1048 net/ipv4/devinet.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1056 net/ipv4/devinet.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1070 net/ipv4/devinet.c 	dev = __dev_get_by_name(net, ifr->ifr_name);
net              1307 net/ipv4/devinet.c 	struct net *net = dev_net(dev);
net              1342 net/ipv4/devinet.c 	    (dev = dev_get_by_index_rcu(net, master_idx)) &&
net              1353 net/ipv4/devinet.c 	for_each_netdev_rcu(net, dev) {
net              1423 net/ipv4/devinet.c __be32 inet_confirm_addr(struct net *net, struct in_device *in_dev,
net              1433 net/ipv4/devinet.c 	for_each_netdev_rcu(net, dev) {
net              1718 net/ipv4/devinet.c 				      struct net **tgt_net, struct sock *sk,
net              1753 net/ipv4/devinet.c 			struct net *net;
net              1757 net/ipv4/devinet.c 			net = rtnl_get_net_ns_capable(sk, fillargs->netnsid);
net              1758 net/ipv4/devinet.c 			if (IS_ERR(net)) {
net              1761 net/ipv4/devinet.c 				return PTR_ERR(net);
net              1763 net/ipv4/devinet.c 			*tgt_net = net;
net              1811 net/ipv4/devinet.c 	struct net *net = sock_net(skb->sk);
net              1812 net/ipv4/devinet.c 	struct net *tgt_net = net;
net              1897 net/ipv4/devinet.c 	struct net *net;
net              1899 net/ipv4/devinet.c 	net = dev_net(ifa->ifa_dev->dev);
net              1911 net/ipv4/devinet.c 	rtnl_notify(skb, net, portid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL);
net              1915 net/ipv4/devinet.c 		rtnl_set_sk_err(net, RTNLGRP_IPV4_IFADDR, err);
net              2087 net/ipv4/devinet.c void inet_netconf_notify_devconf(struct net *net, int event, int type,
net              2105 net/ipv4/devinet.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV4_NETCONF, NULL, GFP_KERNEL);
net              2109 net/ipv4/devinet.c 		rtnl_set_sk_err(net, RTNLGRP_IPV4_NETCONF, err);
net              2163 net/ipv4/devinet.c 	struct net *net = sock_net(in_skb->sk);
net              2183 net/ipv4/devinet.c 		devconf = net->ipv4.devconf_all;
net              2186 net/ipv4/devinet.c 		devconf = net->ipv4.devconf_dflt;
net              2189 net/ipv4/devinet.c 		dev = __dev_get_by_index(net, ifindex);
net              2214 net/ipv4/devinet.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              2223 net/ipv4/devinet.c 	struct net *net = sock_net(skb->sk);
net              2250 net/ipv4/devinet.c 		head = &net->dev_index_head[h];
net              2252 net/ipv4/devinet.c 		cb->seq = atomic_read(&net->ipv4.dev_addr_genid) ^
net              2253 net/ipv4/devinet.c 			  net->dev_base_seq;
net              2279 net/ipv4/devinet.c 					      net->ipv4.devconf_all,
net              2290 net/ipv4/devinet.c 					      net->ipv4.devconf_dflt,
net              2308 net/ipv4/devinet.c static void devinet_copy_dflt_conf(struct net *net, int i)
net              2313 net/ipv4/devinet.c 	for_each_netdev_rcu(net, dev) {
net              2318 net/ipv4/devinet.c 			in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i];
net              2324 net/ipv4/devinet.c static void inet_forward_change(struct net *net)
net              2327 net/ipv4/devinet.c 	int on = IPV4_DEVCONF_ALL(net, FORWARDING);
net              2329 net/ipv4/devinet.c 	IPV4_DEVCONF_ALL(net, ACCEPT_REDIRECTS) = !on;
net              2330 net/ipv4/devinet.c 	IPV4_DEVCONF_DFLT(net, FORWARDING) = on;
net              2331 net/ipv4/devinet.c 	inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2334 net/ipv4/devinet.c 				    net->ipv4.devconf_all);
net              2335 net/ipv4/devinet.c 	inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2338 net/ipv4/devinet.c 				    net->ipv4.devconf_dflt);
net              2340 net/ipv4/devinet.c 	for_each_netdev(net, dev) {
net              2349 net/ipv4/devinet.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2356 net/ipv4/devinet.c static int devinet_conf_ifindex(struct net *net, struct ipv4_devconf *cnf)
net              2358 net/ipv4/devinet.c 	if (cnf == net->ipv4.devconf_dflt)
net              2360 net/ipv4/devinet.c 	else if (cnf == net->ipv4.devconf_all)
net              2379 net/ipv4/devinet.c 		struct net *net = ctl->extra2;
net              2385 net/ipv4/devinet.c 		if (cnf == net->ipv4.devconf_dflt)
net              2386 net/ipv4/devinet.c 			devinet_copy_dflt_conf(net, i);
net              2390 net/ipv4/devinet.c 				rt_cache_flush(net);
net              2394 net/ipv4/devinet.c 			rt_cache_flush(net);
net              2398 net/ipv4/devinet.c 			ifindex = devinet_conf_ifindex(net, cnf);
net              2399 net/ipv4/devinet.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2405 net/ipv4/devinet.c 			ifindex = devinet_conf_ifindex(net, cnf);
net              2406 net/ipv4/devinet.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2412 net/ipv4/devinet.c 			ifindex = devinet_conf_ifindex(net, cnf);
net              2413 net/ipv4/devinet.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2432 net/ipv4/devinet.c 		struct net *net = ctl->extra2;
net              2434 net/ipv4/devinet.c 		if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING)) {
net              2441 net/ipv4/devinet.c 			if (valp == &IPV4_DEVCONF_ALL(net, FORWARDING)) {
net              2442 net/ipv4/devinet.c 				inet_forward_change(net);
net              2449 net/ipv4/devinet.c 				inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2455 net/ipv4/devinet.c 			rt_cache_flush(net);
net              2457 net/ipv4/devinet.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              2460 net/ipv4/devinet.c 						    net->ipv4.devconf_dflt);
net              2473 net/ipv4/devinet.c 	struct net *net = ctl->extra2;
net              2476 net/ipv4/devinet.c 		rt_cache_flush(net);
net              2556 net/ipv4/devinet.c static int __devinet_sysctl_register(struct net *net, char *dev_name,
net              2570 net/ipv4/devinet.c 		t->devinet_vars[i].extra2 = net;
net              2575 net/ipv4/devinet.c 	t->sysctl_header = register_net_sysctl(net, path, t->devinet_vars);
net              2581 net/ipv4/devinet.c 	inet_netconf_notify_devconf(net, RTM_NEWNETCONF, NETCONFA_ALL,
net              2591 net/ipv4/devinet.c static void __devinet_sysctl_unregister(struct net *net,
net              2602 net/ipv4/devinet.c 	inet_netconf_notify_devconf(net, RTM_DELNETCONF, 0, ifindex, NULL);
net              2624 net/ipv4/devinet.c 	struct net *net = dev_net(idev->dev);
net              2626 net/ipv4/devinet.c 	__devinet_sysctl_unregister(net, &idev->cnf, idev->dev->ifindex);
net              2645 net/ipv4/devinet.c static __net_init int devinet_init_net(struct net *net)
net              2670 net/ipv4/devinet.c 	tbl[0].extra2 = net;
net              2675 net/ipv4/devinet.c 	    !net_eq(net, &init_net)) {
net              2681 net/ipv4/devinet.c 	err = __devinet_sysctl_register(net, "all", NETCONFA_IFINDEX_ALL, all);
net              2685 net/ipv4/devinet.c 	err = __devinet_sysctl_register(net, "default",
net              2691 net/ipv4/devinet.c 	forw_hdr = register_net_sysctl(net, "net/ipv4", tbl);
net              2694 net/ipv4/devinet.c 	net->ipv4.forw_hdr = forw_hdr;
net              2697 net/ipv4/devinet.c 	net->ipv4.devconf_all = all;
net              2698 net/ipv4/devinet.c 	net->ipv4.devconf_dflt = dflt;
net              2703 net/ipv4/devinet.c 	__devinet_sysctl_unregister(net, dflt, NETCONFA_IFINDEX_DEFAULT);
net              2705 net/ipv4/devinet.c 	__devinet_sysctl_unregister(net, all, NETCONFA_IFINDEX_ALL);
net              2717 net/ipv4/devinet.c static __net_exit void devinet_exit_net(struct net *net)
net              2722 net/ipv4/devinet.c 	tbl = net->ipv4.forw_hdr->ctl_table_arg;
net              2723 net/ipv4/devinet.c 	unregister_net_sysctl_table(net->ipv4.forw_hdr);
net              2724 net/ipv4/devinet.c 	__devinet_sysctl_unregister(net, net->ipv4.devconf_dflt,
net              2726 net/ipv4/devinet.c 	__devinet_sysctl_unregister(net, net->ipv4.devconf_all,
net              2730 net/ipv4/devinet.c 	kfree(net->ipv4.devconf_dflt);
net              2731 net/ipv4/devinet.c 	kfree(net->ipv4.devconf_all);
net               791 net/ipv4/esp4.c 	struct net *net = dev_net(skb->dev);
net               806 net/ipv4/esp4.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net               812 net/ipv4/esp4.c 		ipv4_update_pmtu(skb, net, info, 0, IPPROTO_ESP);
net               814 net/ipv4/esp4.c 		ipv4_redirect(skb, net, 0, IPPROTO_ESP);
net                51 net/ipv4/fib_frontend.c static int __net_init fib4_rules_init(struct net *net)
net                64 net/ipv4/fib_frontend.c 				&net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]);
net                66 net/ipv4/fib_frontend.c 				&net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]);
net                74 net/ipv4/fib_frontend.c static bool fib4_has_custom_rules(struct net *net)
net                80 net/ipv4/fib_frontend.c struct fib_table *fib_new_table(struct net *net, u32 id)
net                87 net/ipv4/fib_frontend.c 	tb = fib_get_table(net, id);
net                91 net/ipv4/fib_frontend.c 	if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules)
net                92 net/ipv4/fib_frontend.c 		alias = fib_new_table(net, RT_TABLE_MAIN);
net               100 net/ipv4/fib_frontend.c 		rcu_assign_pointer(net->ipv4.fib_main, tb);
net               103 net/ipv4/fib_frontend.c 		rcu_assign_pointer(net->ipv4.fib_default, tb);
net               110 net/ipv4/fib_frontend.c 	hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]);
net               116 net/ipv4/fib_frontend.c struct fib_table *fib_get_table(struct net *net, u32 id)
net               126 net/ipv4/fib_frontend.c 	head = &net->ipv4.fib_table_hash[h];
net               135 net/ipv4/fib_frontend.c static bool fib4_has_custom_rules(struct net *net)
net               137 net/ipv4/fib_frontend.c 	return net->ipv4.fib_has_custom_rules;
net               141 net/ipv4/fib_frontend.c static void fib_replace_table(struct net *net, struct fib_table *old,
net               147 net/ipv4/fib_frontend.c 		rcu_assign_pointer(net->ipv4.fib_main, new);
net               150 net/ipv4/fib_frontend.c 		rcu_assign_pointer(net->ipv4.fib_default, new);
net               161 net/ipv4/fib_frontend.c int fib_unmerge(struct net *net)
net               166 net/ipv4/fib_frontend.c 	old = fib_get_table(net, RT_TABLE_LOCAL);
net               179 net/ipv4/fib_frontend.c 	fib_replace_table(net, old, new);
net               183 net/ipv4/fib_frontend.c 	main_table = fib_get_table(net, RT_TABLE_MAIN);
net               193 net/ipv4/fib_frontend.c void fib_flush(struct net *net)
net               199 net/ipv4/fib_frontend.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[h];
net               204 net/ipv4/fib_frontend.c 			flushed += fib_table_flush(net, tb, false);
net               208 net/ipv4/fib_frontend.c 		rt_cache_flush(net);
net               215 net/ipv4/fib_frontend.c static inline unsigned int __inet_dev_addr_type(struct net *net,
net               231 net/ipv4/fib_frontend.c 	table = fib_get_table(net, tb_id);
net               246 net/ipv4/fib_frontend.c unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id)
net               248 net/ipv4/fib_frontend.c 	return __inet_dev_addr_type(net, NULL, addr, tb_id);
net               252 net/ipv4/fib_frontend.c unsigned int inet_addr_type(struct net *net, __be32 addr)
net               254 net/ipv4/fib_frontend.c 	return __inet_dev_addr_type(net, NULL, addr, RT_TABLE_LOCAL);
net               258 net/ipv4/fib_frontend.c unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev,
net               263 net/ipv4/fib_frontend.c 	return __inet_dev_addr_type(net, dev, addr, rt_table);
net               270 net/ipv4/fib_frontend.c unsigned int inet_addr_type_dev_table(struct net *net,
net               276 net/ipv4/fib_frontend.c 	return __inet_dev_addr_type(net, NULL, addr, rt_table);
net               286 net/ipv4/fib_frontend.c 	struct net *net;
net               296 net/ipv4/fib_frontend.c 	net = dev_net(dev);
net               309 net/ipv4/fib_frontend.c 		if (!fib_lookup(net, &fl4, &res, 0))
net               310 net/ipv4/fib_frontend.c 			return fib_result_prefsrc(net, &res);
net               357 net/ipv4/fib_frontend.c 	struct net *net = dev_net(dev);
net               374 net/ipv4/fib_frontend.c 	fl4.flowi4_uid = sock_net_uid(net, NULL);
net               379 net/ipv4/fib_frontend.c 	if (!fib4_rules_early_flow_dissect(net, skb, &fl4, &flkeys)) {
net               385 net/ipv4/fib_frontend.c 	if (fib_lookup(net, &fl4, &res, 0))
net               397 net/ipv4/fib_frontend.c 				  dev == net->loopback_dev);
net               409 net/ipv4/fib_frontend.c 	if (fib_lookup(net, &fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE) == 0) {
net               433 net/ipv4/fib_frontend.c 	struct net *net = dev_net(dev);
net               435 net/ipv4/fib_frontend.c 	if (!r && !fib_num_tclassid_users(net) &&
net               443 net/ipv4/fib_frontend.c 		if (net->ipv4.fib_has_custom_local_routes ||
net               444 net/ipv4/fib_frontend.c 		    fib4_has_custom_rules(net))
net               446 net/ipv4/fib_frontend.c 		if (inet_lookup_ifaddr_rcu(net, src))
net               475 net/ipv4/fib_frontend.c static int rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt,
net               482 net/ipv4/fib_frontend.c 	cfg->fc_nlinfo.nl_net = net;
net               543 net/ipv4/fib_frontend.c 		dev = __dev_get_by_name(net, devname);
net               577 net/ipv4/fib_frontend.c 		addr_type = inet_addr_type_table(net, addr, cfg->fc_table);
net               620 net/ipv4/fib_frontend.c int ip_rt_ioctl(struct net *net, unsigned int cmd, struct rtentry *rt)
net               628 net/ipv4/fib_frontend.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               632 net/ipv4/fib_frontend.c 		err = rtentry_to_fib_config(net, cmd, rt, &cfg);
net               637 net/ipv4/fib_frontend.c 				tb = fib_get_table(net, cfg.fc_table);
net               639 net/ipv4/fib_frontend.c 					err = fib_table_delete(net, tb, &cfg,
net               644 net/ipv4/fib_frontend.c 				tb = fib_new_table(net, cfg.fc_table);
net               646 net/ipv4/fib_frontend.c 					err = fib_table_insert(net, tb,
net               728 net/ipv4/fib_frontend.c static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
net               756 net/ipv4/fib_frontend.c 	cfg->fc_nlinfo.nl_net = net;
net               848 net/ipv4/fib_frontend.c 	struct net *net = sock_net(skb->sk);
net               853 net/ipv4/fib_frontend.c 	err = rtm_to_fib_config(net, skb, nlh, &cfg, extack);
net               857 net/ipv4/fib_frontend.c 	if (cfg.fc_nh_id && !nexthop_find_by_id(net, cfg.fc_nh_id)) {
net               863 net/ipv4/fib_frontend.c 	tb = fib_get_table(net, cfg.fc_table);
net               870 net/ipv4/fib_frontend.c 	err = fib_table_delete(net, tb, &cfg, extack);
net               878 net/ipv4/fib_frontend.c 	struct net *net = sock_net(skb->sk);
net               883 net/ipv4/fib_frontend.c 	err = rtm_to_fib_config(net, skb, nlh, &cfg, extack);
net               887 net/ipv4/fib_frontend.c 	tb = fib_new_table(net, cfg.fc_table);
net               893 net/ipv4/fib_frontend.c 	err = fib_table_insert(net, tb, &cfg, extack);
net               895 net/ipv4/fib_frontend.c 		net->ipv4.fib_has_custom_local_routes = true;
net               900 net/ipv4/fib_frontend.c int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
net               954 net/ipv4/fib_frontend.c 			filter->dev = __dev_get_by_index(net, ifindex);
net               979 net/ipv4/fib_frontend.c 	struct net *net = sock_net(skb->sk);
net               987 net/ipv4/fib_frontend.c 		err = ip_valid_fib_dump_req(net, nlh, &filter, cb);
net              1001 net/ipv4/fib_frontend.c 		tb = fib_get_table(net, filter.table_id);
net              1023 net/ipv4/fib_frontend.c 		head = &net->ipv4.fib_table_hash[h];
net              1062 net/ipv4/fib_frontend.c 	struct net *net = dev_net(ifa->ifa_dev->dev);
net              1075 net/ipv4/fib_frontend.c 			.nl_net = net,
net              1082 net/ipv4/fib_frontend.c 	tb = fib_new_table(net, tb_id);
net              1094 net/ipv4/fib_frontend.c 		fib_table_insert(net, tb, &cfg, NULL);
net              1096 net/ipv4/fib_frontend.c 		fib_table_delete(net, tb, &cfg, NULL);
net              1328 net/ipv4/fib_frontend.c static void nl_fib_lookup(struct net *net, struct fib_result_nl *frn)
net              1342 net/ipv4/fib_frontend.c 	tb = fib_get_table(net, frn->tb_id_in);
net              1365 net/ipv4/fib_frontend.c 	struct net *net;
net              1370 net/ipv4/fib_frontend.c 	net = sock_net(skb->sk);
net              1383 net/ipv4/fib_frontend.c 	nl_fib_lookup(net, frn);
net              1388 net/ipv4/fib_frontend.c 	netlink_unicast(net->ipv4.fibnl, skb, portid, MSG_DONTWAIT);
net              1391 net/ipv4/fib_frontend.c static int __net_init nl_fib_lookup_init(struct net *net)
net              1398 net/ipv4/fib_frontend.c 	sk = netlink_kernel_create(net, NETLINK_FIB_LOOKUP, &cfg);
net              1401 net/ipv4/fib_frontend.c 	net->ipv4.fibnl = sk;
net              1405 net/ipv4/fib_frontend.c static void nl_fib_lookup_exit(struct net *net)
net              1407 net/ipv4/fib_frontend.c 	netlink_kernel_release(net->ipv4.fibnl);
net              1408 net/ipv4/fib_frontend.c 	net->ipv4.fibnl = NULL;
net              1425 net/ipv4/fib_frontend.c 	struct net *net = dev_net(dev);
net              1433 net/ipv4/fib_frontend.c 		atomic_inc(&net->ipv4.dev_addr_genid);
net              1438 net/ipv4/fib_frontend.c 		atomic_inc(&net->ipv4.dev_addr_genid);
net              1458 net/ipv4/fib_frontend.c 	struct net *net = dev_net(dev);
net              1480 net/ipv4/fib_frontend.c 		atomic_inc(&net->ipv4.dev_addr_genid);
net              1481 net/ipv4/fib_frontend.c 		rt_cache_flush(net);
net              1492 net/ipv4/fib_frontend.c 		rt_cache_flush(net);
net              1496 net/ipv4/fib_frontend.c 		rt_cache_flush(net);
net              1519 net/ipv4/fib_frontend.c static int __net_init ip_fib_net_init(struct net *net)
net              1524 net/ipv4/fib_frontend.c 	err = fib4_notifier_init(net);
net              1531 net/ipv4/fib_frontend.c 	net->ipv4.fib_table_hash = kzalloc(size, GFP_KERNEL);
net              1532 net/ipv4/fib_frontend.c 	if (!net->ipv4.fib_table_hash) {
net              1537 net/ipv4/fib_frontend.c 	err = fib4_rules_init(net);
net              1543 net/ipv4/fib_frontend.c 	kfree(net->ipv4.fib_table_hash);
net              1545 net/ipv4/fib_frontend.c 	fib4_notifier_exit(net);
net              1549 net/ipv4/fib_frontend.c static void ip_fib_net_exit(struct net *net)
net              1555 net/ipv4/fib_frontend.c 	RCU_INIT_POINTER(net->ipv4.fib_main, NULL);
net              1556 net/ipv4/fib_frontend.c 	RCU_INIT_POINTER(net->ipv4.fib_default, NULL);
net              1564 net/ipv4/fib_frontend.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[i];
net              1570 net/ipv4/fib_frontend.c 			fib_table_flush(net, tb, true);
net              1576 net/ipv4/fib_frontend.c 	fib4_rules_exit(net);
net              1579 net/ipv4/fib_frontend.c 	kfree(net->ipv4.fib_table_hash);
net              1580 net/ipv4/fib_frontend.c 	fib4_notifier_exit(net);
net              1583 net/ipv4/fib_frontend.c static int __net_init fib_net_init(struct net *net)
net              1588 net/ipv4/fib_frontend.c 	net->ipv4.fib_num_tclassid_users = 0;
net              1590 net/ipv4/fib_frontend.c 	error = ip_fib_net_init(net);
net              1593 net/ipv4/fib_frontend.c 	error = nl_fib_lookup_init(net);
net              1596 net/ipv4/fib_frontend.c 	error = fib_proc_init(net);
net              1603 net/ipv4/fib_frontend.c 	nl_fib_lookup_exit(net);
net              1605 net/ipv4/fib_frontend.c 	ip_fib_net_exit(net);
net              1609 net/ipv4/fib_frontend.c static void __net_exit fib_net_exit(struct net *net)
net              1611 net/ipv4/fib_frontend.c 	fib_proc_exit(net);
net              1612 net/ipv4/fib_frontend.c 	nl_fib_lookup_exit(net);
net              1613 net/ipv4/fib_frontend.c 	ip_fib_net_exit(net);
net                12 net/ipv4/fib_notifier.c int call_fib4_notifier(struct notifier_block *nb, struct net *net,
net                17 net/ipv4/fib_notifier.c 	return call_fib_notifier(nb, net, event_type, info);
net                20 net/ipv4/fib_notifier.c int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
net                26 net/ipv4/fib_notifier.c 	net->ipv4.fib_seq++;
net                27 net/ipv4/fib_notifier.c 	return call_fib_notifiers(net, event_type, info);
net                30 net/ipv4/fib_notifier.c static unsigned int fib4_seq_read(struct net *net)
net                34 net/ipv4/fib_notifier.c 	return net->ipv4.fib_seq + fib4_rules_seq_read(net);
net                37 net/ipv4/fib_notifier.c static int fib4_dump(struct net *net, struct notifier_block *nb)
net                41 net/ipv4/fib_notifier.c 	err = fib4_rules_dump(net, nb);
net                45 net/ipv4/fib_notifier.c 	fib_notify(net, nb);
net                57 net/ipv4/fib_notifier.c int __net_init fib4_notifier_init(struct net *net)
net                61 net/ipv4/fib_notifier.c 	net->ipv4.fib_seq = 0;
net                63 net/ipv4/fib_notifier.c 	ops = fib_notifier_ops_register(&fib4_notifier_ops_template, net);
net                66 net/ipv4/fib_notifier.c 	net->ipv4.notifier_ops = ops;
net                71 net/ipv4/fib_notifier.c void __net_exit fib4_notifier_exit(struct net *net)
net                73 net/ipv4/fib_notifier.c 	fib_notifier_ops_unregister(net->ipv4.notifier_ops);
net                68 net/ipv4/fib_rules.c int fib4_rules_dump(struct net *net, struct notifier_block *nb)
net                70 net/ipv4/fib_rules.c 	return fib_rules_dump(net, nb, AF_INET);
net                73 net/ipv4/fib_rules.c unsigned int fib4_rules_seq_read(struct net *net)
net                75 net/ipv4/fib_rules.c 	return fib_rules_seq_read(net, AF_INET);
net                78 net/ipv4/fib_rules.c int __fib_lookup(struct net *net, struct flowi4 *flp,
net                88 net/ipv4/fib_rules.c 	l3mdev_update_flow(net, flowi4_to_flowi(flp));
net                90 net/ipv4/fib_rules.c 	err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg);
net               199 net/ipv4/fib_rules.c static struct fib_table *fib_empty_table(struct net *net)
net               204 net/ipv4/fib_rules.c 		if (!fib_get_table(net, id))
net               205 net/ipv4/fib_rules.c 			return fib_new_table(net, id);
net               223 net/ipv4/fib_rules.c 	struct net *net = sock_net(skb->sk);
net               233 net/ipv4/fib_rules.c 	err = fib_unmerge(net);
net               241 net/ipv4/fib_rules.c 			table = fib_empty_table(net);
net               261 net/ipv4/fib_rules.c 			net->ipv4.fib_num_tclassid_users++;
net               266 net/ipv4/fib_rules.c 		net->ipv4.fib_rules_require_fldissect++;
net               274 net/ipv4/fib_rules.c 	net->ipv4.fib_has_custom_rules = true;
net               283 net/ipv4/fib_rules.c 	struct net *net = rule->fr_net;
net               287 net/ipv4/fib_rules.c 	err = fib_unmerge(net);
net               293 net/ipv4/fib_rules.c 		net->ipv4.fib_num_tclassid_users--;
net               295 net/ipv4/fib_rules.c 	net->ipv4.fib_has_custom_rules = true;
net               297 net/ipv4/fib_rules.c 	if (net->ipv4.fib_rules_require_fldissect &&
net               299 net/ipv4/fib_rules.c 		net->ipv4.fib_rules_require_fldissect--;
net               403 net/ipv4/fib_rules.c int __net_init fib4_rules_init(struct net *net)
net               408 net/ipv4/fib_rules.c 	ops = fib_rules_register(&fib4_rules_ops_template, net);
net               415 net/ipv4/fib_rules.c 	net->ipv4.rules_ops = ops;
net               416 net/ipv4/fib_rules.c 	net->ipv4.fib_has_custom_rules = false;
net               417 net/ipv4/fib_rules.c 	net->ipv4.fib_rules_require_fldissect = 0;
net               426 net/ipv4/fib_rules.c void __net_exit fib4_rules_exit(struct net *net)
net               428 net/ipv4/fib_rules.c 	fib_rules_unregister(net->ipv4.rules_ops);
net               221 net/ipv4/fib_semantics.c void fib_nh_release(struct net *net, struct fib_nh *fib_nh)
net               225 net/ipv4/fib_semantics.c 		net->ipv4.fib_num_tclassid_users--;
net               367 net/ipv4/fib_semantics.c static struct fib_info *fib_find_info_nh(struct net *net,
net               382 net/ipv4/fib_semantics.c 		if (!net_eq(fi->fib_net, net))
net               602 net/ipv4/fib_semantics.c int fib_nh_init(struct net *net, struct fib_nh *nh,
net               627 net/ipv4/fib_semantics.c 		net->ipv4.fib_num_tclassid_users++;
net               662 net/ipv4/fib_semantics.c 	struct net *net = fi->fib_net;
net               718 net/ipv4/fib_semantics.c 		ret = fib_nh_init(net, nexthop_nh, &fib_cfg,
net               986 net/ipv4/fib_semantics.c static int fib_check_nh_v6_gw(struct net *net, struct fib_nh *nh,
net               998 net/ipv4/fib_semantics.c 	err = ipv6_stub->fib6_nh_init(net, &fib6_nh, &cfg, GFP_KERNEL, extack);
net              1054 net/ipv4/fib_semantics.c static int fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table,
net              1068 net/ipv4/fib_semantics.c 		dev = __dev_get_by_index(net, nh->fib_nh_oif);
net              1077 net/ipv4/fib_semantics.c 		addr_type = inet_addr_type_dev_table(net, dev, nh->fib_nh_gw4);
net              1104 net/ipv4/fib_semantics.c 			tbl = fib_get_table(net, table);
net              1116 net/ipv4/fib_semantics.c 			err = fib_lookup(net, &fl4, &res,
net              1148 net/ipv4/fib_semantics.c static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh,
net              1163 net/ipv4/fib_semantics.c 	in_dev = inetdev_by_index(net, nh->fib_nh_oif);
net              1183 net/ipv4/fib_semantics.c int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
net              1189 net/ipv4/fib_semantics.c 		err = fib_check_nh_v4_gw(net, nh, table, scope, extack);
net              1191 net/ipv4/fib_semantics.c 		err = fib_check_nh_v6_gw(net, nh, table, extack);
net              1193 net/ipv4/fib_semantics.c 		err = fib_check_nh_nongw(net, nh, extack);
net              1280 net/ipv4/fib_semantics.c __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
net              1290 net/ipv4/fib_semantics.c 	nh->nh_saddr_genid = atomic_read(&net->ipv4.dev_addr_genid);
net              1295 net/ipv4/fib_semantics.c __be32 fib_result_prefsrc(struct net *net, struct fib_result *res)
net              1306 net/ipv4/fib_semantics.c 		if (nh->nh_saddr_genid == atomic_read(&net->ipv4.dev_addr_genid))
net              1310 net/ipv4/fib_semantics.c 	return fib_info_update_nhc_saddr(net, nhc, res->fi->fib_scope);
net              1345 net/ipv4/fib_semantics.c 	struct net *net = cfg->fc_nlinfo.nl_net;
net              1364 net/ipv4/fib_semantics.c 			fi = fib_find_info_nh(net, cfg);
net              1371 net/ipv4/fib_semantics.c 		nh = nexthop_find_by_id(net, cfg->fc_nh_id);
net              1421 net/ipv4/fib_semantics.c 	fi->fib_net = net;
net              1448 net/ipv4/fib_semantics.c 			err = fib_nh_init(net, fi->fib_nh, cfg, 1, extack);
net              1499 net/ipv4/fib_semantics.c 		nh->fib_nh_dev = dev_get_by_index(net, nh->fib_nh_oif);
net              1526 net/ipv4/fib_semantics.c 			fib_info_update_nhc_saddr(net, &nexthop_nh->nh_common,
net              1818 net/ipv4/fib_semantics.c 	struct net *net = dev_net(dev);
net              1825 net/ipv4/fib_semantics.c 		if (!net_eq(fi->fib_net, net) ||
net              2161 net/ipv4/fib_semantics.c 	struct net *net = fi->fib_net;
net              2170 net/ipv4/fib_semantics.c 		if (net->ipv4.sysctl_fib_multipath_use_neigh) {
net              2190 net/ipv4/fib_semantics.c void fib_select_path(struct net *net, struct fib_result *res,
net              2198 net/ipv4/fib_semantics.c 		int h = fib_multipath_hash(net, fl4, skb, NULL);
net              2211 net/ipv4/fib_semantics.c 		fl4->saddr = fib_result_prefsrc(net, res);
net                77 net/ipv4/fib_trie.c static int call_fib_entry_notifier(struct notifier_block *nb, struct net *net,
net                89 net/ipv4/fib_trie.c 	return call_fib4_notifier(nb, net, event_type, &info.info);
net                92 net/ipv4/fib_trie.c static int call_fib_entry_notifiers(struct net *net,
net               106 net/ipv4/fib_trie.c 	return call_fib4_notifiers(net, event_type, &info.info);
net              1120 net/ipv4/fib_trie.c int fib_table_insert(struct net *net, struct fib_table *tb,
net              1218 net/ipv4/fib_trie.c 			err = call_fib_entry_notifiers(net,
net              1270 net/ipv4/fib_trie.c 	err = call_fib_entry_notifiers(net, event, key, plen, new_fa, extack);
net              1294 net/ipv4/fib_trie.c 	call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, key,
net              1547 net/ipv4/fib_trie.c int fib_table_delete(struct net *net, struct fib_table *tb,
net              1599 net/ipv4/fib_trie.c 	call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, key, plen,
net              1861 net/ipv4/fib_trie.c int fib_table_flush(struct net *net, struct fib_table *tb, bool flush_all)
net              1924 net/ipv4/fib_trie.c 			call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_DEL,
net              1948 net/ipv4/fib_trie.c static void __fib_info_notify_update(struct net *net, struct fib_table *tb,
net              1997 net/ipv4/fib_trie.c 			call_fib_entry_notifiers(net, FIB_EVENT_ENTRY_REPLACE,
net              2005 net/ipv4/fib_trie.c void fib_info_notify_update(struct net *net, struct nl_info *info)
net              2010 net/ipv4/fib_trie.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[h];
net              2014 net/ipv4/fib_trie.c 			__fib_info_notify_update(net, tb, info);
net              2018 net/ipv4/fib_trie.c static void fib_leaf_notify(struct net *net, struct key_vector *l,
net              2035 net/ipv4/fib_trie.c 		call_fib_entry_notifier(nb, net, FIB_EVENT_ENTRY_ADD, l->key,
net              2040 net/ipv4/fib_trie.c static void fib_table_notify(struct net *net, struct fib_table *tb,
net              2048 net/ipv4/fib_trie.c 		fib_leaf_notify(net, l, tb, nb);
net              2057 net/ipv4/fib_trie.c void fib_notify(struct net *net, struct notifier_block *nb)
net              2062 net/ipv4/fib_trie.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[h];
net              2066 net/ipv4/fib_trie.c 			fib_table_notify(net, tb, nb);
net              2450 net/ipv4/fib_trie.c 	struct net *net = (struct net *)seq->private;
net              2460 net/ipv4/fib_trie.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[h];
net              2488 net/ipv4/fib_trie.c 	struct net *net = seq_file_net(seq);
net              2493 net/ipv4/fib_trie.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[h];
net              2522 net/ipv4/fib_trie.c 	struct net *net = seq_file_net(seq);
net              2545 net/ipv4/fib_trie.c 		struct hlist_head *head = &net->ipv4.fib_table_hash[h];
net              2847 net/ipv4/fib_trie.c int __net_init fib_proc_init(struct net *net)
net              2849 net/ipv4/fib_trie.c 	if (!proc_create_net("fib_trie", 0444, net->proc_net, &fib_trie_seq_ops,
net              2853 net/ipv4/fib_trie.c 	if (!proc_create_net_single("fib_triestat", 0444, net->proc_net,
net              2857 net/ipv4/fib_trie.c 	if (!proc_create_net("route", 0444, net->proc_net, &fib_route_seq_ops,
net              2864 net/ipv4/fib_trie.c 	remove_proc_entry("fib_triestat", net->proc_net);
net              2866 net/ipv4/fib_trie.c 	remove_proc_entry("fib_trie", net->proc_net);
net              2871 net/ipv4/fib_trie.c void __net_exit fib_proc_exit(struct net *net)
net              2873 net/ipv4/fib_trie.c 	remove_proc_entry("fib_trie", net->proc_net);
net              2874 net/ipv4/fib_trie.c 	remove_proc_entry("fib_triestat", net->proc_net);
net              2875 net/ipv4/fib_trie.c 	remove_proc_entry("route", net->proc_net);
net               533 net/ipv4/fou.c static int fou_add_to_port_list(struct net *net, struct fou *fou,
net               536 net/ipv4/fou.c 	struct fou_net *fn = net_generic(net, fou_net_id);
net               563 net/ipv4/fou.c static int fou_create(struct net *net, struct fou_cfg *cfg,
net               573 net/ipv4/fou.c 	err = udp_sock_create(net, &cfg->udp_config, &sock);
net               615 net/ipv4/fou.c 	setup_udp_tunnel_sock(net, sock, &tunnel_cfg);
net               619 net/ipv4/fou.c 	err = fou_add_to_port_list(net, fou, cfg);
net               636 net/ipv4/fou.c static int fou_destroy(struct net *net, struct fou_cfg *cfg)
net               638 net/ipv4/fou.c 	struct fou_net *fn = net_generic(net, fou_net_id);
net               764 net/ipv4/fou.c 	struct net *net = genl_info_net(info);
net               772 net/ipv4/fou.c 	return fou_create(net, &cfg, NULL);
net               777 net/ipv4/fou.c 	struct net *net = genl_info_net(info);
net               785 net/ipv4/fou.c 	return fou_destroy(net, &cfg);
net               846 net/ipv4/fou.c 	struct net *net = genl_info_net(info);
net               847 net/ipv4/fou.c 	struct fou_net *fn = net_generic(net, fou_net_id);
net               893 net/ipv4/fou.c 	struct net *net = sock_net(skb->sk);
net               894 net/ipv4/fou.c 	struct fou_net *fn = net_generic(net, fou_net_id);
net              1245 net/ipv4/fou.c static __net_init int fou_init_net(struct net *net)
net              1247 net/ipv4/fou.c 	struct fou_net *fn = net_generic(net, fou_net_id);
net              1254 net/ipv4/fou.c static __net_exit void fou_exit_net(struct net *net)
net              1256 net/ipv4/fou.c 	struct fou_net *fn = net_generic(net, fou_net_id);
net               202 net/ipv4/icmp.c static struct sock *icmp_sk(struct net *net)
net               204 net/ipv4/icmp.c 	return this_cpu_read(*net->ipv4.icmp_sk);
net               208 net/ipv4/icmp.c static inline struct sock *icmp_xmit_lock(struct net *net)
net               212 net/ipv4/icmp.c 	sk = icmp_sk(net);
net               279 net/ipv4/icmp.c static bool icmpv4_mask_allow(struct net *net, int type, int code)
net               289 net/ipv4/icmp.c 	if (!((1 << type) & net->ipv4.sysctl_icmp_ratemask))
net               295 net/ipv4/icmp.c static bool icmpv4_global_allow(struct net *net, int type, int code)
net               297 net/ipv4/icmp.c 	if (icmpv4_mask_allow(net, type, code))
net               310 net/ipv4/icmp.c static bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt,
net               318 net/ipv4/icmp.c 	if (icmpv4_mask_allow(net, type, code))
net               326 net/ipv4/icmp.c 	peer = inet_getpeer_v4(net->ipv4.peers, fl4->daddr, vif, 1);
net               327 net/ipv4/icmp.c 	rc = inet_peer_xrlim_allow(peer, net->ipv4.sysctl_icmp_ratelimit);
net               337 net/ipv4/icmp.c void icmp_out_count(struct net *net, unsigned char type)
net               339 net/ipv4/icmp.c 	ICMPMSGOUT_INC_STATS(net, type);
net               340 net/ipv4/icmp.c 	ICMP_INC_STATS(net, ICMP_MIB_OUTMSGS);
net               402 net/ipv4/icmp.c 	struct net *net = dev_net(rt->dst.dev);
net               407 net/ipv4/icmp.c 	u32 mark = IP4_REPLY_MARK(net, skb->mark);
net               411 net/ipv4/icmp.c 	if (ip_options_echo(net, &icmp_param->replyopts.opt.opt, skb))
net               418 net/ipv4/icmp.c 	if (!icmpv4_global_allow(net, type, code))
net               421 net/ipv4/icmp.c 	sk = icmp_xmit_lock(net);
net               443 net/ipv4/icmp.c 	fl4.flowi4_uid = sock_net_uid(net, NULL);
net               448 net/ipv4/icmp.c 	rt = ip_route_output_key(net, &fl4);
net               451 net/ipv4/icmp.c 	if (icmpv4_xrlim_allow(net, rt, &fl4, type, code))
net               460 net/ipv4/icmp.c static struct rtable *icmp_route_lookup(struct net *net,
net               477 net/ipv4/icmp.c 	fl4->flowi4_uid = sock_net_uid(net, NULL);
net               485 net/ipv4/icmp.c 	rt = ip_route_output_key_hash(net, fl4, skb_in);
net               492 net/ipv4/icmp.c 	rt = (struct rtable *) xfrm_lookup(net, &rt->dst,
net               506 net/ipv4/icmp.c 	if (inet_addr_type_dev_table(net, skb_dst(skb_in)->dev,
net               508 net/ipv4/icmp.c 		rt2 = __ip_route_output_key(net, &fl4_dec);
net               516 net/ipv4/icmp.c 		rt2 = ip_route_output_key(net, &fl4_2);
net               535 net/ipv4/icmp.c 	rt2 = (struct rtable *) xfrm_lookup(net, &rt2->dst,
net               581 net/ipv4/icmp.c 	struct net *net;
net               588 net/ipv4/icmp.c 		net = dev_net(rt->dst.dev);
net               590 net/ipv4/icmp.c 		net = dev_net(skb_in->dev);
net               665 net/ipv4/icmp.c 	      !icmpv4_global_allow(net, type, code))
net               668 net/ipv4/icmp.c 	sk = icmp_xmit_lock(net);
net               682 net/ipv4/icmp.c 		    net->ipv4.sysctl_icmp_errors_use_inbound_ifaddr)
net               683 net/ipv4/icmp.c 			dev = dev_get_by_index_rcu(net, inet_iif(skb_in));
net               695 net/ipv4/icmp.c 	mark = IP4_REPLY_MARK(net, skb_in->mark);
net               697 net/ipv4/icmp.c 	if (__ip_options_echo(net, &icmp_param.replyopts.opt.opt, skb_in, opt))
net               717 net/ipv4/icmp.c 	rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark,
net               723 net/ipv4/icmp.c 	if (!icmpv4_xrlim_allow(net, rt, &fl4, type, code))
net               791 net/ipv4/icmp.c 	struct net *net;
net               794 net/ipv4/icmp.c 	net = dev_net(skb_dst(skb)->dev);
net               824 net/ipv4/icmp.c 			switch (net->ipv4.sysctl_ip_no_pmtu_disc) {
net               853 net/ipv4/icmp.c 		__ICMP_INC_STATS(net, ICMP_MIB_INTIMEEXCDS);
net               877 net/ipv4/icmp.c 	if (!net->ipv4.sysctl_icmp_ignore_bogus_error_responses &&
net               878 net/ipv4/icmp.c 	    inet_addr_type_dev_table(net, skb->dev, iph->daddr) == RTN_BROADCAST) {
net               891 net/ipv4/icmp.c 	__ICMP_INC_STATS(net, ICMP_MIB_INERRORS);
net               930 net/ipv4/icmp.c 	struct net *net;
net               932 net/ipv4/icmp.c 	net = dev_net(skb_dst(skb)->dev);
net               933 net/ipv4/icmp.c 	if (!net->ipv4.sysctl_icmp_echo_ignore_all) {
net              1000 net/ipv4/icmp.c 	struct net *net = dev_net(rt->dst.dev);
net              1023 net/ipv4/icmp.c 	__ICMP_INC_STATS(net, ICMP_MIB_INMSGS);
net              1033 net/ipv4/icmp.c 	ICMPMSGIN_INC_STATS(net, icmph->type);
net              1057 net/ipv4/icmp.c 		    net->ipv4.sysctl_icmp_echo_ignore_broadcasts) {
net              1079 net/ipv4/icmp.c 	__ICMP_INC_STATS(net, ICMP_MIB_CSUMERRORS);
net              1081 net/ipv4/icmp.c 	__ICMP_INC_STATS(net, ICMP_MIB_INERRORS);
net              1092 net/ipv4/icmp.c 	struct net *net = dev_net(skb->dev);
net              1104 net/ipv4/icmp.c 		ipv4_update_pmtu(skb, net, info, 0, IPPROTO_ICMP);
net              1106 net/ipv4/icmp.c 		ipv4_redirect(skb, net, 0, IPPROTO_ICMP);
net              1185 net/ipv4/icmp.c static void __net_exit icmp_sk_exit(struct net *net)
net              1190 net/ipv4/icmp.c 		inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.icmp_sk, i));
net              1191 net/ipv4/icmp.c 	free_percpu(net->ipv4.icmp_sk);
net              1192 net/ipv4/icmp.c 	net->ipv4.icmp_sk = NULL;
net              1195 net/ipv4/icmp.c static int __net_init icmp_sk_init(struct net *net)
net              1199 net/ipv4/icmp.c 	net->ipv4.icmp_sk = alloc_percpu(struct sock *);
net              1200 net/ipv4/icmp.c 	if (!net->ipv4.icmp_sk)
net              1207 net/ipv4/icmp.c 					   SOCK_RAW, IPPROTO_ICMP, net);
net              1211 net/ipv4/icmp.c 		*per_cpu_ptr(net->ipv4.icmp_sk, i) = sk;
net              1226 net/ipv4/icmp.c 	net->ipv4.sysctl_icmp_echo_ignore_all = 0;
net              1227 net/ipv4/icmp.c 	net->ipv4.sysctl_icmp_echo_ignore_broadcasts = 1;
net              1230 net/ipv4/icmp.c 	net->ipv4.sysctl_icmp_ignore_bogus_error_responses = 1;
net              1244 net/ipv4/icmp.c 	net->ipv4.sysctl_icmp_ratelimit = 1 * HZ;
net              1245 net/ipv4/icmp.c 	net->ipv4.sysctl_icmp_ratemask = 0x1818;
net              1246 net/ipv4/icmp.c 	net->ipv4.sysctl_icmp_errors_use_inbound_ifaddr = 0;
net              1251 net/ipv4/icmp.c 	icmp_sk_exit(net);
net               354 net/ipv4/igmp.c 	struct net *net = dev_net(dev);
net               371 net/ipv4/igmp.c 	rt = ip_route_output_ports(net, &fl4, NULL, IGMPV3_ALL_MCR, 0,
net               402 net/ipv4/igmp.c 	ip_select_ident(net, skb, NULL);
net               463 net/ipv4/igmp.c 	struct net *net = dev_net(dev);
net               472 net/ipv4/igmp.c 	if (ipv4_is_local_multicast(pmc->multiaddr) && !net->ipv4.sysctl_igmp_llm_reports)
net               589 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net               598 net/ipv4/igmp.c 			     !net->ipv4.sysctl_igmp_llm_reports)
net               732 net/ipv4/igmp.c 	struct net *net = dev_net(dev);
net               741 net/ipv4/igmp.c 	if (ipv4_is_local_multicast(group) && !net->ipv4.sysctl_igmp_llm_reports)
net               749 net/ipv4/igmp.c 	rt = ip_route_output_ports(net, &fl4, NULL, dst, 0,
net               780 net/ipv4/igmp.c 	ip_select_ident(net, skb, NULL);
net               793 net/ipv4/igmp.c 	return ip_local_out(net, skb->sk, skb);
net               820 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net               823 net/ipv4/igmp.c 	in_dev->mr_ifc_count = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net               912 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net               918 net/ipv4/igmp.c 	if (ipv4_is_local_multicast(group) && !net->ipv4.sysctl_igmp_llm_reports)
net               942 net/ipv4/igmp.c 	struct net		*net = dev_net(in_dev->dev);
net              1004 net/ipv4/igmp.c 		in_dev->mr_qrv = ih3->qrv ?: net->ipv4.sysctl_igmp_qrv;
net              1043 net/ipv4/igmp.c 		    !net->ipv4.sysctl_igmp_llm_reports)
net              1168 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net              1184 net/ipv4/igmp.c 	pmc->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              1210 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net              1235 net/ipv4/igmp.c 				psf->sf_crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              1237 net/ipv4/igmp.c 			im->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              1282 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net              1294 net/ipv4/igmp.c 	if (ipv4_is_local_multicast(im->multiaddr) && !net->ipv4.sysctl_igmp_llm_reports)
net              1325 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net              1336 net/ipv4/igmp.c 	if (ipv4_is_local_multicast(im->multiaddr) && !net->ipv4.sysctl_igmp_llm_reports)
net              1342 net/ipv4/igmp.c 	im->unsolicit_count = net->ipv4.sysctl_igmp_qrv;
net              1356 net/ipv4/igmp.c 		im->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              1632 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net              1640 net/ipv4/igmp.c 		    !net->ipv4.sysctl_igmp_llm_reports)
net              1743 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
net              1747 net/ipv4/igmp.c 	in_dev->mr_qrv = net->ipv4.sysctl_igmp_qrv;
net              1811 net/ipv4/igmp.c static struct in_device *ip_mc_find_dev(struct net *net, struct ip_mreqn *imr)
net              1817 net/ipv4/igmp.c 		idev = inetdev_by_index(net, imr->imr_ifindex);
net              1821 net/ipv4/igmp.c 		dev = __ip_dev_find(net, imr->imr_address.s_addr, false);
net              1827 net/ipv4/igmp.c 		struct rtable *rt = ip_route_output(net,
net              1869 net/ipv4/igmp.c 		struct net *net = dev_net(in_dev->dev);
net              1880 net/ipv4/igmp.c 			psf->sf_crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              1938 net/ipv4/igmp.c 		struct net *net = dev_net(in_dev->dev);
net              1944 net/ipv4/igmp.c 		pmc->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              2111 net/ipv4/igmp.c 		struct net *net = dev_net(pmc->interface->dev);
net              2123 net/ipv4/igmp.c 		pmc->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
net              2163 net/ipv4/igmp.c 	struct net *net = sock_net(sk);
net              2173 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, imr);
net              2189 net/ipv4/igmp.c 	if (count >= net->ipv4.sysctl_igmp_max_memberships)
net              2248 net/ipv4/igmp.c 	struct net *net = sock_net(sk);
net              2255 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, imr);
net              2300 net/ipv4/igmp.c 	struct net *net = sock_net(sk);
net              2312 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, &imr);
net              2376 net/ipv4/igmp.c 	if (psl && psl->sl_count >= net->ipv4.sysctl_igmp_max_msf) {
net              2435 net/ipv4/igmp.c 	struct net *net = sock_net(sk);
net              2449 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, &imr);
net              2521 net/ipv4/igmp.c 	struct net *net = sock_net(sk);
net              2531 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, &imr);
net              2676 net/ipv4/igmp.c 	struct net *net = sock_net(sk);
net              2686 net/ipv4/igmp.c 		in_dev = inetdev_by_index(net, iml->multi.imr_ifindex);
net              2752 net/ipv4/igmp.c 	struct net *net = seq_file_net(seq);
net              2757 net/ipv4/igmp.c 	for_each_netdev_rcu(net, state->dev) {
net              2881 net/ipv4/igmp.c 	struct net *net = seq_file_net(seq);
net              2888 net/ipv4/igmp.c 	for_each_netdev_rcu(net, state->dev) {
net              3003 net/ipv4/igmp.c static int __net_init igmp_net_init(struct net *net)
net              3008 net/ipv4/igmp.c 	pde = proc_create_net("igmp", 0444, net->proc_net, &igmp_mc_seq_ops,
net              3012 net/ipv4/igmp.c 	pde = proc_create_net("mcfilter", 0444, net->proc_net,
net              3016 net/ipv4/igmp.c 	err = inet_ctl_sock_create(&net->ipv4.mc_autojoin_sk, AF_INET,
net              3017 net/ipv4/igmp.c 				   SOCK_DGRAM, 0, net);
net              3027 net/ipv4/igmp.c 	remove_proc_entry("mcfilter", net->proc_net);
net              3029 net/ipv4/igmp.c 	remove_proc_entry("igmp", net->proc_net);
net              3034 net/ipv4/igmp.c static void __net_exit igmp_net_exit(struct net *net)
net              3036 net/ipv4/igmp.c 	remove_proc_entry("mcfilter", net->proc_net);
net              3037 net/ipv4/igmp.c 	remove_proc_entry("igmp", net->proc_net);
net              3038 net/ipv4/igmp.c 	inet_ctl_sock_destroy(net->ipv4.mc_autojoin_sk);
net               120 net/ipv4/inet_connection_sock.c void inet_get_local_port_range(struct net *net, int *low, int *high)
net               125 net/ipv4/inet_connection_sock.c 		seq = read_seqbegin(&net->ipv4.ip_local_ports.lock);
net               127 net/ipv4/inet_connection_sock.c 		*low = net->ipv4.ip_local_ports.range[0];
net               128 net/ipv4/inet_connection_sock.c 		*high = net->ipv4.ip_local_ports.range[1];
net               129 net/ipv4/inet_connection_sock.c 	} while (read_seqretry(&net->ipv4.ip_local_ports.lock, seq));
net               183 net/ipv4/inet_connection_sock.c 	struct net *net = sock_net(sk);
net               192 net/ipv4/inet_connection_sock.c 	inet_get_local_port_range(net, &low, &high);
net               219 net/ipv4/inet_connection_sock.c 		if (inet_is_local_reserved_port(net, port))
net               221 net/ipv4/inet_connection_sock.c 		head = &hinfo->bhash[inet_bhashfn(net, port,
net               225 net/ipv4/inet_connection_sock.c 			if (net_eq(ib_net(tb), net) && tb->l3mdev == l3mdev &&
net               297 net/ipv4/inet_connection_sock.c 	struct net *net = sock_net(sk);
net               312 net/ipv4/inet_connection_sock.c 	head = &hinfo->bhash[inet_bhashfn(net, port,
net               316 net/ipv4/inet_connection_sock.c 		if (net_eq(ib_net(tb), net) && tb->l3mdev == l3mdev &&
net               321 net/ipv4/inet_connection_sock.c 				     net, head, port, l3mdev);
net               571 net/ipv4/inet_connection_sock.c 	struct net *net = read_pnet(&ireq->ireq_net);
net               585 net/ipv4/inet_connection_sock.c 	rt = ip_route_output_flow(net, fl4, sk);
net               597 net/ipv4/inet_connection_sock.c 	__IP_INC_STATS(net, IPSTATS_MIB_OUTNOROUTES);
net               607 net/ipv4/inet_connection_sock.c 	struct net *net = read_pnet(&ireq->ireq_net);
net               623 net/ipv4/inet_connection_sock.c 	rt = ip_route_output_flow(net, fl4, sk);
net               633 net/ipv4/inet_connection_sock.c 	__IP_INC_STATS(net, IPSTATS_MIB_OUTNOROUTES);
net               714 net/ipv4/inet_connection_sock.c 	struct net *net = sock_net(sk_listener);
net               724 net/ipv4/inet_connection_sock.c 	max_retries = icsk->icsk_syn_retries ? : net->ipv4.sysctl_tcp_synack_retries;
net               416 net/ipv4/inet_diag.c struct sock *inet_diag_find_one_icsk(struct net *net,
net               424 net/ipv4/inet_diag.c 		sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[0],
net               431 net/ipv4/inet_diag.c 			sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[3],
net               435 net/ipv4/inet_diag.c 			sk = inet6_lookup(net, hashinfo, NULL, 0,
net               466 net/ipv4/inet_diag.c 	struct net *net = sock_net(in_skb->sk);
net               471 net/ipv4/inet_diag.c 	sk = inet_diag_find_one_icsk(net, hashinfo, req);
net               490 net/ipv4/inet_diag.c 	err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
net               897 net/ipv4/inet_diag.c 	struct net *net = sock_net(skb->sk);
net               921 net/ipv4/inet_diag.c 				if (!net_eq(sock_net(sk), net))
net               980 net/ipv4/inet_diag.c 			if (!net_eq(sock_net(sk), net))
net              1121 net/ipv4/inet_diag.c 	struct net *net = sock_net(skb->sk);
net              1142 net/ipv4/inet_diag.c 			return netlink_dump_start(net->diag_nlsk, skb, nlh, &c);
net              1152 net/ipv4/inet_diag.c 	struct net *net = sock_net(skb->sk);
net              1173 net/ipv4/inet_diag.c 			return netlink_dump_start(net->diag_nlsk, skb, h, &c);
net               167 net/ipv4/inet_fragment.c int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net)
net               175 net/ipv4/inet_fragment.c 	fqdir->net = net;
net                28 net/ipv4/inet_hashtables.c static u32 inet_ehashfn(const struct net *net, const __be32 laddr,
net                37 net/ipv4/inet_hashtables.c 			      inet_ehash_secret + net_hash_mix(net));
net                62 net/ipv4/inet_hashtables.c 						 struct net *net,
net                70 net/ipv4/inet_hashtables.c 		write_pnet(&tb->ib_net, net);
net               228 net/ipv4/inet_hashtables.c static inline int compute_score(struct sock *sk, struct net *net,
net               234 net/ipv4/inet_hashtables.c 	if (net_eq(sock_net(sk), net) && sk->sk_num == hnum &&
net               239 net/ipv4/inet_hashtables.c 		if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif))
net               257 net/ipv4/inet_hashtables.c static struct sock *inet_lhash2_lookup(struct net *net,
net               264 net/ipv4/inet_hashtables.c 	bool exact_dif = inet_exact_dif_match(net, skb);
net               272 net/ipv4/inet_hashtables.c 		score = compute_score(sk, net, hnum, daddr,
net               276 net/ipv4/inet_hashtables.c 				phash = inet_ehashfn(net, daddr, hnum,
net               291 net/ipv4/inet_hashtables.c struct sock *__inet_lookup_listener(struct net *net,
net               302 net/ipv4/inet_hashtables.c 	hash2 = ipv4_portaddr_hash(net, daddr, hnum);
net               305 net/ipv4/inet_hashtables.c 	result = inet_lhash2_lookup(net, ilb2, skb, doff,
net               312 net/ipv4/inet_hashtables.c 	hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum);
net               315 net/ipv4/inet_hashtables.c 	result = inet_lhash2_lookup(net, ilb2, skb, doff,
net               346 net/ipv4/inet_hashtables.c struct sock *__inet_lookup_established(struct net *net,
net               359 net/ipv4/inet_hashtables.c 	unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport);
net               367 net/ipv4/inet_hashtables.c 		if (likely(INET_MATCH(sk, net, acookie,
net               371 net/ipv4/inet_hashtables.c 			if (unlikely(!INET_MATCH(sk, net, acookie,
net               404 net/ipv4/inet_hashtables.c 	struct net *net = sock_net(sk);
net               405 net/ipv4/inet_hashtables.c 	int sdif = l3mdev_master_ifindex_by_index(net, dif);
net               408 net/ipv4/inet_hashtables.c 	unsigned int hash = inet_ehashfn(net, daddr, lport,
net               422 net/ipv4/inet_hashtables.c 		if (likely(INET_MATCH(sk2, net, acookie,
net               443 net/ipv4/inet_hashtables.c 		__NET_INC_STATS(net, LINUX_MIB_TIMEWAITRECYCLED);
net               628 net/ipv4/inet_hashtables.c 	struct net *net = sock_net(sk);
net               636 net/ipv4/inet_hashtables.c 		head = &hinfo->bhash[inet_bhashfn(net, port,
net               654 net/ipv4/inet_hashtables.c 	inet_get_local_port_range(net, &low, &high);
net               670 net/ipv4/inet_hashtables.c 		if (inet_is_local_reserved_port(net, port))
net               672 net/ipv4/inet_hashtables.c 		head = &hinfo->bhash[inet_bhashfn(net, port,
net               680 net/ipv4/inet_hashtables.c 			if (net_eq(ib_net(tb), net) && tb->l3mdev == l3mdev &&
net               694 net/ipv4/inet_hashtables.c 					     net, head, port, l3mdev);
net                65 net/ipv4/ip_forward.c static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net                69 net/ipv4/ip_forward.c 	__IP_INC_STATS(net, IPSTATS_MIB_OUTFORWDATAGRAMS);
net                70 net/ipv4/ip_forward.c 	__IP_ADD_STATS(net, IPSTATS_MIB_OUTOCTETS, skb->len);
net                83 net/ipv4/ip_forward.c 	return dst_output(net, sk, skb);
net                92 net/ipv4/ip_forward.c 	struct net *net;
net               111 net/ipv4/ip_forward.c 	net = dev_net(skb->dev);
net               132 net/ipv4/ip_forward.c 		IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
net               154 net/ipv4/ip_forward.c 	if (net->ipv4.sysctl_ip_fwd_update_priority)
net               158 net/ipv4/ip_forward.c 		       net, NULL, skb, skb->dev, rt->dst.dev,
net               170 net/ipv4/ip_forward.c 	__IP_INC_STATS(net, IPSTATS_MIB_INHDRERRORS);
net                85 net/ipv4/ip_fragment.c 	struct net *net = q->fqdir->net;
net                92 net/ipv4/ip_fragment.c 		inet_getpeer_v4(net->ipv4.peers, key->saddr, key->vif, 1) :
net               138 net/ipv4/ip_fragment.c 	struct net *net;
net               143 net/ipv4/ip_fragment.c 	net = qp->q.fqdir->net;
net               156 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMFAILS);
net               157 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMTIMEOUT);
net               169 net/ipv4/ip_fragment.c 	head->dev = dev_get_by_index_rcu(net, qp->iif);
net               203 net/ipv4/ip_fragment.c static struct ipq *ip_find(struct net *net, struct iphdr *iph,
net               216 net/ipv4/ip_fragment.c 	q = inet_frag_find(net->ipv4.fqdir, &key);
net               242 net/ipv4/ip_fragment.c 		__IP_INC_STATS(qp->q.fqdir->net, IPSTATS_MIB_REASMFAILS);
net               274 net/ipv4/ip_fragment.c 	struct net *net = qp->q.fqdir->net;
net               387 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASM_OVERLAPS);
net               390 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMFAILS);
net               405 net/ipv4/ip_fragment.c 	struct net *net = qp->q.fqdir->net;
net               456 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMOKS);
net               469 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMFAILS);
net               474 net/ipv4/ip_fragment.c int ip_defrag(struct net *net, struct sk_buff *skb, u32 user)
net               480 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMREQDS);
net               484 net/ipv4/ip_fragment.c 	qp = ip_find(net, ip_hdr(skb), user, vif);
net               497 net/ipv4/ip_fragment.c 	__IP_INC_STATS(net, IPSTATS_MIB_REASMFAILS);
net               503 net/ipv4/ip_fragment.c struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user)
net               536 net/ipv4/ip_fragment.c 			if (ip_defrag(net, skb, user))
net               590 net/ipv4/ip_fragment.c static int __net_init ip4_frags_ns_ctl_register(struct net *net)
net               596 net/ipv4/ip_fragment.c 	if (!net_eq(net, &init_net)) {
net               602 net/ipv4/ip_fragment.c 	table[0].data	= &net->ipv4.fqdir->high_thresh;
net               603 net/ipv4/ip_fragment.c 	table[0].extra1	= &net->ipv4.fqdir->low_thresh;
net               604 net/ipv4/ip_fragment.c 	table[1].data	= &net->ipv4.fqdir->low_thresh;
net               605 net/ipv4/ip_fragment.c 	table[1].extra2	= &net->ipv4.fqdir->high_thresh;
net               606 net/ipv4/ip_fragment.c 	table[2].data	= &net->ipv4.fqdir->timeout;
net               607 net/ipv4/ip_fragment.c 	table[3].data	= &net->ipv4.fqdir->max_dist;
net               609 net/ipv4/ip_fragment.c 	hdr = register_net_sysctl(net, "net/ipv4", table);
net               613 net/ipv4/ip_fragment.c 	net->ipv4.frags_hdr = hdr;
net               617 net/ipv4/ip_fragment.c 	if (!net_eq(net, &init_net))
net               623 net/ipv4/ip_fragment.c static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net)
net               627 net/ipv4/ip_fragment.c 	table = net->ipv4.frags_hdr->ctl_table_arg;
net               628 net/ipv4/ip_fragment.c 	unregister_net_sysctl_table(net->ipv4.frags_hdr);
net               637 net/ipv4/ip_fragment.c static int ip4_frags_ns_ctl_register(struct net *net)
net               642 net/ipv4/ip_fragment.c static void ip4_frags_ns_ctl_unregister(struct net *net)
net               651 net/ipv4/ip_fragment.c static int __net_init ipv4_frags_init_net(struct net *net)
net               655 net/ipv4/ip_fragment.c 	res = fqdir_init(&net->ipv4.fqdir, &ip4_frags, net);
net               672 net/ipv4/ip_fragment.c 	net->ipv4.fqdir->high_thresh = 4 * 1024 * 1024;
net               673 net/ipv4/ip_fragment.c 	net->ipv4.fqdir->low_thresh  = 3 * 1024 * 1024;
net               679 net/ipv4/ip_fragment.c 	net->ipv4.fqdir->timeout = IP_FRAG_TIME;
net               681 net/ipv4/ip_fragment.c 	net->ipv4.fqdir->max_dist = 64;
net               683 net/ipv4/ip_fragment.c 	res = ip4_frags_ns_ctl_register(net);
net               685 net/ipv4/ip_fragment.c 		fqdir_exit(net->ipv4.fqdir);
net               689 net/ipv4/ip_fragment.c static void __net_exit ipv4_frags_pre_exit_net(struct net *net)
net               691 net/ipv4/ip_fragment.c 	fqdir_pre_exit(net->ipv4.fqdir);
net               694 net/ipv4/ip_fragment.c static void __net_exit ipv4_frags_exit_net(struct net *net)
net               696 net/ipv4/ip_fragment.c 	ip4_frags_ns_ctl_unregister(net);
net               697 net/ipv4/ip_fragment.c 	fqdir_exit(net->ipv4.fqdir);
net               136 net/ipv4/ip_gre.c 	struct net *net = dev_net(skb->dev);
net               145 net/ipv4/ip_gre.c 		itn = net_generic(net, gre_tap_net_id);
net               148 net/ipv4/ip_gre.c 		itn = net_generic(net, erspan_net_id);
net               150 net/ipv4/ip_gre.c 		itn = net_generic(net, ipgre_net_id);
net               254 net/ipv4/ip_gre.c 	struct net *net = dev_net(skb->dev);
net               264 net/ipv4/ip_gre.c 	itn = net_generic(net, erspan_net_id);
net               375 net/ipv4/ip_gre.c 	struct net *net = dev_net(skb->dev);
net               380 net/ipv4/ip_gre.c 		itn = net_generic(net, gre_tap_net_id);
net               382 net/ipv4/ip_gre.c 		itn = net_generic(net, ipgre_net_id);
net               389 net/ipv4/ip_gre.c 		itn = net_generic(net, ipgre_net_id);
net               862 net/ipv4/ip_gre.c 		rt = ip_route_output_gre(t->net, &fl4,
net               886 net/ipv4/ip_gre.c 		in_dev = inetdev_by_index(t->net, t->mlink);
net               986 net/ipv4/ip_gre.c static int __net_init ipgre_init_net(struct net *net)
net               988 net/ipv4/ip_gre.c 	return ip_tunnel_init_net(net, ipgre_net_id, &ipgre_link_ops, NULL);
net              1309 net/ipv4/ip_gre.c static int ipgre_newlink(struct net *src_net, struct net_device *dev,
net              1327 net/ipv4/ip_gre.c static int erspan_newlink(struct net *src_net, struct net_device *dev,
net              1595 net/ipv4/ip_gre.c struct net_device *gretap_fb_dev_create(struct net *net, const char *name,
net              1606 net/ipv4/ip_gre.c 	dev = rtnl_create_link(net, name, name_assign_type,
net              1615 net/ipv4/ip_gre.c 	err = ipgre_newlink(net, dev, tb, NULL, NULL);
net              1640 net/ipv4/ip_gre.c static int __net_init ipgre_tap_init_net(struct net *net)
net              1642 net/ipv4/ip_gre.c 	return ip_tunnel_init_net(net, gre_tap_net_id, &ipgre_tap_ops, "gretap0");
net              1657 net/ipv4/ip_gre.c static int __net_init erspan_init_net(struct net *net)
net              1659 net/ipv4/ip_gre.c 	return ip_tunnel_init_net(net, erspan_net_id,
net               154 net/ipv4/ip_input.c 	struct net *net = dev_net(dev);
net               156 net/ipv4/ip_input.c 	for (ra = rcu_dereference(net->ipv4.ra_chain); ra; ra = rcu_dereference(ra->next)) {
net               166 net/ipv4/ip_input.c 				if (ip_defrag(net, skb, IP_DEFRAG_CALL_RA_CHAIN))
net               187 net/ipv4/ip_input.c void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol)
net               210 net/ipv4/ip_input.c 		__IP_INC_STATS(net, IPSTATS_MIB_INDELIVERS);
net               214 net/ipv4/ip_input.c 				__IP_INC_STATS(net, IPSTATS_MIB_INUNKNOWNPROTOS);
net               220 net/ipv4/ip_input.c 			__IP_INC_STATS(net, IPSTATS_MIB_INDELIVERS);
net               226 net/ipv4/ip_input.c static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               231 net/ipv4/ip_input.c 	ip_protocol_deliver_rcu(net, skb, ip_hdr(skb)->protocol);
net               245 net/ipv4/ip_input.c 	struct net *net = dev_net(skb->dev);
net               248 net/ipv4/ip_input.c 		if (ip_defrag(net, skb, IP_DEFRAG_LOCAL_DELIVER))
net               253 net/ipv4/ip_input.c 		       net, NULL, skb, skb->dev, NULL,
net               307 net/ipv4/ip_input.c static int ip_rcv_finish_core(struct net *net, struct sock *sk,
net               315 net/ipv4/ip_input.c 	if (net->ipv4.sysctl_ip_early_demux &&
net               360 net/ipv4/ip_input.c 		__IP_UPD_PO_STATS(net, IPSTATS_MIB_INMCAST, skb->len);
net               362 net/ipv4/ip_input.c 		__IP_UPD_PO_STATS(net, IPSTATS_MIB_INBCAST, skb->len);
net               395 net/ipv4/ip_input.c 		__NET_INC_STATS(net, LINUX_MIB_IPRPFILTER);
net               399 net/ipv4/ip_input.c static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               411 net/ipv4/ip_input.c 	ret = ip_rcv_finish_core(net, sk, skb, dev);
net               420 net/ipv4/ip_input.c static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net)
net               431 net/ipv4/ip_input.c 	__IP_UPD_PO_STATS(net, IPSTATS_MIB_IN, skb->len);
net               435 net/ipv4/ip_input.c 		__IP_INC_STATS(net, IPSTATS_MIB_INDISCARDS);
net               461 net/ipv4/ip_input.c 	__IP_ADD_STATS(net,
net               475 net/ipv4/ip_input.c 		__IP_INC_STATS(net, IPSTATS_MIB_INTRUNCATEDPKTS);
net               485 net/ipv4/ip_input.c 		__IP_INC_STATS(net, IPSTATS_MIB_INDISCARDS);
net               502 net/ipv4/ip_input.c 	__IP_INC_STATS(net, IPSTATS_MIB_CSUMERRORS);
net               504 net/ipv4/ip_input.c 	__IP_INC_STATS(net, IPSTATS_MIB_INHDRERRORS);
net               517 net/ipv4/ip_input.c 	struct net *net = dev_net(dev);
net               519 net/ipv4/ip_input.c 	skb = ip_rcv_core(skb, net);
net               524 net/ipv4/ip_input.c 		       net, NULL, skb, dev, NULL,
net               538 net/ipv4/ip_input.c static void ip_list_rcv_finish(struct net *net, struct sock *sk,
net               557 net/ipv4/ip_input.c 		if (ip_rcv_finish_core(net, sk, skb, dev) == NET_RX_DROP)
net               576 net/ipv4/ip_input.c 			   struct net *net)
net               578 net/ipv4/ip_input.c 	NF_HOOK_LIST(NFPROTO_IPV4, NF_INET_PRE_ROUTING, net, NULL,
net               580 net/ipv4/ip_input.c 	ip_list_rcv_finish(net, NULL, head);
net               588 net/ipv4/ip_input.c 	struct net *curr_net = NULL;
net               595 net/ipv4/ip_input.c 		struct net *net = dev_net(dev);
net               598 net/ipv4/ip_input.c 		skb = ip_rcv_core(skb, net);
net               602 net/ipv4/ip_input.c 		if (curr_dev != dev || curr_net != net) {
net               609 net/ipv4/ip_input.c 			curr_net = net;
net                90 net/ipv4/ip_options.c int __ip_options_echo(struct net *net, struct ip_options *dopt,
net               144 net/ipv4/ip_options.c 						if (inet_addr_type(net, addr) != RTN_UNICAST) {
net               254 net/ipv4/ip_options.c int __ip_options_compile(struct net *net,
net               400 net/ipv4/ip_options.c 						if (inet_addr_type(net, addr) == RTN_UNICAST)
net               409 net/ipv4/ip_options.c 					if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) {
net               444 net/ipv4/ip_options.c 			if ((!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) || opt->cipso) {
net               457 net/ipv4/ip_options.c 			if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) {
net               478 net/ipv4/ip_options.c int ip_options_compile(struct net *net,
net               484 net/ipv4/ip_options.c 	ret = __ip_options_compile(net, opt, skb, &info);
net               528 net/ipv4/ip_options.c static int ip_options_get_finish(struct net *net, struct ip_options_rcu **optp,
net               534 net/ipv4/ip_options.c 	if (optlen && ip_options_compile(net, &opt->opt, NULL)) {
net               543 net/ipv4/ip_options.c int ip_options_get_from_user(struct net *net, struct ip_options_rcu **optp,
net               554 net/ipv4/ip_options.c 	return ip_options_get_finish(net, optp, opt, optlen);
net               557 net/ipv4/ip_options.c int ip_options_get(struct net *net, struct ip_options_rcu **optp,
net               566 net/ipv4/ip_options.c 	return ip_options_get_finish(net, optp, opt, optlen);
net                86 net/ipv4/ip_output.c ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net                88 net/ipv4/ip_output.c 	    int (*output)(struct net *, struct sock *, struct sk_buff *));
net                98 net/ipv4/ip_output.c int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net               115 net/ipv4/ip_output.c 		       net, sk, skb, NULL, skb_dst(skb)->dev,
net               119 net/ipv4/ip_output.c int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net               123 net/ipv4/ip_output.c 	err = __ip_local_out(net, sk, skb);
net               125 net/ipv4/ip_output.c 		err = dst_output(net, sk, skb);
net               149 net/ipv4/ip_output.c 	struct net *net = sock_net(sk);
net               168 net/ipv4/ip_output.c 		__ip_select_ident(net, iph, 1);
net               181 net/ipv4/ip_output.c 	return ip_local_out(net, skb->sk, skb);
net               185 net/ipv4/ip_output.c static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net               195 net/ipv4/ip_output.c 		IP_UPD_PO_STATS(net, IPSTATS_MIB_OUTMCAST, skb->len);
net               197 net/ipv4/ip_output.c 		IP_UPD_PO_STATS(net, IPSTATS_MIB_OUTBCAST, skb->len);
net               240 net/ipv4/ip_output.c static int ip_finish_output_gso(struct net *net, struct sock *sk,
net               250 net/ipv4/ip_output.c 		return ip_finish_output2(net, sk, skb);
net               280 net/ipv4/ip_output.c 		err = ip_fragment(net, sk, segs, mtu, ip_finish_output2);
net               290 net/ipv4/ip_output.c static int __ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               298 net/ipv4/ip_output.c 		return dst_output(net, sk, skb);
net               303 net/ipv4/ip_output.c 		return ip_finish_output_gso(net, sk, skb, mtu);
net               306 net/ipv4/ip_output.c 		return ip_fragment(net, sk, skb, mtu, ip_finish_output2);
net               308 net/ipv4/ip_output.c 	return ip_finish_output2(net, sk, skb);
net               311 net/ipv4/ip_output.c static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               318 net/ipv4/ip_output.c 		return __ip_finish_output(net, sk, skb);
net               320 net/ipv4/ip_output.c 		return __ip_finish_output(net, sk, skb) ? : ret;
net               327 net/ipv4/ip_output.c static int ip_mc_finish_output(struct net *net, struct sock *sk,
net               350 net/ipv4/ip_output.c 	new_rt = rt_dst_clone(net->loopback_dev, skb_rtable(skb));
net               357 net/ipv4/ip_output.c 	err = dev_loopback_xmit(net, sk, skb);
net               361 net/ipv4/ip_output.c int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               369 net/ipv4/ip_output.c 	IP_UPD_PO_STATS(net, IPSTATS_MIB_OUT, skb->len);
net               397 net/ipv4/ip_output.c 					net, sk, newskb, NULL, newskb->dev,
net               413 net/ipv4/ip_output.c 				net, sk, newskb, NULL, newskb->dev,
net               418 net/ipv4/ip_output.c 			    net, sk, skb, NULL, skb->dev,
net               423 net/ipv4/ip_output.c int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               427 net/ipv4/ip_output.c 	IP_UPD_PO_STATS(net, IPSTATS_MIB_OUT, skb->len);
net               433 net/ipv4/ip_output.c 			    net, sk, skb, NULL, dev,
net               457 net/ipv4/ip_output.c 	struct net *net = sock_net(sk);
net               488 net/ipv4/ip_output.c 		rt = ip_route_output_ports(net, fl4, sk,
net               525 net/ipv4/ip_output.c 	ip_select_ident_segs(net, skb, sk,
net               532 net/ipv4/ip_output.c 	res = ip_local_out(net, sk, skb);
net               538 net/ipv4/ip_output.c 	IP_INC_STATS(net, IPSTATS_MIB_OUTNOROUTES);
net               568 net/ipv4/ip_output.c static int ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               570 net/ipv4/ip_output.c 		       int (*output)(struct net *, struct sock *, struct sk_buff *))
net               575 net/ipv4/ip_output.c 		return ip_do_fragment(net, sk, skb, output);
net               580 net/ipv4/ip_output.c 		IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
net               587 net/ipv4/ip_output.c 	return ip_do_fragment(net, sk, skb, output);
net               766 net/ipv4/ip_output.c int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               767 net/ipv4/ip_output.c 		   int (*output)(struct net *, struct sock *, struct sk_buff *))
net               851 net/ipv4/ip_output.c 			err = output(net, sk, skb);
net               854 net/ipv4/ip_output.c 				IP_INC_STATS(net, IPSTATS_MIB_FRAGCREATES);
net               862 net/ipv4/ip_output.c 			IP_INC_STATS(net, IPSTATS_MIB_FRAGOKS);
net               868 net/ipv4/ip_output.c 		IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
net               907 net/ipv4/ip_output.c 		err = output(net, sk, skb2);
net               911 net/ipv4/ip_output.c 		IP_INC_STATS(net, IPSTATS_MIB_FRAGCREATES);
net               914 net/ipv4/ip_output.c 	IP_INC_STATS(net, IPSTATS_MIB_FRAGOKS);
net               919 net/ipv4/ip_output.c 	IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
net              1473 net/ipv4/ip_output.c 	struct net *net = sock_net(sk);
net              1532 net/ipv4/ip_output.c 	ip_select_ident(net, skb, sk);
net              1550 net/ipv4/ip_output.c 		icmp_out_count(net, ((struct icmphdr *)
net              1558 net/ipv4/ip_output.c int ip_send_skb(struct net *net, struct sk_buff *skb)
net              1562 net/ipv4/ip_output.c 	err = ip_local_out(net, skb->sk, skb);
net              1567 net/ipv4/ip_output.c 			IP_INC_STATS(net, IPSTATS_MIB_OUTDISCARDS);
net              1666 net/ipv4/ip_output.c 	struct net *net = sock_net(sk);
net              1671 net/ipv4/ip_output.c 	if (__ip_options_echo(net, &replyopts.opt.opt, skb, sopt))
net              1686 net/ipv4/ip_output.c 	if (!oif && netif_index_is_l3_master(net, skb->skb_iif))
net              1690 net/ipv4/ip_output.c 			   IP4_REPLY_MARK(net, skb->mark) ?: sk->sk_mark,
net              1698 net/ipv4/ip_output.c 	rt = ip_route_output_key(net, &fl4);
net                86 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_retopts(struct net *net, struct msghdr *msg,
net                95 net/ipv4/ip_sockglue.c 	if (ip_options_echo(net, opt, skb)) {
net               247 net/ipv4/ip_sockglue.c 	struct net *net = sock_net(sk);
net               283 net/ipv4/ip_sockglue.c 			err = ip_options_get(net, &ipc->opt, CMSG_DATA(cmsg),
net               340 net/ipv4/ip_sockglue.c 	struct net *net = sock_net(sk);
net               349 net/ipv4/ip_sockglue.c 	mutex_lock(&net->ipv4.ra_mutex);
net               350 net/ipv4/ip_sockglue.c 	for (rap = &net->ipv4.ra_chain;
net               352 net/ipv4/ip_sockglue.c 			lockdep_is_held(&net->ipv4.ra_mutex))) != NULL;
net               356 net/ipv4/ip_sockglue.c 				mutex_unlock(&net->ipv4.ra_mutex);
net               363 net/ipv4/ip_sockglue.c 			mutex_unlock(&net->ipv4.ra_mutex);
net               378 net/ipv4/ip_sockglue.c 		mutex_unlock(&net->ipv4.ra_mutex);
net               387 net/ipv4/ip_sockglue.c 	mutex_unlock(&net->ipv4.ra_mutex);
net               594 net/ipv4/ip_sockglue.c 	struct net *net = sock_net(sk);
net               949 net/ipv4/ip_sockglue.c 		    msf->imsf_numsrc > net->ipv4.sysctl_igmp_max_msf) {
net              1101 net/ipv4/ip_sockglue.c 		    gsf->gf_numsrc > net->ipv4.sysctl_igmp_max_msf) {
net              1392 net/ipv4/ip_sockglue.c 		struct net *net = sock_net(sk);
net              1394 net/ipv4/ip_sockglue.c 		       net->ipv4.sysctl_ip_default_ttl :
net               230 net/ipv4/ip_tunnel.c static struct net_device *__ip_tunnel_create(struct net *net,
net               257 net/ipv4/ip_tunnel.c 	dev_net_set(dev, net);
net               263 net/ipv4/ip_tunnel.c 	tunnel->net = net;
net               297 net/ipv4/ip_tunnel.c 		rt = ip_route_output_key(tunnel->net, &fl4);
net               310 net/ipv4/ip_tunnel.c 		tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link);
net               326 net/ipv4/ip_tunnel.c static struct ip_tunnel *ip_tunnel_create(struct net *net,
net               336 net/ipv4/ip_tunnel.c 	dev = __ip_tunnel_create(net, itn->rtnl_link_ops, parms);
net               409 net/ipv4/ip_tunnel.c 	skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev)));
net               581 net/ipv4/ip_tunnel.c 		rt = ip_route_output_key(tunnel->net, &fl4);
net               627 net/ipv4/ip_tunnel.c 		      df, !net_eq(tunnel->net, dev_net(dev)));
net               749 net/ipv4/ip_tunnel.c 		rt = ip_route_output_key(tunnel->net, &fl4);
net               815 net/ipv4/ip_tunnel.c 		      df, !net_eq(tunnel->net, dev_net(dev)));
net               867 net/ipv4/ip_tunnel.c 	struct net *net = t->net;
net               868 net/ipv4/ip_tunnel.c 	struct ip_tunnel_net *itn = net_generic(net, t->ip_tnl_net_id);
net               883 net/ipv4/ip_tunnel.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               898 net/ipv4/ip_tunnel.c 				t = ip_tunnel_create(net, itn, p);
net               939 net/ipv4/ip_tunnel.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1006 net/ipv4/ip_tunnel.c 	itn = net_generic(tunnel->net, tunnel->ip_tnl_net_id);
net              1015 net/ipv4/ip_tunnel.c struct net *ip_tunnel_get_link_net(const struct net_device *dev)
net              1019 net/ipv4/ip_tunnel.c 	return tunnel->net;
net              1031 net/ipv4/ip_tunnel.c int ip_tunnel_init_net(struct net *net, unsigned int ip_tnl_net_id,
net              1034 net/ipv4/ip_tunnel.c 	struct ip_tunnel_net *itn = net_generic(net, ip_tnl_net_id);
net              1042 net/ipv4/ip_tunnel.c 	if (!ops || !net_has_fallback_tunnels(net)) {
net              1056 net/ipv4/ip_tunnel.c 	itn->fb_tunnel_dev = __ip_tunnel_create(net, ops, &parms);
net              1072 net/ipv4/ip_tunnel.c static void ip_tunnel_destroy(struct net *net, struct ip_tunnel_net *itn,
net              1079 net/ipv4/ip_tunnel.c 	for_each_netdev_safe(net, dev, aux)
net              1092 net/ipv4/ip_tunnel.c 			if (!net_eq(dev_net(t->dev), net))
net              1101 net/ipv4/ip_tunnel.c 	struct net *net;
net              1105 net/ipv4/ip_tunnel.c 	list_for_each_entry(net, net_list, exit_list) {
net              1106 net/ipv4/ip_tunnel.c 		itn = net_generic(net, id);
net              1107 net/ipv4/ip_tunnel.c 		ip_tunnel_destroy(net, itn, &list, ops);
net              1118 net/ipv4/ip_tunnel.c 	struct net *net = dev_net(dev);
net              1124 net/ipv4/ip_tunnel.c 	itn = net_generic(net, nt->ip_tnl_net_id);
net              1134 net/ipv4/ip_tunnel.c 	nt->net = net;
net              1171 net/ipv4/ip_tunnel.c 	struct net *net = tunnel->net;
net              1172 net/ipv4/ip_tunnel.c 	struct ip_tunnel_net *itn = net_generic(net, tunnel->ip_tnl_net_id);
net              1230 net/ipv4/ip_tunnel.c 	tunnel->net = dev_net(dev);
net              1244 net/ipv4/ip_tunnel.c 	struct net *net = tunnel->net;
net              1247 net/ipv4/ip_tunnel.c 	itn = net_generic(net, tunnel->ip_tnl_net_id);
net                51 net/ipv4/ip_tunnel_core.c 	struct net *net = dev_net(rt->dst.dev);
net                76 net/ipv4/ip_tunnel_core.c 	__ip_select_ident(net, iph, skb_shinfo(skb)->gso_segs ?: 1);
net                78 net/ipv4/ip_tunnel_core.c 	err = ip_local_out(net, sk, skb);
net                52 net/ipv4/ip_vti.c 	struct net *net = dev_net(skb->dev);
net                53 net/ipv4/ip_vti.c 	struct ip_tunnel_net *itn = net_generic(net, vti_net_id);
net               165 net/ipv4/ip_vti.c 	skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev)));
net               247 net/ipv4/ip_vti.c 	dst = xfrm_lookup(tunnel->net, dst, fl, NULL, 0);
net               284 net/ipv4/ip_vti.c 	skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev)));
net               288 net/ipv4/ip_vti.c 	err = dst_output(tunnel->net, skb->sk, skb);
net               348 net/ipv4/ip_vti.c 	struct net *net = dev_net(skb->dev);
net               351 net/ipv4/ip_vti.c 	struct ip_tunnel_net *itn = net_generic(net, vti_net_id);
net               387 net/ipv4/ip_vti.c 	x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr,
net               393 net/ipv4/ip_vti.c 		ipv4_update_pmtu(skb, net, info, 0, protocol);
net               395 net/ipv4/ip_vti.c 		ipv4_redirect(skb, net, 0, protocol);
net               510 net/ipv4/ip_vti.c static int __net_init vti_init_net(struct net *net)
net               515 net/ipv4/ip_vti.c 	err = ip_tunnel_init_net(net, vti_net_id, &vti_link_ops, "ip_vti0");
net               518 net/ipv4/ip_vti.c 	itn = net_generic(net, vti_net_id);
net               574 net/ipv4/ip_vti.c static int vti_newlink(struct net *src_net, struct net_device *dev,
net                24 net/ipv4/ipcomp.c 	struct net *net = dev_net(skb->dev);
net                41 net/ipv4/ipcomp.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net                47 net/ipv4/ipcomp.c 		ipv4_update_pmtu(skb, net, info, 0, IPPROTO_COMP);
net                49 net/ipv4/ipcomp.c 		ipv4_redirect(skb, net, 0, IPPROTO_COMP);
net                58 net/ipv4/ipcomp.c 	struct net *net = xs_net(x);
net                61 net/ipv4/ipcomp.c 	t = xfrm_state_alloc(net);
net                96 net/ipv4/ipcomp.c 	struct net *net = xs_net(x);
net               101 net/ipv4/ipcomp.c 	t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4,
net               130 net/ipv4/ipip.c 	struct net *net = dev_net(skb->dev);
net               131 net/ipv4/ipip.c 	struct ip_tunnel_net *itn = net_generic(net, ipip_net_id);
net               173 net/ipv4/ipip.c 		ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol);
net               178 net/ipv4/ipip.c 		ipv4_redirect(skb, net, t->parms.link, iph->protocol);
net               214 net/ipv4/ipip.c 	struct net *net = dev_net(skb->dev);
net               215 net/ipv4/ipip.c 	struct ip_tunnel_net *itn = net_generic(net, ipip_net_id);
net               494 net/ipv4/ipip.c static int ipip_newlink(struct net *src_net, struct net_device *dev,
net               654 net/ipv4/ipip.c static int __net_init ipip_init_net(struct net *net)
net               656 net/ipv4/ipip.c 	return ip_tunnel_init_net(net, ipip_net_id, &ipip_link_ops, "tunl0");
net                97 net/ipv4/ipmr.c static struct mr_table *ipmr_new_table(struct net *net, u32 id);
net               100 net/ipv4/ipmr.c static void ip_mr_forward(struct net *net, struct mr_table *mrt,
net               112 net/ipv4/ipmr.c #define ipmr_for_each_table(mrt, net) \
net               113 net/ipv4/ipmr.c 	list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list)
net               115 net/ipv4/ipmr.c static struct mr_table *ipmr_mr_table_iter(struct net *net,
net               121 net/ipv4/ipmr.c 		ret = list_entry_rcu(net->ipv4.mr_tables.next,
net               127 net/ipv4/ipmr.c 	if (&ret->list == &net->ipv4.mr_tables)
net               132 net/ipv4/ipmr.c static struct mr_table *ipmr_get_table(struct net *net, u32 id)
net               136 net/ipv4/ipmr.c 	ipmr_for_each_table(mrt, net) {
net               143 net/ipv4/ipmr.c static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4,
net               154 net/ipv4/ipmr.c 	l3mdev_update_flow(net, flowi4_to_flowi(flp4));
net               156 net/ipv4/ipmr.c 	err = fib_rules_lookup(net->ipv4.mr_rules_ops,
net               236 net/ipv4/ipmr.c static int __net_init ipmr_rules_init(struct net *net)
net               242 net/ipv4/ipmr.c 	ops = fib_rules_register(&ipmr_rules_ops_template, net);
net               246 net/ipv4/ipmr.c 	INIT_LIST_HEAD(&net->ipv4.mr_tables);
net               248 net/ipv4/ipmr.c 	mrt = ipmr_new_table(net, RT_TABLE_DEFAULT);
net               258 net/ipv4/ipmr.c 	net->ipv4.mr_rules_ops = ops;
net               268 net/ipv4/ipmr.c static void __net_exit ipmr_rules_exit(struct net *net)
net               273 net/ipv4/ipmr.c 	list_for_each_entry_safe(mrt, next, &net->ipv4.mr_tables, list) {
net               277 net/ipv4/ipmr.c 	fib_rules_unregister(net->ipv4.mr_rules_ops);
net               281 net/ipv4/ipmr.c static int ipmr_rules_dump(struct net *net, struct notifier_block *nb)
net               283 net/ipv4/ipmr.c 	return fib_rules_dump(net, nb, RTNL_FAMILY_IPMR);
net               286 net/ipv4/ipmr.c static unsigned int ipmr_rules_seq_read(struct net *net)
net               288 net/ipv4/ipmr.c 	return fib_rules_seq_read(net, RTNL_FAMILY_IPMR);
net               297 net/ipv4/ipmr.c #define ipmr_for_each_table(mrt, net) \
net               298 net/ipv4/ipmr.c 	for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
net               300 net/ipv4/ipmr.c static struct mr_table *ipmr_mr_table_iter(struct net *net,
net               304 net/ipv4/ipmr.c 		return net->ipv4.mrt;
net               308 net/ipv4/ipmr.c static struct mr_table *ipmr_get_table(struct net *net, u32 id)
net               310 net/ipv4/ipmr.c 	return net->ipv4.mrt;
net               313 net/ipv4/ipmr.c static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4,
net               316 net/ipv4/ipmr.c 	*mrt = net->ipv4.mrt;
net               320 net/ipv4/ipmr.c static int __net_init ipmr_rules_init(struct net *net)
net               324 net/ipv4/ipmr.c 	mrt = ipmr_new_table(net, RT_TABLE_DEFAULT);
net               327 net/ipv4/ipmr.c 	net->ipv4.mrt = mrt;
net               331 net/ipv4/ipmr.c static void __net_exit ipmr_rules_exit(struct net *net)
net               334 net/ipv4/ipmr.c 	ipmr_free_table(net->ipv4.mrt);
net               335 net/ipv4/ipmr.c 	net->ipv4.mrt = NULL;
net               339 net/ipv4/ipmr.c static int ipmr_rules_dump(struct net *net, struct notifier_block *nb)
net               344 net/ipv4/ipmr.c static unsigned int ipmr_rules_seq_read(struct net *net)
net               376 net/ipv4/ipmr.c 			       struct net *net)
net               379 net/ipv4/ipmr.c 	list_add_tail_rcu(&mrt->list, &net->ipv4.mr_tables);
net               393 net/ipv4/ipmr.c static struct mr_table *ipmr_new_table(struct net *net, u32 id)
net               401 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, id);
net               405 net/ipv4/ipmr.c 	return mr_table_alloc(net, id, &ipmr_mr_table_ops,
net               422 net/ipv4/ipmr.c 	struct net *net = dev_net(dev);
net               426 net/ipv4/ipmr.c 	dev = __dev_get_by_name(net, "tunl0");
net               468 net/ipv4/ipmr.c static struct net_device *ipmr_new_tunnel(struct net *net, struct vifctl *v)
net               472 net/ipv4/ipmr.c 	dev = __dev_get_by_name(net, "tunl0");
net               501 net/ipv4/ipmr.c 		    (dev = __dev_get_by_name(net, p.name)) != NULL) {
net               520 net/ipv4/ipmr.c 	struct net *net = dev_net(dev);
net               529 net/ipv4/ipmr.c 	err = ipmr_fib_lookup(net, &fl4, &mrt);
net               564 net/ipv4/ipmr.c static struct net_device *ipmr_reg_vif(struct net *net, struct mr_table *mrt)
net               579 net/ipv4/ipmr.c 	dev_net_set(dev, net);
net               639 net/ipv4/ipmr.c static struct net_device *ipmr_reg_vif(struct net *net, struct mr_table *mrt)
net               645 net/ipv4/ipmr.c static int call_ipmr_vif_entry_notifiers(struct net *net,
net               650 net/ipv4/ipmr.c 	return mr_call_vif_notifiers(net, RTNL_FAMILY_IPMR, event_type,
net               652 net/ipv4/ipmr.c 				     &net->ipv4.ipmr_seq);
net               655 net/ipv4/ipmr.c static int call_ipmr_mfc_entry_notifiers(struct net *net,
net               659 net/ipv4/ipmr.c 	return mr_call_mfc_notifiers(net, RTNL_FAMILY_IPMR, event_type,
net               660 net/ipv4/ipmr.c 				     &mfc->_c, tb_id, &net->ipv4.ipmr_seq);
net               670 net/ipv4/ipmr.c 	struct net *net = read_pnet(&mrt->net);
net               681 net/ipv4/ipmr.c 		call_ipmr_vif_entry_notifiers(net, FIB_EVENT_VIF_DEL, v, vifi,
net               743 net/ipv4/ipmr.c 	struct net *net = read_pnet(&mrt->net);
net               760 net/ipv4/ipmr.c 			rtnl_unicast(skb, net, NETLINK_CB(skb).portid);
net               831 net/ipv4/ipmr.c static int vif_add(struct net *net, struct mr_table *mrt,
net               854 net/ipv4/ipmr.c 		dev = ipmr_reg_vif(net, mrt);
net               865 net/ipv4/ipmr.c 		dev = ipmr_new_tunnel(net, vifc);
net               878 net/ipv4/ipmr.c 			dev = dev_get_by_index(net, vifc->vifc_lcl_ifindex);
net               884 net/ipv4/ipmr.c 			dev = ip_dev_find(net, vifc->vifc_lcl_addr.s_addr);
net               904 net/ipv4/ipmr.c 	inet_netconf_notify_devconf(net, RTM_NEWNETCONF, NETCONFA_MC_FORWARDING,
net               933 net/ipv4/ipmr.c 	call_ipmr_vif_entry_notifiers(net, FIB_EVENT_VIF_ADD, v, vifi, mrt->id);
net              1003 net/ipv4/ipmr.c static void ipmr_cache_resolve(struct net *net, struct mr_table *mrt,
net              1028 net/ipv4/ipmr.c 			rtnl_unicast(skb, net, NETLINK_CB(skb).portid);
net              1030 net/ipv4/ipmr.c 			ip_mr_forward(net, mrt, skb->dev, skb, c, 0);
net              1194 net/ipv4/ipmr.c 	struct net *net = read_pnet(&mrt->net);
net              1206 net/ipv4/ipmr.c 	call_ipmr_mfc_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, c, mrt->id);
net              1213 net/ipv4/ipmr.c static int ipmr_mfc_add(struct net *net, struct mr_table *mrt,
net              1236 net/ipv4/ipmr.c 		call_ipmr_mfc_entry_notifiers(net, FIB_EVENT_ENTRY_REPLACE, c,
net              1285 net/ipv4/ipmr.c 		ipmr_cache_resolve(net, mrt, uc, c);
net              1288 net/ipv4/ipmr.c 	call_ipmr_mfc_entry_notifiers(net, FIB_EVENT_ENTRY_ADD, c, mrt->id);
net              1296 net/ipv4/ipmr.c 	struct net *net = read_pnet(&mrt->net);
net              1323 net/ipv4/ipmr.c 			call_ipmr_mfc_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, cache,
net              1349 net/ipv4/ipmr.c 	struct net *net = sock_net(sk);
net              1353 net/ipv4/ipmr.c 	ipmr_for_each_table(mrt, net) {
net              1355 net/ipv4/ipmr.c 			IPV4_DEVCONF_ALL(net, MC_FORWARDING)--;
net              1356 net/ipv4/ipmr.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              1359 net/ipv4/ipmr.c 						    net->ipv4.devconf_all);
net              1376 net/ipv4/ipmr.c 	struct net *net = sock_net(sk);
net              1392 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, raw_sk(sk)->ipmr_table ? : RT_TABLE_DEFAULT);
net              1399 net/ipv4/ipmr.c 		    !ns_capable(net->user_ns, CAP_NET_ADMIN)) {
net              1419 net/ipv4/ipmr.c 			IPV4_DEVCONF_ALL(net, MC_FORWARDING)++;
net              1420 net/ipv4/ipmr.c 			inet_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              1423 net/ipv4/ipmr.c 						    net->ipv4.devconf_all);
net              1454 net/ipv4/ipmr.c 			ret = vif_add(net, mrt, &vif,
net              1482 net/ipv4/ipmr.c 			ret = ipmr_mfc_add(net, mrt, &mfc,
net              1548 net/ipv4/ipmr.c 			mrt = ipmr_new_table(net, uval);
net              1570 net/ipv4/ipmr.c 	struct net *net = sock_net(sk);
net              1577 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, raw_sk(sk)->ipmr_table ? : RT_TABLE_DEFAULT);
net              1616 net/ipv4/ipmr.c 	struct net *net = sock_net(sk);
net              1619 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, raw_sk(sk)->ipmr_table ? : RT_TABLE_DEFAULT);
net              1691 net/ipv4/ipmr.c 	struct net *net = sock_net(sk);
net              1694 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, raw_sk(sk)->ipmr_table ? : RT_TABLE_DEFAULT);
net              1747 net/ipv4/ipmr.c 	struct net *net = dev_net(dev);
net              1755 net/ipv4/ipmr.c 	ipmr_for_each_table(mrt, net) {
net              1773 net/ipv4/ipmr.c static void ip_encap(struct net *net, struct sk_buff *skb,
net              1793 net/ipv4/ipmr.c 	ip_select_ident(net, skb, NULL);
net              1800 net/ipv4/ipmr.c static inline int ipmr_forward_finish(struct net *net, struct sock *sk,
net              1805 net/ipv4/ipmr.c 	IP_INC_STATS(net, IPSTATS_MIB_OUTFORWDATAGRAMS);
net              1806 net/ipv4/ipmr.c 	IP_ADD_STATS(net, IPSTATS_MIB_OUTOCTETS, skb->len);
net              1811 net/ipv4/ipmr.c 	return dst_output(net, sk, skb);
net              1838 net/ipv4/ipmr.c static void ipmr_queue_xmit(struct net *net, struct mr_table *mrt,
net              1864 net/ipv4/ipmr.c 		rt = ip_route_output_ports(net, &fl4, NULL,
net              1873 net/ipv4/ipmr.c 		rt = ip_route_output_ports(net, &fl4, NULL, iph->daddr, 0,
net              1888 net/ipv4/ipmr.c 		IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
net              1911 net/ipv4/ipmr.c 		ip_encap(net, skb, vif->local, vif->remote);
net              1930 net/ipv4/ipmr.c 		net, NULL, skb, skb->dev, dev,
net              1950 net/ipv4/ipmr.c static void ip_mr_forward(struct net *net, struct mr_table *mrt,
net              2044 net/ipv4/ipmr.c 					ipmr_queue_xmit(net, mrt, true_vifi,
net              2056 net/ipv4/ipmr.c 				ipmr_queue_xmit(net, mrt, true_vifi, skb2,
net              2059 net/ipv4/ipmr.c 			ipmr_queue_xmit(net, mrt, true_vifi, skb, psend);
net              2069 net/ipv4/ipmr.c static struct mr_table *ipmr_rt_fib_lookup(struct net *net, struct sk_buff *skb)
net              2087 net/ipv4/ipmr.c 	err = ipmr_fib_lookup(net, &fl4, &mrt);
net              2099 net/ipv4/ipmr.c 	struct net *net = dev_net(skb->dev);
net              2110 net/ipv4/ipmr.c 		dev = dev_get_by_index_rcu(net, IPCB(skb)->iif);
net              2123 net/ipv4/ipmr.c 	mrt = ipmr_rt_fib_lookup(net, skb);
net              2186 net/ipv4/ipmr.c 	ip_mr_forward(net, mrt, dev, skb, cache, local);
net              2206 net/ipv4/ipmr.c 	struct net *net = dev_net(skb->dev);
net              2214 net/ipv4/ipmr.c 	mrt = ipmr_rt_fib_lookup(net, skb);
net              2233 net/ipv4/ipmr.c 	struct net *net = dev_net(skb->dev);
net              2246 net/ipv4/ipmr.c 	mrt = ipmr_rt_fib_lookup(net, skb);
net              2257 net/ipv4/ipmr.c int ipmr_get_route(struct net *net, struct sk_buff *skb,
net              2265 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, RT_TABLE_DEFAULT);
net              2397 net/ipv4/ipmr.c 	struct net *net = read_pnet(&mrt->net);
net              2411 net/ipv4/ipmr.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV4_MROUTE, NULL, GFP_ATOMIC);
net              2417 net/ipv4/ipmr.c 		rtnl_set_sk_err(net, RTNLGRP_IPV4_MROUTE, err);
net              2437 net/ipv4/ipmr.c 	struct net *net = read_pnet(&mrt->net);
net              2473 net/ipv4/ipmr.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV4_MROUTE_R, NULL, GFP_ATOMIC);
net              2480 net/ipv4/ipmr.c 	rtnl_set_sk_err(net, RTNLGRP_IPV4_MROUTE_R, -ENOBUFS);
net              2541 net/ipv4/ipmr.c 	struct net *net = sock_net(in_skb->sk);
net              2558 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, tableid ? tableid : RT_TABLE_DEFAULT);
net              2585 net/ipv4/ipmr.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              2661 net/ipv4/ipmr.c static int rtm_to_ipmr_mfcc(struct net *net, struct nlmsghdr *nlh,
net              2698 net/ipv4/ipmr.c 			dev = __dev_get_by_index(net, nla_get_u32(attr));
net              2718 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, tblid);
net              2736 net/ipv4/ipmr.c 	struct net *net = sock_net(skb->sk);
net              2743 net/ipv4/ipmr.c 	ret = rtm_to_ipmr_mfcc(net, nlh, &mfcc, &mrtsock, &tbl, extack);
net              2749 net/ipv4/ipmr.c 		return ipmr_mfc_add(net, tbl, &mfcc, mrtsock, parent);
net              2833 net/ipv4/ipmr.c 	struct net *net = sock_net(skb->sk);
net              2849 net/ipv4/ipmr.c 	ipmr_for_each_table(mrt, net) {
net              2920 net/ipv4/ipmr.c 	struct net *net = seq_file_net(seq);
net              2923 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, RT_TABLE_DEFAULT);
net              2971 net/ipv4/ipmr.c 	struct net *net = seq_file_net(seq);
net              2974 net/ipv4/ipmr.c 	mrt = ipmr_get_table(net, RT_TABLE_DEFAULT);
net              3037 net/ipv4/ipmr.c static unsigned int ipmr_seq_read(struct net *net)
net              3041 net/ipv4/ipmr.c 	return net->ipv4.ipmr_seq + ipmr_rules_seq_read(net);
net              3044 net/ipv4/ipmr.c static int ipmr_dump(struct net *net, struct notifier_block *nb)
net              3046 net/ipv4/ipmr.c 	return mr_dump(net, nb, RTNL_FAMILY_IPMR, ipmr_rules_dump,
net              3057 net/ipv4/ipmr.c static int __net_init ipmr_notifier_init(struct net *net)
net              3061 net/ipv4/ipmr.c 	net->ipv4.ipmr_seq = 0;
net              3063 net/ipv4/ipmr.c 	ops = fib_notifier_ops_register(&ipmr_notifier_ops_template, net);
net              3066 net/ipv4/ipmr.c 	net->ipv4.ipmr_notifier_ops = ops;
net              3071 net/ipv4/ipmr.c static void __net_exit ipmr_notifier_exit(struct net *net)
net              3073 net/ipv4/ipmr.c 	fib_notifier_ops_unregister(net->ipv4.ipmr_notifier_ops);
net              3074 net/ipv4/ipmr.c 	net->ipv4.ipmr_notifier_ops = NULL;
net              3078 net/ipv4/ipmr.c static int __net_init ipmr_net_init(struct net *net)
net              3082 net/ipv4/ipmr.c 	err = ipmr_notifier_init(net);
net              3086 net/ipv4/ipmr.c 	err = ipmr_rules_init(net);
net              3092 net/ipv4/ipmr.c 	if (!proc_create_net("ip_mr_vif", 0, net->proc_net, &ipmr_vif_seq_ops,
net              3095 net/ipv4/ipmr.c 	if (!proc_create_net("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops,
net              3103 net/ipv4/ipmr.c 	remove_proc_entry("ip_mr_vif", net->proc_net);
net              3105 net/ipv4/ipmr.c 	ipmr_rules_exit(net);
net              3108 net/ipv4/ipmr.c 	ipmr_notifier_exit(net);
net              3113 net/ipv4/ipmr.c static void __net_exit ipmr_net_exit(struct net *net)
net              3116 net/ipv4/ipmr.c 	remove_proc_entry("ip_mr_cache", net->proc_net);
net              3117 net/ipv4/ipmr.c 	remove_proc_entry("ip_mr_vif", net->proc_net);
net              3119 net/ipv4/ipmr.c 	ipmr_notifier_exit(net);
net              3120 net/ipv4/ipmr.c 	ipmr_rules_exit(net);
net                32 net/ipv4/ipmr_base.c mr_table_alloc(struct net *net, u32 id,
net                36 net/ipv4/ipmr_base.c 				 struct net *net))
net                45 net/ipv4/ipmr_base.c 	write_pnet(&mrt->net, net);
net                59 net/ipv4/ipmr_base.c 	table_set(mrt, net);
net               114 net/ipv4/ipmr_base.c void *mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter, loff_t pos)
net               131 net/ipv4/ipmr_base.c 	struct net *net = seq_file_net(seq);
net               136 net/ipv4/ipmr_base.c 		return mr_vif_seq_idx(net, iter, 0);
net               147 net/ipv4/ipmr_base.c void *mr_mfc_seq_idx(struct net *net,
net               176 net/ipv4/ipmr_base.c 	struct net *net = seq_file_net(seq);
net               183 net/ipv4/ipmr_base.c 		return mr_mfc_seq_idx(net, seq->private, 0);
net               345 net/ipv4/ipmr_base.c 		     struct mr_table *(*iter)(struct net *net,
net               354 net/ipv4/ipmr_base.c 	struct net *net = sock_net(skb->sk);
net               368 net/ipv4/ipmr_base.c 	for (mrt = iter(net, NULL); mrt; mrt = iter(net, mrt)) {
net               387 net/ipv4/ipmr_base.c int mr_dump(struct net *net, struct notifier_block *nb, unsigned short family,
net               388 net/ipv4/ipmr_base.c 	    int (*rules_dump)(struct net *net,
net               390 net/ipv4/ipmr_base.c 	    struct mr_table *(*mr_iter)(struct net *net,
net               397 net/ipv4/ipmr_base.c 	err = rules_dump(net, nb);
net               401 net/ipv4/ipmr_base.c 	for (mrt = mr_iter(net, NULL); mrt; mrt = mr_iter(net, mrt)) {
net               412 net/ipv4/ipmr_base.c 			mr_call_vif_notifier(nb, net, family,
net               420 net/ipv4/ipmr_base.c 			mr_call_mfc_notifier(nb, net, family,
net                 9 net/ipv4/metrics.c static int ip_metrics_convert(struct net *net, struct nlattr *fc_mx,
net                35 net/ipv4/metrics.c 			val = tcp_ca_get_key_by_name(net, tmp, &ecn_ca);
net                67 net/ipv4/metrics.c struct dst_metrics *ip_fib_metrics_init(struct net *net, struct nlattr *fc_mx,
net                81 net/ipv4/metrics.c 	err = ip_metrics_convert(net, fc_mx, fc_mx_len, fib_metrics->metrics,
net                20 net/ipv4/netfilter.c int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned int addr_type)
net                32 net/ipv4/netfilter.c 		addr_type = inet_addr_type_dev_table(net, dev, saddr);
net                49 net/ipv4/netfilter.c 	rt = ip_route_output_key(net, &fl4);
net                65 net/ipv4/netfilter.c 		dst = xfrm_lookup(net, dst, flowi4_to_flowi(&fl4), sk, 0);
net                83 net/ipv4/netfilter.c int nf_ip_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
net                86 net/ipv4/netfilter.c 	struct rtable *rt = ip_route_output_key(net, &fl->u.ip4);
net               387 net/ipv4/netfilter/arp_tables.c static int check_target(struct arpt_entry *e, struct net *net, const char *name)
net               391 net/ipv4/netfilter/arp_tables.c 		.net       = net,
net               404 net/ipv4/netfilter/arp_tables.c find_check_entry(struct arpt_entry *e, struct net *net, const char *name,
net               424 net/ipv4/netfilter/arp_tables.c 	ret = check_target(e, net, name);
net               499 net/ipv4/netfilter/arp_tables.c static void cleanup_entry(struct arpt_entry *e, struct net *net)
net               505 net/ipv4/netfilter/arp_tables.c 	par.net      = net;
net               518 net/ipv4/netfilter/arp_tables.c static int translate_table(struct net *net,
net               577 net/ipv4/netfilter/arp_tables.c 		ret = find_check_entry(iter, net, repl->name, repl->size,
net               588 net/ipv4/netfilter/arp_tables.c 			cleanup_entry(iter, net);
net               790 net/ipv4/netfilter/arp_tables.c static int get_info(struct net *net, void __user *user,
net               808 net/ipv4/netfilter/arp_tables.c 	t = xt_request_find_table_lock(net, NFPROTO_ARP, name);
net               846 net/ipv4/netfilter/arp_tables.c static int get_entries(struct net *net, struct arpt_get_entries __user *uptr,
net               862 net/ipv4/netfilter/arp_tables.c 	t = xt_find_table_lock(net, NFPROTO_ARP, get.name);
net               880 net/ipv4/netfilter/arp_tables.c static int __do_replace(struct net *net, const char *name,
net               900 net/ipv4/netfilter/arp_tables.c 	t = xt_request_find_table_lock(net, NFPROTO_ARP, name);
net               931 net/ipv4/netfilter/arp_tables.c 		cleanup_entry(iter, net);
net               951 net/ipv4/netfilter/arp_tables.c static int do_replace(struct net *net, const void __user *user,
net               982 net/ipv4/netfilter/arp_tables.c 	ret = translate_table(net, newinfo, loc_cpu_entry, &tmp);
net               986 net/ipv4/netfilter/arp_tables.c 	ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo,
net               994 net/ipv4/netfilter/arp_tables.c 		cleanup_entry(iter, net);
net              1000 net/ipv4/netfilter/arp_tables.c static int do_add_counters(struct net *net, const void __user *user,
net              1016 net/ipv4/netfilter/arp_tables.c 	t = xt_find_table_lock(net, NFPROTO_ARP, tmp.name);
net              1157 net/ipv4/netfilter/arp_tables.c static int translate_compat_table(struct net *net,
net              1226 net/ipv4/netfilter/arp_tables.c 	ret = translate_table(net, newinfo, entry1, &repl);
net              1249 net/ipv4/netfilter/arp_tables.c static int compat_do_replace(struct net *net, void __user *user,
net              1279 net/ipv4/netfilter/arp_tables.c 	ret = translate_compat_table(net, &newinfo, &loc_cpu_entry, &tmp);
net              1283 net/ipv4/netfilter/arp_tables.c 	ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo,
net              1291 net/ipv4/netfilter/arp_tables.c 		cleanup_entry(iter, net);
net              1389 net/ipv4/netfilter/arp_tables.c static int compat_get_entries(struct net *net,
net              1407 net/ipv4/netfilter/arp_tables.c 	t = xt_find_table_lock(net, NFPROTO_ARP, get.name);
net              1518 net/ipv4/netfilter/arp_tables.c static void __arpt_unregister_table(struct net *net, struct xt_table *table)
net              1530 net/ipv4/netfilter/arp_tables.c 		cleanup_entry(iter, net);
net              1536 net/ipv4/netfilter/arp_tables.c int arpt_register_table(struct net *net,
net              1555 net/ipv4/netfilter/arp_tables.c 	ret = translate_table(net, newinfo, loc_cpu_entry, repl);
net              1559 net/ipv4/netfilter/arp_tables.c 	new_table = xt_register_table(net, table, &bootstrap, newinfo);
net              1568 net/ipv4/netfilter/arp_tables.c 	ret = nf_register_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1570 net/ipv4/netfilter/arp_tables.c 		__arpt_unregister_table(net, new_table);
net              1581 net/ipv4/netfilter/arp_tables.c void arpt_unregister_table(struct net *net, struct xt_table *table,
net              1584 net/ipv4/netfilter/arp_tables.c 	nf_unregister_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1585 net/ipv4/netfilter/arp_tables.c 	__arpt_unregister_table(net, table);
net              1625 net/ipv4/netfilter/arp_tables.c static int __net_init arp_tables_net_init(struct net *net)
net              1627 net/ipv4/netfilter/arp_tables.c 	return xt_proto_init(net, NFPROTO_ARP);
net              1630 net/ipv4/netfilter/arp_tables.c static void __net_exit arp_tables_net_exit(struct net *net)
net              1632 net/ipv4/netfilter/arp_tables.c 	xt_proto_fini(net, NFPROTO_ARP);
net                21 net/ipv4/netfilter/arptable_filter.c static int __net_init arptable_filter_table_init(struct net *net);
net                37 net/ipv4/netfilter/arptable_filter.c 	return arpt_do_table(skb, state, state->net->ipv4.arptable_filter);
net                42 net/ipv4/netfilter/arptable_filter.c static int __net_init arptable_filter_table_init(struct net *net)
net                47 net/ipv4/netfilter/arptable_filter.c 	if (net->ipv4.arptable_filter)
net                53 net/ipv4/netfilter/arptable_filter.c 	err = arpt_register_table(net, &packet_filter, repl, arpfilter_ops,
net                54 net/ipv4/netfilter/arptable_filter.c 				  &net->ipv4.arptable_filter);
net                59 net/ipv4/netfilter/arptable_filter.c static void __net_exit arptable_filter_net_exit(struct net *net)
net                61 net/ipv4/netfilter/arptable_filter.c 	if (!net->ipv4.arptable_filter)
net                63 net/ipv4/netfilter/arptable_filter.c 	arpt_unregister_table(net, net->ipv4.arptable_filter, arpfilter_ops);
net                64 net/ipv4/netfilter/arptable_filter.c 	net->ipv4.arptable_filter = NULL;
net               187 net/ipv4/netfilter/ip_tables.c static void trace_packet(struct net *net,
net               211 net/ipv4/netfilter/ip_tables.c 	nf_log_trace(net, AF_INET, hook, skb, in, out, &trace_loginfo,
net               307 net/ipv4/netfilter/ip_tables.c 			trace_packet(state->net, skb, hook, state->in,
net               451 net/ipv4/netfilter/ip_tables.c static void cleanup_match(struct xt_entry_match *m, struct net *net)
net               455 net/ipv4/netfilter/ip_tables.c 	par.net       = net;
net               498 net/ipv4/netfilter/ip_tables.c static int check_target(struct ipt_entry *e, struct net *net, const char *name)
net               502 net/ipv4/netfilter/ip_tables.c 		.net       = net,
net               516 net/ipv4/netfilter/ip_tables.c find_check_entry(struct ipt_entry *e, struct net *net, const char *name,
net               532 net/ipv4/netfilter/ip_tables.c 	mtpar.net	= net;
net               553 net/ipv4/netfilter/ip_tables.c 	ret = check_target(e, net, name);
net               564 net/ipv4/netfilter/ip_tables.c 		cleanup_match(ematch, net);
net               637 net/ipv4/netfilter/ip_tables.c cleanup_entry(struct ipt_entry *e, struct net *net)
net               645 net/ipv4/netfilter/ip_tables.c 		cleanup_match(ematch, net);
net               648 net/ipv4/netfilter/ip_tables.c 	par.net      = net;
net               661 net/ipv4/netfilter/ip_tables.c translate_table(struct net *net, struct xt_table_info *newinfo, void *entry0,
net               717 net/ipv4/netfilter/ip_tables.c 		ret = find_check_entry(iter, net, repl->name, repl->size,
net               728 net/ipv4/netfilter/ip_tables.c 			cleanup_entry(iter, net);
net               947 net/ipv4/netfilter/ip_tables.c static int get_info(struct net *net, void __user *user,
net               965 net/ipv4/netfilter/ip_tables.c 	t = xt_request_find_table_lock(net, AF_INET, name);
net              1005 net/ipv4/netfilter/ip_tables.c get_entries(struct net *net, struct ipt_get_entries __user *uptr,
net              1020 net/ipv4/netfilter/ip_tables.c 	t = xt_find_table_lock(net, AF_INET, get.name);
net              1038 net/ipv4/netfilter/ip_tables.c __do_replace(struct net *net, const char *name, unsigned int valid_hooks,
net              1055 net/ipv4/netfilter/ip_tables.c 	t = xt_request_find_table_lock(net, AF_INET, name);
net              1085 net/ipv4/netfilter/ip_tables.c 		cleanup_entry(iter, net);
net              1106 net/ipv4/netfilter/ip_tables.c do_replace(struct net *net, const void __user *user, unsigned int len)
net              1136 net/ipv4/netfilter/ip_tables.c 	ret = translate_table(net, newinfo, loc_cpu_entry, &tmp);
net              1140 net/ipv4/netfilter/ip_tables.c 	ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo,
net              1148 net/ipv4/netfilter/ip_tables.c 		cleanup_entry(iter, net);
net              1155 net/ipv4/netfilter/ip_tables.c do_add_counters(struct net *net, const void __user *user,
net              1171 net/ipv4/netfilter/ip_tables.c 	t = xt_find_table_lock(net, AF_INET, tmp.name);
net              1391 net/ipv4/netfilter/ip_tables.c translate_compat_table(struct net *net,
net              1465 net/ipv4/netfilter/ip_tables.c 	ret = translate_table(net, newinfo, entry1, &repl);
net              1489 net/ipv4/netfilter/ip_tables.c compat_do_replace(struct net *net, void __user *user, unsigned int len)
net              1519 net/ipv4/netfilter/ip_tables.c 	ret = translate_compat_table(net, &newinfo, &loc_cpu_entry, &tmp);
net              1523 net/ipv4/netfilter/ip_tables.c 	ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo,
net              1531 net/ipv4/netfilter/ip_tables.c 		cleanup_entry(iter, net);
net              1598 net/ipv4/netfilter/ip_tables.c compat_get_entries(struct net *net, struct compat_ipt_get_entries __user *uptr,
net              1617 net/ipv4/netfilter/ip_tables.c 	t = xt_find_table_lock(net, AF_INET, get.name);
net              1737 net/ipv4/netfilter/ip_tables.c static void __ipt_unregister_table(struct net *net, struct xt_table *table)
net              1749 net/ipv4/netfilter/ip_tables.c 		cleanup_entry(iter, net);
net              1755 net/ipv4/netfilter/ip_tables.c int ipt_register_table(struct net *net, const struct xt_table *table,
net              1772 net/ipv4/netfilter/ip_tables.c 	ret = translate_table(net, newinfo, loc_cpu_entry, repl);
net              1776 net/ipv4/netfilter/ip_tables.c 	new_table = xt_register_table(net, table, &bootstrap, newinfo);
net              1787 net/ipv4/netfilter/ip_tables.c 	ret = nf_register_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1789 net/ipv4/netfilter/ip_tables.c 		__ipt_unregister_table(net, new_table);
net              1800 net/ipv4/netfilter/ip_tables.c void ipt_unregister_table(struct net *net, struct xt_table *table,
net              1804 net/ipv4/netfilter/ip_tables.c 		nf_unregister_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1805 net/ipv4/netfilter/ip_tables.c 	__ipt_unregister_table(net, table);
net              1902 net/ipv4/netfilter/ip_tables.c static int __net_init ip_tables_net_init(struct net *net)
net              1904 net/ipv4/netfilter/ip_tables.c 	return xt_proto_init(net, NFPROTO_IPV4);
net              1907 net/ipv4/netfilter/ip_tables.c static void __net_exit ip_tables_net_exit(struct net *net)
net              1909 net/ipv4/netfilter/ip_tables.c 	xt_proto_fini(net, NFPROTO_IPV4);
net                56 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct net *net;			/* netns for pernet list */
net                77 net/ipv4/netfilter/ipt_CLUSTERIP.c static inline struct clusterip_net *clusterip_pernet(struct net *net)
net                79 net/ipv4/netfilter/ipt_CLUSTERIP.c 	return net_generic(net, clusterip_net_id);
net                94 net/ipv4/netfilter/ipt_CLUSTERIP.c 	dev = dev_get_by_name(config->net, config->ifname);
net               115 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct clusterip_net *cn = clusterip_pernet(c->net);
net               137 net/ipv4/netfilter/ipt_CLUSTERIP.c __clusterip_config_find(struct net *net, __be32 clusterip)
net               140 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct clusterip_net *cn = clusterip_pernet(net);
net               151 net/ipv4/netfilter/ipt_CLUSTERIP.c clusterip_config_find_get(struct net *net, __be32 clusterip, int entry)
net               156 net/ipv4/netfilter/ipt_CLUSTERIP.c 	c = __clusterip_config_find(net, clusterip);
net               192 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct net *net = dev_net(dev);
net               193 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct clusterip_net *cn = clusterip_pernet(net);
net               228 net/ipv4/netfilter/ipt_CLUSTERIP.c clusterip_config_init(struct net *net, const struct ipt_clusterip_tgt_info *i,
net               231 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct clusterip_net *cn = clusterip_pernet(net);
net               245 net/ipv4/netfilter/ipt_CLUSTERIP.c 	dev = dev_get_by_name(net, iniface);
net               262 net/ipv4/netfilter/ipt_CLUSTERIP.c 	c->net = net;
net               266 net/ipv4/netfilter/ipt_CLUSTERIP.c 	if (__clusterip_config_find(net, ip)) {
net               495 net/ipv4/netfilter/ipt_CLUSTERIP.c 	config = clusterip_config_find_get(par->net, e->ip.dst.s_addr, 1);
net               502 net/ipv4/netfilter/ipt_CLUSTERIP.c 			config = clusterip_config_init(par->net, cipinfo,
net               511 net/ipv4/netfilter/ipt_CLUSTERIP.c 	ret = nf_ct_netns_get(par->net, par->family);
net               520 net/ipv4/netfilter/ipt_CLUSTERIP.c 	if (!par->net->xt.clusterip_deprecated_warning) {
net               523 net/ipv4/netfilter/ipt_CLUSTERIP.c 		par->net->xt.clusterip_deprecated_warning = true;
net               541 net/ipv4/netfilter/ipt_CLUSTERIP.c 	nf_ct_netns_put(par->net, par->family);
net               612 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct net *net = state->net;
net               629 net/ipv4/netfilter/ipt_CLUSTERIP.c 	c = clusterip_config_find_get(net, payload->src_ip, 0);
net               817 net/ipv4/netfilter/ipt_CLUSTERIP.c static int clusterip_net_init(struct net *net)
net               819 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct clusterip_net *cn = clusterip_pernet(net);
net               826 net/ipv4/netfilter/ipt_CLUSTERIP.c 	ret = nf_register_net_hook(net, &cip_arp_ops);
net               831 net/ipv4/netfilter/ipt_CLUSTERIP.c 	cn->procdir = proc_mkdir("ipt_CLUSTERIP", net->proc_net);
net               833 net/ipv4/netfilter/ipt_CLUSTERIP.c 		nf_unregister_net_hook(net, &cip_arp_ops);
net               843 net/ipv4/netfilter/ipt_CLUSTERIP.c static void clusterip_net_exit(struct net *net)
net               846 net/ipv4/netfilter/ipt_CLUSTERIP.c 	struct clusterip_net *cn = clusterip_pernet(net);
net               853 net/ipv4/netfilter/ipt_CLUSTERIP.c 	nf_unregister_net_hook(net, &cip_arp_ops);
net                16 net/ipv4/netfilter/ipt_SYNPROXY.c 	struct net *net = xt_net(par);
net                17 net/ipv4/netfilter/ipt_SYNPROXY.c 	struct synproxy_net *snet = synproxy_pernet(net);
net                48 net/ipv4/netfilter/ipt_SYNPROXY.c 		synproxy_send_client_synack(net, skb, th, &opts);
net                53 net/ipv4/netfilter/ipt_SYNPROXY.c 		if (synproxy_recv_client_ack(net, skb, th, &opts, ntohl(th->seq))) {
net                66 net/ipv4/netfilter/ipt_SYNPROXY.c 	struct synproxy_net *snet = synproxy_pernet(par->net);
net                74 net/ipv4/netfilter/ipt_SYNPROXY.c 	err = nf_ct_netns_get(par->net, par->family);
net                78 net/ipv4/netfilter/ipt_SYNPROXY.c 	err = nf_synproxy_ipv4_init(snet, par->net);
net                80 net/ipv4/netfilter/ipt_SYNPROXY.c 		nf_ct_netns_put(par->net, par->family);
net                89 net/ipv4/netfilter/ipt_SYNPROXY.c 	struct synproxy_net *snet = synproxy_pernet(par->net);
net                91 net/ipv4/netfilter/ipt_SYNPROXY.c 	nf_synproxy_ipv4_fini(snet, par->net);
net                92 net/ipv4/netfilter/ipt_SYNPROXY.c 	nf_ct_netns_put(par->net, par->family);
net                32 net/ipv4/netfilter/ipt_rpfilter.c static bool rpfilter_lookup_reverse(struct net *net, struct flowi4 *fl4,
net                38 net/ipv4/netfilter/ipt_rpfilter.c 	if (fib_lookup(net, fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE))
net                22 net/ipv4/netfilter/iptable_filter.c static int __net_init iptable_filter_table_init(struct net *net);
net                37 net/ipv4/netfilter/iptable_filter.c 	return ipt_do_table(skb, state, state->net->ipv4.iptable_filter);
net                46 net/ipv4/netfilter/iptable_filter.c static int __net_init iptable_filter_table_init(struct net *net)
net                51 net/ipv4/netfilter/iptable_filter.c 	if (net->ipv4.iptable_filter)
net                61 net/ipv4/netfilter/iptable_filter.c 	err = ipt_register_table(net, &packet_filter, repl, filter_ops,
net                62 net/ipv4/netfilter/iptable_filter.c 				 &net->ipv4.iptable_filter);
net                67 net/ipv4/netfilter/iptable_filter.c static int __net_init iptable_filter_net_init(struct net *net)
net                69 net/ipv4/netfilter/iptable_filter.c 	if (net == &init_net || !forward)
net                70 net/ipv4/netfilter/iptable_filter.c 		return iptable_filter_table_init(net);
net                75 net/ipv4/netfilter/iptable_filter.c static void __net_exit iptable_filter_net_exit(struct net *net)
net                77 net/ipv4/netfilter/iptable_filter.c 	if (!net->ipv4.iptable_filter)
net                79 net/ipv4/netfilter/iptable_filter.c 	ipt_unregister_table(net, net->ipv4.iptable_filter, filter_ops);
net                80 net/ipv4/netfilter/iptable_filter.c 	net->ipv4.iptable_filter = NULL;
net                28 net/ipv4/netfilter/iptable_mangle.c static int __net_init iptable_mangle_table_init(struct net *net);
net                56 net/ipv4/netfilter/iptable_mangle.c 	ret = ipt_do_table(skb, state, state->net->ipv4.iptable_mangle);
net                65 net/ipv4/netfilter/iptable_mangle.c 			err = ip_route_me_harder(state->net, skb, RTN_UNSPEC);
net                82 net/ipv4/netfilter/iptable_mangle.c 	return ipt_do_table(skb, state, state->net->ipv4.iptable_mangle);
net                86 net/ipv4/netfilter/iptable_mangle.c static int __net_init iptable_mangle_table_init(struct net *net)
net                91 net/ipv4/netfilter/iptable_mangle.c 	if (net->ipv4.iptable_mangle)
net                97 net/ipv4/netfilter/iptable_mangle.c 	ret = ipt_register_table(net, &packet_mangler, repl, mangle_ops,
net                98 net/ipv4/netfilter/iptable_mangle.c 				 &net->ipv4.iptable_mangle);
net               103 net/ipv4/netfilter/iptable_mangle.c static void __net_exit iptable_mangle_net_exit(struct net *net)
net               105 net/ipv4/netfilter/iptable_mangle.c 	if (!net->ipv4.iptable_mangle)
net               107 net/ipv4/netfilter/iptable_mangle.c 	ipt_unregister_table(net, net->ipv4.iptable_mangle, mangle_ops);
net               108 net/ipv4/netfilter/iptable_mangle.c 	net->ipv4.iptable_mangle = NULL;
net                16 net/ipv4/netfilter/iptable_nat.c static int __net_init iptable_nat_table_init(struct net *net);
net                33 net/ipv4/netfilter/iptable_nat.c 	return ipt_do_table(skb, state, state->net->ipv4.nat_table);
net                63 net/ipv4/netfilter/iptable_nat.c static int ipt_nat_register_lookups(struct net *net)
net                68 net/ipv4/netfilter/iptable_nat.c 		ret = nf_nat_ipv4_register_fn(net, &nf_nat_ipv4_ops[i]);
net                71 net/ipv4/netfilter/iptable_nat.c 				nf_nat_ipv4_unregister_fn(net, &nf_nat_ipv4_ops[--i]);
net                80 net/ipv4/netfilter/iptable_nat.c static void ipt_nat_unregister_lookups(struct net *net)
net                85 net/ipv4/netfilter/iptable_nat.c 		nf_nat_ipv4_unregister_fn(net, &nf_nat_ipv4_ops[i]);
net                88 net/ipv4/netfilter/iptable_nat.c static int __net_init iptable_nat_table_init(struct net *net)
net                93 net/ipv4/netfilter/iptable_nat.c 	if (net->ipv4.nat_table)
net                99 net/ipv4/netfilter/iptable_nat.c 	ret = ipt_register_table(net, &nf_nat_ipv4_table, repl,
net               100 net/ipv4/netfilter/iptable_nat.c 				 NULL, &net->ipv4.nat_table);
net               106 net/ipv4/netfilter/iptable_nat.c 	ret = ipt_nat_register_lookups(net);
net               108 net/ipv4/netfilter/iptable_nat.c 		ipt_unregister_table(net, net->ipv4.nat_table, NULL);
net               109 net/ipv4/netfilter/iptable_nat.c 		net->ipv4.nat_table = NULL;
net               116 net/ipv4/netfilter/iptable_nat.c static void __net_exit iptable_nat_net_exit(struct net *net)
net               118 net/ipv4/netfilter/iptable_nat.c 	if (!net->ipv4.nat_table)
net               120 net/ipv4/netfilter/iptable_nat.c 	ipt_nat_unregister_lookups(net);
net               121 net/ipv4/netfilter/iptable_nat.c 	ipt_unregister_table(net, net->ipv4.nat_table, NULL);
net               122 net/ipv4/netfilter/iptable_nat.c 	net->ipv4.nat_table = NULL;
net                15 net/ipv4/netfilter/iptable_raw.c static int __net_init iptable_raw_table_init(struct net *net);
net                44 net/ipv4/netfilter/iptable_raw.c 	return ipt_do_table(skb, state, state->net->ipv4.iptable_raw);
net                49 net/ipv4/netfilter/iptable_raw.c static int __net_init iptable_raw_table_init(struct net *net)
net                58 net/ipv4/netfilter/iptable_raw.c 	if (net->ipv4.iptable_raw)
net                64 net/ipv4/netfilter/iptable_raw.c 	ret = ipt_register_table(net, table, repl, rawtable_ops,
net                65 net/ipv4/netfilter/iptable_raw.c 				 &net->ipv4.iptable_raw);
net                70 net/ipv4/netfilter/iptable_raw.c static void __net_exit iptable_raw_net_exit(struct net *net)
net                72 net/ipv4/netfilter/iptable_raw.c 	if (!net->ipv4.iptable_raw)
net                74 net/ipv4/netfilter/iptable_raw.c 	ipt_unregister_table(net, net->ipv4.iptable_raw, rawtable_ops);
net                75 net/ipv4/netfilter/iptable_raw.c 	net->ipv4.iptable_raw = NULL;
net                28 net/ipv4/netfilter/iptable_security.c static int __net_init iptable_security_table_init(struct net *net);
net                43 net/ipv4/netfilter/iptable_security.c 	return ipt_do_table(skb, state, state->net->ipv4.iptable_security);
net                48 net/ipv4/netfilter/iptable_security.c static int __net_init iptable_security_table_init(struct net *net)
net                53 net/ipv4/netfilter/iptable_security.c 	if (net->ipv4.iptable_security)
net                59 net/ipv4/netfilter/iptable_security.c 	ret = ipt_register_table(net, &security_table, repl, sectbl_ops,
net                60 net/ipv4/netfilter/iptable_security.c 				 &net->ipv4.iptable_security);
net                65 net/ipv4/netfilter/iptable_security.c static void __net_exit iptable_security_net_exit(struct net *net)
net                67 net/ipv4/netfilter/iptable_security.c 	if (!net->ipv4.iptable_security)
net                70 net/ipv4/netfilter/iptable_security.c 	ipt_unregister_table(net, net->ipv4.iptable_security, sectbl_ops);
net                71 net/ipv4/netfilter/iptable_security.c 	net->ipv4.iptable_security = NULL;
net                25 net/ipv4/netfilter/nf_defrag_ipv4.c static int nf_ct_ipv4_gather_frags(struct net *net, struct sk_buff *skb,
net                31 net/ipv4/netfilter/nf_defrag_ipv4.c 	err = ip_defrag(net, skb, user);
net                86 net/ipv4/netfilter/nf_defrag_ipv4.c 		if (nf_ct_ipv4_gather_frags(state->net, skb, user))
net               107 net/ipv4/netfilter/nf_defrag_ipv4.c static void __net_exit defrag4_net_exit(struct net *net)
net               109 net/ipv4/netfilter/nf_defrag_ipv4.c 	if (net->nf.defrag_ipv4) {
net               110 net/ipv4/netfilter/nf_defrag_ipv4.c 		nf_unregister_net_hooks(net, ipv4_defrag_ops,
net               112 net/ipv4/netfilter/nf_defrag_ipv4.c 		net->nf.defrag_ipv4 = false;
net               130 net/ipv4/netfilter/nf_defrag_ipv4.c int nf_defrag_ipv4_enable(struct net *net)
net               136 net/ipv4/netfilter/nf_defrag_ipv4.c 	if (net->nf.defrag_ipv4)
net               140 net/ipv4/netfilter/nf_defrag_ipv4.c 	if (net->nf.defrag_ipv4)
net               143 net/ipv4/netfilter/nf_defrag_ipv4.c 	err = nf_register_net_hooks(net, ipv4_defrag_ops,
net               146 net/ipv4/netfilter/nf_defrag_ipv4.c 		net->nf.defrag_ipv4 = true;
net                23 net/ipv4/netfilter/nf_dup_ipv4.c static bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,
net                38 net/ipv4/netfilter/nf_dup_ipv4.c 	rt = ip_route_output_key(net, &fl4);
net                50 net/ipv4/netfilter/nf_dup_ipv4.c void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,
net                86 net/ipv4/netfilter/nf_dup_ipv4.c 	if (nf_dup_ipv4_route(net, skb, gw, oif)) {
net                88 net/ipv4/netfilter/nf_dup_ipv4.c 		ip_local_out(net, skb->sk, skb);
net                77 net/ipv4/netfilter/nf_log_arp.c static void nf_log_arp_packet(struct net *net, u_int8_t pf,
net                87 net/ipv4/netfilter/nf_log_arp.c 	if (!net_eq(net, &init_net) && !sysctl_nf_log_all_netns)
net               109 net/ipv4/netfilter/nf_log_arp.c static int __net_init nf_log_arp_net_init(struct net *net)
net               111 net/ipv4/netfilter/nf_log_arp.c 	return nf_log_set(net, NFPROTO_ARP, &nf_arp_logger);
net               114 net/ipv4/netfilter/nf_log_arp.c static void __net_exit nf_log_arp_net_exit(struct net *net)
net               116 net/ipv4/netfilter/nf_log_arp.c 	nf_log_unset(net, &nf_arp_logger);
net                35 net/ipv4/netfilter/nf_log_ipv4.c static void dump_ipv4_packet(struct net *net, struct nf_log_buf *m,
net               183 net/ipv4/netfilter/nf_log_ipv4.c 				dump_ipv4_packet(net, m, info, skb,
net               251 net/ipv4/netfilter/nf_log_ipv4.c 		nf_log_dump_sk_uid_gid(net, m, skb->sk);
net               309 net/ipv4/netfilter/nf_log_ipv4.c static void nf_log_ip_packet(struct net *net, u_int8_t pf,
net               319 net/ipv4/netfilter/nf_log_ipv4.c 	if (!net_eq(net, &init_net) && !sysctl_nf_log_all_netns)
net               333 net/ipv4/netfilter/nf_log_ipv4.c 	dump_ipv4_packet(net, m, loginfo, skb, 0);
net               345 net/ipv4/netfilter/nf_log_ipv4.c static int __net_init nf_log_ipv4_net_init(struct net *net)
net               347 net/ipv4/netfilter/nf_log_ipv4.c 	return nf_log_set(net, NFPROTO_IPV4, &nf_ip_logger);
net               350 net/ipv4/netfilter/nf_log_ipv4.c static void __net_exit nf_log_ipv4_net_exit(struct net *net)
net               352 net/ipv4/netfilter/nf_log_ipv4.c 	nf_log_unset(net, &nf_ip_logger);
net                46 net/ipv4/netfilter/nf_nat_pptp.c 	struct net *net = nf_ct_net(ct);
net                85 net/ipv4/netfilter/nf_nat_pptp.c 	other_exp = nf_ct_expect_find_get(net, nf_ct_zone(ct), &t);
net               100 net/ipv4/netfilter/nf_reject_ipv4.c void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook)
net               123 net/ipv4/netfilter/nf_reject_ipv4.c 	nskb->mark = IP4_REPLY_MARK(net, oldskb->mark);
net               130 net/ipv4/netfilter/nf_reject_ipv4.c 	if (ip_route_me_harder(net, nskb, RTN_UNSPEC))
net               161 net/ipv4/netfilter/nf_reject_ipv4.c 		ip_local_out(net, nskb->sk, nskb);
net                74 net/ipv4/netfilter/nf_socket_ipv4.c nf_socket_get_sock_v4(struct net *net, struct sk_buff *skb, const int doff,
net                82 net/ipv4/netfilter/nf_socket_ipv4.c 		return inet_lookup(net, &tcp_hashinfo, skb, doff,
net                86 net/ipv4/netfilter/nf_socket_ipv4.c 		return udp4_lib_lookup(net, saddr, sport, daddr, dport,
net                92 net/ipv4/netfilter/nf_socket_ipv4.c struct sock *nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb,
net               154 net/ipv4/netfilter/nf_socket_ipv4.c 	return nf_socket_get_sock_v4(net, data_skb, doff, protocol, saddr,
net                19 net/ipv4/netfilter/nf_tproxy_ipv4.c nf_tproxy_handle_time_wait4(struct net *net, struct sk_buff *skb,
net                36 net/ipv4/netfilter/nf_tproxy_ipv4.c 		sk2 = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
net                75 net/ipv4/netfilter/nf_tproxy_ipv4.c nf_tproxy_get_sock_v4(struct net *net, struct sk_buff *skb,
net                95 net/ipv4/netfilter/nf_tproxy_ipv4.c 			sk = inet_lookup_listener(net, &tcp_hashinfo, skb,
net               111 net/ipv4/netfilter/nf_tproxy_ipv4.c 			sk = inet_lookup_established(net, &tcp_hashinfo,
net               121 net/ipv4/netfilter/nf_tproxy_ipv4.c 		sk = udp4_lib_lookup(net, saddr, sport, daddr, dport,
net                19 net/ipv4/nexthop.c static void remove_nexthop(struct net *net, struct nexthop *nh,
net                48 net/ipv4/nexthop.c static void nexthop_devhash_add(struct net *net, struct nh_info *nhi)
net                57 net/ipv4/nexthop.c 	head = &net->nexthop.devhash[hash];
net                87 net/ipv4/nexthop.c 		fib_nh_release(nh->net, &nhi->fib_nh);
net               136 net/ipv4/nexthop.c static void nh_base_seq_inc(struct net *net)
net               138 net/ipv4/nexthop.c 	while (++net->nexthop.seq == 0)
net               143 net/ipv4/nexthop.c struct nexthop *nexthop_find_by_id(struct net *net, u32 id)
net               147 net/ipv4/nexthop.c 	pp = &net->nexthop.rb_root.rb_node;
net               169 net/ipv4/nexthop.c static u32 nh_find_unused_id(struct net *net)
net               171 net/ipv4/nexthop.c 	u32 id_start = net->nexthop.last_id_allocated;
net               174 net/ipv4/nexthop.c 		net->nexthop.last_id_allocated++;
net               175 net/ipv4/nexthop.c 		if (net->nexthop.last_id_allocated == id_start)
net               178 net/ipv4/nexthop.c 		if (!nexthop_find_by_id(net, net->nexthop.last_id_allocated))
net               179 net/ipv4/nexthop.c 			return net->nexthop.last_id_allocated;
net               399 net/ipv4/nexthop.c static int nh_check_attr_group(struct net *net, struct nlattr *tb[],
net               437 net/ipv4/nexthop.c 		nh = nexthop_find_by_id(net, nhg[i].id);
net               705 net/ipv4/nexthop.c static void remove_nh_grp_entry(struct net *net, struct nh_grp_entry *nhge,
net               721 net/ipv4/nexthop.c 		remove_nexthop(net, nhp, nlinfo);
net               757 net/ipv4/nexthop.c static void remove_nexthop_from_groups(struct net *net, struct nexthop *nh,
net               763 net/ipv4/nexthop.c 		remove_nh_grp_entry(net, nhge, nlinfo);
net               785 net/ipv4/nexthop.c static void __remove_nexthop_fib(struct net *net, struct nexthop *nh)
net               796 net/ipv4/nexthop.c 		fib_flush(net);
net               802 net/ipv4/nexthop.c 		ipv6_stub->ip6_del_rt(net, f6i);
net               806 net/ipv4/nexthop.c static void __remove_nexthop(struct net *net, struct nexthop *nh,
net               809 net/ipv4/nexthop.c 	__remove_nexthop_fib(net, nh);
net               820 net/ipv4/nexthop.c 		remove_nexthop_from_groups(net, nh, nlinfo);
net               824 net/ipv4/nexthop.c static void remove_nexthop(struct net *net, struct nexthop *nh,
net               828 net/ipv4/nexthop.c 	rb_erase(&nh->rb_node, &net->nexthop.rb_root);
net               833 net/ipv4/nexthop.c 	__remove_nexthop(net, nh, nlinfo);
net               834 net/ipv4/nexthop.c 	nh_base_seq_inc(net);
net               842 net/ipv4/nexthop.c static void nh_rt_cache_flush(struct net *net, struct nexthop *nh)
net               847 net/ipv4/nexthop.c 		rt_cache_flush(net);
net               850 net/ipv4/nexthop.c 		ipv6_stub->fib6_update_sernum(net, f6i);
net               853 net/ipv4/nexthop.c static int replace_nexthop_grp(struct net *net, struct nexthop *old,
net               882 net/ipv4/nexthop.c static int replace_nexthop_single(struct net *net, struct nexthop *old,
net               908 net/ipv4/nexthop.c static void __nexthop_replace_notify(struct net *net, struct nexthop *nh,
net               923 net/ipv4/nexthop.c 		fib_info_notify_update(net, info);
net               930 net/ipv4/nexthop.c 		ipv6_stub->fib6_rt_update(net, f6i, info);
net               937 net/ipv4/nexthop.c static void nexthop_replace_notify(struct net *net, struct nexthop *nh,
net               942 net/ipv4/nexthop.c 	__nexthop_replace_notify(net, nh, info);
net               945 net/ipv4/nexthop.c 		__nexthop_replace_notify(net, nhge->nh_parent, info);
net               948 net/ipv4/nexthop.c static int replace_nexthop(struct net *net, struct nexthop *old,
net               992 net/ipv4/nexthop.c 		err = replace_nexthop_grp(net, old, new, extack);
net               994 net/ipv4/nexthop.c 		err = replace_nexthop_single(net, old, new, extack);
net               997 net/ipv4/nexthop.c 		nh_rt_cache_flush(net, old);
net               999 net/ipv4/nexthop.c 		__remove_nexthop(net, new, NULL);
net              1007 net/ipv4/nexthop.c static int insert_nexthop(struct net *net, struct nexthop *new_nh,
net              1011 net/ipv4/nexthop.c 	struct rb_root *root = &net->nexthop.rb_root;
net              1034 net/ipv4/nexthop.c 			rc = replace_nexthop(net, nh, new_nh, extack);
net              1057 net/ipv4/nexthop.c 		nh_base_seq_inc(net);
net              1060 net/ipv4/nexthop.c 			nexthop_replace_notify(net, new_nh, &cfg->nlinfo);
net              1071 net/ipv4/nexthop.c 	struct net *net = dev_net(dev);
net              1072 net/ipv4/nexthop.c 	struct hlist_head *head = &net->nexthop.devhash[hash];
net              1080 net/ipv4/nexthop.c 		remove_nexthop(net, nhi->nh_parent, NULL);
net              1085 net/ipv4/nexthop.c static void flush_all_nexthops(struct net *net)
net              1087 net/ipv4/nexthop.c 	struct rb_root *root = &net->nexthop.rb_root;
net              1093 net/ipv4/nexthop.c 		remove_nexthop(net, nh, NULL);
net              1098 net/ipv4/nexthop.c static struct nexthop *nexthop_create_group(struct net *net,
net              1133 net/ipv4/nexthop.c 		nhe = nexthop_find_by_id(net, entry[i].id);
net              1167 net/ipv4/nexthop.c static int nh_create_ipv4(struct net *net, struct nexthop *nh,
net              1183 net/ipv4/nexthop.c 	err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack);
net              1185 net/ipv4/nexthop.c 		fib_nh_release(net, fib_nh);
net              1190 net/ipv4/nexthop.c 	err = fib_check_nh(net, fib_nh, tb_id, 0, extack);
net              1193 net/ipv4/nexthop.c 		fib_info_update_nhc_saddr(net, &fib_nh->nh_common,
net              1196 net/ipv4/nexthop.c 		fib_nh_release(net, fib_nh);
net              1202 net/ipv4/nexthop.c static int nh_create_ipv6(struct net *net,  struct nexthop *nh,
net              1221 net/ipv4/nexthop.c 	err = ipv6_stub->fib6_nh_init(net, fib6_nh, &fib6_cfg, GFP_KERNEL,
net              1231 net/ipv4/nexthop.c static struct nexthop *nexthop_create(struct net *net, struct nh_config *cfg,
net              1249 net/ipv4/nexthop.c 	nh->net = net;
net              1257 net/ipv4/nexthop.c 		cfg->nh_ifindex = net->loopback_dev->ifindex;
net              1262 net/ipv4/nexthop.c 		err = nh_create_ipv4(net, nh, nhi, cfg, extack);
net              1265 net/ipv4/nexthop.c 		err = nh_create_ipv6(net, nh, nhi, cfg, extack);
net              1276 net/ipv4/nexthop.c 	nexthop_devhash_add(net, nhi);
net              1284 net/ipv4/nexthop.c static struct nexthop *nexthop_add(struct net *net, struct nh_config *cfg,
net              1296 net/ipv4/nexthop.c 		cfg->nh_id = nh_find_unused_id(net);
net              1304 net/ipv4/nexthop.c 		nh = nexthop_create_group(net, cfg);
net              1306 net/ipv4/nexthop.c 		nh = nexthop_create(net, cfg, extack);
net              1314 net/ipv4/nexthop.c 	nh->net = net;
net              1316 net/ipv4/nexthop.c 	err = insert_nexthop(net, nh, cfg, extack);
net              1318 net/ipv4/nexthop.c 		__remove_nexthop(net, nh, NULL);
net              1326 net/ipv4/nexthop.c static int rtm_to_nh_config(struct net *net, struct sk_buff *skb,
net              1371 net/ipv4/nexthop.c 	cfg->nlinfo.nl_net = net;
net              1395 net/ipv4/nexthop.c 		err = nh_check_attr_group(net, tb, extack);
net              1420 net/ipv4/nexthop.c 		cfg->dev = __dev_get_by_index(net, cfg->nh_ifindex);
net              1496 net/ipv4/nexthop.c 	struct net *net = sock_net(skb->sk);
net              1501 net/ipv4/nexthop.c 	err = rtm_to_nh_config(net, skb, nlh, &cfg, extack);
net              1503 net/ipv4/nexthop.c 		nh = nexthop_add(net, &cfg, extack);
net              1560 net/ipv4/nexthop.c 	struct net *net = sock_net(skb->sk);
net              1563 net/ipv4/nexthop.c 		.nl_net = net,
net              1574 net/ipv4/nexthop.c 	nh = nexthop_find_by_id(net, id);
net              1578 net/ipv4/nexthop.c 	remove_nexthop(net, nh, &nlinfo);
net              1587 net/ipv4/nexthop.c 	struct net *net = sock_net(in_skb->sk);
net              1603 net/ipv4/nexthop.c 	nh = nexthop_find_by_id(net, id);
net              1614 net/ipv4/nexthop.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              1718 net/ipv4/nexthop.c 	struct net *net = sock_net(skb->sk);
net              1719 net/ipv4/nexthop.c 	struct rb_root *root = &net->nexthop.rb_root;
net              1759 net/ipv4/nexthop.c 	cb->seq = net->nexthop.seq;
net              1768 net/ipv4/nexthop.c 	struct net *net = dev_net(dev);
net              1769 net/ipv4/nexthop.c 	struct hlist_head *head = &net->nexthop.devhash[hash];
net              1811 net/ipv4/nexthop.c static void __net_exit nexthop_net_exit(struct net *net)
net              1814 net/ipv4/nexthop.c 	flush_all_nexthops(net);
net              1816 net/ipv4/nexthop.c 	kfree(net->nexthop.devhash);
net              1819 net/ipv4/nexthop.c static int __net_init nexthop_net_init(struct net *net)
net              1823 net/ipv4/nexthop.c 	net->nexthop.rb_root = RB_ROOT;
net              1824 net/ipv4/nexthop.c 	net->nexthop.devhash = kzalloc(sz, GFP_KERNEL);
net              1825 net/ipv4/nexthop.c 	if (!net->nexthop.devhash)
net                62 net/ipv4/ping.c static inline u32 ping_hashfn(const struct net *net, u32 num, u32 mask)
net                64 net/ipv4/ping.c 	u32 res = (num + net_hash_mix(net)) & mask;
net                72 net/ipv4/ping.c 					     struct net *net, unsigned int num)
net                74 net/ipv4/ping.c 	return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)];
net               169 net/ipv4/ping.c static struct sock *ping_lookup(struct net *net, struct sk_buff *skb, u16 ident)
net               171 net/ipv4/ping.c 	struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident);
net               237 net/ipv4/ping.c static void inet_get_ping_group_range_net(struct net *net, kgid_t *low,
net               240 net/ipv4/ping.c 	kgid_t *data = net->ipv4.ping_group_range.range;
net               244 net/ipv4/ping.c 		seq = read_seqbegin(&net->ipv4.ping_group_range.lock);
net               248 net/ipv4/ping.c 	} while (read_seqretry(&net->ipv4.ping_group_range.lock, seq));
net               254 net/ipv4/ping.c 	struct net *net = sock_net(sk);
net               264 net/ipv4/ping.c 	inet_get_ping_group_range_net(net, &low, &high);
net               297 net/ipv4/ping.c 	struct net *net = sock_net(sk);
net               313 net/ipv4/ping.c 		chk_addr_ret = inet_addr_type(net, addr->sin_addr.s_addr);
net               318 net/ipv4/ping.c 		if ((!inet_can_nonlocal_bind(net, isk) &&
net               348 net/ipv4/ping.c 			dev = dev_get_by_index_rcu(net, addr->sin6_scope_id);
net               354 net/ipv4/ping.c 		has_addr = pingv6_ops.ipv6_chk_addr(net, &addr->sin6_addr, dev,
net               358 net/ipv4/ping.c 		if (!(ipv6_can_nonlocal_bind(net, isk) || has_addr ||
net               483 net/ipv4/ping.c 	struct net *net = dev_net(skb->dev);
net               511 net/ipv4/ping.c 	sk = ping_lookup(net, skb, ntohs(icmph->un.echo.id));
net               696 net/ipv4/ping.c 	struct net *net = sock_net(sk);
net               790 net/ipv4/ping.c 	rt = ip_route_output_flow(net, &fl4, sk);
net               795 net/ipv4/ping.c 			IP_INC_STATS(net, IPSTATS_MIB_OUTNOROUTES);
net               961 net/ipv4/ping.c 	struct net *net = dev_net(skb->dev);
net               972 net/ipv4/ping.c 	sk = ping_lookup(net, skb, ntohs(icmph->un.echo.id));
net              1015 net/ipv4/ping.c 	struct net *net = seq_file_net(seq);
net              1028 net/ipv4/ping.c 			if (net_eq(sock_net(sk), net) &&
net              1041 net/ipv4/ping.c 	struct net *net = seq_file_net(seq);
net              1045 net/ipv4/ping.c 	} while (sk && (!net_eq(sock_net(sk), net)));
net              1145 net/ipv4/ping.c static int __net_init ping_v4_proc_init_net(struct net *net)
net              1147 net/ipv4/ping.c 	if (!proc_create_net("icmp", 0444, net->proc_net, &ping_v4_seq_ops,
net              1153 net/ipv4/ping.c static void __net_exit ping_v4_proc_exit_net(struct net *net)
net              1155 net/ipv4/ping.c 	remove_proc_entry("icmp", net->proc_net);
net                52 net/ipv4/proc.c 	struct net *net = seq->private;
net                60 net/ipv4/proc.c 		   sock_prot_inuse_get(net, &tcp_prot), orphans,
net                61 net/ipv4/proc.c 		   atomic_read(&net->ipv4.tcp_death_row.tw_count), sockets,
net                64 net/ipv4/proc.c 		   sock_prot_inuse_get(net, &udp_prot),
net                67 net/ipv4/proc.c 		   sock_prot_inuse_get(net, &udplite_prot));
net                69 net/ipv4/proc.c 		   sock_prot_inuse_get(net, &raw_prot));
net                71 net/ipv4/proc.c 		   atomic_read(&net->ipv4.fqdir->rhashtable.nelems),
net                72 net/ipv4/proc.c 		   frag_mem_limit(net->ipv4.fqdir));
net               319 net/ipv4/proc.c 	struct net *net = seq->private;
net               323 net/ipv4/proc.c 		val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]);
net               341 net/ipv4/proc.c 	struct net *net = seq->private;
net               342 net/ipv4/proc.c 	atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs;
net               351 net/ipv4/proc.c 		snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INMSGS),
net               352 net/ipv4/proc.c 		snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INERRORS),
net               353 net/ipv4/proc.c 		snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_CSUMERRORS));
net               358 net/ipv4/proc.c 		snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTMSGS),
net               359 net/ipv4/proc.c 		snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTERRORS));
net               370 net/ipv4/proc.c 	struct net *net = seq->private;
net               381 net/ipv4/proc.c 		   IPV4_DEVCONF_ALL(net, FORWARDING) ? 1 : 2,
net               382 net/ipv4/proc.c 		   net->ipv4.sysctl_ip_default_ttl);
net               386 net/ipv4/proc.c 				   net->mib.ip_statistics,
net               397 net/ipv4/proc.c 	struct net *net = seq->private;
net               408 net/ipv4/proc.c 				 net->mib.tcp_statistics);
net               420 net/ipv4/proc.c 				 net->mib.udp_statistics);
net               433 net/ipv4/proc.c 				 net->mib.udplite_statistics);
net               462 net/ipv4/proc.c 	struct net *net = seq->private;
net               471 net/ipv4/proc.c 			   snmp_fold_field(net->mib.net_statistics,
net               481 net/ipv4/proc.c 			   snmp_fold_field64(net->mib.ip_statistics,
net               489 net/ipv4/proc.c static __net_init int ip_proc_init_net(struct net *net)
net               491 net/ipv4/proc.c 	if (!proc_create_net_single("sockstat", 0444, net->proc_net,
net               494 net/ipv4/proc.c 	if (!proc_create_net_single("netstat", 0444, net->proc_net,
net               497 net/ipv4/proc.c 	if (!proc_create_net_single("snmp", 0444, net->proc_net, snmp_seq_show,
net               504 net/ipv4/proc.c 	remove_proc_entry("netstat", net->proc_net);
net               506 net/ipv4/proc.c 	remove_proc_entry("sockstat", net->proc_net);
net               511 net/ipv4/proc.c static __net_exit void ip_proc_exit_net(struct net *net)
net               513 net/ipv4/proc.c 	remove_proc_entry("snmp", net->proc_net);
net               514 net/ipv4/proc.c 	remove_proc_entry("netstat", net->proc_net);
net               515 net/ipv4/proc.c 	remove_proc_entry("sockstat", net->proc_net);
net               120 net/ipv4/raw.c struct sock *__raw_v4_lookup(struct net *net, struct sock *sk,
net               127 net/ipv4/raw.c 		if (net_eq(sock_net(sk), net) && inet->inet_num == num	&&
net               130 net/ipv4/raw.c 		    raw_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif))
net               176 net/ipv4/raw.c 	struct net *net;
net               183 net/ipv4/raw.c 	net = dev_net(skb->dev);
net               184 net/ipv4/raw.c 	sk = __raw_v4_lookup(net, __sk_head(head), iph->protocol,
net               198 net/ipv4/raw.c 		sk = __raw_v4_lookup(net, sk_next(sk), iph->protocol,
net               291 net/ipv4/raw.c 	struct net *net;
net               302 net/ipv4/raw.c 		net = dev_net(skb->dev);
net               304 net/ipv4/raw.c 		while ((raw_sk = __raw_v4_lookup(net, raw_sk, protocol,
net               349 net/ipv4/raw.c 	struct net *net = sock_net(sk);
net               418 net/ipv4/raw.c 			ip_select_ident(net, skb, NULL);
net               424 net/ipv4/raw.c 			icmp_out_count(net, ((struct icmphdr *)
net               429 net/ipv4/raw.c 		      net, sk, skb, NULL, rt->dst.dev,
net               441 net/ipv4/raw.c 	IP_INC_STATS(net, IPSTATS_MIB_OUTDISCARDS);
net               501 net/ipv4/raw.c 	struct net *net = sock_net(sk);
net               643 net/ipv4/raw.c 	rt = ip_route_output_flow(net, &fl4, sk);
net              1103 net/ipv4/raw.c static __net_init int raw_init_net(struct net *net)
net              1105 net/ipv4/raw.c 	if (!proc_create_net_data("raw", 0444, net->proc_net, &raw_seq_ops,
net              1112 net/ipv4/raw.c static __net_exit void raw_exit_net(struct net *net)
net              1114 net/ipv4/raw.c 	remove_proc_entry("raw", net->proc_net);
net              1133 net/ipv4/raw.c static void raw_sysctl_init_net(struct net *net)
net              1136 net/ipv4/raw.c 	net->ipv4.sysctl_raw_l3mdev_accept = 1;
net              1140 net/ipv4/raw.c static int __net_init raw_sysctl_init(struct net *net)
net              1142 net/ipv4/raw.c 	raw_sysctl_init_net(net);
net                37 net/ipv4/raw_diag.c static struct sock *raw_lookup(struct net *net, struct sock *from,
net                44 net/ipv4/raw_diag.c 		sk = __raw_v4_lookup(net, from, r->sdiag_raw_protocol,
net                50 net/ipv4/raw_diag.c 		sk = __raw_v6_lookup(net, from, r->sdiag_raw_protocol,
net                58 net/ipv4/raw_diag.c static struct sock *raw_sock_get(struct net *net, const struct inet_diag_req_v2 *r)
net                70 net/ipv4/raw_diag.c 			sk = raw_lookup(net, s, r);
net                94 net/ipv4/raw_diag.c 	struct net *net = sock_net(in_skb->sk);
net                99 net/ipv4/raw_diag.c 	sk = raw_sock_get(net, r);
net               124 net/ipv4/raw_diag.c 	err = netlink_unicast(net->diag_nlsk, rep,
net               152 net/ipv4/raw_diag.c 	struct net *net = sock_net(skb->sk);
net               169 net/ipv4/raw_diag.c 			if (!net_eq(sock_net(sk), net))
net               206 net/ipv4/raw_diag.c 	struct net *net = sock_net(in_skb->sk);
net               210 net/ipv4/raw_diag.c 	sk = raw_sock_get(net, r);
net               363 net/ipv4/route.c static int __net_init ip_rt_do_proc_init(struct net *net)
net               367 net/ipv4/route.c 	pde = proc_create("rt_cache", 0444, net->proc_net,
net               373 net/ipv4/route.c 			  net->proc_net_stat, &rt_cpu_seq_fops);
net               378 net/ipv4/route.c 	pde = proc_create_single("rt_acct", 0, net->proc_net,
net               387 net/ipv4/route.c 	remove_proc_entry("rt_cache", net->proc_net_stat);
net               390 net/ipv4/route.c 	remove_proc_entry("rt_cache", net->proc_net);
net               395 net/ipv4/route.c static void __net_exit ip_rt_do_proc_exit(struct net *net)
net               397 net/ipv4/route.c 	remove_proc_entry("rt_cache", net->proc_net_stat);
net               398 net/ipv4/route.c 	remove_proc_entry("rt_cache", net->proc_net);
net               400 net/ipv4/route.c 	remove_proc_entry("rt_acct", net->proc_net);
net               426 net/ipv4/route.c void rt_cache_flush(struct net *net)
net               428 net/ipv4/route.c 	rt_genid_bump_ipv4(net);
net               506 net/ipv4/route.c void __ip_select_ident(struct net *net, struct iphdr *iph, int segs)
net               511 net/ipv4/route.c 	if (unlikely(siphash_key_is_zero(&net->ipv4.ip_id_key)))
net               512 net/ipv4/route.c 		get_random_bytes(&net->ipv4.ip_id_key,
net               513 net/ipv4/route.c 				 sizeof(net->ipv4.ip_id_key));
net               518 net/ipv4/route.c 			    &net->ipv4.ip_id_key);
net               524 net/ipv4/route.c static void __build_flow_key(const struct net *net, struct flowi4 *fl4,
net               542 net/ipv4/route.c 			   sock_net_uid(net, sk));
net               548 net/ipv4/route.c 	const struct net *net = dev_net(skb->dev);
net               555 net/ipv4/route.c 	__build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0);
net               744 net/ipv4/route.c 	struct net *net;
net               764 net/ipv4/route.c 	net = dev_net(dev);
net               776 net/ipv4/route.c 		if (inet_addr_type(net, new_gw) != RTN_UNICAST)
net               787 net/ipv4/route.c 			if (fib_lookup(net, fl4, &res, 0) == 0) {
net               823 net/ipv4/route.c 	struct net *net = dev_net(skb->dev);
net               831 net/ipv4/route.c 	__build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0);
net               874 net/ipv4/route.c 	struct net *net;
net               888 net/ipv4/route.c 	net = dev_net(rt->dst.dev);
net               889 net/ipv4/route.c 	peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, vif, 1);
net               943 net/ipv4/route.c 	struct net *net;
net               959 net/ipv4/route.c 	net = dev_net(rt->dst.dev);
net               963 net/ipv4/route.c 			__IP_INC_STATS(net, IPSTATS_MIB_INADDRERRORS);
net               967 net/ipv4/route.c 			__IP_INC_STATS(net, IPSTATS_MIB_INNOROUTES);
net               982 net/ipv4/route.c 		__IP_INC_STATS(net, IPSTATS_MIB_INNOROUTES);
net               989 net/ipv4/route.c 	peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr,
net              1055 net/ipv4/route.c void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu,
net              1061 net/ipv4/route.c 	u32 mark = IP4_REPLY_MARK(net, skb->mark);
net              1063 net/ipv4/route.c 	__build_flow_key(net, &fl4, NULL, iph, oif,
net              1065 net/ipv4/route.c 	rt = __ip_route_output_key(net, &fl4);
net              1098 net/ipv4/route.c 	struct net *net = sock_net(sk);
net              1112 net/ipv4/route.c 	__build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
net              1145 net/ipv4/route.c void ipv4_redirect(struct sk_buff *skb, struct net *net,
net              1152 net/ipv4/route.c 	__build_flow_key(net, &fl4, NULL, iph, oif,
net              1154 net/ipv4/route.c 	rt = __ip_route_output_key(net, &fl4);
net              1167 net/ipv4/route.c 	struct net *net = sock_net(sk);
net              1169 net/ipv4/route.c 	__build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
net              1170 net/ipv4/route.c 	rt = __ip_route_output_key(net, &fl4);
net              1234 net/ipv4/route.c static int ip_rt_bug(struct net *net, struct sock *sk, struct sk_buff *skb)
net              1916 net/ipv4/route.c int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
net              1923 net/ipv4/route.c 	switch (net->ipv4.sysctl_fib_multipath_hash_policy) {
net              2042 net/ipv4/route.c 	struct net    *net = dev_net(dev);
net              2088 net/ipv4/route.c 		if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net))
net              2091 net/ipv4/route.c 		if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net))
net              2106 net/ipv4/route.c 	fl4.flowi4_uid = sock_net_uid(net, NULL);
net              2108 net/ipv4/route.c 	if (fib4_rules_early_flow_dissect(net, skb, &fl4, &_flkeys)) {
net              2116 net/ipv4/route.c 	err = fib_lookup(net, &fl4, res, 0);
net              2127 net/ipv4/route.c 		if (IPV4_DEVCONF_ALL(net, BC_FORWARDING))
net              2178 net/ipv4/route.c 	rth = rt_dst_alloc(l3mdev_master_dev_rcu(dev) ? : net->loopback_dev,
net              2440 net/ipv4/route.c struct rtable *ip_route_output_key_hash(struct net *net, struct flowi4 *fl4,
net              2458 net/ipv4/route.c 	rth = ip_route_output_key_hash_rcu(net, fl4, &res, skb);
net              2465 net/ipv4/route.c struct rtable *ip_route_output_key_hash_rcu(struct net *net, struct flowi4 *fl4,
net              2497 net/ipv4/route.c 			dev_out = __ip_dev_find(net, fl4->saddr, false);
net              2522 net/ipv4/route.c 			if (!__ip_dev_find(net, fl4->saddr, false))
net              2529 net/ipv4/route.c 		dev_out = dev_get_by_index_rcu(net, fl4->flowi4_oif);
net              2561 net/ipv4/route.c 		dev_out = net->loopback_dev;
net              2568 net/ipv4/route.c 	err = fib_lookup(net, fl4, res, 0);
net              2574 net/ipv4/route.c 		    !netif_index_is_l3_master(net, fl4->flowi4_oif))) {
net              2613 net/ipv4/route.c 			net->loopback_dev;
net              2625 net/ipv4/route.c 	fib_select_path(net, res, fl4, skb);
net              2678 net/ipv4/route.c struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig)
net              2691 net/ipv4/route.c 		new->dev = net->loopback_dev;
net              2700 net/ipv4/route.c 		rt->rt_genid = rt_genid_ipv4(net);
net              2718 net/ipv4/route.c struct rtable *ip_route_output_flow(struct net *net, struct flowi4 *flp4,
net              2721 net/ipv4/route.c 	struct rtable *rt = __ip_route_output_key(net, flp4);
net              2727 net/ipv4/route.c 		rt = (struct rtable *)xfrm_lookup_route(net, &rt->dst,
net              2736 net/ipv4/route.c static int rt_fill_info(struct net *net, __be32 dst, __be32 src,
net              2840 net/ipv4/route.c 			    IPV4_DEVCONF_ALL(net, MC_FORWARDING)) {
net              2841 net/ipv4/route.c 				int err = ipmr_get_route(net, skb,
net              2870 net/ipv4/route.c static int fnhe_dump_bucket(struct net *net, struct sk_buff *skb,
net              2901 net/ipv4/route.c 			err = rt_fill_info(net, fnhe->fnhe_daddr, 0, rt,
net              2919 net/ipv4/route.c 	struct net *net = sock_net(cb->skb->sk);
net              2920 net/ipv4/route.c 	int nhsel, genid = fnhe_genid(net);
net              2934 net/ipv4/route.c 			err = fnhe_dump_bucket(net, skb, cb, table_id, bucket,
net              3078 net/ipv4/route.c 	struct net *net = sock_net(in_skb->sk);
net              3143 net/ipv4/route.c 		dev = dev_get_by_index_rcu(net, iif);
net              3160 net/ipv4/route.c 		skb->dev = net->loopback_dev;
net              3161 net/ipv4/route.c 		rt = ip_route_output_key_hash_rcu(net, &fl4, &res, skb);
net              3196 net/ipv4/route.c 		err = rt_fill_info(net, dst, src, rt, table_id, &fl4, skb,
net              3205 net/ipv4/route.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              3230 net/ipv4/route.c 	struct net *net = (struct net *)__ctl->extra1;
net              3233 net/ipv4/route.c 		rt_cache_flush(net);
net              3234 net/ipv4/route.c 		fnhe_genid_bump(net);
net              3365 net/ipv4/route.c static __net_init int sysctl_route_net_init(struct net *net)
net              3370 net/ipv4/route.c 	if (!net_eq(net, &init_net)) {
net              3376 net/ipv4/route.c 		if (net->user_ns != &init_user_ns) {
net              3381 net/ipv4/route.c 	tbl[0].extra1 = net;
net              3383 net/ipv4/route.c 	net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl);
net              3384 net/ipv4/route.c 	if (!net->ipv4.route_hdr)
net              3395 net/ipv4/route.c static __net_exit void sysctl_route_net_exit(struct net *net)
net              3399 net/ipv4/route.c 	tbl = net->ipv4.route_hdr->ctl_table_arg;
net              3400 net/ipv4/route.c 	unregister_net_sysctl_table(net->ipv4.route_hdr);
net              3411 net/ipv4/route.c static __net_init int rt_genid_init(struct net *net)
net              3413 net/ipv4/route.c 	atomic_set(&net->ipv4.rt_genid, 0);
net              3414 net/ipv4/route.c 	atomic_set(&net->fnhe_genid, 0);
net              3415 net/ipv4/route.c 	atomic_set(&net->ipv4.dev_addr_genid, get_random_int());
net              3423 net/ipv4/route.c static int __net_init ipv4_inetpeer_init(struct net *net)
net              3430 net/ipv4/route.c 	net->ipv4.peers = bp;
net              3434 net/ipv4/route.c static void __net_exit ipv4_inetpeer_exit(struct net *net)
net              3436 net/ipv4/route.c 	struct inet_peer_base *bp = net->ipv4.peers;
net              3438 net/ipv4/route.c 	net->ipv4.peers = NULL;
net               235 net/ipv4/syncookies.c bool cookie_timestamp_decode(const struct net *net,
net               246 net/ipv4/syncookies.c 	if (!net->ipv4.sysctl_tcp_timestamps)
net               251 net/ipv4/syncookies.c 	if (tcp_opt->sack_ok && !net->ipv4.sysctl_tcp_sack)
net               260 net/ipv4/syncookies.c 	return net->ipv4.sysctl_tcp_window_scaling != 0;
net               265 net/ipv4/syncookies.c 		   const struct net *net, const struct dst_entry *dst)
net               272 net/ipv4/syncookies.c 	if (net->ipv4.sysctl_tcp_ecn)
net                58 net/ipv4/sysctl_net_ipv4.c static void set_local_port_range(struct net *net, int range[2])
net                62 net/ipv4/sysctl_net_ipv4.c 	write_seqlock_bh(&net->ipv4.ip_local_ports.lock);
net                63 net/ipv4/sysctl_net_ipv4.c 	if (same_parity && !net->ipv4.ip_local_ports.warned) {
net                64 net/ipv4/sysctl_net_ipv4.c 		net->ipv4.ip_local_ports.warned = true;
net                67 net/ipv4/sysctl_net_ipv4.c 	net->ipv4.ip_local_ports.range[0] = range[0];
net                68 net/ipv4/sysctl_net_ipv4.c 	net->ipv4.ip_local_ports.range[1] = range[1];
net                69 net/ipv4/sysctl_net_ipv4.c 	write_sequnlock_bh(&net->ipv4.ip_local_ports.lock);
net                77 net/ipv4/sysctl_net_ipv4.c 	struct net *net =
net                78 net/ipv4/sysctl_net_ipv4.c 		container_of(table->data, struct net, ipv4.ip_local_ports.range);
net                89 net/ipv4/sysctl_net_ipv4.c 	inet_get_local_port_range(net, &range[0], &range[1]);
net                99 net/ipv4/sysctl_net_ipv4.c 		    (range[0] < net->ipv4.sysctl_ip_prot_sock))
net               102 net/ipv4/sysctl_net_ipv4.c 			set_local_port_range(net, range);
net               112 net/ipv4/sysctl_net_ipv4.c 	struct net *net = container_of(table->data, struct net,
net               125 net/ipv4/sysctl_net_ipv4.c 	pports = net->ipv4.sysctl_ip_prot_sock;
net               130 net/ipv4/sysctl_net_ipv4.c 		inet_get_local_port_range(net, &range[0], &range[1]);
net               137 net/ipv4/sysctl_net_ipv4.c 			net->ipv4.sysctl_ip_prot_sock = pports;
net               146 net/ipv4/sysctl_net_ipv4.c 	struct net *net =
net               147 net/ipv4/sysctl_net_ipv4.c 		container_of(table->data, struct net, ipv4.ping_group_range.range);
net               150 net/ipv4/sysctl_net_ipv4.c 		seq = read_seqbegin(&net->ipv4.ping_group_range.lock);
net               154 net/ipv4/sysctl_net_ipv4.c 	} while (read_seqretry(&net->ipv4.ping_group_range.lock, seq));
net               161 net/ipv4/sysctl_net_ipv4.c 	struct net *net =
net               162 net/ipv4/sysctl_net_ipv4.c 		container_of(table->data, struct net, ipv4.ping_group_range.range);
net               163 net/ipv4/sysctl_net_ipv4.c 	write_seqlock(&net->ipv4.ping_group_range.lock);
net               166 net/ipv4/sysctl_net_ipv4.c 	write_sequnlock(&net->ipv4.ping_group_range.lock);
net               210 net/ipv4/sysctl_net_ipv4.c 	struct net *net;
net               213 net/ipv4/sysctl_net_ipv4.c 	net = container_of(table->data, struct net,
net               218 net/ipv4/sysctl_net_ipv4.c 					net);
net               226 net/ipv4/sysctl_net_ipv4.c 	struct net *net = container_of(ctl->data, struct net,
net               235 net/ipv4/sysctl_net_ipv4.c 	tcp_get_default_congestion_control(net, val);
net               239 net/ipv4/sysctl_net_ipv4.c 		ret = tcp_set_default_congestion_control(net, val);
net               302 net/ipv4/sysctl_net_ipv4.c 	struct net *net = container_of(table->data, struct net,
net               321 net/ipv4/sysctl_net_ipv4.c 	ctx = rcu_dereference(net->ipv4.tcp_fastopen_ctx);
net               365 net/ipv4/sysctl_net_ipv4.c 		tcp_fastopen_reset_cipher(net, NULL, key,
net               434 net/ipv4/sysctl_net_ipv4.c 	struct net *net = container_of(table->data, struct net,
net               440 net/ipv4/sysctl_net_ipv4.c 		atomic_set(&net->ipv4.tfo_active_disable_times, 0);
net               468 net/ipv4/sysctl_net_ipv4.c 	struct net *net = container_of(table->data, struct net,
net               474 net/ipv4/sysctl_net_ipv4.c 		call_netevent_notifiers(NETEVENT_IPV4_MPATH_HASH_UPDATE, net);
net              1329 net/ipv4/sysctl_net_ipv4.c static __net_init int ipv4_sysctl_init_net(struct net *net)
net              1334 net/ipv4/sysctl_net_ipv4.c 	if (!net_eq(net, &init_net)) {
net              1343 net/ipv4/sysctl_net_ipv4.c 			table[i].data += (void *)net - (void *)&init_net;
net              1346 net/ipv4/sysctl_net_ipv4.c 	net->ipv4.ipv4_hdr = register_net_sysctl(net, "net/ipv4", table);
net              1347 net/ipv4/sysctl_net_ipv4.c 	if (!net->ipv4.ipv4_hdr)
net              1350 net/ipv4/sysctl_net_ipv4.c 	net->ipv4.sysctl_local_reserved_ports = kzalloc(65536 / 8, GFP_KERNEL);
net              1351 net/ipv4/sysctl_net_ipv4.c 	if (!net->ipv4.sysctl_local_reserved_ports)
net              1357 net/ipv4/sysctl_net_ipv4.c 	unregister_net_sysctl_table(net->ipv4.ipv4_hdr);
net              1359 net/ipv4/sysctl_net_ipv4.c 	if (!net_eq(net, &init_net))
net              1365 net/ipv4/sysctl_net_ipv4.c static __net_exit void ipv4_sysctl_exit_net(struct net *net)
net              1369 net/ipv4/sysctl_net_ipv4.c 	kfree(net->ipv4.sysctl_local_reserved_ports);
net              1370 net/ipv4/sysctl_net_ipv4.c 	table = net->ipv4.ipv4_hdr->ctl_table_arg;
net              1371 net/ipv4/sysctl_net_ipv4.c 	unregister_net_sysctl_table(net->ipv4.ipv4_hdr);
net              2807 net/ipv4/tcp.c 	struct net *net = sock_net(sk);
net              2867 net/ipv4/tcp.c 		return tcp_fastopen_reset_cipher(net, sk, key, backup_key);
net              3044 net/ipv4/tcp.c 		else if (val > net->ipv4.sysctl_tcp_fin_timeout / HZ)
net              3107 net/ipv4/tcp.c 			tcp_fastopen_init_key_once(net);
net              3117 net/ipv4/tcp.c 		} else if (net->ipv4.sysctl_tcp_fastopen & TFO_CLIENT_ENABLE) {
net              3416 net/ipv4/tcp.c 	struct net *net = sock_net(sk);
net              3451 net/ipv4/tcp.c 		val = icsk->icsk_syn_retries ? : net->ipv4.sysctl_tcp_syn_retries;
net              3456 net/ipv4/tcp.c 			val = (val ? : net->ipv4.sysctl_tcp_fin_timeout) / HZ;
net                37 net/ipv4/tcp_cong.c static struct tcp_congestion_ops *tcp_ca_find_autoload(struct net *net,
net               121 net/ipv4/tcp_cong.c u32 tcp_ca_get_key_by_name(struct net *net, const char *name, bool *ecn_ca)
net               129 net/ipv4/tcp_cong.c 	ca = tcp_ca_find_autoload(net, name);
net               159 net/ipv4/tcp_cong.c 	struct net *net = sock_net(sk);
net               164 net/ipv4/tcp_cong.c 	ca = rcu_dereference(net->ipv4.tcp_congestion_control);
net               215 net/ipv4/tcp_cong.c int tcp_set_default_congestion_control(struct net *net, const char *name)
net               222 net/ipv4/tcp_cong.c 	ca = tcp_ca_find_autoload(net, name);
net               228 net/ipv4/tcp_cong.c 		prev = xchg(&net->ipv4.tcp_congestion_control, ca);
net               264 net/ipv4/tcp_cong.c void tcp_get_default_congestion_control(struct net *net, char *name)
net               269 net/ipv4/tcp_cong.c 	ca = rcu_dereference(net->ipv4.tcp_congestion_control);
net               197 net/ipv4/tcp_diag.c 	struct net *net = sock_net(in_skb->sk);
net               198 net/ipv4/tcp_diag.c 	struct sock *sk = inet_diag_find_one_icsk(net, &tcp_hashinfo, req);
net                13 net/ipv4/tcp_fastopen.c void tcp_fastopen_init_key_once(struct net *net)
net                19 net/ipv4/tcp_fastopen.c 	ctxt = rcu_dereference(net->ipv4.tcp_fastopen_ctx);
net                33 net/ipv4/tcp_fastopen.c 	tcp_fastopen_reset_cipher(net, NULL, key, NULL);
net                54 net/ipv4/tcp_fastopen.c void tcp_fastopen_ctx_destroy(struct net *net)
net                58 net/ipv4/tcp_fastopen.c 	spin_lock(&net->ipv4.tcp_fastopen_ctx_lock);
net                60 net/ipv4/tcp_fastopen.c 	ctxt = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx,
net                61 net/ipv4/tcp_fastopen.c 				lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock));
net                62 net/ipv4/tcp_fastopen.c 	rcu_assign_pointer(net->ipv4.tcp_fastopen_ctx, NULL);
net                63 net/ipv4/tcp_fastopen.c 	spin_unlock(&net->ipv4.tcp_fastopen_ctx_lock);
net                69 net/ipv4/tcp_fastopen.c int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk,
net                92 net/ipv4/tcp_fastopen.c 	spin_lock(&net->ipv4.tcp_fastopen_ctx_lock);
net                96 net/ipv4/tcp_fastopen.c 			lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock));
net                99 net/ipv4/tcp_fastopen.c 		octx = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx,
net               100 net/ipv4/tcp_fastopen.c 			lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock));
net               101 net/ipv4/tcp_fastopen.c 		rcu_assign_pointer(net->ipv4.tcp_fastopen_ctx, ctx);
net               103 net/ipv4/tcp_fastopen.c 	spin_unlock(&net->ipv4.tcp_fastopen_ctx_lock);
net               482 net/ipv4/tcp_fastopen.c 	struct net *net = sock_net(sk);
net               484 net/ipv4/tcp_fastopen.c 	atomic_inc(&net->ipv4.tfo_active_disable_times);
net               485 net/ipv4/tcp_fastopen.c 	net->ipv4.tfo_active_disable_stamp = jiffies;
net               486 net/ipv4/tcp_fastopen.c 	NET_INC_STATS(net, LINUX_MIB_TCPFASTOPENBLACKHOLE);
net               479 net/ipv4/tcp_input.c 	struct net *net = sock_net(sk);
net               483 net/ipv4/tcp_input.c 	if (sk->sk_rcvbuf < net->ipv4.sysctl_tcp_rmem[2] &&
net               489 net/ipv4/tcp_input.c 			       net->ipv4.sysctl_tcp_rmem[2]));
net              1993 net/ipv4/tcp_input.c 	struct net *net = sock_net(sk);
net              2016 net/ipv4/tcp_input.c 	    tp->sacked_out >= net->ipv4.sysctl_tcp_reordering)
net              2018 net/ipv4/tcp_input.c 				       net->ipv4.sysctl_tcp_reordering);
net              2027 net/ipv4/tcp_input.c 	tp->frto = net->ipv4.sysctl_tcp_frto &&
net              3418 net/ipv4/tcp_input.c static bool __tcp_oow_rate_limited(struct net *net, int mib_idx,
net              3424 net/ipv4/tcp_input.c 		if (0 <= elapsed && elapsed < net->ipv4.sysctl_tcp_invalid_ratelimit) {
net              3425 net/ipv4/tcp_input.c 			NET_INC_STATS(net, mib_idx);
net              3442 net/ipv4/tcp_input.c bool tcp_oow_rate_limited(struct net *net, const struct sk_buff *skb,
net              3450 net/ipv4/tcp_input.c 	return __tcp_oow_rate_limited(net, mib_idx, last_oow_ack_time);
net              3460 net/ipv4/tcp_input.c 	struct net *net = sock_net(sk);
net              3464 net/ipv4/tcp_input.c 	if (__tcp_oow_rate_limited(net,
net              3472 net/ipv4/tcp_input.c 		u32 ack_limit = net->ipv4.sysctl_tcp_challenge_ack_limit;
net              3481 net/ipv4/tcp_input.c 		NET_INC_STATS(net, LINUX_MIB_TCPCHALLENGEACK);
net              3571 net/ipv4/tcp_input.c 	const struct net *net = sock_net(sk);
net              3576 net/ipv4/tcp_input.c 	NET_ADD_STATS(net, LINUX_MIB_TCPDELIVERED, delivered);
net              3579 net/ipv4/tcp_input.c 		NET_ADD_STATS(net, LINUX_MIB_TCPDELIVEREDCE, delivered);
net              3839 net/ipv4/tcp_input.c void tcp_parse_options(const struct net *net,
net              3883 net/ipv4/tcp_input.c 				    !estab && net->ipv4.sysctl_tcp_window_scaling) {
net              3899 net/ipv4/tcp_input.c 				     (!estab && net->ipv4.sysctl_tcp_timestamps))) {
net              3907 net/ipv4/tcp_input.c 				    !estab && net->ipv4.sysctl_tcp_sack) {
net              3979 net/ipv4/tcp_input.c static bool tcp_fast_parse_options(const struct net *net,
net              3995 net/ipv4/tcp_input.c 	tcp_parse_options(net, skb, &tp->rx_opt, 1, NULL);
net              6413 net/ipv4/tcp_input.c 	const struct net *net = sock_net(listen_sk);
net              6423 net/ipv4/tcp_input.c 	ecn_ok = net->ipv4.sysctl_tcp_ecn || ecn_ok_dst;
net              6491 net/ipv4/tcp_input.c 	struct net *net = sock_net(sk);
net              6494 net/ipv4/tcp_input.c 	if (net->ipv4.sysctl_tcp_syncookies) {
net              6503 net/ipv4/tcp_input.c 	    net->ipv4.sysctl_tcp_syncookies != 2 &&
net              6566 net/ipv4/tcp_input.c 	struct net *net = sock_net(sk);
net              6577 net/ipv4/tcp_input.c 	if ((net->ipv4.sysctl_tcp_syncookies == 2 ||
net              6621 net/ipv4/tcp_input.c 		tcp_rsk(req)->ts_off = af_ops->init_ts_off(net, skb);
net              6629 net/ipv4/tcp_input.c 		if (!net->ipv4.sysctl_tcp_syncookies &&
net              6630 net/ipv4/tcp_input.c 		    (net->ipv4.sysctl_max_syn_backlog - inet_csk_reqsk_queue_len(sk) <
net              6631 net/ipv4/tcp_input.c 		     (net->ipv4.sysctl_max_syn_backlog >> 2)) &&
net               101 net/ipv4/tcp_ipv4.c static u32 tcp_v4_init_ts_off(const struct net *net, const struct sk_buff *skb)
net               103 net/ipv4/tcp_ipv4.c 	return secure_tcp_ts_off(net, ip_hdr(skb)->daddr, ip_hdr(skb)->saddr);
net               387 net/ipv4/tcp_ipv4.c 	struct net *net = sock_net(sk);
net               393 net/ipv4/tcp_ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_OUTOFWINDOWICMPS);
net               440 net/ipv4/tcp_ipv4.c 	struct net *net = dev_net(icmp_skb->dev);
net               442 net/ipv4/tcp_ipv4.c 	sk = __inet_lookup_established(net, &tcp_hashinfo, iph->daddr,
net               446 net/ipv4/tcp_ipv4.c 		__ICMP_INC_STATS(net, ICMP_MIB_INERRORS);
net               471 net/ipv4/tcp_ipv4.c 			__NET_INC_STATS(net, LINUX_MIB_LOCKDROPPEDICMPS);
net               477 net/ipv4/tcp_ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_TCPMINTTLDROP);
net               488 net/ipv4/tcp_ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_OUTOFWINDOWICMPS);
net               670 net/ipv4/tcp_ipv4.c 	struct net *net;
net               701 net/ipv4/tcp_ipv4.c 	net = sk ? sock_net(sk) : dev_net(skb_dst(skb)->dev);
net               716 net/ipv4/tcp_ipv4.c 		sk1 = __inet_lookup_listener(net, &tcp_hashinfo, NULL, 0,
net               771 net/ipv4/tcp_ipv4.c 	arg.uid = sock_net_uid(net, sk && sk_fullsock(sk) ? sk : NULL);
net               773 net/ipv4/tcp_ipv4.c 	ctl_sk = this_cpu_read(*net->ipv4.tcp_sk);
net               788 net/ipv4/tcp_ipv4.c 	__TCP_INC_STATS(net, TCP_MIB_OUTSEGS);
net               789 net/ipv4/tcp_ipv4.c 	__TCP_INC_STATS(net, TCP_MIB_OUTRSTS);
net               817 net/ipv4/tcp_ipv4.c 	struct net *net = sock_net(sk);
net               869 net/ipv4/tcp_ipv4.c 	arg.uid = sock_net_uid(net, sk_fullsock(sk) ? sk : NULL);
net               871 net/ipv4/tcp_ipv4.c 	ctl_sk = this_cpu_read(*net->ipv4.tcp_sk);
net               884 net/ipv4/tcp_ipv4.c 	__TCP_INC_STATS(net, TCP_MIB_OUTSEGS);
net              1353 net/ipv4/tcp_ipv4.c 	struct net *net = sock_net(sk_listener);
net              1357 net/ipv4/tcp_ipv4.c 	RCU_INIT_POINTER(ireq->ireq_opt, tcp_v4_save_options(net, skb));
net              1810 net/ipv4/tcp_ipv4.c 	struct net *net = dev_net(skb->dev);
net              1823 net/ipv4/tcp_ipv4.c 	__TCP_INC_STATS(net, TCP_MIB_INSEGS);
net              1912 net/ipv4/tcp_ipv4.c 		__NET_INC_STATS(net, LINUX_MIB_TCPMINTTLDROP);
net              1969 net/ipv4/tcp_ipv4.c 		__TCP_INC_STATS(net, TCP_MIB_CSUMERRORS);
net              1971 net/ipv4/tcp_ipv4.c 		__TCP_INC_STATS(net, TCP_MIB_INERRS);
net              2150 net/ipv4/tcp_ipv4.c 	struct net *net = seq_file_net(seq);
net              2170 net/ipv4/tcp_ipv4.c 		if (!net_eq(sock_net(sk), net))
net              2211 net/ipv4/tcp_ipv4.c 	struct net *net = seq_file_net(seq);
net              2227 net/ipv4/tcp_ipv4.c 			    !net_eq(sock_net(sk), net)) {
net              2245 net/ipv4/tcp_ipv4.c 	struct net *net = seq_file_net(seq);
net              2254 net/ipv4/tcp_ipv4.c 		    net_eq(sock_net(sk), net))
net              2543 net/ipv4/tcp_ipv4.c static int __net_init tcp4_proc_init_net(struct net *net)
net              2545 net/ipv4/tcp_ipv4.c 	if (!proc_create_net_data("tcp", 0444, net->proc_net, &tcp4_seq_ops,
net              2551 net/ipv4/tcp_ipv4.c static void __net_exit tcp4_proc_exit_net(struct net *net)
net              2553 net/ipv4/tcp_ipv4.c 	remove_proc_entry("tcp", net->proc_net);
net              2603 net/ipv4/tcp_ipv4.c 	.sysctl_wmem_offset	= offsetof(struct net, ipv4.sysctl_tcp_wmem),
net              2604 net/ipv4/tcp_ipv4.c 	.sysctl_rmem_offset	= offsetof(struct net, ipv4.sysctl_tcp_rmem),
net              2620 net/ipv4/tcp_ipv4.c static void __net_exit tcp_sk_exit(struct net *net)
net              2624 net/ipv4/tcp_ipv4.c 	if (net->ipv4.tcp_congestion_control)
net              2625 net/ipv4/tcp_ipv4.c 		module_put(net->ipv4.tcp_congestion_control->owner);
net              2628 net/ipv4/tcp_ipv4.c 		inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.tcp_sk, cpu));
net              2629 net/ipv4/tcp_ipv4.c 	free_percpu(net->ipv4.tcp_sk);
net              2632 net/ipv4/tcp_ipv4.c static int __net_init tcp_sk_init(struct net *net)
net              2636 net/ipv4/tcp_ipv4.c 	net->ipv4.tcp_sk = alloc_percpu(struct sock *);
net              2637 net/ipv4/tcp_ipv4.c 	if (!net->ipv4.tcp_sk)
net              2644 net/ipv4/tcp_ipv4.c 					   IPPROTO_TCP, net);
net              2654 net/ipv4/tcp_ipv4.c 		*per_cpu_ptr(net->ipv4.tcp_sk, cpu) = sk;
net              2657 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_ecn = 2;
net              2658 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_ecn_fallback = 1;
net              2660 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_base_mss = TCP_BASE_MSS;
net              2661 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_min_snd_mss = TCP_MIN_SND_MSS;
net              2662 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_probe_threshold = TCP_PROBE_THRESHOLD;
net              2663 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_probe_interval = TCP_PROBE_INTERVAL;
net              2664 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_mtu_probe_floor = TCP_MIN_SND_MSS;
net              2666 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_keepalive_time = TCP_KEEPALIVE_TIME;
net              2667 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_keepalive_probes = TCP_KEEPALIVE_PROBES;
net              2668 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_keepalive_intvl = TCP_KEEPALIVE_INTVL;
net              2670 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES;
net              2671 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES;
net              2672 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_syncookies = 1;
net              2673 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
net              2674 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_retries1 = TCP_RETR1;
net              2675 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_retries2 = TCP_RETR2;
net              2676 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_orphan_retries = 0;
net              2677 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT;
net              2678 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_notsent_lowat = UINT_MAX;
net              2679 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_tw_reuse = 2;
net              2682 net/ipv4/tcp_ipv4.c 	net->ipv4.tcp_death_row.sysctl_max_tw_buckets = cnt / 2;
net              2683 net/ipv4/tcp_ipv4.c 	net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo;
net              2685 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_max_syn_backlog = max(128, cnt / 128);
net              2686 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_sack = 1;
net              2687 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_window_scaling = 1;
net              2688 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_timestamps = 1;
net              2689 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_early_retrans = 3;
net              2690 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_recovery = TCP_RACK_LOSS_DETECTION;
net              2691 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_slow_start_after_idle = 1; /* By default, RFC2861 behavior.  */
net              2692 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_retrans_collapse = 1;
net              2693 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_max_reordering = 300;
net              2694 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_dsack = 1;
net              2695 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_app_win = 31;
net              2696 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_adv_win_scale = 1;
net              2697 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_frto = 2;
net              2698 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_moderate_rcvbuf = 1;
net              2703 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_tso_win_divisor = 3;
net              2705 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_limit_output_bytes = 16 * 65536;
net              2707 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_challenge_ack_limit = 1000;
net              2708 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_min_tso_segs = 2;
net              2709 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_min_rtt_wlen = 300;
net              2710 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_autocorking = 1;
net              2711 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_invalid_ratelimit = HZ/2;
net              2712 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_pacing_ss_ratio = 200;
net              2713 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_pacing_ca_ratio = 120;
net              2714 net/ipv4/tcp_ipv4.c 	if (net != &init_net) {
net              2715 net/ipv4/tcp_ipv4.c 		memcpy(net->ipv4.sysctl_tcp_rmem,
net              2718 net/ipv4/tcp_ipv4.c 		memcpy(net->ipv4.sysctl_tcp_wmem,
net              2722 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_comp_sack_delay_ns = NSEC_PER_MSEC;
net              2723 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_comp_sack_nr = 44;
net              2724 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_fastopen = TFO_CLIENT_ENABLE;
net              2725 net/ipv4/tcp_ipv4.c 	spin_lock_init(&net->ipv4.tcp_fastopen_ctx_lock);
net              2726 net/ipv4/tcp_ipv4.c 	net->ipv4.sysctl_tcp_fastopen_blackhole_timeout = 60 * 60;
net              2727 net/ipv4/tcp_ipv4.c 	atomic_set(&net->ipv4.tfo_active_disable_times, 0);
net              2730 net/ipv4/tcp_ipv4.c 	if (!net_eq(net, &init_net) &&
net              2732 net/ipv4/tcp_ipv4.c 		net->ipv4.tcp_congestion_control = init_net.ipv4.tcp_congestion_control;
net              2734 net/ipv4/tcp_ipv4.c 		net->ipv4.tcp_congestion_control = &tcp_reno;
net              2738 net/ipv4/tcp_ipv4.c 	tcp_sk_exit(net);
net              2745 net/ipv4/tcp_ipv4.c 	struct net *net;
net              2749 net/ipv4/tcp_ipv4.c 	list_for_each_entry(net, net_exit_list, exit_list)
net              2750 net/ipv4/tcp_ipv4.c 		tcp_fastopen_ctx_destroy(net);
net                26 net/ipv4/tcp_metrics.c 						   struct net *net, unsigned int hash);
net                54 net/ipv4/tcp_metrics.c static inline struct net *tm_net(struct tcp_metrics_block *tm)
net               152 net/ipv4/tcp_metrics.c 	struct net *net;
net               156 net/ipv4/tcp_metrics.c 	net = dev_net(dst->dev);
net               161 net/ipv4/tcp_metrics.c 	tm = __tcp_get_metrics(saddr, daddr, net, hash);
net               186 net/ipv4/tcp_metrics.c 	write_pnet(&tm->tcpm_net, net);
net               213 net/ipv4/tcp_metrics.c 						   struct net *net, unsigned int hash)
net               222 net/ipv4/tcp_metrics.c 		    net_eq(tm_net(tm), net))
net               235 net/ipv4/tcp_metrics.c 	struct net *net;
net               256 net/ipv4/tcp_metrics.c 	net = dev_net(dst->dev);
net               257 net/ipv4/tcp_metrics.c 	hash ^= net_hash_mix(net);
net               264 net/ipv4/tcp_metrics.c 		    net_eq(tm_net(tm), net))
net               278 net/ipv4/tcp_metrics.c 	struct net *net;
net               301 net/ipv4/tcp_metrics.c 	net = dev_net(dst->dev);
net               302 net/ipv4/tcp_metrics.c 	hash ^= net_hash_mix(net);
net               305 net/ipv4/tcp_metrics.c 	tm = __tcp_get_metrics(&saddr, &daddr, net, hash);
net               325 net/ipv4/tcp_metrics.c 	struct net *net = sock_net(sk);
net               332 net/ipv4/tcp_metrics.c 	if (net->ipv4.sysctl_tcp_nometrics_save || !dst)
net               428 net/ipv4/tcp_metrics.c 			    tp->reordering != net->ipv4.sysctl_tcp_reordering)
net               742 net/ipv4/tcp_metrics.c 	struct net *net = sock_net(skb->sk);
net               754 net/ipv4/tcp_metrics.c 			if (!net_eq(tm_net(tm), net))
net               820 net/ipv4/tcp_metrics.c 	struct net *net = genl_info_net(info);
net               842 net/ipv4/tcp_metrics.c 	hash ^= net_hash_mix(net);
net               850 net/ipv4/tcp_metrics.c 		    net_eq(tm_net(tm), net)) {
net               870 net/ipv4/tcp_metrics.c static void tcp_metrics_flush_all(struct net *net)
net               884 net/ipv4/tcp_metrics.c 			match = net ? net_eq(tm_net(tm), net) :
net               904 net/ipv4/tcp_metrics.c 	struct net *net = genl_info_net(info);
net               912 net/ipv4/tcp_metrics.c 		tcp_metrics_flush_all(net);
net               919 net/ipv4/tcp_metrics.c 	hash ^= net_hash_mix(net);
net               927 net/ipv4/tcp_metrics.c 		    net_eq(tm_net(tm), net)) {
net               984 net/ipv4/tcp_metrics.c static int __net_init tcp_net_metrics_init(struct net *net)
net               989 net/ipv4/tcp_metrics.c 	if (!net_eq(net, &init_net))
net              1534 net/ipv4/tcp_output.c 	struct net *net = sock_net(sk);
net              1536 net/ipv4/tcp_output.c 	icsk->icsk_mtup.enabled = net->ipv4.sysctl_tcp_mtu_probing > 1;
net              1539 net/ipv4/tcp_output.c 	icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, net->ipv4.sysctl_tcp_base_mss);
net              2045 net/ipv4/tcp_output.c 	struct net *net = sock_net(sk);
net              2049 net/ipv4/tcp_output.c 	interval = net->ipv4.sysctl_tcp_probe_interval;
net              2098 net/ipv4/tcp_output.c 	struct net *net = sock_net(sk);
net              2131 net/ipv4/tcp_output.c 		interval < net->ipv4.sysctl_tcp_probe_threshold) {
net              3820 net/ipv4/tcp_output.c 	struct net *net = sock_net(sk);
net              3835 net/ipv4/tcp_output.c 		if (icsk->icsk_backoff < net->ipv4.sysctl_tcp_retries2)
net               144 net/ipv4/tcp_timer.c 	const struct net *net = sock_net(sk);
net               148 net/ipv4/tcp_timer.c 	if (!net->ipv4.sysctl_tcp_mtu_probing)
net               156 net/ipv4/tcp_timer.c 		mss = min(net->ipv4.sysctl_tcp_base_mss, mss);
net               157 net/ipv4/tcp_timer.c 		mss = max(mss, net->ipv4.sysctl_tcp_mtu_probe_floor);
net               158 net/ipv4/tcp_timer.c 		mss = max(mss, net->ipv4.sysctl_tcp_min_snd_mss);
net               217 net/ipv4/tcp_timer.c 	struct net *net = sock_net(sk);
net               227 net/ipv4/tcp_timer.c 		retry_until = icsk->icsk_syn_retries ? : net->ipv4.sysctl_tcp_syn_retries;
net               230 net/ipv4/tcp_timer.c 		if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1, 0)) {
net               239 net/ipv4/tcp_timer.c 		retry_until = net->ipv4.sysctl_tcp_retries2;
net               434 net/ipv4/tcp_timer.c 	struct net *net = sock_net(sk);
net               554 net/ipv4/tcp_timer.c 	    (tp->thin_lto || net->ipv4.sysctl_tcp_thin_linear_timeouts) &&
net               565 net/ipv4/tcp_timer.c 	if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1 + 1, 0))
net               631 net/ipv4/tcp_timer.c 	struct net *net = read_pnet(&inet_rsk(req)->ireq_net);
net               633 net/ipv4/tcp_timer.c 	__NET_INC_STATS(net, LINUX_MIB_TCPTIMEOUTS);
net               128 net/ipv4/udp.c static int udp_lib_lport_inuse(struct net *net, __u16 num,
net               137 net/ipv4/udp.c 		if (net_eq(sock_net(sk2), net) &&
net               164 net/ipv4/udp.c static int udp_lib_lport_inuse2(struct net *net, __u16 num,
net               174 net/ipv4/udp.c 		if (net_eq(sock_net(sk2), net) &&
net               197 net/ipv4/udp.c 	struct net *net = sock_net(sk);
net               202 net/ipv4/udp.c 		if (net_eq(sock_net(sk2), net) &&
net               232 net/ipv4/udp.c 	struct net *net = sock_net(sk);
net               240 net/ipv4/udp.c 		inet_get_local_port_range(net, &low, &high);
net               251 net/ipv4/udp.c 			hslot = udp_hashslot(udptable, net, first);
net               254 net/ipv4/udp.c 			udp_lib_lport_inuse(net, snum, hslot, bitmap, sk,
net               266 net/ipv4/udp.c 				    !inet_is_local_reserved_port(net, snum))
net               275 net/ipv4/udp.c 		hslot = udp_hashslot(udptable, net, snum);
net               288 net/ipv4/udp.c 			exist = udp_lib_lport_inuse2(net, snum, hslot2, sk);
net               291 net/ipv4/udp.c 				exist = udp_lib_lport_inuse2(net, snum, hslot2,
net               300 net/ipv4/udp.c 		if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0))
net               353 net/ipv4/udp.c static int compute_score(struct sock *sk, struct net *net,
net               362 net/ipv4/udp.c 	if (!net_eq(sock_net(sk), net) ||
net               385 net/ipv4/udp.c 	dev_match = udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if,
net               396 net/ipv4/udp.c static u32 udp_ehashfn(const struct net *net, const __be32 laddr,
net               405 net/ipv4/udp.c 			      udp_ehash_secret + net_hash_mix(net));
net               409 net/ipv4/udp.c static struct sock *udp4_lib_lookup2(struct net *net,
net               423 net/ipv4/udp.c 		score = compute_score(sk, net, saddr, sport,
net               428 net/ipv4/udp.c 				hash = udp_ehashfn(net, daddr, hnum,
net               445 net/ipv4/udp.c struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr,
net               454 net/ipv4/udp.c 	hash2 = ipv4_portaddr_hash(net, daddr, hnum);
net               458 net/ipv4/udp.c 	result = udp4_lib_lookup2(net, saddr, sport,
net               462 net/ipv4/udp.c 		hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum);
net               466 net/ipv4/udp.c 		result = udp4_lib_lookup2(net, saddr, sport,
net               502 net/ipv4/udp.c struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
net               507 net/ipv4/udp.c 	sk = __udp4_lib_lookup(net, saddr, sport, daddr, dport,
net               516 net/ipv4/udp.c static inline bool __udp_is_mcast_sock(struct net *net, struct sock *sk,
net               523 net/ipv4/udp.c 	if (!net_eq(sock_net(sk), net) ||
net               529 net/ipv4/udp.c 	    !udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif))
net               582 net/ipv4/udp.c static struct sock *__udp4_lib_err_encap(struct net *net,
net               600 net/ipv4/udp.c 	sk = __udp4_lib_lookup(net, iph->daddr, uh->source,
net               643 net/ipv4/udp.c 	struct net *net = dev_net(skb->dev);
net               645 net/ipv4/udp.c 	sk = __udp4_lib_lookup(net, iph->daddr, uh->dest,
net               652 net/ipv4/udp.c 			sk = __udp4_lib_err_encap(net, iph, uh, udptable, skb,
net               659 net/ipv4/udp.c 			__ICMP_INC_STATS(net, ICMP_MIB_INERRORS);
net              1132 net/ipv4/udp.c 		struct net *net = sock_net(sk);
net              1144 net/ipv4/udp.c 		rt = ip_route_output_flow(net, fl4, sk);
net              1149 net/ipv4/udp.c 				IP_INC_STATS(net, IPSTATS_MIB_OUTNOROUTES);
net              2143 net/ipv4/udp.c static int __udp4_lib_mcast_deliver(struct net *net, struct sk_buff *skb,
net              2151 net/ipv4/udp.c 	struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum);
net              2160 net/ipv4/udp.c 		hash2_any = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum) &
net              2162 net/ipv4/udp.c 		hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask;
net              2169 net/ipv4/udp.c 		if (!__udp_is_mcast_sock(net, sk, uh->dest, daddr,
net              2181 net/ipv4/udp.c 			__UDP_INC_STATS(net, UDP_MIB_RCVBUFERRORS,
net              2183 net/ipv4/udp.c 			__UDP_INC_STATS(net, UDP_MIB_INERRORS,
net              2202 net/ipv4/udp.c 		__UDP_INC_STATS(net, UDP_MIB_IGNOREDMULTI,
net              2288 net/ipv4/udp.c 	struct net *net = dev_net(skb->dev);
net              2328 net/ipv4/udp.c 		return __udp4_lib_mcast_deliver(net, skb, uh,
net              2343 net/ipv4/udp.c 	__UDP_INC_STATS(net, UDP_MIB_NOPORTS, proto == IPPROTO_UDPLITE);
net              2370 net/ipv4/udp.c 	__UDP_INC_STATS(net, UDP_MIB_CSUMERRORS, proto == IPPROTO_UDPLITE);
net              2372 net/ipv4/udp.c 	__UDP_INC_STATS(net, UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE);
net              2380 net/ipv4/udp.c static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net,
net              2387 net/ipv4/udp.c 	unsigned int slot = udp_hashfn(net, hnum, udp_table.mask);
net              2396 net/ipv4/udp.c 		if (__udp_is_mcast_sock(net, sk, loc_port, loc_addr,
net              2411 net/ipv4/udp.c static struct sock *__udp4_lib_demux_lookup(struct net *net,
net              2417 net/ipv4/udp.c 	unsigned int hash2 = ipv4_portaddr_hash(net, loc_addr, hnum);
net              2425 net/ipv4/udp.c 		if (INET_MATCH(sk, net, acookie, rmt_addr,
net              2436 net/ipv4/udp.c 	struct net *net = dev_net(skb->dev);
net              2464 net/ipv4/udp.c 		sk = __udp4_lib_mcast_demux_lookup(net, uh->dest, iph->daddr,
net              2468 net/ipv4/udp.c 		sk = __udp4_lib_demux_lookup(net, uh->dest, iph->daddr,
net              2797 net/ipv4/udp.c 	.sysctl_wmem_offset	= offsetof(struct net, ipv4.sysctl_udp_wmem_min),
net              2798 net/ipv4/udp.c 	.sysctl_rmem_offset	= offsetof(struct net, ipv4.sysctl_udp_rmem_min),
net              2817 net/ipv4/udp.c 	struct net *net = seq_file_net(seq);
net              2828 net/ipv4/udp.c 			if (!net_eq(sock_net(sk), net))
net              2844 net/ipv4/udp.c 	struct net *net = seq_file_net(seq);
net              2848 net/ipv4/udp.c 	} while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != afinfo->family));
net              2952 net/ipv4/udp.c static int __net_init udp4_proc_init_net(struct net *net)
net              2954 net/ipv4/udp.c 	if (!proc_create_net_data("udp", 0444, net->proc_net, &udp_seq_ops,
net              2960 net/ipv4/udp.c static void __net_exit udp4_proc_exit_net(struct net *net)
net              2962 net/ipv4/udp.c 	remove_proc_entry("udp", net->proc_net);
net              3036 net/ipv4/udp.c static void __udp_sysctl_init(struct net *net)
net              3038 net/ipv4/udp.c 	net->ipv4.sysctl_udp_rmem_min = SK_MEM_QUANTUM;
net              3039 net/ipv4/udp.c 	net->ipv4.sysctl_udp_wmem_min = SK_MEM_QUANTUM;
net              3042 net/ipv4/udp.c 	net->ipv4.sysctl_udp_l3mdev_accept = 0;
net              3046 net/ipv4/udp.c static int __net_init udp_sysctl_init(struct net *net)
net              3048 net/ipv4/udp.c 	__udp_sysctl_init(net);
net                37 net/ipv4/udp_diag.c 	struct net *net = sock_net(in_skb->sk);
net                42 net/ipv4/udp_diag.c 		sk = __udp4_lib_lookup(net,
net                48 net/ipv4/udp_diag.c 		sk = __udp6_lib_lookup(net,
net                84 net/ipv4/udp_diag.c 	err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
net               100 net/ipv4/udp_diag.c 	struct net *net = sock_net(skb->sk);
net               119 net/ipv4/udp_diag.c 			if (!net_eq(sock_net(sk), net))
net               173 net/ipv4/udp_diag.c 	struct net *net = sock_net(in_skb->sk);
net               180 net/ipv4/udp_diag.c 		sk = __udp4_lib_lookup(net,
net               188 net/ipv4/udp_diag.c 			sk = __udp4_lib_lookup(net,
net               194 net/ipv4/udp_diag.c 			sk = __udp6_lib_lookup(net,
net                13 net/ipv4/udp_tunnel.c int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg,
net                20 net/ipv4/udp_tunnel.c 	err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock);
net                65 net/ipv4/udp_tunnel.c void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
net               129 net/ipv4/udp_tunnel.c 	struct net *net = sock_net(sk);
net               138 net/ipv4/udp_tunnel.c 	for_each_netdev_rcu(net, dev) {
net               153 net/ipv4/udp_tunnel.c 	struct net *net = sock_net(sk);
net               162 net/ipv4/udp_tunnel.c 	for_each_netdev_rcu(net, dev) {
net                80 net/ipv4/udplite.c static int __net_init udplite4_proc_init_net(struct net *net)
net                82 net/ipv4/udplite.c 	if (!proc_create_net_data("udplite", 0444, net->proc_net, &udp_seq_ops,
net                88 net/ipv4/udplite.c static void __net_exit udplite4_proc_exit_net(struct net *net)
net                90 net/ipv4/udplite.c 	remove_proc_entry("udplite", net->proc_net);
net                26 net/ipv4/xfrm4_input.c static int xfrm4_rcv_encap_finish2(struct net *net, struct sock *sk,
net                32 net/ipv4/xfrm4_input.c static inline int xfrm4_rcv_encap_finish(struct net *net, struct sock *sk,
net                66 net/ipv4/xfrm4_output.c static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net                75 net/ipv4/xfrm4_output.c 		return dst_output(net, sk, skb);
net                90 net/ipv4/xfrm4_output.c int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net                93 net/ipv4/xfrm4_output.c 			    net, sk, skb, NULL, skb_dst(skb)->dev,
net                20 net/ipv4/xfrm4_policy.c static struct dst_entry *__xfrm4_dst_lookup(struct net *net, struct flowi4 *fl4,
net                31 net/ipv4/xfrm4_policy.c 	fl4->flowi4_oif = l3mdev_master_ifindex_by_index(net, oif);
net                38 net/ipv4/xfrm4_policy.c 	rt = __ip_route_output_key(net, fl4);
net                45 net/ipv4/xfrm4_policy.c static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif,
net                52 net/ipv4/xfrm4_policy.c 	return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark);
net                55 net/ipv4/xfrm4_policy.c static int xfrm4_get_saddr(struct net *net, int oif,
net                62 net/ipv4/xfrm4_policy.c 	dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr, mark);
net               171 net/ipv4/xfrm4_policy.c static __net_init int xfrm4_net_sysctl_init(struct net *net)
net               177 net/ipv4/xfrm4_policy.c 	if (!net_eq(net, &init_net)) {
net               182 net/ipv4/xfrm4_policy.c 		table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh;
net               185 net/ipv4/xfrm4_policy.c 	hdr = register_net_sysctl(net, "net/ipv4", table);
net               189 net/ipv4/xfrm4_policy.c 	net->ipv4.xfrm4_hdr = hdr;
net               193 net/ipv4/xfrm4_policy.c 	if (!net_eq(net, &init_net))
net               199 net/ipv4/xfrm4_policy.c static __net_exit void xfrm4_net_sysctl_exit(struct net *net)
net               203 net/ipv4/xfrm4_policy.c 	if (!net->ipv4.xfrm4_hdr)
net               206 net/ipv4/xfrm4_policy.c 	table = net->ipv4.xfrm4_hdr->ctl_table_arg;
net               207 net/ipv4/xfrm4_policy.c 	unregister_net_sysctl_table(net->ipv4.xfrm4_hdr);
net               208 net/ipv4/xfrm4_policy.c 	if (!net_eq(net, &init_net))
net               212 net/ipv4/xfrm4_policy.c static inline int xfrm4_net_sysctl_init(struct net *net)
net               217 net/ipv4/xfrm4_policy.c static inline void xfrm4_net_sysctl_exit(struct net *net)
net               222 net/ipv4/xfrm4_policy.c static int __net_init xfrm4_net_init(struct net *net)
net               226 net/ipv4/xfrm4_policy.c 	memcpy(&net->xfrm.xfrm4_dst_ops, &xfrm4_dst_ops_template,
net               228 net/ipv4/xfrm4_policy.c 	ret = dst_entries_init(&net->xfrm.xfrm4_dst_ops);
net               232 net/ipv4/xfrm4_policy.c 	ret = xfrm4_net_sysctl_init(net);
net               234 net/ipv4/xfrm4_policy.c 		dst_entries_destroy(&net->xfrm.xfrm4_dst_ops);
net               239 net/ipv4/xfrm4_policy.c static void __net_exit xfrm4_net_exit(struct net *net)
net               241 net/ipv4/xfrm4_policy.c 	xfrm4_net_sysctl_exit(net);
net               242 net/ipv4/xfrm4_policy.c 	dst_entries_destroy(&net->xfrm.xfrm4_dst_ops);
net               566 net/ipv6/addrconf.c void inet6_netconf_notify_devconf(struct net *net, int event, int type,
net               584 net/ipv6/addrconf.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV6_NETCONF, NULL, GFP_KERNEL);
net               587 net/ipv6/addrconf.c 	rtnl_set_sk_err(net, RTNLGRP_IPV6_NETCONF, err);
net               640 net/ipv6/addrconf.c 	struct net *net = sock_net(in_skb->sk);
net               660 net/ipv6/addrconf.c 		devconf = net->ipv6.devconf_all;
net               663 net/ipv6/addrconf.c 		devconf = net->ipv6.devconf_dflt;
net               666 net/ipv6/addrconf.c 		dev = dev_get_by_index(net, ifindex);
net               691 net/ipv6/addrconf.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net               704 net/ipv6/addrconf.c 	struct net *net = sock_net(skb->sk);
net               731 net/ipv6/addrconf.c 		head = &net->dev_index_head[h];
net               733 net/ipv6/addrconf.c 		cb->seq = atomic_read(&net->ipv6.dev_addr_genid) ^
net               734 net/ipv6/addrconf.c 			  net->dev_base_seq;
net               760 net/ipv6/addrconf.c 					       net->ipv6.devconf_all,
net               771 net/ipv6/addrconf.c 					       net->ipv6.devconf_dflt,
net               824 net/ipv6/addrconf.c static void addrconf_forward_change(struct net *net, __s32 newf)
net               829 net/ipv6/addrconf.c 	for_each_netdev(net, dev) {
net               842 net/ipv6/addrconf.c 	struct net *net;
net               848 net/ipv6/addrconf.c 	net = (struct net *)table->extra2;
net               852 net/ipv6/addrconf.c 	if (p == &net->ipv6.devconf_dflt->forwarding) {
net               854 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net               857 net/ipv6/addrconf.c 						     net->ipv6.devconf_dflt);
net               862 net/ipv6/addrconf.c 	if (p == &net->ipv6.devconf_all->forwarding) {
net               863 net/ipv6/addrconf.c 		int old_dflt = net->ipv6.devconf_dflt->forwarding;
net               865 net/ipv6/addrconf.c 		net->ipv6.devconf_dflt->forwarding = newf;
net               867 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net               870 net/ipv6/addrconf.c 						     net->ipv6.devconf_dflt);
net               872 net/ipv6/addrconf.c 		addrconf_forward_change(net, newf);
net               874 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net               877 net/ipv6/addrconf.c 						     net->ipv6.devconf_all);
net               883 net/ipv6/addrconf.c 		rt6_purge_dflt_routers(net);
net               887 net/ipv6/addrconf.c static void addrconf_linkdown_change(struct net *net, __s32 newf)
net               892 net/ipv6/addrconf.c 	for_each_netdev(net, dev) {
net               910 net/ipv6/addrconf.c 	struct net *net;
net               916 net/ipv6/addrconf.c 	net = (struct net *)table->extra2;
net               920 net/ipv6/addrconf.c 	if (p == &net->ipv6.devconf_dflt->ignore_routes_with_linkdown) {
net               922 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net,
net               926 net/ipv6/addrconf.c 						     net->ipv6.devconf_dflt);
net               931 net/ipv6/addrconf.c 	if (p == &net->ipv6.devconf_all->ignore_routes_with_linkdown) {
net               932 net/ipv6/addrconf.c 		net->ipv6.devconf_dflt->ignore_routes_with_linkdown = newf;
net               933 net/ipv6/addrconf.c 		addrconf_linkdown_change(net, newf);
net               935 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net,
net               939 net/ipv6/addrconf.c 						     net->ipv6.devconf_all);
net               991 net/ipv6/addrconf.c static u32 inet6_addr_hash(const struct net *net, const struct in6_addr *addr)
net               993 net/ipv6/addrconf.c 	u32 val = ipv6_addr_hash(addr) ^ net_hash_mix(net);
net               998 net/ipv6/addrconf.c static bool ipv6_chk_same_addr(struct net *net, const struct in6_addr *addr,
net              1004 net/ipv6/addrconf.c 		if (!net_eq(dev_net(ifp->idev->dev), net))
net              1042 net/ipv6/addrconf.c 	struct net *net = dev_net(idev->dev);
net              1087 net/ipv6/addrconf.c 	f6i = addrconf_f6i_alloc(net, idev, cfg->pfx, false, gfp_flags);
net              1094 net/ipv6/addrconf.c 	if (net->ipv6.devconf_all->disable_policy ||
net              1482 net/ipv6/addrconf.c static bool ipv6_use_optimistic_addr(struct net *net,
net              1488 net/ipv6/addrconf.c 	if (!net->ipv6.devconf_all->optimistic_dad && !idev->cnf.optimistic_dad)
net              1490 net/ipv6/addrconf.c 	if (!net->ipv6.devconf_all->use_optimistic && !idev->cnf.use_optimistic)
net              1499 net/ipv6/addrconf.c static bool ipv6_allow_optimistic_dad(struct net *net,
net              1505 net/ipv6/addrconf.c 	if (!net->ipv6.devconf_all->optimistic_dad && !idev->cnf.optimistic_dad)
net              1514 net/ipv6/addrconf.c static int ipv6_get_saddr_eval(struct net *net,
net              1578 net/ipv6/addrconf.c 		if (!ipv6_use_optimistic_addr(net, score->ifa->idev))
net              1600 net/ipv6/addrconf.c 		ret = ipv6_addr_label(net,
net              1648 net/ipv6/addrconf.c static int __ipv6_dev_get_saddr(struct net *net,
net              1688 net/ipv6/addrconf.c 			minihiscore = ipv6_get_saddr_eval(net, hiscore, dst, i);
net              1689 net/ipv6/addrconf.c 			miniscore = ipv6_get_saddr_eval(net, score, dst, i);
net              1720 net/ipv6/addrconf.c static int ipv6_get_saddr_master(struct net *net,
net              1731 net/ipv6/addrconf.c 		hiscore_idx = __ipv6_dev_get_saddr(net, dst, idev,
net              1736 net/ipv6/addrconf.c 		hiscore_idx = __ipv6_dev_get_saddr(net, dst, idev,
net              1742 net/ipv6/addrconf.c int ipv6_dev_get_saddr(struct net *net, const struct net_device *dst_dev,
net              1759 net/ipv6/addrconf.c 	dst.label = ipv6_addr_label(net, daddr, dst_type, dst.ifindex);
net              1794 net/ipv6/addrconf.c 			hiscore_idx = __ipv6_dev_get_saddr(net, &dst, idev, scores, hiscore_idx);
net              1807 net/ipv6/addrconf.c 			hiscore_idx = ipv6_get_saddr_master(net, dst_dev,
net              1815 net/ipv6/addrconf.c 		for_each_netdev_rcu(net, dev) {
net              1824 net/ipv6/addrconf.c 			hiscore_idx = __ipv6_dev_get_saddr(net, &dst, idev, scores, hiscore_idx);
net              1888 net/ipv6/addrconf.c int ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
net              1891 net/ipv6/addrconf.c 	return ipv6_chk_addr_and_flags(net, addr, dev, !dev,
net              1905 net/ipv6/addrconf.c int ipv6_chk_addr_and_flags(struct net *net, const struct in6_addr *addr,
net              1909 net/ipv6/addrconf.c 	unsigned int hash = inet6_addr_hash(net, addr);
net              1921 net/ipv6/addrconf.c 		if (!net_eq(dev_net(ifp->idev->dev), net))
net              1995 net/ipv6/addrconf.c struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, const struct in6_addr *addr,
net              1998 net/ipv6/addrconf.c 	unsigned int hash = inet6_addr_hash(net, addr);
net              2003 net/ipv6/addrconf.c 		if (!net_eq(dev_net(ifp->idev->dev), net))
net              2071 net/ipv6/addrconf.c 	struct net *net = dev_net(ifp->idev->dev);
net              2096 net/ipv6/addrconf.c 		if (retries > net->ipv6.sysctl.idgen_retries) {
net              2126 net/ipv6/addrconf.c 		addrconf_mod_dad_work(ifp2, net->ipv6.sysctl.idgen_delay);
net              2557 net/ipv6/addrconf.c int addrconf_prefix_rcv_add_addr(struct net *net, struct net_device *dev,
net              2564 net/ipv6/addrconf.c 	struct inet6_ifaddr *ifp = ipv6_get_ifaddr(net, addr, dev, 1);
net              2579 net/ipv6/addrconf.c 		if ((net->ipv6.devconf_all->optimistic_dad ||
net              2581 net/ipv6/addrconf.c 		    !net->ipv6.devconf_all->forwarding && sllao)
net              2666 net/ipv6/addrconf.c 	struct net *net = dev_net(dev);
net              2732 net/ipv6/addrconf.c 				ip6_del_rt(net, rt);
net              2788 net/ipv6/addrconf.c 		err = addrconf_prefix_rcv_add_addr(net, dev, pinfo, in6_dev,
net              2799 net/ipv6/addrconf.c 		ndisc_ops_prefix_rcv_add_addr(net, dev, pinfo, in6_dev, &addr,
net              2815 net/ipv6/addrconf.c int addrconf_set_dstaddr(struct net *net, void __user *arg)
net              2827 net/ipv6/addrconf.c 	dev = __dev_get_by_index(net, ireq.ifr6_ifindex);
net              2863 net/ipv6/addrconf.c 			dev = __dev_get_by_name(net, p.name);
net              2896 net/ipv6/addrconf.c static int inet6_addr_add(struct net *net, int ifindex,
net              2919 net/ipv6/addrconf.c 	dev = __dev_get_by_index(net, ifindex);
net              2928 net/ipv6/addrconf.c 		int ret = ipv6_mc_config(net->ipv6.mc_autojoin_sk,
net              2981 net/ipv6/addrconf.c 		ipv6_mc_config(net->ipv6.mc_autojoin_sk, false,
net              2988 net/ipv6/addrconf.c static int inet6_addr_del(struct net *net, int ifindex, u32 ifa_flags,
net              2998 net/ipv6/addrconf.c 	dev = __dev_get_by_index(net, ifindex);
net              3020 net/ipv6/addrconf.c 				ipv6_mc_config(net->ipv6.mc_autojoin_sk,
net              3031 net/ipv6/addrconf.c int addrconf_add_ifaddr(struct net *net, void __user *arg)
net              3041 net/ipv6/addrconf.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              3051 net/ipv6/addrconf.c 	err = inet6_addr_add(net, ireq.ifr6_ifindex, &cfg, NULL);
net              3056 net/ipv6/addrconf.c int addrconf_del_ifaddr(struct net *net, void __user *arg)
net              3061 net/ipv6/addrconf.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              3068 net/ipv6/addrconf.c 	err = inet6_addr_del(net, ireq.ifr6_ifindex, 0, &ireq.ifr6_addr,
net              3103 net/ipv6/addrconf.c 	struct net *net = dev_net(idev->dev);
net              3129 net/ipv6/addrconf.c 	for_each_netdev(net, dev) {
net              3238 net/ipv6/addrconf.c 	struct net *net = dev_net(idev->dev);
net              3244 net/ipv6/addrconf.c 	else if (net->ipv6.devconf_dflt->stable_secret.initialized)
net              3245 net/ipv6/addrconf.c 		secret = net->ipv6.devconf_dflt->stable_secret.secret;
net              3423 net/ipv6/addrconf.c static int fixup_permanent_addr(struct net *net,
net              3434 net/ipv6/addrconf.c 		f6i = addrconf_f6i_alloc(net, idev, &ifp->addr, false,
net              3460 net/ipv6/addrconf.c static void addrconf_permanent_addr(struct net *net, struct net_device *dev)
net              3473 net/ipv6/addrconf.c 		    fixup_permanent_addr(net, idev, ifp) < 0) {
net              3494 net/ipv6/addrconf.c 	struct net *net = dev_net(dev);
net              3510 net/ipv6/addrconf.c 			addrconf_ifdown(dev, dev != net->loopback_dev);
net              3543 net/ipv6/addrconf.c 			addrconf_permanent_addr(net, dev);
net              3634 net/ipv6/addrconf.c 				addrconf_ifdown(dev, dev != net->loopback_dev);
net              3710 net/ipv6/addrconf.c 	struct net *net = dev_net(dev);
net              3744 net/ipv6/addrconf.c 		int _keep_addr = net->ipv6.devconf_all->keep_addr_on_down;
net              3829 net/ipv6/addrconf.c 			ip6_del_rt(net, rt);
net              3947 net/ipv6/addrconf.c 	struct net *net;
net              3958 net/ipv6/addrconf.c 	net = dev_net(dev);
net              3960 net/ipv6/addrconf.c 	    (net->ipv6.devconf_all->accept_dad < 1 &&
net              3996 net/ipv6/addrconf.c 		ip6_ins_rt(net, ifp->rt);
net              3997 net/ipv6/addrconf.c 		if (ipv6_use_optimistic_addr(net, idev)) {
net              4257 net/ipv6/addrconf.c 	struct net *net = seq_file_net(seq);
net              4270 net/ipv6/addrconf.c 			if (!net_eq(dev_net(ifa->idev->dev), net))
net              4291 net/ipv6/addrconf.c 	struct net *net = seq_file_net(seq);
net              4294 net/ipv6/addrconf.c 		if (!net_eq(dev_net(ifa->idev->dev), net))
net              4304 net/ipv6/addrconf.c 			if (!net_eq(dev_net(ifa->idev->dev), net))
net              4355 net/ipv6/addrconf.c static int __net_init if6_proc_net_init(struct net *net)
net              4357 net/ipv6/addrconf.c 	if (!proc_create_net("if_inet6", 0444, net->proc_net, &if6_seq_ops,
net              4363 net/ipv6/addrconf.c static void __net_exit if6_proc_net_exit(struct net *net)
net              4365 net/ipv6/addrconf.c 	remove_proc_entry("if_inet6", net->proc_net);
net              4386 net/ipv6/addrconf.c int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr)
net              4388 net/ipv6/addrconf.c 	unsigned int hash = inet6_addr_hash(net, addr);
net              4394 net/ipv6/addrconf.c 		if (!net_eq(dev_net(ifp->idev->dev), net))
net              4572 net/ipv6/addrconf.c 	struct net *net = sock_net(skb->sk);
net              4594 net/ipv6/addrconf.c 	return inet6_addr_del(net, ifm->ifa_index, ifa_flags, pfx,
net              4756 net/ipv6/addrconf.c 	struct net *net = sock_net(skb->sk);
net              4794 net/ipv6/addrconf.c 	dev =  __dev_get_by_index(net, ifm->ifa_index);
net              4812 net/ipv6/addrconf.c 	if (!ipv6_allow_optimistic_dad(net, idev))
net              4821 net/ipv6/addrconf.c 	ifa = ipv6_get_ifaddr(net, cfg.pfx, dev, 1);
net              4827 net/ipv6/addrconf.c 		return inet6_addr_add(net, ifm->ifa_index, &cfg, extack);
net              5098 net/ipv6/addrconf.c 				       struct net **tgt_net, struct sock *sk,
net              5133 net/ipv6/addrconf.c 			struct net *net;
net              5136 net/ipv6/addrconf.c 			net = rtnl_get_net_ns_capable(sk, fillargs->netnsid);
net              5137 net/ipv6/addrconf.c 			if (IS_ERR(net)) {
net              5140 net/ipv6/addrconf.c 				return PTR_ERR(net);
net              5142 net/ipv6/addrconf.c 			*tgt_net = net;
net              5163 net/ipv6/addrconf.c 	struct net *net = sock_net(skb->sk);
net              5164 net/ipv6/addrconf.c 	struct net *tgt_net = net;
net              5303 net/ipv6/addrconf.c 	struct net *net = sock_net(in_skb->sk);
net              5311 net/ipv6/addrconf.c 	struct net *tgt_net = net;
net              5375 net/ipv6/addrconf.c 	struct net *net = dev_net(ifa->idev->dev);
net              5396 net/ipv6/addrconf.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC);
net              5400 net/ipv6/addrconf.c 		rtnl_set_sk_err(net, RTNLGRP_IPV6_IFADDR, err);
net              5706 net/ipv6/addrconf.c static int check_stable_privacy(struct inet6_dev *idev, struct net *net,
net              5711 net/ipv6/addrconf.c 	    !net->ipv6.devconf_dflt->stable_secret.initialized)
net              5848 net/ipv6/addrconf.c 	struct net *net = sock_net(skb->sk);
net              5871 net/ipv6/addrconf.c 		head = &net->dev_index_head[h];
net              5898 net/ipv6/addrconf.c 	struct net *net = dev_net(idev->dev);
net              5912 net/ipv6/addrconf.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV6_IFINFO, NULL, GFP_ATOMIC);
net              5916 net/ipv6/addrconf.c 		rtnl_set_sk_err(net, RTNLGRP_IPV6_IFINFO, err);
net              5970 net/ipv6/addrconf.c 	struct net *net = dev_net(idev->dev);
net              5984 net/ipv6/addrconf.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV6_PREFIX, NULL, GFP_ATOMIC);
net              5988 net/ipv6/addrconf.c 		rtnl_set_sk_err(net, RTNLGRP_IPV6_PREFIX, err);
net              5993 net/ipv6/addrconf.c 	struct net *net = dev_net(ifp->idev->dev);
net              6011 net/ipv6/addrconf.c 			ip6_ins_rt(net, ifp->rt);
net              6035 net/ipv6/addrconf.c 				ip6_del_rt(net, rt);
net              6038 net/ipv6/addrconf.c 			ip6_del_rt(net, ifp->rt);
net              6041 net/ipv6/addrconf.c 		rt_genid_bump_ipv6(net);
net              6044 net/ipv6/addrconf.c 	atomic_inc(&net->ipv6.dev_addr_genid);
net              6112 net/ipv6/addrconf.c static void addrconf_disable_change(struct net *net, __s32 newf)
net              6117 net/ipv6/addrconf.c 	for_each_netdev(net, dev) {
net              6130 net/ipv6/addrconf.c 	struct net *net;
net              6136 net/ipv6/addrconf.c 	net = (struct net *)table->extra2;
net              6140 net/ipv6/addrconf.c 	if (p == &net->ipv6.devconf_dflt->disable_ipv6) {
net              6145 net/ipv6/addrconf.c 	if (p == &net->ipv6.devconf_all->disable_ipv6) {
net              6146 net/ipv6/addrconf.c 		net->ipv6.devconf_dflt->disable_ipv6 = newf;
net              6147 net/ipv6/addrconf.c 		addrconf_disable_change(net, newf);
net              6194 net/ipv6/addrconf.c 		struct net *net = ctl->extra2;
net              6199 net/ipv6/addrconf.c 		if (valp == &net->ipv6.devconf_dflt->proxy_ndp)
net              6200 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              6203 net/ipv6/addrconf.c 						     net->ipv6.devconf_dflt);
net              6204 net/ipv6/addrconf.c 		else if (valp == &net->ipv6.devconf_all->proxy_ndp)
net              6205 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              6208 net/ipv6/addrconf.c 						     net->ipv6.devconf_all);
net              6212 net/ipv6/addrconf.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              6230 net/ipv6/addrconf.c 	struct net *net = (struct net *)ctl->extra2;
net              6253 net/ipv6/addrconf.c 			if (check_stable_privacy(idev, net, new_val) < 0) {
net              6262 net/ipv6/addrconf.c 		} else if (&net->ipv6.devconf_all->addr_gen_mode == ctl->data) {
net              6265 net/ipv6/addrconf.c 			net->ipv6.devconf_dflt->addr_gen_mode = new_val;
net              6266 net/ipv6/addrconf.c 			for_each_netdev(net, dev) {
net              6293 net/ipv6/addrconf.c 	struct net *net = ctl->extra2;
net              6296 net/ipv6/addrconf.c 	if (&net->ipv6.devconf_all->stable_secret == ctl->data)
net              6328 net/ipv6/addrconf.c 	if (&net->ipv6.devconf_dflt->stable_secret == ctl->data) {
net              6331 net/ipv6/addrconf.c 		for_each_netdev(net, dev) {
net              6424 net/ipv6/addrconf.c 	struct net *net;
net              6431 net/ipv6/addrconf.c 	net = (struct net *)ctl->extra2;
net              6432 net/ipv6/addrconf.c 	if (valp == &net->ipv6.devconf_dflt->disable_policy) {
net              6437 net/ipv6/addrconf.c 	if (valp == &net->ipv6.devconf_all->disable_policy)  {
net              6440 net/ipv6/addrconf.c 		for_each_netdev(net, dev) {
net              6862 net/ipv6/addrconf.c static int __addrconf_sysctl_register(struct net *net, char *dev_name,
net              6881 net/ipv6/addrconf.c 			table[i].extra2 = net;
net              6887 net/ipv6/addrconf.c 	p->sysctl_header = register_net_sysctl(net, path, table);
net              6897 net/ipv6/addrconf.c 	inet6_netconf_notify_devconf(net, RTM_NEWNETCONF, NETCONFA_ALL,
net              6907 net/ipv6/addrconf.c static void __addrconf_sysctl_unregister(struct net *net,
net              6920 net/ipv6/addrconf.c 	inet6_netconf_notify_devconf(net, RTM_DELNETCONF, 0, ifindex, NULL);
net              6952 net/ipv6/addrconf.c static int __net_init addrconf_init_net(struct net *net)
net              6966 net/ipv6/addrconf.c 	    sysctl_devconf_inherit_init_net == 1 && !net_eq(net, &init_net)) {
net              6978 net/ipv6/addrconf.c 	net->ipv6.devconf_all = all;
net              6979 net/ipv6/addrconf.c 	net->ipv6.devconf_dflt = dflt;
net              6982 net/ipv6/addrconf.c 	err = __addrconf_sysctl_register(net, "all", NULL, all);
net              6986 net/ipv6/addrconf.c 	err = __addrconf_sysctl_register(net, "default", NULL, dflt);
net              6994 net/ipv6/addrconf.c 	__addrconf_sysctl_unregister(net, all, NETCONFA_IFINDEX_ALL);
net              7004 net/ipv6/addrconf.c static void __net_exit addrconf_exit_net(struct net *net)
net              7007 net/ipv6/addrconf.c 	__addrconf_sysctl_unregister(net, net->ipv6.devconf_dflt,
net              7009 net/ipv6/addrconf.c 	__addrconf_sysctl_unregister(net, net->ipv6.devconf_all,
net              7012 net/ipv6/addrconf.c 	kfree(net->ipv6.devconf_dflt);
net              7013 net/ipv6/addrconf.c 	kfree(net->ipv6.devconf_all);
net                17 net/ipv6/addrconf_core.c void (*__fib6_flush_trees)(struct net *);
net               132 net/ipv6/addrconf_core.c static struct dst_entry *eafnosupport_ipv6_dst_lookup_flow(struct net *net,
net               145 net/ipv6/addrconf_core.c static struct fib6_table *eafnosupport_fib6_get_table(struct net *net, u32 id)
net               151 net/ipv6/addrconf_core.c eafnosupport_fib6_table_lookup(struct net *net, struct fib6_table *table,
net               159 net/ipv6/addrconf_core.c eafnosupport_fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
net               166 net/ipv6/addrconf_core.c eafnosupport_fib6_select_path(const struct net *net, struct fib6_result *res,
net               180 net/ipv6/addrconf_core.c static int eafnosupport_fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
net               188 net/ipv6/addrconf_core.c static int eafnosupport_ip6_del_rt(struct net *net, struct fib6_info *rt)
net               127 net/ipv6/addrlabel.c static struct ip6addrlbl_entry *__ipv6_addr_label(struct net *net,
net               133 net/ipv6/addrlabel.c 	hlist_for_each_entry_rcu(p, &net->ipv6.ip6addrlbl_table.head, list) {
net               140 net/ipv6/addrlabel.c u32 ipv6_addr_label(struct net *net,
net               149 net/ipv6/addrlabel.c 	p = __ipv6_addr_label(net, addr, type, ifindex);
net               203 net/ipv6/addrlabel.c static int __ip6addrlbl_add(struct net *net, struct ip6addrlbl_entry *newp,
net               213 net/ipv6/addrlabel.c 	hlist_for_each_entry_safe(p, n,	&net->ipv6.ip6addrlbl_table.head, list) {
net               234 net/ipv6/addrlabel.c 		hlist_add_head_rcu(&newp->list, &net->ipv6.ip6addrlbl_table.head);
net               237 net/ipv6/addrlabel.c 		net->ipv6.ip6addrlbl_table.seq++;
net               242 net/ipv6/addrlabel.c static int ip6addrlbl_add(struct net *net,
net               256 net/ipv6/addrlabel.c 	spin_lock(&net->ipv6.ip6addrlbl_table.lock);
net               257 net/ipv6/addrlabel.c 	ret = __ip6addrlbl_add(net, newp, replace);
net               258 net/ipv6/addrlabel.c 	spin_unlock(&net->ipv6.ip6addrlbl_table.lock);
net               265 net/ipv6/addrlabel.c static int __ip6addrlbl_del(struct net *net,
net               276 net/ipv6/addrlabel.c 	hlist_for_each_entry_safe(p, n, &net->ipv6.ip6addrlbl_table.head, list) {
net               289 net/ipv6/addrlabel.c static int ip6addrlbl_del(struct net *net,
net               300 net/ipv6/addrlabel.c 	spin_lock(&net->ipv6.ip6addrlbl_table.lock);
net               301 net/ipv6/addrlabel.c 	ret = __ip6addrlbl_del(net, &prefix_buf, prefixlen, ifindex);
net               302 net/ipv6/addrlabel.c 	spin_unlock(&net->ipv6.ip6addrlbl_table.lock);
net               307 net/ipv6/addrlabel.c static int __net_init ip6addrlbl_net_init(struct net *net)
net               314 net/ipv6/addrlabel.c 	spin_lock_init(&net->ipv6.ip6addrlbl_table.lock);
net               315 net/ipv6/addrlabel.c 	INIT_HLIST_HEAD(&net->ipv6.ip6addrlbl_table.head);
net               318 net/ipv6/addrlabel.c 		int ret = ip6addrlbl_add(net,
net               330 net/ipv6/addrlabel.c static void __net_exit ip6addrlbl_net_exit(struct net *net)
net               336 net/ipv6/addrlabel.c 	spin_lock(&net->ipv6.ip6addrlbl_table.lock);
net               337 net/ipv6/addrlabel.c 	hlist_for_each_entry_safe(p, n, &net->ipv6.ip6addrlbl_table.head, list) {
net               341 net/ipv6/addrlabel.c 	spin_unlock(&net->ipv6.ip6addrlbl_table.lock);
net               364 net/ipv6/addrlabel.c static bool addrlbl_ifindex_exists(struct net *net, int ifindex)
net               370 net/ipv6/addrlabel.c 	dev = dev_get_by_index_rcu(net, ifindex);
net               379 net/ipv6/addrlabel.c 	struct net *net = sock_net(skb->sk);
net               410 net/ipv6/addrlabel.c 		    !addrlbl_ifindex_exists(net, ifal->ifal_index))
net               413 net/ipv6/addrlabel.c 		err = ip6addrlbl_add(net, pfx, ifal->ifal_prefixlen,
net               418 net/ipv6/addrlabel.c 		err = ip6addrlbl_del(net, pfx, ifal->ifal_prefixlen,
net               489 net/ipv6/addrlabel.c 	struct net *net = sock_net(skb->sk);
net               501 net/ipv6/addrlabel.c 	hlist_for_each_entry_rcu(p, &net->ipv6.ip6addrlbl_table.head, list) {
net               504 net/ipv6/addrlabel.c 					      net->ipv6.ip6addrlbl_table.seq,
net               573 net/ipv6/addrlabel.c 	struct net *net = sock_net(in_skb->sk);
net               593 net/ipv6/addrlabel.c 	    !addrlbl_ifindex_exists(net, ifal->ifal_index))
net               607 net/ipv6/addrlabel.c 	p = __ipv6_addr_label(net, addr, ipv6_addr_type(addr), ifal->ifal_index);
net               608 net/ipv6/addrlabel.c 	lseq = net->ipv6.ip6addrlbl_table.seq;
net               620 net/ipv6/addrlabel.c 		err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net               107 net/ipv6/af_inet6.c static int inet6_create(struct net *net, struct socket *sock, int protocol,
net               169 net/ipv6/af_inet6.c 	    !ns_capable(net->user_ns, CAP_NET_RAW))
net               180 net/ipv6/af_inet6.c 	sk = sk_alloc(net, PF_INET6, GFP_KERNEL, answer_prot, kern);
net               211 net/ipv6/af_inet6.c 	np->repflow	= net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ESTABLISHED;
net               212 net/ipv6/af_inet6.c 	sk->sk_ipv6only	= net->ipv6.sysctl.bindv6only;
net               225 net/ipv6/af_inet6.c 	if (net->ipv4.sysctl_ip_no_pmtu_disc)
net               280 net/ipv6/af_inet6.c 	struct net *net = sock_net(sk);
net               295 net/ipv6/af_inet6.c 	if (snum && snum < inet_prot_sock(net) &&
net               296 net/ipv6/af_inet6.c 	    !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE))
net               323 net/ipv6/af_inet6.c 			dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if);
net               332 net/ipv6/af_inet6.c 		chk_addr_ret = inet_addr_type_dev_table(net, dev, v4addr);
net               335 net/ipv6/af_inet6.c 		if (!inet_can_nonlocal_bind(net, inet) &&
net               365 net/ipv6/af_inet6.c 				dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if);
net               377 net/ipv6/af_inet6.c 				if (!ipv6_can_nonlocal_bind(net, inet) &&
net               378 net/ipv6/af_inet6.c 				    !ipv6_chk_addr(net, &addr->sin6_addr,
net               543 net/ipv6/af_inet6.c 	struct net *net = sock_net(sk);
net               549 net/ipv6/af_inet6.c 		return ipv6_route_ioctl(net, cmd, (void __user *)arg);
net               552 net/ipv6/af_inet6.c 		return addrconf_add_ifaddr(net, (void __user *) arg);
net               554 net/ipv6/af_inet6.c 		return addrconf_del_ifaddr(net, (void __user *) arg);
net               556 net/ipv6/af_inet6.c 		return addrconf_set_dstaddr(net, (void __user *) arg);
net               819 net/ipv6/af_inet6.c static int __net_init ipv6_init_mibs(struct net *net)
net               823 net/ipv6/af_inet6.c 	net->mib.udp_stats_in6 = alloc_percpu(struct udp_mib);
net               824 net/ipv6/af_inet6.c 	if (!net->mib.udp_stats_in6)
net               826 net/ipv6/af_inet6.c 	net->mib.udplite_stats_in6 = alloc_percpu(struct udp_mib);
net               827 net/ipv6/af_inet6.c 	if (!net->mib.udplite_stats_in6)
net               829 net/ipv6/af_inet6.c 	net->mib.ipv6_statistics = alloc_percpu(struct ipstats_mib);
net               830 net/ipv6/af_inet6.c 	if (!net->mib.ipv6_statistics)
net               835 net/ipv6/af_inet6.c 		af_inet6_stats = per_cpu_ptr(net->mib.ipv6_statistics, i);
net               840 net/ipv6/af_inet6.c 	net->mib.icmpv6_statistics = alloc_percpu(struct icmpv6_mib);
net               841 net/ipv6/af_inet6.c 	if (!net->mib.icmpv6_statistics)
net               843 net/ipv6/af_inet6.c 	net->mib.icmpv6msg_statistics = kzalloc(sizeof(struct icmpv6msg_mib),
net               845 net/ipv6/af_inet6.c 	if (!net->mib.icmpv6msg_statistics)
net               850 net/ipv6/af_inet6.c 	free_percpu(net->mib.icmpv6_statistics);
net               852 net/ipv6/af_inet6.c 	free_percpu(net->mib.ipv6_statistics);
net               854 net/ipv6/af_inet6.c 	free_percpu(net->mib.udplite_stats_in6);
net               856 net/ipv6/af_inet6.c 	free_percpu(net->mib.udp_stats_in6);
net               860 net/ipv6/af_inet6.c static void ipv6_cleanup_mibs(struct net *net)
net               862 net/ipv6/af_inet6.c 	free_percpu(net->mib.udp_stats_in6);
net               863 net/ipv6/af_inet6.c 	free_percpu(net->mib.udplite_stats_in6);
net               864 net/ipv6/af_inet6.c 	free_percpu(net->mib.ipv6_statistics);
net               865 net/ipv6/af_inet6.c 	free_percpu(net->mib.icmpv6_statistics);
net               866 net/ipv6/af_inet6.c 	kfree(net->mib.icmpv6msg_statistics);
net               869 net/ipv6/af_inet6.c static int __net_init inet6_net_init(struct net *net)
net               873 net/ipv6/af_inet6.c 	net->ipv6.sysctl.bindv6only = 0;
net               874 net/ipv6/af_inet6.c 	net->ipv6.sysctl.icmpv6_time = 1*HZ;
net               875 net/ipv6/af_inet6.c 	net->ipv6.sysctl.icmpv6_echo_ignore_all = 0;
net               876 net/ipv6/af_inet6.c 	net->ipv6.sysctl.icmpv6_echo_ignore_multicast = 0;
net               877 net/ipv6/af_inet6.c 	net->ipv6.sysctl.icmpv6_echo_ignore_anycast = 0;
net               883 net/ipv6/af_inet6.c 	bitmap_set(net->ipv6.sysctl.icmpv6_ratemask, 0, ICMPV6_ERRMSG_MAX + 1);
net               884 net/ipv6/af_inet6.c 	bitmap_clear(net->ipv6.sysctl.icmpv6_ratemask, ICMPV6_PKT_TOOBIG, 1);
net               885 net/ipv6/af_inet6.c 	net->ipv6.sysctl.icmpv6_ratemask_ptr = net->ipv6.sysctl.icmpv6_ratemask;
net               887 net/ipv6/af_inet6.c 	net->ipv6.sysctl.flowlabel_consistency = 1;
net               888 net/ipv6/af_inet6.c 	net->ipv6.sysctl.auto_flowlabels = IP6_DEFAULT_AUTO_FLOW_LABELS;
net               889 net/ipv6/af_inet6.c 	net->ipv6.sysctl.idgen_retries = 3;
net               890 net/ipv6/af_inet6.c 	net->ipv6.sysctl.idgen_delay = 1 * HZ;
net               891 net/ipv6/af_inet6.c 	net->ipv6.sysctl.flowlabel_state_ranges = 0;
net               892 net/ipv6/af_inet6.c 	net->ipv6.sysctl.max_dst_opts_cnt = IP6_DEFAULT_MAX_DST_OPTS_CNT;
net               893 net/ipv6/af_inet6.c 	net->ipv6.sysctl.max_hbh_opts_cnt = IP6_DEFAULT_MAX_HBH_OPTS_CNT;
net               894 net/ipv6/af_inet6.c 	net->ipv6.sysctl.max_dst_opts_len = IP6_DEFAULT_MAX_DST_OPTS_LEN;
net               895 net/ipv6/af_inet6.c 	net->ipv6.sysctl.max_hbh_opts_len = IP6_DEFAULT_MAX_HBH_OPTS_LEN;
net               896 net/ipv6/af_inet6.c 	atomic_set(&net->ipv6.fib6_sernum, 1);
net               898 net/ipv6/af_inet6.c 	err = ipv6_init_mibs(net);
net               902 net/ipv6/af_inet6.c 	err = udp6_proc_init(net);
net               905 net/ipv6/af_inet6.c 	err = tcp6_proc_init(net);
net               908 net/ipv6/af_inet6.c 	err = ac6_proc_init(net);
net               916 net/ipv6/af_inet6.c 	tcp6_proc_exit(net);
net               918 net/ipv6/af_inet6.c 	udp6_proc_exit(net);
net               920 net/ipv6/af_inet6.c 	ipv6_cleanup_mibs(net);
net               925 net/ipv6/af_inet6.c static void __net_exit inet6_net_exit(struct net *net)
net               928 net/ipv6/af_inet6.c 	udp6_proc_exit(net);
net               929 net/ipv6/af_inet6.c 	tcp6_proc_exit(net);
net               930 net/ipv6/af_inet6.c 	ac6_proc_exit(net);
net               932 net/ipv6/af_inet6.c 	ipv6_cleanup_mibs(net);
net               648 net/ipv6/ah6.c 	struct net *net = dev_net(skb->dev);
net               657 net/ipv6/ah6.c 	x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET6);
net               662 net/ipv6/ah6.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net               663 net/ipv6/ah6.c 			     sock_net_uid(net, NULL));
net               665 net/ipv6/ah6.c 		ip6_update_pmtu(skb, net, info, 0, 0, sock_net_uid(net, NULL));
net                52 net/ipv6/anycast.c static u32 inet6_acaddr_hash(struct net *net, const struct in6_addr *addr)
net                54 net/ipv6/anycast.c 	u32 val = ipv6_addr_hash(addr) ^ net_hash_mix(net);
net                69 net/ipv6/anycast.c 	struct net *net = sock_net(sk);
net                70 net/ipv6/anycast.c 	int	ishost = !net->ipv6.devconf_all->forwarding;
net                75 net/ipv6/anycast.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net                81 net/ipv6/anycast.c 		dev = __dev_get_by_index(net, ifindex);
net                83 net/ipv6/anycast.c 	if (ipv6_chk_addr_and_flags(net, addr, dev, true, 0, IFA_F_TENTATIVE))
net                95 net/ipv6/anycast.c 		rt = rt6_lookup(net, addr, NULL, 0, NULL, 0);
net               104 net/ipv6/anycast.c 			dev = __dev_get_by_flags(net, IFF_UP,
net               160 net/ipv6/anycast.c 	struct net *net = sock_net(sk);
net               178 net/ipv6/anycast.c 	dev = __dev_get_by_index(net, pac->acl_ifindex);
net               191 net/ipv6/anycast.c 	struct net *net = sock_net(sk);
net               206 net/ipv6/anycast.c 			dev = __dev_get_by_index(net, pac->acl_ifindex);
net               217 net/ipv6/anycast.c static void ipv6_add_acaddr_hash(struct net *net, struct ifacaddr6 *aca)
net               219 net/ipv6/anycast.c 	unsigned int hash = inet6_acaddr_hash(net, &aca->aca_addr);
net               281 net/ipv6/anycast.c 	struct net *net;
net               300 net/ipv6/anycast.c 	net = dev_net(idev->dev);
net               301 net/ipv6/anycast.c 	f6i = addrconf_f6i_alloc(net, idev, addr, true, GFP_ATOMIC);
net               322 net/ipv6/anycast.c 	ipv6_add_acaddr_hash(net, aca);
net               324 net/ipv6/anycast.c 	ip6_ins_rt(net, f6i);
net               429 net/ipv6/anycast.c bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev,
net               440 net/ipv6/anycast.c 		unsigned int hash = inet6_acaddr_hash(net, addr);
net               445 net/ipv6/anycast.c 			if (!nh_dev || !net_eq(dev_net(nh_dev), net))
net               460 net/ipv6/anycast.c bool ipv6_chk_acast_addr_src(struct net *net, struct net_device *dev,
net               463 net/ipv6/anycast.c 	return ipv6_chk_acast_addr(net,
net               482 net/ipv6/anycast.c 	struct net *net = seq_file_net(seq);
net               485 net/ipv6/anycast.c 	for_each_netdev_rcu(net, state->dev) {
net               578 net/ipv6/anycast.c int __net_init ac6_proc_init(struct net *net)
net               580 net/ipv6/anycast.c 	if (!proc_create_net("anycast6", 0444, net->proc_net, &ac6_seq_ops,
net               587 net/ipv6/anycast.c void ac6_proc_exit(struct net *net)
net               589 net/ipv6/anycast.c 	remove_proc_entry("anycast6", net->proc_net);
net               737 net/ipv6/datagram.c int ip6_datagram_send_ctl(struct net *net, struct sock *sk,
net               795 net/ipv6/datagram.c 				dev = dev_get_by_index_rcu(net, fl6->flowi6_oif);
net               807 net/ipv6/datagram.c 				if (!ipv6_can_nonlocal_bind(net, inet_sk(sk)) &&
net               808 net/ipv6/datagram.c 				    !ipv6_chk_addr_and_flags(net, &src_info->ipi6_addr,
net               811 net/ipv6/datagram.c 				    !ipv6_chk_acast_addr_src(net, dev,
net               854 net/ipv6/datagram.c 			if (!ns_capable(net->user_ns, CAP_NET_RAW)) {
net               874 net/ipv6/datagram.c 			if (!ns_capable(net->user_ns, CAP_NET_RAW)) {
net               899 net/ipv6/datagram.c 			if (!ns_capable(net->user_ns, CAP_NET_RAW)) {
net               691 net/ipv6/esp6.c 	struct net *net = dev_net(skb->dev);
net               700 net/ipv6/esp6.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net               706 net/ipv6/esp6.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net               707 net/ipv6/esp6.c 			     sock_net_uid(net, NULL));
net               709 net/ipv6/esp6.c 		ip6_update_pmtu(skb, net, info, 0, 0, sock_net_uid(net, NULL));
net               285 net/ipv6/exthdrs.c 	struct net *net = dev_net(skb->dev);
net               299 net/ipv6/exthdrs.c 	if (extlen > net->ipv6.sysctl.max_dst_opts_len)
net               319 net/ipv6/exthdrs.c 	__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               355 net/ipv6/exthdrs.c 	struct net *net = dev_net(skb->dev);
net               365 net/ipv6/exthdrs.c 	accept_seg6 = net->ipv6.devconf_all->seg6_enabled;
net               400 net/ipv6/exthdrs.c 			__skb_tunnel_rx(skb, skb->dev, net);
net               415 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               424 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               454 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               485 net/ipv6/exthdrs.c 	struct net *net = dev_net(skb->dev);
net               486 net/ipv6/exthdrs.c 	int accept_source_route = net->ipv6.devconf_all->accept_source_route;
net               495 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               504 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS);
net               522 net/ipv6/exthdrs.c 				__IP6_INC_STATS(net, idev,
net               548 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               566 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               579 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               602 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS);
net               607 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS);
net               618 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS);
net               637 net/ipv6/exthdrs.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               652 net/ipv6/exthdrs.c 	__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               717 net/ipv6/exthdrs.c static inline struct net *ipv6_skb_net(struct sk_buff *skb)
net               745 net/ipv6/exthdrs.c 	struct net *net = ipv6_skb_net(skb);
net               751 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               757 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               762 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               768 net/ipv6/exthdrs.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INTRUNCATEDPKTS);
net               824 net/ipv6/exthdrs.c 	struct net *net = dev_net(skb->dev);
net               842 net/ipv6/exthdrs.c 	if (extlen > net->ipv6.sysctl.max_hbh_opts_len)
net               922 net/ipv6/exthdrs.c 		struct net *net = NULL;
net               925 net/ipv6/exthdrs.c 			net = dev_net(skb->dev);
net               927 net/ipv6/exthdrs.c 			net = sock_net(skb->sk);
net               929 net/ipv6/exthdrs.c 		WARN_ON(!net);
net               931 net/ipv6/exthdrs.c 		if (net)
net               932 net/ipv6/exthdrs.c 			seg6_push_hmac(net, saddr, sr_phdr);
net                10 net/ipv6/fib6_notifier.c int call_fib6_notifier(struct notifier_block *nb, struct net *net,
net                15 net/ipv6/fib6_notifier.c 	return call_fib_notifier(nb, net, event_type, info);
net                18 net/ipv6/fib6_notifier.c int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
net                22 net/ipv6/fib6_notifier.c 	return call_fib_notifiers(net, event_type, info);
net                25 net/ipv6/fib6_notifier.c static unsigned int fib6_seq_read(struct net *net)
net                27 net/ipv6/fib6_notifier.c 	return fib6_tables_seq_read(net) + fib6_rules_seq_read(net);
net                30 net/ipv6/fib6_notifier.c static int fib6_dump(struct net *net, struct notifier_block *nb)
net                34 net/ipv6/fib6_notifier.c 	err = fib6_rules_dump(net, nb);
net                38 net/ipv6/fib6_notifier.c 	return fib6_tables_dump(net, nb);
net                48 net/ipv6/fib6_notifier.c int __net_init fib6_notifier_init(struct net *net)
net                52 net/ipv6/fib6_notifier.c 	ops = fib_notifier_ops_register(&fib6_notifier_ops_template, net);
net                55 net/ipv6/fib6_notifier.c 	net->ipv6.notifier_ops = ops;
net                60 net/ipv6/fib6_notifier.c void __net_exit fib6_notifier_exit(struct net *net)
net                62 net/ipv6/fib6_notifier.c 	fib_notifier_ops_unregister(net->ipv6.notifier_ops);
net                50 net/ipv6/fib6_rules.c int fib6_rules_dump(struct net *net, struct notifier_block *nb)
net                52 net/ipv6/fib6_rules.c 	return fib_rules_dump(net, nb, AF_INET6);
net                55 net/ipv6/fib6_rules.c unsigned int fib6_rules_seq_read(struct net *net)
net                57 net/ipv6/fib6_rules.c 	return fib_rules_seq_read(net, AF_INET6);
net                61 net/ipv6/fib6_rules.c int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
net                66 net/ipv6/fib6_rules.c 	if (net->ipv6.fib6_has_custom_rules) {
net                74 net/ipv6/fib6_rules.c 		l3mdev_update_flow(net, flowi6_to_flowi(fl6));
net                76 net/ipv6/fib6_rules.c 		err = fib_rules_lookup(net->ipv6.fib6_rules_ops,
net                79 net/ipv6/fib6_rules.c 		err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif,
net                81 net/ipv6/fib6_rules.c 		if (err || res->f6i == net->ipv6.fib6_null_entry)
net                82 net/ipv6/fib6_rules.c 			err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl,
net                89 net/ipv6/fib6_rules.c struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
net                93 net/ipv6/fib6_rules.c 	if (net->ipv6.fib6_has_custom_rules) {
net               103 net/ipv6/fib6_rules.c 		l3mdev_update_flow(net, flowi6_to_flowi(fl6));
net               105 net/ipv6/fib6_rules.c 		fib_rules_lookup(net->ipv6.fib6_rules_ops,
net               113 net/ipv6/fib6_rules.c 		rt = lookup(net, net->ipv6.fib6_local_tbl, fl6, skb, flags);
net               114 net/ipv6/fib6_rules.c 		if (rt != net->ipv6.ip6_null_entry && rt->dst.error != -EAGAIN)
net               117 net/ipv6/fib6_rules.c 		rt = lookup(net, net->ipv6.fib6_main_tbl, fl6, skb, flags);
net               124 net/ipv6/fib6_rules.c 		dst_hold(&net->ipv6.ip6_null_entry->dst);
net               125 net/ipv6/fib6_rules.c 	return &net->ipv6.ip6_null_entry->dst;
net               128 net/ipv6/fib6_rules.c static int fib6_rule_saddr(struct net *net, struct fib_rule *rule, int flags,
net               140 net/ipv6/fib6_rules.c 		if (ipv6_dev_get_saddr(net, dev, &flp6->daddr,
net               158 net/ipv6/fib6_rules.c 	struct net *net = rule->fr_net;
net               176 net/ipv6/fib6_rules.c 	table = fib6_get_table(net, tb_id);
net               181 net/ipv6/fib6_rules.c 	err = fib6_table_lookup(net, table, *oif, flp6, res, flags);
net               182 net/ipv6/fib6_rules.c 	if (!err && res->f6i != net->ipv6.fib6_null_entry)
net               183 net/ipv6/fib6_rules.c 		err = fib6_rule_saddr(net, rule, flags, flp6,
net               198 net/ipv6/fib6_rules.c 	struct net *net = rule->fr_net;
net               208 net/ipv6/fib6_rules.c 		rt = net->ipv6.ip6_null_entry;
net               213 net/ipv6/fib6_rules.c 		rt = net->ipv6.ip6_blk_hole_entry;
net               217 net/ipv6/fib6_rules.c 		rt = net->ipv6.ip6_prohibit_entry;
net               222 net/ipv6/fib6_rules.c 	table = fib6_get_table(net, tb_id);
net               228 net/ipv6/fib6_rules.c 	rt = lookup(net, table, flp6, arg->lookup_data, flags);
net               229 net/ipv6/fib6_rules.c 	if (rt != net->ipv6.ip6_null_entry) {
net               230 net/ipv6/fib6_rules.c 		err = fib6_rule_saddr(net, rule, flags, flp6,
net               345 net/ipv6/fib6_rules.c 	struct net *net = sock_net(skb->sk);
net               354 net/ipv6/fib6_rules.c 		if (fib6_new_table(net, rule->table) == NULL) {
net               371 net/ipv6/fib6_rules.c 		net->ipv6.fib6_rules_require_fldissect++;
net               373 net/ipv6/fib6_rules.c 	net->ipv6.fib6_has_custom_rules = true;
net               381 net/ipv6/fib6_rules.c 	struct net *net = rule->fr_net;
net               383 net/ipv6/fib6_rules.c 	if (net->ipv6.fib6_rules_require_fldissect &&
net               385 net/ipv6/fib6_rules.c 		net->ipv6.fib6_rules_require_fldissect--;
net               459 net/ipv6/fib6_rules.c static int __net_init fib6_rules_net_init(struct net *net)
net               464 net/ipv6/fib6_rules.c 	ops = fib_rules_register(&fib6_rules_ops_template, net);
net               476 net/ipv6/fib6_rules.c 	net->ipv6.fib6_rules_ops = ops;
net               477 net/ipv6/fib6_rules.c 	net->ipv6.fib6_rules_require_fldissect = 0;
net               486 net/ipv6/fib6_rules.c static void __net_exit fib6_rules_net_exit(struct net *net)
net               489 net/ipv6/fib6_rules.c 	fib_rules_unregister(net->ipv6.fib6_rules_ops);
net                78 net/ipv6/icmp.c static struct sock *icmpv6_sk(struct net *net)
net                80 net/ipv6/icmp.c 	return this_cpu_read(*net->ipv6.icmp_sk);
net                88 net/ipv6/icmp.c 	struct net *net = dev_net(skb->dev);
net                91 net/ipv6/icmp.c 		ip6_update_pmtu(skb, net, info, skb->dev->ifindex, 0, sock_net_uid(net, NULL));
net                93 net/ipv6/icmp.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net                94 net/ipv6/icmp.c 			     sock_net_uid(net, NULL));
net               112 net/ipv6/icmp.c static __inline__ struct sock *icmpv6_xmit_lock(struct net *net)
net               116 net/ipv6/icmp.c 	sk = icmpv6_sk(net);
net               167 net/ipv6/icmp.c static bool icmpv6_mask_allow(struct net *net, int type)
net               173 net/ipv6/icmp.c 	if (!test_bit(type, net->ipv6.sysctl.icmpv6_ratemask))
net               179 net/ipv6/icmp.c static bool icmpv6_global_allow(struct net *net, int type)
net               181 net/ipv6/icmp.c 	if (icmpv6_mask_allow(net, type))
net               196 net/ipv6/icmp.c 	struct net *net = sock_net(sk);
net               200 net/ipv6/icmp.c 	if (icmpv6_mask_allow(net, type))
net               208 net/ipv6/icmp.c 	dst = ip6_route_output(net, sk, fl6);
net               210 net/ipv6/icmp.c 		IP6_INC_STATS(net, ip6_dst_idev(dst),
net               216 net/ipv6/icmp.c 		int tmo = net->ipv6.sysctl.icmpv6_time;
net               223 net/ipv6/icmp.c 		peer = inet_getpeer_v6(net->ipv6.peers, &fl6->daddr, 1);
net               332 net/ipv6/icmp.c static struct dst_entry *icmpv6_route_lookup(struct net *net,
net               341 net/ipv6/icmp.c 	err = ip6_dst_lookup(net, sk, &dst, fl6);
net               358 net/ipv6/icmp.c 	dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), sk, 0);
net               373 net/ipv6/icmp.c 	err = ip6_dst_lookup(net, sk, &dst2, &fl2);
net               377 net/ipv6/icmp.c 	dst2 = xfrm_lookup(net, dst2, flowi6_to_flowi(&fl2), sk, XFRM_LOOKUP_ICMP);
net               429 net/ipv6/icmp.c 	struct net *net;
net               448 net/ipv6/icmp.c 	net = dev_net(skb->dev);
net               449 net/ipv6/icmp.c 	mark = IP6_REPLY_MARK(net, skb->mark);
net               458 net/ipv6/icmp.c 	if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) ||
net               459 net/ipv6/icmp.c 	    ipv6_chk_acast_addr_src(net, skb->dev, &hdr->daddr))
net               514 net/ipv6/icmp.c 	if (!(skb->dev->flags & IFF_LOOPBACK) && !icmpv6_global_allow(net, type))
net               530 net/ipv6/icmp.c 	fl6.flowi6_uid = sock_net_uid(net, NULL);
net               531 net/ipv6/icmp.c 	fl6.mp_hash = rt6_multipath_hash(net, &fl6, skb, NULL);
net               534 net/ipv6/icmp.c 	sk = icmpv6_xmit_lock(net);
net               557 net/ipv6/icmp.c 	dst = icmpv6_route_lookup(net, skb, sk, &fl6);
net               583 net/ipv6/icmp.c 		ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTERRORS);
net               674 net/ipv6/icmp.c 	struct net *net = dev_net(skb->dev);
net               685 net/ipv6/icmp.c 	u32 mark = IP6_REPLY_MARK(net, skb->mark);
net               689 net/ipv6/icmp.c 	    net->ipv6.sysctl.icmpv6_echo_ignore_multicast)
net               695 net/ipv6/icmp.c 	if (acast && net->ipv6.sysctl.icmpv6_echo_ignore_anycast)
net               699 net/ipv6/icmp.c 	    !(net->ipv6.sysctl.anycast_src_echo_reply && acast))
net               706 net/ipv6/icmp.c 	if (net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES)
net               716 net/ipv6/icmp.c 	fl6.flowi6_uid = sock_net_uid(net, NULL);
net               720 net/ipv6/icmp.c 	sk = icmpv6_xmit_lock(net);
net               731 net/ipv6/icmp.c 	if (ip6_dst_lookup(net, sk, &dst, &fl6))
net               733 net/ipv6/icmp.c 	dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), sk, 0);
net               738 net/ipv6/icmp.c 	if ((!(skb->dev->flags & IFF_LOOPBACK) && !icmpv6_global_allow(net, ICMPV6_ECHO_REPLY)) ||
net               756 net/ipv6/icmp.c 		__ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTERRORS);
net               776 net/ipv6/icmp.c 	struct net *net = dev_net(skb->dev);
net               811 net/ipv6/icmp.c 	__ICMP6_INC_STATS(net, __in6_dev_get(skb->dev), ICMP6_MIB_INERRORS);
net               820 net/ipv6/icmp.c 	struct net *net = dev_net(skb->dev);
net               870 net/ipv6/icmp.c 		if (!net->ipv6.sysctl.icmpv6_echo_ignore_all)
net               973 net/ipv6/icmp.c static void __net_exit icmpv6_sk_exit(struct net *net)
net               978 net/ipv6/icmp.c 		inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv6.icmp_sk, i));
net               979 net/ipv6/icmp.c 	free_percpu(net->ipv6.icmp_sk);
net               982 net/ipv6/icmp.c static int __net_init icmpv6_sk_init(struct net *net)
net               987 net/ipv6/icmp.c 	net->ipv6.icmp_sk = alloc_percpu(struct sock *);
net               988 net/ipv6/icmp.c 	if (!net->ipv6.icmp_sk)
net               993 net/ipv6/icmp.c 					   SOCK_RAW, IPPROTO_ICMPV6, net);
net              1000 net/ipv6/icmp.c 		*per_cpu_ptr(net->ipv6.icmp_sk, i) = sk;
net              1010 net/ipv6/icmp.c 	icmpv6_sk_exit(net);
net              1159 net/ipv6/icmp.c struct ctl_table * __net_init ipv6_icmp_sysctl_init(struct net *net)
net              1168 net/ipv6/icmp.c 		table[0].data = &net->ipv6.sysctl.icmpv6_time;
net              1169 net/ipv6/icmp.c 		table[1].data = &net->ipv6.sysctl.icmpv6_echo_ignore_all;
net              1170 net/ipv6/icmp.c 		table[2].data = &net->ipv6.sysctl.icmpv6_echo_ignore_multicast;
net              1171 net/ipv6/icmp.c 		table[3].data = &net->ipv6.sysctl.icmpv6_echo_ignore_anycast;
net              1172 net/ipv6/icmp.c 		table[4].data = &net->ipv6.sysctl.icmpv6_ratemask_ptr;
net               115 net/ipv6/ila/ila.h int ila_xlat_init_net(struct net *net);
net               116 net/ipv6/ila/ila.h void ila_xlat_exit_net(struct net *net);
net                38 net/ipv6/ila/ila_lwt.c static int ila_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net                58 net/ipv6/ila/ila_lwt.c 		return orig_dst->lwtstate->orig_output(net, sk, skb);
net                76 net/ipv6/ila/ila_lwt.c 		dst = ip6_route_output(net, NULL, &fl6);
net                83 net/ipv6/ila/ila_lwt.c 		dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
net                94 net/ipv6/ila/ila_lwt.c 	return dst_output(net, sk, skb);
net                60 net/ipv6/ila/ila_main.c static __net_init int ila_init_net(struct net *net)
net                64 net/ipv6/ila/ila_main.c 	err = ila_xlat_init_net(net);
net                74 net/ipv6/ila/ila_main.c static __net_exit void ila_exit_net(struct net *net)
net                76 net/ipv6/ila/ila_main.c 	ila_xlat_exit_net(net);
net               204 net/ipv6/ila/ila_xlat.c static int ila_add_mapping(struct net *net, struct ila_xlat_params *xp)
net               206 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               215 net/ipv6/ila/ila_xlat.c 		err = nf_register_net_hooks(net, ila_nf_hook_ops,
net               283 net/ipv6/ila/ila_xlat.c static int ila_del_mapping(struct net *net, struct ila_xlat_params *xp)
net               285 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               347 net/ipv6/ila/ila_xlat.c 	struct net *net = genl_info_net(info);
net               355 net/ipv6/ila/ila_xlat.c 	return ila_add_mapping(net, &p);
net               360 net/ipv6/ila/ila_xlat.c 	struct net *net = genl_info_net(info);
net               368 net/ipv6/ila/ila_xlat.c 	ila_del_mapping(net, &xp);
net               381 net/ipv6/ila/ila_xlat.c 	struct net *net = genl_info_net(info);
net               382 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               463 net/ipv6/ila/ila_xlat.c 	struct net *net = genl_info_net(info);
net               464 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               507 net/ipv6/ila/ila_xlat.c 	struct net *net = sock_net(cb->skb->sk);
net               508 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               606 net/ipv6/ila/ila_xlat.c int ila_xlat_init_net(struct net *net)
net               608 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               620 net/ipv6/ila/ila_xlat.c void ila_xlat_exit_net(struct net *net)
net               622 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net               629 net/ipv6/ila/ila_xlat.c 		nf_unregister_net_hooks(net, ila_nf_hook_ops,
net               637 net/ipv6/ila/ila_xlat.c 	struct net *net = dev_net(skb->dev);
net               638 net/ipv6/ila/ila_xlat.c 	struct ila_net *ilan = net_generic(net, ila_net_id);
net                24 net/ipv6/inet6_hashtables.c u32 inet6_ehashfn(const struct net *net,
net                40 net/ipv6/inet6_hashtables.c 			       inet6_ehash_secret + net_hash_mix(net));
net                49 net/ipv6/inet6_hashtables.c struct sock *__inet6_lookup_established(struct net *net,
net                63 net/ipv6/inet6_hashtables.c 	unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport);
net                72 net/ipv6/inet6_hashtables.c 		if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif, sdif))
net                77 net/ipv6/inet6_hashtables.c 		if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif, sdif))) {
net                92 net/ipv6/inet6_hashtables.c static inline int compute_score(struct sock *sk, struct net *net,
net                99 net/ipv6/inet6_hashtables.c 	if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum &&
net               104 net/ipv6/inet6_hashtables.c 		if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif))
net               115 net/ipv6/inet6_hashtables.c static struct sock *inet6_lhash2_lookup(struct net *net,
net               122 net/ipv6/inet6_hashtables.c 	bool exact_dif = inet6_exact_dif_match(net, skb);
net               130 net/ipv6/inet6_hashtables.c 		score = compute_score(sk, net, hnum, daddr, dif, sdif,
net               134 net/ipv6/inet6_hashtables.c 				phash = inet6_ehashfn(net, daddr, hnum,
net               149 net/ipv6/inet6_hashtables.c struct sock *inet6_lookup_listener(struct net *net,
net               160 net/ipv6/inet6_hashtables.c 	hash2 = ipv6_portaddr_hash(net, daddr, hnum);
net               163 net/ipv6/inet6_hashtables.c 	result = inet6_lhash2_lookup(net, ilb2, skb, doff,
net               170 net/ipv6/inet6_hashtables.c 	hash2 = ipv6_portaddr_hash(net, &in6addr_any, hnum);
net               173 net/ipv6/inet6_hashtables.c 	result = inet6_lhash2_lookup(net, ilb2, skb, doff,
net               183 net/ipv6/inet6_hashtables.c struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
net               192 net/ipv6/inet6_hashtables.c 	sk = __inet6_lookup(net, hashinfo, skb, doff, saddr, sport, daddr,
net               209 net/ipv6/inet6_hashtables.c 	struct net *net = sock_net(sk);
net               210 net/ipv6/inet6_hashtables.c 	const int sdif = l3mdev_master_ifindex_by_index(net, dif);
net               212 net/ipv6/inet6_hashtables.c 	const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr,
net               226 net/ipv6/inet6_hashtables.c 		if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports,
net               247 net/ipv6/inet6_hashtables.c 		__NET_INC_STATS(net, LINUX_MIB_TIMEWAITRECYCLED);
net                42 net/ipv6/ip6_fib.c 	struct net *net;
net                55 net/ipv6/ip6_fib.c static struct fib6_info *fib6_find_prefix(struct net *net,
net                58 net/ipv6/ip6_fib.c static struct fib6_node *fib6_repair_tree(struct net *net,
net                61 net/ipv6/ip6_fib.c static int fib6_walk(struct net *net, struct fib6_walker *w);
net                73 net/ipv6/ip6_fib.c #define FOR_WALKERS(net, w) \
net                74 net/ipv6/ip6_fib.c 	list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
net                76 net/ipv6/ip6_fib.c static void fib6_walker_link(struct net *net, struct fib6_walker *w)
net                78 net/ipv6/ip6_fib.c 	write_lock_bh(&net->ipv6.fib6_walker_lock);
net                79 net/ipv6/ip6_fib.c 	list_add(&w->lh, &net->ipv6.fib6_walkers);
net                80 net/ipv6/ip6_fib.c 	write_unlock_bh(&net->ipv6.fib6_walker_lock);
net                83 net/ipv6/ip6_fib.c static void fib6_walker_unlink(struct net *net, struct fib6_walker *w)
net                85 net/ipv6/ip6_fib.c 	write_lock_bh(&net->ipv6.fib6_walker_lock);
net                87 net/ipv6/ip6_fib.c 	write_unlock_bh(&net->ipv6.fib6_walker_lock);
net                90 net/ipv6/ip6_fib.c static int fib6_new_sernum(struct net *net)
net                95 net/ipv6/ip6_fib.c 		old = atomic_read(&net->ipv6.fib6_sernum);
net                97 net/ipv6/ip6_fib.c 	} while (atomic_cmpxchg(&net->ipv6.fib6_sernum,
net               106 net/ipv6/ip6_fib.c void fib6_update_sernum(struct net *net, struct fib6_info *f6i)
net               113 net/ipv6/ip6_fib.c 		fn->fn_sernum = fib6_new_sernum(net);
net               181 net/ipv6/ip6_fib.c static struct fib6_node *node_alloc(struct net *net)
net               187 net/ipv6/ip6_fib.c 		net->ipv6.rt6_stats->fib_nodes++;
net               192 net/ipv6/ip6_fib.c static void node_free_immediate(struct net *net, struct fib6_node *fn)
net               195 net/ipv6/ip6_fib.c 	net->ipv6.rt6_stats->fib_nodes--;
net               205 net/ipv6/ip6_fib.c static void node_free(struct net *net, struct fib6_node *fn)
net               208 net/ipv6/ip6_fib.c 	net->ipv6.rt6_stats->fib_nodes--;
net               217 net/ipv6/ip6_fib.c static void fib6_link_table(struct net *net, struct fib6_table *tb)
net               232 net/ipv6/ip6_fib.c 	hlist_add_head_rcu(&tb->tb6_hlist, &net->ipv6.fib_table_hash[h]);
net               237 net/ipv6/ip6_fib.c static struct fib6_table *fib6_alloc_table(struct net *net, u32 id)
net               245 net/ipv6/ip6_fib.c 				   net->ipv6.fib6_null_entry);
net               253 net/ipv6/ip6_fib.c struct fib6_table *fib6_new_table(struct net *net, u32 id)
net               259 net/ipv6/ip6_fib.c 	tb = fib6_get_table(net, id);
net               263 net/ipv6/ip6_fib.c 	tb = fib6_alloc_table(net, id);
net               265 net/ipv6/ip6_fib.c 		fib6_link_table(net, tb);
net               271 net/ipv6/ip6_fib.c struct fib6_table *fib6_get_table(struct net *net, u32 id)
net               281 net/ipv6/ip6_fib.c 	head = &net->ipv6.fib_table_hash[h];
net               294 net/ipv6/ip6_fib.c static void __net_init fib6_tables_init(struct net *net)
net               296 net/ipv6/ip6_fib.c 	fib6_link_table(net, net->ipv6.fib6_main_tbl);
net               297 net/ipv6/ip6_fib.c 	fib6_link_table(net, net->ipv6.fib6_local_tbl);
net               301 net/ipv6/ip6_fib.c struct fib6_table *fib6_new_table(struct net *net, u32 id)
net               303 net/ipv6/ip6_fib.c 	return fib6_get_table(net, id);
net               306 net/ipv6/ip6_fib.c struct fib6_table *fib6_get_table(struct net *net, u32 id)
net               308 net/ipv6/ip6_fib.c 	  return net->ipv6.fib6_main_tbl;
net               311 net/ipv6/ip6_fib.c struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
net               317 net/ipv6/ip6_fib.c 	rt = lookup(net, net->ipv6.fib6_main_tbl, fl6, skb, flags);
net               320 net/ipv6/ip6_fib.c 		rt = net->ipv6.ip6_null_entry;
net               329 net/ipv6/ip6_fib.c int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
net               332 net/ipv6/ip6_fib.c 	return fib6_table_lookup(net, net->ipv6.fib6_main_tbl, oif, fl6,
net               336 net/ipv6/ip6_fib.c static void __net_init fib6_tables_init(struct net *net)
net               338 net/ipv6/ip6_fib.c 	fib6_link_table(net, net->ipv6.fib6_main_tbl);
net               343 net/ipv6/ip6_fib.c unsigned int fib6_tables_seq_read(struct net *net)
net               349 net/ipv6/ip6_fib.c 		struct hlist_head *head = &net->ipv6.fib_table_hash[h];
net               360 net/ipv6/ip6_fib.c static int call_fib6_entry_notifier(struct notifier_block *nb, struct net *net,
net               368 net/ipv6/ip6_fib.c 	return call_fib6_notifier(nb, net, event_type, &info.info);
net               371 net/ipv6/ip6_fib.c int call_fib6_entry_notifiers(struct net *net,
net               382 net/ipv6/ip6_fib.c 	return call_fib6_notifiers(net, event_type, &info.info);
net               385 net/ipv6/ip6_fib.c int call_fib6_multipath_entry_notifiers(struct net *net,
net               398 net/ipv6/ip6_fib.c 	return call_fib6_notifiers(net, event_type, &info.info);
net               402 net/ipv6/ip6_fib.c 	struct net *net;
net               408 net/ipv6/ip6_fib.c 	if (rt == arg->net->ipv6.fib6_null_entry)
net               410 net/ipv6/ip6_fib.c 	call_fib6_entry_notifier(arg->nb, arg->net, FIB_EVENT_ENTRY_ADD, rt);
net               423 net/ipv6/ip6_fib.c static void fib6_table_dump(struct net *net, struct fib6_table *tb,
net               428 net/ipv6/ip6_fib.c 	fib6_walk(net, w);
net               433 net/ipv6/ip6_fib.c int fib6_tables_dump(struct net *net, struct notifier_block *nb)
net               444 net/ipv6/ip6_fib.c 	arg.net = net;
net               449 net/ipv6/ip6_fib.c 		struct hlist_head *head = &net->ipv6.fib_table_hash[h];
net               453 net/ipv6/ip6_fib.c 			fib6_table_dump(net, tb, w);
net               497 net/ipv6/ip6_fib.c 	struct net *net = sock_net(cb->skb->sk);
net               503 net/ipv6/ip6_fib.c 			fib6_walker_unlink(net, w);
net               521 net/ipv6/ip6_fib.c 	struct net *net = sock_net(skb->sk);
net               534 net/ipv6/ip6_fib.c 		res = fib6_walk(net, w);
net               555 net/ipv6/ip6_fib.c 			fib6_walker_unlink(net, w);
net               568 net/ipv6/ip6_fib.c 	struct net *net = sock_net(skb->sk);
net               579 net/ipv6/ip6_fib.c 		err = ip_valid_fib_dump_req(net, nlh, &arg.filter, cb);
net               610 net/ipv6/ip6_fib.c 	arg.net = net;
net               614 net/ipv6/ip6_fib.c 		tb = fib6_get_table(net, arg.filter.table_id);
net               637 net/ipv6/ip6_fib.c 		head = &net->ipv6.fib_table_hash[h];
net               685 net/ipv6/ip6_fib.c static struct fib6_node *fib6_add_1(struct net *net,
net               739 net/ipv6/ip6_fib.c 				   net->ipv6.fib6_null_entry) {
net               783 net/ipv6/ip6_fib.c 	ln = node_alloc(net);
net               824 net/ipv6/ip6_fib.c 		in = node_alloc(net);
net               825 net/ipv6/ip6_fib.c 		ln = node_alloc(net);
net               829 net/ipv6/ip6_fib.c 				node_free_immediate(net, in);
net               831 net/ipv6/ip6_fib.c 				node_free_immediate(net, ln);
net               876 net/ipv6/ip6_fib.c 		ln = node_alloc(net);
net               972 net/ipv6/ip6_fib.c 			  struct net *net)
net               993 net/ipv6/ip6_fib.c 				new_leaf = fib6_find_prefix(net, table, fn);
net              1253 net/ipv6/ip6_fib.c static void fib6_start_gc(struct net *net, struct fib6_info *rt)
net              1255 net/ipv6/ip6_fib.c 	if (!timer_pending(&net->ipv6.ip6_fib_timer) &&
net              1257 net/ipv6/ip6_fib.c 		mod_timer(&net->ipv6.ip6_fib_timer,
net              1258 net/ipv6/ip6_fib.c 			  jiffies + net->ipv6.sysctl.ip6_rt_gc_interval);
net              1261 net/ipv6/ip6_fib.c void fib6_force_start_gc(struct net *net)
net              1263 net/ipv6/ip6_fib.c 	if (!timer_pending(&net->ipv6.ip6_fib_timer))
net              1264 net/ipv6/ip6_fib.c 		mod_timer(&net->ipv6.ip6_fib_timer,
net              1265 net/ipv6/ip6_fib.c 			  jiffies + net->ipv6.sysctl.ip6_rt_gc_interval);
net              1283 net/ipv6/ip6_fib.c void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt)
net              1285 net/ipv6/ip6_fib.c 	__fib6_update_sernum_upto_root(rt, fib6_new_sernum(net));
net              1289 net/ipv6/ip6_fib.c void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i)
net              1292 net/ipv6/ip6_fib.c 	fib6_update_sernum_upto_root(net, f6i);
net              1673 net/ipv6/ip6_fib.c static struct fib6_info *fib6_find_prefix(struct net *net,
net              1680 net/ipv6/ip6_fib.c 		return net->ipv6.fib6_null_entry;
net              1705 net/ipv6/ip6_fib.c static struct fib6_node *fib6_repair_tree(struct net *net,
net              1717 net/ipv6/ip6_fib.c 		rcu_assign_pointer(fn->leaf, net->ipv6.fib6_null_entry);
net              1758 net/ipv6/ip6_fib.c 			new_fn_leaf = fib6_find_prefix(net, table, fn);
net              1762 net/ipv6/ip6_fib.c 				new_fn_leaf = net->ipv6.fib6_null_entry;
net              1793 net/ipv6/ip6_fib.c 		read_lock(&net->ipv6.fib6_walker_lock);
net              1794 net/ipv6/ip6_fib.c 		FOR_WALKERS(net, w) {
net              1814 net/ipv6/ip6_fib.c 		read_unlock(&net->ipv6.fib6_walker_lock);
net              1816 net/ipv6/ip6_fib.c 		node_free(net, fn);
net              1832 net/ipv6/ip6_fib.c 	struct net *net = info->nl_net;
net              1839 net/ipv6/ip6_fib.c 	net->ipv6.rt6_stats->fib_rt_entries--;
net              1840 net/ipv6/ip6_fib.c 	net->ipv6.rt6_stats->fib_discarded_routes++;
net              1862 net/ipv6/ip6_fib.c 	read_lock(&net->ipv6.fib6_walker_lock);
net              1863 net/ipv6/ip6_fib.c 	FOR_WALKERS(net, w) {
net              1872 net/ipv6/ip6_fib.c 	read_unlock(&net->ipv6.fib6_walker_lock);
net              1881 net/ipv6/ip6_fib.c 			net->ipv6.rt6_stats->fib_route_nodes--;
net              1883 net/ipv6/ip6_fib.c 		fn = fib6_repair_tree(net, table, fn);
net              1886 net/ipv6/ip6_fib.c 	fib6_purge_rt(rt, fn, net);
net              1889 net/ipv6/ip6_fib.c 		call_fib6_entry_notifiers(net, FIB_EVENT_ENTRY_DEL, rt, NULL);
net              1902 net/ipv6/ip6_fib.c 	struct net *net = info->nl_net;
net              1906 net/ipv6/ip6_fib.c 	if (!fn || rt == net->ipv6.fib6_null_entry)
net              2043 net/ipv6/ip6_fib.c static int fib6_walk(struct net *net, struct fib6_walker *w)
net              2050 net/ipv6/ip6_fib.c 	fib6_walker_link(net, w);
net              2053 net/ipv6/ip6_fib.c 		fib6_walker_unlink(net, w);
net              2063 net/ipv6/ip6_fib.c 		.nl_net = c->net,
net              2114 net/ipv6/ip6_fib.c static void fib6_clean_tree(struct net *net, struct fib6_node *root,
net              2128 net/ipv6/ip6_fib.c 	c.net = net;
net              2131 net/ipv6/ip6_fib.c 	fib6_walk(net, &c.w);
net              2134 net/ipv6/ip6_fib.c static void __fib6_clean_all(struct net *net,
net              2144 net/ipv6/ip6_fib.c 		head = &net->ipv6.fib_table_hash[h];
net              2147 net/ipv6/ip6_fib.c 			fib6_clean_tree(net, &table->tb6_root,
net              2155 net/ipv6/ip6_fib.c void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *),
net              2158 net/ipv6/ip6_fib.c 	__fib6_clean_all(net, func, FIB6_NO_SERNUM_CHANGE, arg, false);
net              2161 net/ipv6/ip6_fib.c void fib6_clean_all_skip_notify(struct net *net,
net              2165 net/ipv6/ip6_fib.c 	__fib6_clean_all(net, func, FIB6_NO_SERNUM_CHANGE, arg, true);
net              2168 net/ipv6/ip6_fib.c static void fib6_flush_trees(struct net *net)
net              2170 net/ipv6/ip6_fib.c 	int new_sernum = fib6_new_sernum(net);
net              2172 net/ipv6/ip6_fib.c 	__fib6_clean_all(net, NULL, new_sernum, NULL, false);
net              2206 net/ipv6/ip6_fib.c void fib6_run_gc(unsigned long expires, struct net *net, bool force)
net              2212 net/ipv6/ip6_fib.c 		spin_lock_bh(&net->ipv6.fib6_gc_lock);
net              2213 net/ipv6/ip6_fib.c 	} else if (!spin_trylock_bh(&net->ipv6.fib6_gc_lock)) {
net              2214 net/ipv6/ip6_fib.c 		mod_timer(&net->ipv6.ip6_fib_timer, jiffies + HZ);
net              2218 net/ipv6/ip6_fib.c 			  net->ipv6.sysctl.ip6_rt_gc_interval;
net              2221 net/ipv6/ip6_fib.c 	fib6_clean_all(net, fib6_age, &gc_args);
net              2223 net/ipv6/ip6_fib.c 	net->ipv6.ip6_rt_last_gc = now;
net              2226 net/ipv6/ip6_fib.c 		mod_timer(&net->ipv6.ip6_fib_timer,
net              2228 net/ipv6/ip6_fib.c 					+ net->ipv6.sysctl.ip6_rt_gc_interval));
net              2230 net/ipv6/ip6_fib.c 		del_timer(&net->ipv6.ip6_fib_timer);
net              2231 net/ipv6/ip6_fib.c 	spin_unlock_bh(&net->ipv6.fib6_gc_lock);
net              2236 net/ipv6/ip6_fib.c 	struct net *arg = from_timer(arg, t, ipv6.ip6_fib_timer);
net              2241 net/ipv6/ip6_fib.c static int __net_init fib6_net_init(struct net *net)
net              2246 net/ipv6/ip6_fib.c 	err = fib6_notifier_init(net);
net              2250 net/ipv6/ip6_fib.c 	spin_lock_init(&net->ipv6.fib6_gc_lock);
net              2251 net/ipv6/ip6_fib.c 	rwlock_init(&net->ipv6.fib6_walker_lock);
net              2252 net/ipv6/ip6_fib.c 	INIT_LIST_HEAD(&net->ipv6.fib6_walkers);
net              2253 net/ipv6/ip6_fib.c 	timer_setup(&net->ipv6.ip6_fib_timer, fib6_gc_timer_cb, 0);
net              2255 net/ipv6/ip6_fib.c 	net->ipv6.rt6_stats = kzalloc(sizeof(*net->ipv6.rt6_stats), GFP_KERNEL);
net              2256 net/ipv6/ip6_fib.c 	if (!net->ipv6.rt6_stats)
net              2262 net/ipv6/ip6_fib.c 	net->ipv6.fib_table_hash = kzalloc(size, GFP_KERNEL);
net              2263 net/ipv6/ip6_fib.c 	if (!net->ipv6.fib_table_hash)
net              2266 net/ipv6/ip6_fib.c 	net->ipv6.fib6_main_tbl = kzalloc(sizeof(*net->ipv6.fib6_main_tbl),
net              2268 net/ipv6/ip6_fib.c 	if (!net->ipv6.fib6_main_tbl)
net              2271 net/ipv6/ip6_fib.c 	net->ipv6.fib6_main_tbl->tb6_id = RT6_TABLE_MAIN;
net              2272 net/ipv6/ip6_fib.c 	rcu_assign_pointer(net->ipv6.fib6_main_tbl->tb6_root.leaf,
net              2273 net/ipv6/ip6_fib.c 			   net->ipv6.fib6_null_entry);
net              2274 net/ipv6/ip6_fib.c 	net->ipv6.fib6_main_tbl->tb6_root.fn_flags =
net              2276 net/ipv6/ip6_fib.c 	inet_peer_base_init(&net->ipv6.fib6_main_tbl->tb6_peers);
net              2279 net/ipv6/ip6_fib.c 	net->ipv6.fib6_local_tbl = kzalloc(sizeof(*net->ipv6.fib6_local_tbl),
net              2281 net/ipv6/ip6_fib.c 	if (!net->ipv6.fib6_local_tbl)
net              2283 net/ipv6/ip6_fib.c 	net->ipv6.fib6_local_tbl->tb6_id = RT6_TABLE_LOCAL;
net              2284 net/ipv6/ip6_fib.c 	rcu_assign_pointer(net->ipv6.fib6_local_tbl->tb6_root.leaf,
net              2285 net/ipv6/ip6_fib.c 			   net->ipv6.fib6_null_entry);
net              2286 net/ipv6/ip6_fib.c 	net->ipv6.fib6_local_tbl->tb6_root.fn_flags =
net              2288 net/ipv6/ip6_fib.c 	inet_peer_base_init(&net->ipv6.fib6_local_tbl->tb6_peers);
net              2290 net/ipv6/ip6_fib.c 	fib6_tables_init(net);
net              2296 net/ipv6/ip6_fib.c 	kfree(net->ipv6.fib6_main_tbl);
net              2299 net/ipv6/ip6_fib.c 	kfree(net->ipv6.fib_table_hash);
net              2301 net/ipv6/ip6_fib.c 	kfree(net->ipv6.rt6_stats);
net              2303 net/ipv6/ip6_fib.c 	fib6_notifier_exit(net);
net              2307 net/ipv6/ip6_fib.c static void fib6_net_exit(struct net *net)
net              2311 net/ipv6/ip6_fib.c 	del_timer_sync(&net->ipv6.ip6_fib_timer);
net              2314 net/ipv6/ip6_fib.c 		struct hlist_head *head = &net->ipv6.fib_table_hash[i];
net              2324 net/ipv6/ip6_fib.c 	kfree(net->ipv6.fib_table_hash);
net              2325 net/ipv6/ip6_fib.c 	kfree(net->ipv6.rt6_stats);
net              2326 net/ipv6/ip6_fib.c 	fib6_notifier_exit(net);
net              2425 net/ipv6/ip6_fib.c 				      struct net *net)
net              2435 net/ipv6/ip6_fib.c 	fib6_walker_link(net, &iter->w);
net              2439 net/ipv6/ip6_fib.c 						    struct net *net)
net              2454 net/ipv6/ip6_fib.c 			hlist_first_rcu(&net->ipv6.fib_table_hash[h++]));
net              2474 net/ipv6/ip6_fib.c 	struct net *net = seq_file_net(seq);
net              2496 net/ipv6/ip6_fib.c 		fib6_walker_unlink(net, &iter->w);
net              2499 net/ipv6/ip6_fib.c 	fib6_walker_unlink(net, &iter->w);
net              2501 net/ipv6/ip6_fib.c 	iter->tbl = ipv6_route_seq_next_table(iter->tbl, net);
net              2505 net/ipv6/ip6_fib.c 	ipv6_route_seq_setup_walk(iter, net);
net              2512 net/ipv6/ip6_fib.c 	struct net *net = seq_file_net(seq);
net              2516 net/ipv6/ip6_fib.c 	iter->tbl = ipv6_route_seq_next_table(NULL, net);
net              2520 net/ipv6/ip6_fib.c 		ipv6_route_seq_setup_walk(iter, net);
net              2536 net/ipv6/ip6_fib.c 	struct net *net = seq_file_net(seq);
net              2540 net/ipv6/ip6_fib.c 		fib6_walker_unlink(net, &iter->w);
net                74 net/ipv6/ip6_flowlabel.c static inline struct ip6_flowlabel *__fl_lookup(struct net *net, __be32 label)
net                79 net/ipv6/ip6_flowlabel.c 		if (fl->label == label && net_eq(fl->fl_net, net))
net                85 net/ipv6/ip6_flowlabel.c static struct ip6_flowlabel *fl_lookup(struct net *net, __be32 label)
net                90 net/ipv6/ip6_flowlabel.c 	fl = __fl_lookup(net, label);
net               188 net/ipv6/ip6_flowlabel.c static void __net_exit ip6_fl_purge(struct net *net)
net               200 net/ipv6/ip6_flowlabel.c 			if (net_eq(fl->fl_net, net) &&
net               213 net/ipv6/ip6_flowlabel.c static struct ip6_flowlabel *fl_intern(struct net *net,
net               225 net/ipv6/ip6_flowlabel.c 				lfl = __fl_lookup(net, fl->label);
net               239 net/ipv6/ip6_flowlabel.c 		lfl = __fl_lookup(net, fl->label);
net               373 net/ipv6/ip6_flowlabel.c fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq,
net               412 net/ipv6/ip6_flowlabel.c 		err = ip6_datagram_send_ctl(net, sk, &msg, &flowi6, &ipc6);
net               424 net/ipv6/ip6_flowlabel.c 	fl->fl_net = net;
net               539 net/ipv6/ip6_flowlabel.c 	struct net *net = sock_net(sk);
net               595 net/ipv6/ip6_flowlabel.c 		    ns_capable(net->user_ns, CAP_NET_ADMIN)) {
net               596 net/ipv6/ip6_flowlabel.c 			fl = fl_lookup(net, freq.flr_label);
net               607 net/ipv6/ip6_flowlabel.c 			struct net *net = sock_net(sk);
net               608 net/ipv6/ip6_flowlabel.c 			if (net->ipv6.sysctl.flowlabel_consistency) {
net               623 net/ipv6/ip6_flowlabel.c 		if (net->ipv6.sysctl.flowlabel_state_ranges &&
net               627 net/ipv6/ip6_flowlabel.c 		fl = fl_create(net, sk, &freq, optval, optlen, &err);
net               650 net/ipv6/ip6_flowlabel.c 				fl1 = fl_lookup(net, freq.flr_label);
net               693 net/ipv6/ip6_flowlabel.c 		fl1 = fl_intern(net, fl, freq.flr_label);
net               731 net/ipv6/ip6_flowlabel.c 	struct net *net = seq_file_net(seq);
net               735 net/ipv6/ip6_flowlabel.c 			if (net_eq(fl->fl_net, net))
net               747 net/ipv6/ip6_flowlabel.c 	struct net *net = seq_file_net(seq);
net               750 net/ipv6/ip6_flowlabel.c 		if (net_eq(fl->fl_net, net))
net               757 net/ipv6/ip6_flowlabel.c 			if (net_eq(fl->fl_net, net))
net               838 net/ipv6/ip6_flowlabel.c static int __net_init ip6_flowlabel_proc_init(struct net *net)
net               840 net/ipv6/ip6_flowlabel.c 	if (!proc_create_net("ip6_flowlabel", 0444, net->proc_net,
net               846 net/ipv6/ip6_flowlabel.c static void __net_exit ip6_flowlabel_proc_fini(struct net *net)
net               848 net/ipv6/ip6_flowlabel.c 	remove_proc_entry("ip6_flowlabel", net->proc_net);
net               851 net/ipv6/ip6_flowlabel.c static inline int ip6_flowlabel_proc_init(struct net *net)
net               855 net/ipv6/ip6_flowlabel.c static inline void ip6_flowlabel_proc_fini(struct net *net)
net               860 net/ipv6/ip6_flowlabel.c static void __net_exit ip6_flowlabel_net_exit(struct net *net)
net               862 net/ipv6/ip6_flowlabel.c 	ip6_fl_purge(net);
net               863 net/ipv6/ip6_flowlabel.c 	ip6_flowlabel_proc_fini(net);
net               119 net/ipv6/ip6_gre.c 	struct net *net = dev_net(dev);
net               124 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net               320 net/ipv6/ip6_gre.c static struct ip6_tnl *ip6gre_tunnel_find(struct net *net,
net               330 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net               345 net/ipv6/ip6_gre.c static struct ip6_tnl *ip6gre_tunnel_locate(struct net *net,
net               351 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net               353 net/ipv6/ip6_gre.c 	t = ip6gre_tunnel_find(net, parms, ARPHRD_IP6GRE);
net               371 net/ipv6/ip6_gre.c 	dev_net_set(dev, net);
net               378 net/ipv6/ip6_gre.c 	nt->net = dev_net(dev);
net               401 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id);
net               412 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id);
net               424 net/ipv6/ip6_gre.c 	struct net *net = dev_net(skb->dev);
net               472 net/ipv6/ip6_gre.c 		ip6_update_pmtu(skb, net, info, 0, 0, sock_net_uid(net, NULL));
net               475 net/ipv6/ip6_gre.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net               476 net/ipv6/ip6_gre.c 			     sock_net_uid(net, NULL));
net              1112 net/ipv6/ip6_gre.c 		struct rt6_info *rt = rt6_lookup(t->net,
net              1229 net/ipv6/ip6_gre.c 	struct net *net = t->net;
net              1230 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net              1242 net/ipv6/ip6_gre.c 			t = ip6gre_tunnel_locate(net, &p1, 0);
net              1255 net/ipv6/ip6_gre.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1272 net/ipv6/ip6_gre.c 		t = ip6gre_tunnel_locate(net, &p1, cmd == SIOCADDTUNNEL);
net              1304 net/ipv6/ip6_gre.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1313 net/ipv6/ip6_gre.c 			t = ip6gre_tunnel_locate(net, &p1, 0);
net              1446 net/ipv6/ip6_gre.c 	tunnel->net = dev_net(dev);
net              1511 net/ipv6/ip6_gre.c 	tunnel->net = dev_net(dev);
net              1525 net/ipv6/ip6_gre.c static void ip6gre_destroy_tunnels(struct net *net, struct list_head *head)
net              1527 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net              1531 net/ipv6/ip6_gre.c 	for_each_netdev_safe(net, dev, aux)
net              1548 net/ipv6/ip6_gre.c 				if (!net_eq(dev_net(t->dev), net))
net              1557 net/ipv6/ip6_gre.c static int __net_init ip6gre_init_net(struct net *net)
net              1559 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net              1562 net/ipv6/ip6_gre.c 	if (!net_has_fallback_tunnels(net))
net              1571 net/ipv6/ip6_gre.c 	dev_net_set(ign->fb_tunnel_dev, net);
net              1597 net/ipv6/ip6_gre.c 	struct net *net;
net              1601 net/ipv6/ip6_gre.c 	list_for_each_entry(net, net_list, exit_list)
net              1602 net/ipv6/ip6_gre.c 		ip6gre_destroy_tunnels(net, &list);
net              1840 net/ipv6/ip6_gre.c 	tunnel->net = dev_net(dev);
net              1934 net/ipv6/ip6_gre.c static int ip6gre_newlink_common(struct net *src_net, struct net_device *dev,
net              1955 net/ipv6/ip6_gre.c 	nt->net = dev_net(dev);
net              1970 net/ipv6/ip6_gre.c static int ip6gre_newlink(struct net *src_net, struct net_device *dev,
net              1975 net/ipv6/ip6_gre.c 	struct net *net = dev_net(dev);
net              1980 net/ipv6/ip6_gre.c 	ign = net_generic(net, ip6gre_net_id);
net              1986 net/ipv6/ip6_gre.c 		if (ip6gre_tunnel_find(net, &nt->parms, dev->type))
net              1994 net/ipv6/ip6_gre.c 		ip6gre_tunnel_link(net_generic(net, ip6gre_net_id), nt);
net              2005 net/ipv6/ip6_gre.c 	struct net *net = nt->net;
net              2006 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net              2021 net/ipv6/ip6_gre.c 	t = ip6gre_tunnel_locate(net, p_p, 0);
net              2038 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id);
net              2055 net/ipv6/ip6_gre.c 	struct net *net = dev_net(dev);
net              2056 net/ipv6/ip6_gre.c 	struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
net              2203 net/ipv6/ip6_gre.c static int ip6erspan_newlink(struct net *src_net, struct net_device *dev,
net              2208 net/ipv6/ip6_gre.c 	struct net *net = dev_net(dev);
net              2214 net/ipv6/ip6_gre.c 	ign = net_generic(net, ip6gre_net_id);
net              2220 net/ipv6/ip6_gre.c 		if (ip6gre_tunnel_find(net, &nt->parms, dev->type))
net              2228 net/ipv6/ip6_gre.c 		ip6gre_tunnel_link(net_generic(net, ip6gre_net_id), nt);
net                49 net/ipv6/ip6_input.c static void ip6_rcv_finish_core(struct net *net, struct sock *sk,
net                54 net/ipv6/ip6_input.c 	if (net->ipv4.sysctl_ip_early_demux && !skb_dst(skb) && skb->sk == NULL) {
net                66 net/ipv6/ip6_input.c int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net                74 net/ipv6/ip6_input.c 	ip6_rcv_finish_core(net, sk, skb);
net                89 net/ipv6/ip6_input.c static void ip6_list_rcv_finish(struct net *net, struct sock *sk,
net               107 net/ipv6/ip6_input.c 		ip6_rcv_finish_core(net, sk, skb);
net               124 net/ipv6/ip6_input.c 				    struct net *net)
net               139 net/ipv6/ip6_input.c 	__IP6_UPD_PO_STATS(net, idev, IPSTATS_MIB_IN, skb->len);
net               143 net/ipv6/ip6_input.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS);
net               170 net/ipv6/ip6_input.c 	__IP6_ADD_STATS(net, idev,
net               244 net/ipv6/ip6_input.c 			__IP6_INC_STATS(net,
net               249 net/ipv6/ip6_input.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               257 net/ipv6/ip6_input.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               270 net/ipv6/ip6_input.c 	__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               279 net/ipv6/ip6_input.c 	struct net *net = dev_net(skb->dev);
net               281 net/ipv6/ip6_input.c 	skb = ip6_rcv_core(skb, dev, net);
net               285 net/ipv6/ip6_input.c 		       net, NULL, skb, dev, NULL,
net               290 net/ipv6/ip6_input.c 			    struct net *net)
net               292 net/ipv6/ip6_input.c 	NF_HOOK_LIST(NFPROTO_IPV6, NF_INET_PRE_ROUTING, net, NULL,
net               294 net/ipv6/ip6_input.c 	ip6_list_rcv_finish(net, NULL, head);
net               302 net/ipv6/ip6_input.c 	struct net *curr_net = NULL;
net               309 net/ipv6/ip6_input.c 		struct net *net = dev_net(dev);
net               312 net/ipv6/ip6_input.c 		skb = ip6_rcv_core(skb, dev, net);
net               316 net/ipv6/ip6_input.c 		if (curr_dev != dev || curr_net != net) {
net               323 net/ipv6/ip6_input.c 			curr_net = net;
net               337 net/ipv6/ip6_input.c void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr,
net               392 net/ipv6/ip6_input.c 				dev = dev_get_by_index_rcu(net, sdif);
net               424 net/ipv6/ip6_input.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDELIVERS);
net               429 net/ipv6/ip6_input.c 				__IP6_INC_STATS(net, idev,
net               436 net/ipv6/ip6_input.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDELIVERS);
net               443 net/ipv6/ip6_input.c 	__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS);
net               447 net/ipv6/ip6_input.c static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               450 net/ipv6/ip6_input.c 	ip6_protocol_deliver_rcu(net, skb, 0, false);
net                58 net/ipv6/ip6_output.c static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net                70 net/ipv6/ip6_output.c 		    ((mroute6_is_socket(net, skb) &&
net                81 net/ipv6/ip6_output.c 					net, sk, newskb, NULL, newskb->dev,
net                85 net/ipv6/ip6_output.c 				IP6_INC_STATS(net, idev,
net                92 net/ipv6/ip6_output.c 		IP6_UPD_PO_STATS(net, idev, IPSTATS_MIB_OUTMCAST, skb->len);
net               122 net/ipv6/ip6_output.c 	IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
net               127 net/ipv6/ip6_output.c static int __ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               133 net/ipv6/ip6_output.c 		return dst_output(net, sk, skb);
net               140 net/ipv6/ip6_output.c 		return ip6_fragment(net, sk, skb, ip6_finish_output2);
net               142 net/ipv6/ip6_output.c 		return ip6_finish_output2(net, sk, skb);
net               145 net/ipv6/ip6_output.c static int ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               152 net/ipv6/ip6_output.c 		return __ip6_finish_output(net, sk, skb);
net               154 net/ipv6/ip6_output.c 		return __ip6_finish_output(net, sk, skb) ? : ret;
net               161 net/ipv6/ip6_output.c int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               170 net/ipv6/ip6_output.c 		IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
net               176 net/ipv6/ip6_output.c 			    net, sk, skb, NULL, dev,
net               181 net/ipv6/ip6_output.c bool ip6_autoflowlabel(struct net *net, const struct ipv6_pinfo *np)
net               184 net/ipv6/ip6_output.c 		return ip6_default_np_autolabel(net);
net               198 net/ipv6/ip6_output.c 	struct net *net = sock_net(sk);
net               216 net/ipv6/ip6_output.c 			IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               250 net/ipv6/ip6_output.c 	ip6_flow_hdr(hdr, tclass, ip6_make_flowlabel(net, skb, fl6->flowlabel,
net               251 net/ipv6/ip6_output.c 				ip6_autoflowlabel(net, np), fl6));
net               266 net/ipv6/ip6_output.c 		IP6_UPD_PO_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               280 net/ipv6/ip6_output.c 			       net, (struct sock *)sk, skb, NULL, dst->dev,
net               290 net/ipv6/ip6_output.c 	IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), IPSTATS_MIB_FRAGFAILS);
net               383 net/ipv6/ip6_output.c static inline int ip6_forward_finish(struct net *net, struct sock *sk,
net               388 net/ipv6/ip6_output.c 	__IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTFORWDATAGRAMS);
net               389 net/ipv6/ip6_output.c 	__IP6_ADD_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTOCTETS, skb->len);
net               399 net/ipv6/ip6_output.c 	return dst_output(net, sk, skb);
net               426 net/ipv6/ip6_output.c 	struct net *net = dev_net(dst->dev);
net               429 net/ipv6/ip6_output.c 	if (net->ipv6.devconf_all->forwarding == 0)
net               442 net/ipv6/ip6_output.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS);
net               473 net/ipv6/ip6_output.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               480 net/ipv6/ip6_output.c 	if (net->ipv6.devconf_all->proxy_ndp &&
net               481 net/ipv6/ip6_output.c 	    pneigh_lookup(&nd_tbl, net, &hdr->daddr, skb->dev, 0)) {
net               486 net/ipv6/ip6_output.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS);
net               492 net/ipv6/ip6_output.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS);
net               518 net/ipv6/ip6_output.c 		peer = inet_getpeer_v6(net->ipv6.peers, &hdr->daddr, 1);
net               549 net/ipv6/ip6_output.c 		__IP6_INC_STATS(net, idev, IPSTATS_MIB_INTOOBIGERRORS);
net               550 net/ipv6/ip6_output.c 		__IP6_INC_STATS(net, ip6_dst_idev(dst),
net               557 net/ipv6/ip6_output.c 		__IP6_INC_STATS(net, ip6_dst_idev(dst),
net               569 net/ipv6/ip6_output.c 		       net, NULL, skb, skb->dev, dst->dev,
net               573 net/ipv6/ip6_output.c 	__IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS);
net               762 net/ipv6/ip6_output.c int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               763 net/ipv6/ip6_output.c 		 int (*output)(struct net *, struct sock *, struct sk_buff *))
net               809 net/ipv6/ip6_output.c 	frag_id = ipv6_select_ident(net, &ipv6_hdr(skb)->daddr,
net               860 net/ipv6/ip6_output.c 			err = output(net, sk, skb);
net               862 net/ipv6/ip6_output.c 				IP6_INC_STATS(net, ip6_dst_idev(&rt->dst),
net               874 net/ipv6/ip6_output.c 			IP6_INC_STATS(net, ip6_dst_idev(&rt->dst),
net               881 net/ipv6/ip6_output.c 		IP6_INC_STATS(net, ip6_dst_idev(&rt->dst),
net               919 net/ipv6/ip6_output.c 		err = output(net, sk, frag);
net               923 net/ipv6/ip6_output.c 		IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               926 net/ipv6/ip6_output.c 	IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               939 net/ipv6/ip6_output.c 	IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net              1000 net/ipv6/ip6_output.c static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk,
net              1025 net/ipv6/ip6_output.c 			*dst = ip6_route_output(net, sk, fl6);
net              1030 net/ipv6/ip6_output.c 		err = ip6_route_get_saddr(net, from, &fl6->daddr,
net              1052 net/ipv6/ip6_output.c 		*dst = ip6_route_output_flags(net, sk, fl6, flags);
net              1079 net/ipv6/ip6_output.c 		ifp = ipv6_get_ifaddr(net, &fl6->saddr,
net              1094 net/ipv6/ip6_output.c 			*dst = ip6_route_output(net, sk, &fl_gw6);
net              1114 net/ipv6/ip6_output.c 		IP6_INC_STATS(net, NULL, IPSTATS_MIB_OUTNOROUTES);
net              1128 net/ipv6/ip6_output.c int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
net              1132 net/ipv6/ip6_output.c 	return ip6_dst_lookup_tail(net, sk, dst, fl6);
net              1147 net/ipv6/ip6_output.c struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
net              1153 net/ipv6/ip6_output.c 	err = ip6_dst_lookup_tail(net, sk, &dst, fl6);
net              1159 net/ipv6/ip6_output.c 	return xfrm_lookup_route(net, dst, flowi6_to_flowi(fl6), sk, 0);
net              1722 net/ipv6/ip6_output.c 	struct net *net = sock_net(sk);
net              1763 net/ipv6/ip6_output.c 		     ip6_make_flowlabel(net, skb, fl6->flowlabel,
net              1764 net/ipv6/ip6_output.c 					ip6_autoflowlabel(net, np), fl6));
net              1776 net/ipv6/ip6_output.c 	IP6_UPD_PO_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len);
net              1780 net/ipv6/ip6_output.c 		ICMP6MSGOUT_INC_STATS(net, idev, icmp6_hdr(skb)->icmp6_type);
net              1781 net/ipv6/ip6_output.c 		ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
net              1791 net/ipv6/ip6_output.c 	struct net *net = sock_net(skb->sk);
net              1795 net/ipv6/ip6_output.c 	err = ip6_local_out(net, skb->sk, skb);
net              1800 net/ipv6/ip6_output.c 			IP6_INC_STATS(net, rt->rt6i_idev,
net               137 net/ipv6/ip6_tunnel.c ip6_tnl_lookup(struct net *net, const struct in6_addr *remote, const struct in6_addr *local)
net               141 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net               257 net/ipv6/ip6_tunnel.c 	struct net *net = dev_net(dev);
net               258 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net               290 net/ipv6/ip6_tunnel.c static struct ip6_tnl *ip6_tnl_create(struct net *net, struct __ip6_tnl_parm *p)
net               310 net/ipv6/ip6_tunnel.c 	dev_net_set(dev, net);
net               314 net/ipv6/ip6_tunnel.c 	t->net = dev_net(dev);
net               341 net/ipv6/ip6_tunnel.c static struct ip6_tnl *ip6_tnl_locate(struct net *net,
net               348 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net               363 net/ipv6/ip6_tunnel.c 	return ip6_tnl_create(net, p);
net               378 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net               379 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net               473 net/ipv6/ip6_tunnel.c 	struct net *net = dev_net(skb->dev);
net               531 net/ipv6/ip6_tunnel.c 		ip6_update_pmtu(skb, net, htonl(*info), 0, 0,
net               532 net/ipv6/ip6_tunnel.c 				sock_net_uid(net, NULL));
net               545 net/ipv6/ip6_tunnel.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net               546 net/ipv6/ip6_tunnel.c 			     sock_net_uid(net, NULL));
net               748 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net               756 net/ipv6/ip6_tunnel.c 			ldev = dev_get_by_index_rcu(net, p->link);
net               759 net/ipv6/ip6_tunnel.c 		     likely(ipv6_chk_addr_and_flags(net, laddr, ldev, false,
net               762 net/ipv6/ip6_tunnel.c 		     likely(!ipv6_chk_addr_and_flags(net, raddr, ldev, true,
net               822 net/ipv6/ip6_tunnel.c 	__skb_tunnel_rx(skb, tunnel->dev, tunnel->net);
net               843 net/ipv6/ip6_tunnel.c 	skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev)));
net               980 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net               992 net/ipv6/ip6_tunnel.c 			ldev = dev_get_by_index_rcu(net, p->link);
net               994 net/ipv6/ip6_tunnel.c 		if (unlikely(!ipv6_chk_addr_and_flags(net, laddr, ldev, false,
net              1000 net/ipv6/ip6_tunnel.c 			 unlikely(ipv6_chk_addr_and_flags(net, raddr, ldev,
net              1037 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net              1102 net/ipv6/ip6_tunnel.c 		dst = ip6_route_output(net, NULL, fl6);
net              1106 net/ipv6/ip6_tunnel.c 		dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), NULL, 0);
net              1113 net/ipv6/ip6_tunnel.c 		    ipv6_dev_get_saddr(net, ip6_dst_idev(dst)->dev,
net              1153 net/ipv6/ip6_tunnel.c 	skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev)));
net              1213 net/ipv6/ip6_tunnel.c 		     ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6));
net              1457 net/ipv6/ip6_tunnel.c 		struct rt6_info *rt = rt6_lookup(t->net,
net              1507 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net              1508 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              1590 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net              1591 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              1603 net/ipv6/ip6_tunnel.c 			t = ip6_tnl_locate(net, &p1, 0);
net              1617 net/ipv6/ip6_tunnel.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1627 net/ipv6/ip6_tunnel.c 		t = ip6_tnl_locate(net, &p1, cmd == SIOCADDTUNNEL);
net              1653 net/ipv6/ip6_tunnel.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1662 net/ipv6/ip6_tunnel.c 			t = ip6_tnl_locate(net, &p1, 0);
net              1831 net/ipv6/ip6_tunnel.c 	t->net = dev_net(dev);
net              1895 net/ipv6/ip6_tunnel.c 	struct net *net = dev_net(dev);
net              1896 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              1994 net/ipv6/ip6_tunnel.c static int ip6_tnl_newlink(struct net *src_net, struct net_device *dev,
net              1998 net/ipv6/ip6_tunnel.c 	struct net *net = dev_net(dev);
net              1999 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              2018 net/ipv6/ip6_tunnel.c 		t = ip6_tnl_locate(net, &nt->parms, 0);
net              2036 net/ipv6/ip6_tunnel.c 	struct net *net = t->net;
net              2037 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              2053 net/ipv6/ip6_tunnel.c 	t = ip6_tnl_locate(net, &p, 0);
net              2065 net/ipv6/ip6_tunnel.c 	struct net *net = dev_net(dev);
net              2066 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              2138 net/ipv6/ip6_tunnel.c struct net *ip6_tnl_get_link_net(const struct net_device *dev)
net              2142 net/ipv6/ip6_tunnel.c 	return tunnel->net;
net              2190 net/ipv6/ip6_tunnel.c static void __net_exit ip6_tnl_destroy_tunnels(struct net *net, struct list_head *list)
net              2192 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              2197 net/ipv6/ip6_tunnel.c 	for_each_netdev_safe(net, dev, aux)
net              2207 net/ipv6/ip6_tunnel.c 			if (!net_eq(dev_net(t->dev), net))
net              2214 net/ipv6/ip6_tunnel.c static int __net_init ip6_tnl_init_net(struct net *net)
net              2216 net/ipv6/ip6_tunnel.c 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
net              2223 net/ipv6/ip6_tunnel.c 	if (!net_has_fallback_tunnels(net))
net              2231 net/ipv6/ip6_tunnel.c 	dev_net_set(ip6n->fb_tnl_dev, net);
net              2259 net/ipv6/ip6_tunnel.c 	struct net *net;
net              2263 net/ipv6/ip6_tunnel.c 	list_for_each_entry(net, net_list, exit_list)
net              2264 net/ipv6/ip6_tunnel.c 		ip6_tnl_destroy_tunnels(net, &list);
net                16 net/ipv6/ip6_udp_tunnel.c int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg,
net                23 net/ipv6/ip6_udp_tunnel.c 	err = sock_create_kern(net, AF_INET6, SOCK_DGRAM, 0, &sock);
net                89 net/ipv6/ip6_vti.c vti6_tnl_lookup(struct net *net, const struct in6_addr *remote,
net                94 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net               184 net/ipv6/ip6_vti.c 	struct net *net = dev_net(dev);
net               185 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net               204 net/ipv6/ip6_vti.c static struct ip6_tnl *vti6_tnl_create(struct net *net, struct __ip6_tnl_parm *p)
net               223 net/ipv6/ip6_vti.c 	dev_net_set(dev, net);
net               227 net/ipv6/ip6_vti.c 	t->net = dev_net(dev);
net               255 net/ipv6/ip6_vti.c static struct ip6_tnl *vti6_locate(struct net *net, struct __ip6_tnl_parm *p,
net               262 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net               277 net/ipv6/ip6_vti.c 	return vti6_tnl_create(net, p);
net               290 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(t->net, vti6_net_id);
net               380 net/ipv6/ip6_vti.c 	skb_scrub_packet(skb, !net_eq(t->net, dev_net(skb->dev)));
net               483 net/ipv6/ip6_vti.c 	dst = xfrm_lookup(t->net, dst, fl, NULL, 0);
net               525 net/ipv6/ip6_vti.c 	skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev)));
net               529 net/ipv6/ip6_vti.c 	err = dst_output(t->net, skb->sk, skb);
net               599 net/ipv6/ip6_vti.c 	struct net *net = dev_net(skb->dev);
net               630 net/ipv6/ip6_vti.c 	x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr,
net               636 net/ipv6/ip6_vti.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net               637 net/ipv6/ip6_vti.c 			     sock_net_uid(net, NULL));
net               639 net/ipv6/ip6_vti.c 		ip6_update_pmtu(skb, net, info, 0, 0, sock_net_uid(net, NULL));
net               672 net/ipv6/ip6_vti.c 		struct rt6_info *rt = rt6_lookup(t->net,
net               682 net/ipv6/ip6_vti.c 		tdev = __dev_get_by_index(t->net, p->link);
net               720 net/ipv6/ip6_vti.c 	struct net *net = dev_net(t->dev);
net               721 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net               796 net/ipv6/ip6_vti.c 	struct net *net = dev_net(dev);
net               797 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net               807 net/ipv6/ip6_vti.c 			t = vti6_locate(net, &p1, 0);
net               820 net/ipv6/ip6_vti.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               829 net/ipv6/ip6_vti.c 		t = vti6_locate(net, &p1, cmd == SIOCADDTUNNEL);
net               852 net/ipv6/ip6_vti.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               861 net/ipv6/ip6_vti.c 			t = vti6_locate(net, &p1, 0);
net               920 net/ipv6/ip6_vti.c 	t->net = dev_net(dev);
net               951 net/ipv6/ip6_vti.c 	struct net *net = dev_net(dev);
net               952 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net               994 net/ipv6/ip6_vti.c static int vti6_newlink(struct net *src_net, struct net_device *dev,
net               998 net/ipv6/ip6_vti.c 	struct net *net = dev_net(dev);
net              1006 net/ipv6/ip6_vti.c 	if (vti6_locate(net, &nt->parms, 0))
net              1014 net/ipv6/ip6_vti.c 	struct net *net = dev_net(dev);
net              1015 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net              1027 net/ipv6/ip6_vti.c 	struct net *net = dev_net(dev);
net              1028 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net              1035 net/ipv6/ip6_vti.c 	t = vti6_locate(net, &p, 0);
net              1125 net/ipv6/ip6_vti.c static int __net_init vti6_init_net(struct net *net)
net              1127 net/ipv6/ip6_vti.c 	struct vti6_net *ip6n = net_generic(net, vti6_net_id);
net              1134 net/ipv6/ip6_vti.c 	if (!net_has_fallback_tunnels(net))
net              1142 net/ipv6/ip6_vti.c 	dev_net_set(ip6n->fb_tnl_dev, net);
net              1167 net/ipv6/ip6_vti.c 	struct net *net;
net              1171 net/ipv6/ip6_vti.c 	list_for_each_entry(net, net_list, exit_list) {
net              1172 net/ipv6/ip6_vti.c 		ip6n = net_generic(net, vti6_net_id);
net                82 net/ipv6/ip6mr.c static struct mr_table *ip6mr_new_table(struct net *net, u32 id);
net                85 net/ipv6/ip6mr.c static void ip6_mr_forward(struct net *net, struct mr_table *mrt,
net                99 net/ipv6/ip6mr.c #define ip6mr_for_each_table(mrt, net) \
net               100 net/ipv6/ip6mr.c 	list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list)
net               102 net/ipv6/ip6mr.c static struct mr_table *ip6mr_mr_table_iter(struct net *net,
net               108 net/ipv6/ip6mr.c 		ret = list_entry_rcu(net->ipv6.mr6_tables.next,
net               114 net/ipv6/ip6mr.c 	if (&ret->list == &net->ipv6.mr6_tables)
net               119 net/ipv6/ip6mr.c static struct mr_table *ip6mr_get_table(struct net *net, u32 id)
net               123 net/ipv6/ip6mr.c 	ip6mr_for_each_table(mrt, net) {
net               130 net/ipv6/ip6mr.c static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6,
net               141 net/ipv6/ip6mr.c 	l3mdev_update_flow(net, flowi6_to_flowi(flp6));
net               143 net/ipv6/ip6mr.c 	err = fib_rules_lookup(net->ipv6.mr6_rules_ops,
net               223 net/ipv6/ip6mr.c static int __net_init ip6mr_rules_init(struct net *net)
net               229 net/ipv6/ip6mr.c 	ops = fib_rules_register(&ip6mr_rules_ops_template, net);
net               233 net/ipv6/ip6mr.c 	INIT_LIST_HEAD(&net->ipv6.mr6_tables);
net               235 net/ipv6/ip6mr.c 	mrt = ip6mr_new_table(net, RT6_TABLE_DFLT);
net               245 net/ipv6/ip6mr.c 	net->ipv6.mr6_rules_ops = ops;
net               255 net/ipv6/ip6mr.c static void __net_exit ip6mr_rules_exit(struct net *net)
net               260 net/ipv6/ip6mr.c 	list_for_each_entry_safe(mrt, next, &net->ipv6.mr6_tables, list) {
net               264 net/ipv6/ip6mr.c 	fib_rules_unregister(net->ipv6.mr6_rules_ops);
net               268 net/ipv6/ip6mr.c static int ip6mr_rules_dump(struct net *net, struct notifier_block *nb)
net               270 net/ipv6/ip6mr.c 	return fib_rules_dump(net, nb, RTNL_FAMILY_IP6MR);
net               273 net/ipv6/ip6mr.c static unsigned int ip6mr_rules_seq_read(struct net *net)
net               275 net/ipv6/ip6mr.c 	return fib_rules_seq_read(net, RTNL_FAMILY_IP6MR);
net               285 net/ipv6/ip6mr.c #define ip6mr_for_each_table(mrt, net) \
net               286 net/ipv6/ip6mr.c 	for (mrt = net->ipv6.mrt6; mrt; mrt = NULL)
net               288 net/ipv6/ip6mr.c static struct mr_table *ip6mr_mr_table_iter(struct net *net,
net               292 net/ipv6/ip6mr.c 		return net->ipv6.mrt6;
net               296 net/ipv6/ip6mr.c static struct mr_table *ip6mr_get_table(struct net *net, u32 id)
net               298 net/ipv6/ip6mr.c 	return net->ipv6.mrt6;
net               301 net/ipv6/ip6mr.c static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6,
net               304 net/ipv6/ip6mr.c 	*mrt = net->ipv6.mrt6;
net               308 net/ipv6/ip6mr.c static int __net_init ip6mr_rules_init(struct net *net)
net               312 net/ipv6/ip6mr.c 	mrt = ip6mr_new_table(net, RT6_TABLE_DFLT);
net               315 net/ipv6/ip6mr.c 	net->ipv6.mrt6 = mrt;
net               319 net/ipv6/ip6mr.c static void __net_exit ip6mr_rules_exit(struct net *net)
net               322 net/ipv6/ip6mr.c 	ip6mr_free_table(net->ipv6.mrt6);
net               323 net/ipv6/ip6mr.c 	net->ipv6.mrt6 = NULL;
net               327 net/ipv6/ip6mr.c static int ip6mr_rules_dump(struct net *net, struct notifier_block *nb)
net               332 net/ipv6/ip6mr.c static unsigned int ip6mr_rules_seq_read(struct net *net)
net               358 net/ipv6/ip6mr.c 				struct net *net)
net               361 net/ipv6/ip6mr.c 	list_add_tail_rcu(&mrt->list, &net->ipv6.mr6_tables);
net               375 net/ipv6/ip6mr.c static struct mr_table *ip6mr_new_table(struct net *net, u32 id)
net               379 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, id);
net               383 net/ipv6/ip6mr.c 	return mr_table_alloc(net, id, &ip6mr_mr_table_ops,
net               405 net/ipv6/ip6mr.c 	struct net *net = seq_file_net(seq);
net               408 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, RT6_TABLE_DFLT);
net               455 net/ipv6/ip6mr.c 	struct net *net = seq_file_net(seq);
net               458 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, RT6_TABLE_DFLT);
net               522 net/ipv6/ip6mr.c 	struct net *net = dev_net(skb->dev);
net               551 net/ipv6/ip6mr.c 	if (ip6mr_fib_lookup(net, &fl6, &mrt) < 0)
net               591 net/ipv6/ip6mr.c 	struct net *net = dev_net(dev);
net               602 net/ipv6/ip6mr.c 	if (ip6mr_fib_lookup(net, &fl6, &mrt) < 0)
net               639 net/ipv6/ip6mr.c static struct net_device *ip6mr_reg_vif(struct net *net, struct mr_table *mrt)
net               653 net/ipv6/ip6mr.c 	dev_net_set(dev, net);
net               672 net/ipv6/ip6mr.c static int call_ip6mr_vif_entry_notifiers(struct net *net,
net               677 net/ipv6/ip6mr.c 	return mr_call_vif_notifiers(net, RTNL_FAMILY_IP6MR, event_type,
net               679 net/ipv6/ip6mr.c 				     &net->ipv6.ipmr_seq);
net               682 net/ipv6/ip6mr.c static int call_ip6mr_mfc_entry_notifiers(struct net *net,
net               686 net/ipv6/ip6mr.c 	return mr_call_mfc_notifiers(net, RTNL_FAMILY_IP6MR, event_type,
net               687 net/ipv6/ip6mr.c 				     &mfc->_c, tb_id, &net->ipv6.ipmr_seq);
net               704 net/ipv6/ip6mr.c 		call_ip6mr_vif_entry_notifiers(read_pnet(&mrt->net),
net               768 net/ipv6/ip6mr.c 	struct net *net = read_pnet(&mrt->net);
net               781 net/ipv6/ip6mr.c 			rtnl_unicast(skb, net, NETLINK_CB(skb).portid);
net               856 net/ipv6/ip6mr.c static int mif6_add(struct net *net, struct mr_table *mrt,
net               878 net/ipv6/ip6mr.c 		dev = ip6mr_reg_vif(net, mrt);
net               890 net/ipv6/ip6mr.c 		dev = dev_get_by_index(net, vifc->mif6c_pifi);
net               926 net/ipv6/ip6mr.c 	call_ip6mr_vif_entry_notifiers(net, FIB_EVENT_VIF_ADD,
net              1000 net/ipv6/ip6mr.c static void ip6mr_cache_resolve(struct net *net, struct mr_table *mrt,
net              1023 net/ipv6/ip6mr.c 			rtnl_unicast(skb, net, NETLINK_CB(skb).portid);
net              1025 net/ipv6/ip6mr.c 			ip6_mr_forward(net, mrt, skb->dev, skb, c);
net              1222 net/ipv6/ip6mr.c 	call_ip6mr_mfc_entry_notifiers(read_pnet(&mrt->net),
net              1233 net/ipv6/ip6mr.c 	struct net *net = dev_net(dev);
net              1241 net/ipv6/ip6mr.c 	ip6mr_for_each_table(mrt, net) {
net              1252 net/ipv6/ip6mr.c static unsigned int ip6mr_seq_read(struct net *net)
net              1256 net/ipv6/ip6mr.c 	return net->ipv6.ipmr_seq + ip6mr_rules_seq_read(net);
net              1259 net/ipv6/ip6mr.c static int ip6mr_dump(struct net *net, struct notifier_block *nb)
net              1261 net/ipv6/ip6mr.c 	return mr_dump(net, nb, RTNL_FAMILY_IP6MR, ip6mr_rules_dump,
net              1276 net/ipv6/ip6mr.c static int __net_init ip6mr_notifier_init(struct net *net)
net              1280 net/ipv6/ip6mr.c 	net->ipv6.ipmr_seq = 0;
net              1282 net/ipv6/ip6mr.c 	ops = fib_notifier_ops_register(&ip6mr_notifier_ops_template, net);
net              1286 net/ipv6/ip6mr.c 	net->ipv6.ip6mr_notifier_ops = ops;
net              1291 net/ipv6/ip6mr.c static void __net_exit ip6mr_notifier_exit(struct net *net)
net              1293 net/ipv6/ip6mr.c 	fib_notifier_ops_unregister(net->ipv6.ip6mr_notifier_ops);
net              1294 net/ipv6/ip6mr.c 	net->ipv6.ip6mr_notifier_ops = NULL;
net              1298 net/ipv6/ip6mr.c static int __net_init ip6mr_net_init(struct net *net)
net              1302 net/ipv6/ip6mr.c 	err = ip6mr_notifier_init(net);
net              1306 net/ipv6/ip6mr.c 	err = ip6mr_rules_init(net);
net              1312 net/ipv6/ip6mr.c 	if (!proc_create_net("ip6_mr_vif", 0, net->proc_net, &ip6mr_vif_seq_ops,
net              1315 net/ipv6/ip6mr.c 	if (!proc_create_net("ip6_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops,
net              1324 net/ipv6/ip6mr.c 	remove_proc_entry("ip6_mr_vif", net->proc_net);
net              1326 net/ipv6/ip6mr.c 	ip6mr_rules_exit(net);
net              1329 net/ipv6/ip6mr.c 	ip6mr_notifier_exit(net);
net              1333 net/ipv6/ip6mr.c static void __net_exit ip6mr_net_exit(struct net *net)
net              1336 net/ipv6/ip6mr.c 	remove_proc_entry("ip6_mr_cache", net->proc_net);
net              1337 net/ipv6/ip6mr.c 	remove_proc_entry("ip6_mr_vif", net->proc_net);
net              1339 net/ipv6/ip6mr.c 	ip6mr_rules_exit(net);
net              1340 net/ipv6/ip6mr.c 	ip6mr_notifier_exit(net);
net              1401 net/ipv6/ip6mr.c static int ip6mr_mfc_add(struct net *net, struct mr_table *mrt,
net              1431 net/ipv6/ip6mr.c 		call_ip6mr_mfc_entry_notifiers(net, FIB_EVENT_ENTRY_REPLACE,
net              1481 net/ipv6/ip6mr.c 		ip6mr_cache_resolve(net, mrt, uc, c);
net              1484 net/ipv6/ip6mr.c 	call_ip6mr_mfc_entry_notifiers(net, FIB_EVENT_ENTRY_ADD,
net              1520 net/ipv6/ip6mr.c 			call_ip6mr_mfc_entry_notifiers(read_pnet(&mrt->net),
net              1545 net/ipv6/ip6mr.c 	struct net *net = sock_net(sk);
net              1554 net/ipv6/ip6mr.c 		net->ipv6.devconf_all->mc_forwarding++;
net              1559 net/ipv6/ip6mr.c 		inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              1562 net/ipv6/ip6mr.c 					     net->ipv6.devconf_all);
net              1571 net/ipv6/ip6mr.c 	struct net *net = sock_net(sk);
net              1579 net/ipv6/ip6mr.c 	ip6mr_for_each_table(mrt, net) {
net              1587 net/ipv6/ip6mr.c 			net->ipv6.devconf_all->mc_forwarding--;
net              1589 net/ipv6/ip6mr.c 			inet6_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              1592 net/ipv6/ip6mr.c 						     net->ipv6.devconf_all);
net              1604 net/ipv6/ip6mr.c bool mroute6_is_socket(struct net *net, struct sk_buff *skb)
net              1613 net/ipv6/ip6mr.c 	if (ip6mr_fib_lookup(net, &fl6, &mrt) < 0)
net              1633 net/ipv6/ip6mr.c 	struct net *net = sock_net(sk);
net              1640 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT);
net              1646 net/ipv6/ip6mr.c 		    !ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1668 net/ipv6/ip6mr.c 		ret = mif6_add(net, mrt, &vif,
net              1703 net/ipv6/ip6mr.c 			ret = ip6mr_mfc_add(net, mrt, &mfc,
net              1777 net/ipv6/ip6mr.c 		mrt = ip6mr_new_table(net, v);
net              1804 net/ipv6/ip6mr.c 	struct net *net = sock_net(sk);
net              1811 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT);
net              1855 net/ipv6/ip6mr.c 	struct net *net = sock_net(sk);
net              1858 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT);
net              1930 net/ipv6/ip6mr.c 	struct net *net = sock_net(sk);
net              1933 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT);
net              1983 net/ipv6/ip6mr.c static inline int ip6mr_forward2_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net              1985 net/ipv6/ip6mr.c 	IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net              1987 net/ipv6/ip6mr.c 	IP6_ADD_STATS(net, ip6_dst_idev(skb_dst(skb)),
net              1989 net/ipv6/ip6mr.c 	return dst_output(net, sk, skb);
net              1996 net/ipv6/ip6mr.c static int ip6mr_forward2(struct net *net, struct mr_table *mrt,
net              2026 net/ipv6/ip6mr.c 	dst = ip6_route_output(net, NULL, &fl6);
net              2062 net/ipv6/ip6mr.c 		       net, NULL, skb, skb->dev, dev,
net              2081 net/ipv6/ip6mr.c static void ip6_mr_forward(struct net *net, struct mr_table *mrt,
net              2163 net/ipv6/ip6mr.c 					ip6mr_forward2(net, mrt, skb2, psend);
net              2170 net/ipv6/ip6mr.c 		ip6mr_forward2(net, mrt, skb, psend);
net              2186 net/ipv6/ip6mr.c 	struct net *net = dev_net(skb->dev);
net              2200 net/ipv6/ip6mr.c 		dev = dev_get_by_index_rcu(net, IPCB(skb)->iif);
net              2207 net/ipv6/ip6mr.c 	err = ip6mr_fib_lookup(net, &fl6, &mrt);
net              2243 net/ipv6/ip6mr.c 	ip6_mr_forward(net, mrt, dev, skb, cache);
net              2250 net/ipv6/ip6mr.c int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm,
net              2258 net/ipv6/ip6mr.c 	mrt = ip6mr_get_table(net, RT6_TABLE_DFLT);
net              2396 net/ipv6/ip6mr.c 	struct net *net = read_pnet(&mrt->net);
net              2409 net/ipv6/ip6mr.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV6_MROUTE, NULL, GFP_ATOMIC);
net              2415 net/ipv6/ip6mr.c 		rtnl_set_sk_err(net, RTNLGRP_IPV6_MROUTE, err);
net              2437 net/ipv6/ip6mr.c 	struct net *net = read_pnet(&mrt->net);
net              2473 net/ipv6/ip6mr.c 	rtnl_notify(skb, net, 0, RTNLGRP_IPV6_MROUTE_R, NULL, GFP_ATOMIC);
net              2480 net/ipv6/ip6mr.c 	rtnl_set_sk_err(net, RTNLGRP_IPV6_MROUTE_R, -ENOBUFS);
net                47 net/ipv6/ipcomp6.c 	struct net *net = dev_net(skb->dev);
net                59 net/ipv6/ipcomp6.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net                65 net/ipv6/ipcomp6.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net                66 net/ipv6/ipcomp6.c 			     sock_net_uid(net, NULL));
net                68 net/ipv6/ipcomp6.c 		ip6_update_pmtu(skb, net, info, 0, 0, sock_net_uid(net, NULL));
net                76 net/ipv6/ipcomp6.c 	struct net *net = xs_net(x);
net                79 net/ipv6/ipcomp6.c 	t = xfrm_state_alloc(net);
net                84 net/ipv6/ipcomp6.c 	t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr);
net               112 net/ipv6/ipcomp6.c 	struct net *net = xs_net(x);
net               118 net/ipv6/ipcomp6.c 	spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr);
net               120 net/ipv6/ipcomp6.c 		t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr,
net               143 net/ipv6/ipv6_sockglue.c 	struct net *net = sock_net(sk);
net               219 net/ipv6/ipv6_sockglue.c 				sock_prot_inuse_add(net, sk->sk_prot, -1);
net               220 net/ipv6/ipv6_sockglue.c 				sock_prot_inuse_add(net, &tcp_prot, 1);
net               233 net/ipv6/ipv6_sockglue.c 				sock_prot_inuse_add(net, sk->sk_prot, -1);
net               234 net/ipv6/ipv6_sockglue.c 				sock_prot_inuse_add(net, prot, 1);
net               372 net/ipv6/ipv6_sockglue.c 		if (valbool && !ns_capable(net->user_ns, CAP_NET_RAW) &&
net               373 net/ipv6/ipv6_sockglue.c 		    !ns_capable(net->user_ns, CAP_NET_ADMIN)) {
net               409 net/ipv6/ipv6_sockglue.c 		if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW))
net               539 net/ipv6/ipv6_sockglue.c 		retv = ip6_datagram_send_ctl(net, sk, &msg, &fl6, &ipc6);
net               596 net/ipv6/ipv6_sockglue.c 		dev = dev_get_by_index(net, ifindex);
net               623 net/ipv6/ipv6_sockglue.c 			dev = dev_get_by_index_rcu(net, val);
net               836 net/ipv6/ipv6_sockglue.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               139 net/ipv6/mcast.c 	struct net *net = sock_net(sk);
net               167 net/ipv6/mcast.c 		rt = rt6_lookup(net, addr, NULL, 0, NULL, 0);
net               173 net/ipv6/mcast.c 		dev = __dev_get_by_index(net, ifindex);
net               222 net/ipv6/mcast.c 	struct net *net = sock_net(sk);
net               238 net/ipv6/mcast.c 			dev = __dev_get_by_index(net, mc_lst->ifindex);
net               259 net/ipv6/mcast.c static struct inet6_dev *ip6_mc_find_dev_rcu(struct net *net,
net               267 net/ipv6/mcast.c 		struct rt6_info *rt = rt6_lookup(net, group, NULL, 0, NULL, 0);
net               274 net/ipv6/mcast.c 		dev = dev_get_by_index_rcu(net, ifindex);
net               293 net/ipv6/mcast.c 	struct net *net = sock_net(sk);
net               302 net/ipv6/mcast.c 		dev = __dev_get_by_index(net, mc_lst->ifindex);
net               336 net/ipv6/mcast.c 	struct net *net = sock_net(sk);
net               349 net/ipv6/mcast.c 	idev = ip6_mc_find_dev_rcu(net, group, pgsr->gsr_interface);
net               467 net/ipv6/mcast.c 	struct net *net = sock_net(sk);
net               480 net/ipv6/mcast.c 	idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface);
net               558 net/ipv6/mcast.c 	struct net *net = sock_net(sk);
net               566 net/ipv6/mcast.c 	idev = ip6_mc_find_dev_rcu(net, group, gsf->gf_interface);
net              1592 net/ipv6/mcast.c 	struct net *net = dev_net(dev);
net              1593 net/ipv6/mcast.c 	struct sock *sk = net->ipv6.igmp_sk;
net              1649 net/ipv6/mcast.c 	struct net *net = dev_net(skb->dev);
net              1656 net/ipv6/mcast.c 	IP6_UPD_PO_STATS(net, idev, IPSTATS_MIB_OUT, skb->len);
net              1668 net/ipv6/mcast.c 	icmpv6_flow_init(net->ipv6.igmp_sk, &fl6, ICMPV6_MLD2_REPORT,
net              1683 net/ipv6/mcast.c 		      net, net->ipv6.igmp_sk, skb, NULL, skb->dev,
net              1687 net/ipv6/mcast.c 		ICMP6MSGOUT_INC_STATS(net, idev, ICMPV6_MLD2_REPORT);
net              1688 net/ipv6/mcast.c 		ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
net              1690 net/ipv6/mcast.c 		IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
net              1983 net/ipv6/mcast.c 	struct net *net = dev_net(dev);
net              1984 net/ipv6/mcast.c 	struct sock *sk = net->ipv6.igmp_sk;
net              2009 net/ipv6/mcast.c 	IP6_UPD_PO_STATS(net, __in6_dev_get(dev),
net              2017 net/ipv6/mcast.c 		IP6_INC_STATS(net, __in6_dev_get(dev),
net              2060 net/ipv6/mcast.c 		      net, sk, skb, NULL, skb->dev,
net              2064 net/ipv6/mcast.c 		ICMP6MSGOUT_INC_STATS(net, idev, type);
net              2065 net/ipv6/mcast.c 		ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
net              2067 net/ipv6/mcast.c 		IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
net              2678 net/ipv6/mcast.c 	struct net *net = seq_file_net(seq);
net              2681 net/ipv6/mcast.c 	for_each_netdev_rcu(net, state->dev) {
net              2793 net/ipv6/mcast.c 	struct net *net = seq_file_net(seq);
net              2797 net/ipv6/mcast.c 	for_each_netdev_rcu(net, state->dev) {
net              2920 net/ipv6/mcast.c static int __net_init igmp6_proc_init(struct net *net)
net              2925 net/ipv6/mcast.c 	if (!proc_create_net("igmp6", 0444, net->proc_net, &igmp6_mc_seq_ops,
net              2928 net/ipv6/mcast.c 	if (!proc_create_net("mcfilter6", 0444, net->proc_net,
net              2938 net/ipv6/mcast.c 	remove_proc_entry("igmp6", net->proc_net);
net              2942 net/ipv6/mcast.c static void __net_exit igmp6_proc_exit(struct net *net)
net              2944 net/ipv6/mcast.c 	remove_proc_entry("mcfilter6", net->proc_net);
net              2945 net/ipv6/mcast.c 	remove_proc_entry("igmp6", net->proc_net);
net              2948 net/ipv6/mcast.c static inline int igmp6_proc_init(struct net *net)
net              2952 net/ipv6/mcast.c static inline void igmp6_proc_exit(struct net *net)
net              2957 net/ipv6/mcast.c static int __net_init igmp6_net_init(struct net *net)
net              2961 net/ipv6/mcast.c 	err = inet_ctl_sock_create(&net->ipv6.igmp_sk, PF_INET6,
net              2962 net/ipv6/mcast.c 				   SOCK_RAW, IPPROTO_ICMPV6, net);
net              2969 net/ipv6/mcast.c 	inet6_sk(net->ipv6.igmp_sk)->hop_limit = 1;
net              2971 net/ipv6/mcast.c 	err = inet_ctl_sock_create(&net->ipv6.mc_autojoin_sk, PF_INET6,
net              2972 net/ipv6/mcast.c 				   SOCK_RAW, IPPROTO_ICMPV6, net);
net              2979 net/ipv6/mcast.c 	err = igmp6_proc_init(net);
net              2986 net/ipv6/mcast.c 	inet_ctl_sock_destroy(net->ipv6.mc_autojoin_sk);
net              2988 net/ipv6/mcast.c 	inet_ctl_sock_destroy(net->ipv6.igmp_sk);
net              2993 net/ipv6/mcast.c static void __net_exit igmp6_net_exit(struct net *net)
net              2995 net/ipv6/mcast.c 	inet_ctl_sock_destroy(net->ipv6.igmp_sk);
net              2996 net/ipv6/mcast.c 	inet_ctl_sock_destroy(net->ipv6.mc_autojoin_sk);
net              2997 net/ipv6/mcast.c 	igmp6_proc_exit(net);
net               199 net/ipv6/mip6.c 	struct net *net = xs_net(x);
net               243 net/ipv6/mip6.c 	err = km_report(net, IPPROTO_DSTOPTS, &sel,
net               471 net/ipv6/ndisc.c 	struct net *net = dev_net(skb->dev);
net               472 net/ipv6/ndisc.c 	struct sock *sk = net->ipv6.ndisc_sk;
net               503 net/ipv6/ndisc.c 	IP6_UPD_PO_STATS(net, idev, IPSTATS_MIB_OUT, skb->len);
net               506 net/ipv6/ndisc.c 		      net, sk, skb, NULL, dst->dev,
net               509 net/ipv6/ndisc.c 		ICMP6MSGOUT_INC_STATS(net, idev, type);
net               510 net/ipv6/ndisc.c 		ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS);
net               868 net/ipv6/ndisc.c 		struct net *net = dev_net(dev);
net               876 net/ipv6/ndisc.c 				ifp = ipv6_get_ifaddr(net, &msg->target, mdev, 1);
net               888 net/ipv6/ndisc.c 		if (ipv6_chk_acast_addr(net, dev, &msg->target) ||
net               890 net/ipv6/ndisc.c 		     (net->ipv6.devconf_all->proxy_ndp || idev->cnf.proxy_ndp) &&
net              1028 net/ipv6/ndisc.c 		struct net *net = dev_net(dev);
net              1039 net/ipv6/ndisc.c 		    net->ipv6.devconf_all->forwarding && net->ipv6.devconf_all->proxy_ndp &&
net              1040 net/ipv6/ndisc.c 		    pneigh_lookup(&nd_tbl, net, &msg->target, dev, 0)) {
net              1127 net/ipv6/ndisc.c 	struct net *net = dev_net(ra->dev);
net              1157 net/ipv6/ndisc.c 	rtnl_notify(skb, net, 0, RTNLGRP_ND_USEROPT, NULL, GFP_ATOMIC);
net              1164 net/ipv6/ndisc.c 	rtnl_set_sk_err(net, RTNLGRP_ND_USEROPT, err);
net              1173 net/ipv6/ndisc.c 	struct net *net;
net              1271 net/ipv6/ndisc.c 	net = dev_net(in6_dev->dev);
net              1273 net/ipv6/ndisc.c 	    ipv6_chk_addr(net, &ipv6_hdr(skb)->saddr, in6_dev->dev, 0)) {
net              1290 net/ipv6/ndisc.c 	rt = rt6_get_dflt_router(net, &ipv6_hdr(skb)->saddr, skb->dev);
net              1304 net/ipv6/ndisc.c 		ip6_del_rt(net, rt);
net              1313 net/ipv6/ndisc.c 		rt = rt6_add_dflt_router(net, &ipv6_hdr(skb)->saddr,
net              1579 net/ipv6/ndisc.c 	struct net *net = dev_net(dev);
net              1580 net/ipv6/ndisc.c 	struct sock *sk = net->ipv6.ndisc_sk;
net              1616 net/ipv6/ndisc.c 	dst = ip6_route_output(net, NULL, &fl6);
net              1621 net/ipv6/ndisc.c 	dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
net              1632 net/ipv6/ndisc.c 	peer = inet_getpeer_v6(net->ipv6.peers, &ipv6_hdr(skb)->saddr, 1);
net              1778 net/ipv6/ndisc.c 	struct net *net = dev_net(dev);
net              1784 net/ipv6/ndisc.c 		fib6_run_gc(0, net, false);
net              1791 net/ipv6/ndisc.c 		    net->ipv6.devconf_all->ndisc_notify)
net              1804 net/ipv6/ndisc.c 		fib6_run_gc(0, net, false);
net              1875 net/ipv6/ndisc.c static int __net_init ndisc_net_init(struct net *net)
net              1882 net/ipv6/ndisc.c 				   SOCK_RAW, IPPROTO_ICMPV6, net);
net              1890 net/ipv6/ndisc.c 	net->ipv6.ndisc_sk = sk;
net              1900 net/ipv6/ndisc.c static void __net_exit ndisc_net_exit(struct net *net)
net              1902 net/ipv6/ndisc.c 	inet_ctl_sock_destroy(net->ipv6.ndisc_sk);
net                23 net/ipv6/netfilter.c int ip6_route_me_harder(struct net *net, struct sk_buff *skb)
net                35 net/ipv6/netfilter.c 		.flowi6_uid = sock_net_uid(net, sk),
net                41 net/ipv6/netfilter.c 	dst = ip6_route_output(net, sk, &fl6);
net                44 net/ipv6/netfilter.c 		IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
net                59 net/ipv6/netfilter.c 		dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), sk, 0);
net                87 net/ipv6/netfilter.c 			return ip6_route_me_harder(entry->state.net, skb);
net                92 net/ipv6/netfilter.c int __nf_ip6_route(struct net *net, struct dst_entry **dst,
net               105 net/ipv6/netfilter.c 	result = ip6_route_output(net, sk, &fl->u.ip6);
net               115 net/ipv6/netfilter.c int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net               117 net/ipv6/netfilter.c 		    int (*output)(struct net *, struct sock *sk,
net               145 net/ipv6/netfilter.c 	frag_id = ipv6_select_ident(net, &ipv6_hdr(skb)->daddr,
net               188 net/ipv6/netfilter.c 			err = output(net, sk, data, skb);
net               221 net/ipv6/netfilter.c 		err = output(net, sk, data, skb2);
net               212 net/ipv6/netfilter/ip6_tables.c static void trace_packet(struct net *net,
net               236 net/ipv6/netfilter/ip6_tables.c 	nf_log_trace(net, AF_INET6, hook, skb, in, out, &trace_loginfo,
net               330 net/ipv6/netfilter/ip6_tables.c 			trace_packet(state->net, skb, hook, state->in,
net               469 net/ipv6/netfilter/ip6_tables.c static void cleanup_match(struct xt_entry_match *m, struct net *net)
net               473 net/ipv6/netfilter/ip6_tables.c 	par.net       = net;
net               516 net/ipv6/netfilter/ip6_tables.c static int check_target(struct ip6t_entry *e, struct net *net, const char *name)
net               520 net/ipv6/netfilter/ip6_tables.c 		.net       = net,
net               535 net/ipv6/netfilter/ip6_tables.c find_check_entry(struct ip6t_entry *e, struct net *net, const char *name,
net               551 net/ipv6/netfilter/ip6_tables.c 	mtpar.net	= net;
net               572 net/ipv6/netfilter/ip6_tables.c 	ret = check_target(e, net, name);
net               582 net/ipv6/netfilter/ip6_tables.c 		cleanup_match(ematch, net);
net               654 net/ipv6/netfilter/ip6_tables.c static void cleanup_entry(struct ip6t_entry *e, struct net *net)
net               662 net/ipv6/netfilter/ip6_tables.c 		cleanup_match(ematch, net);
net               665 net/ipv6/netfilter/ip6_tables.c 	par.net      = net;
net               678 net/ipv6/netfilter/ip6_tables.c translate_table(struct net *net, struct xt_table_info *newinfo, void *entry0,
net               734 net/ipv6/netfilter/ip6_tables.c 		ret = find_check_entry(iter, net, repl->name, repl->size,
net               745 net/ipv6/netfilter/ip6_tables.c 			cleanup_entry(iter, net);
net               963 net/ipv6/netfilter/ip6_tables.c static int get_info(struct net *net, void __user *user,
net               981 net/ipv6/netfilter/ip6_tables.c 	t = xt_request_find_table_lock(net, AF_INET6, name);
net              1021 net/ipv6/netfilter/ip6_tables.c get_entries(struct net *net, struct ip6t_get_entries __user *uptr,
net              1037 net/ipv6/netfilter/ip6_tables.c 	t = xt_find_table_lock(net, AF_INET6, get.name);
net              1055 net/ipv6/netfilter/ip6_tables.c __do_replace(struct net *net, const char *name, unsigned int valid_hooks,
net              1072 net/ipv6/netfilter/ip6_tables.c 	t = xt_request_find_table_lock(net, AF_INET6, name);
net              1102 net/ipv6/netfilter/ip6_tables.c 		cleanup_entry(iter, net);
net              1123 net/ipv6/netfilter/ip6_tables.c do_replace(struct net *net, const void __user *user, unsigned int len)
net              1153 net/ipv6/netfilter/ip6_tables.c 	ret = translate_table(net, newinfo, loc_cpu_entry, &tmp);
net              1157 net/ipv6/netfilter/ip6_tables.c 	ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo,
net              1165 net/ipv6/netfilter/ip6_tables.c 		cleanup_entry(iter, net);
net              1172 net/ipv6/netfilter/ip6_tables.c do_add_counters(struct net *net, const void __user *user, unsigned int len,
net              1187 net/ipv6/netfilter/ip6_tables.c 	t = xt_find_table_lock(net, AF_INET6, tmp.name);
net              1406 net/ipv6/netfilter/ip6_tables.c translate_compat_table(struct net *net,
net              1474 net/ipv6/netfilter/ip6_tables.c 	ret = translate_table(net, newinfo, entry1, &repl);
net              1498 net/ipv6/netfilter/ip6_tables.c compat_do_replace(struct net *net, void __user *user, unsigned int len)
net              1528 net/ipv6/netfilter/ip6_tables.c 	ret = translate_compat_table(net, &newinfo, &loc_cpu_entry, &tmp);
net              1532 net/ipv6/netfilter/ip6_tables.c 	ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo,
net              1540 net/ipv6/netfilter/ip6_tables.c 		cleanup_entry(iter, net);
net              1607 net/ipv6/netfilter/ip6_tables.c compat_get_entries(struct net *net, struct compat_ip6t_get_entries __user *uptr,
net              1626 net/ipv6/netfilter/ip6_tables.c 	t = xt_find_table_lock(net, AF_INET6, get.name);
net              1746 net/ipv6/netfilter/ip6_tables.c static void __ip6t_unregister_table(struct net *net, struct xt_table *table)
net              1758 net/ipv6/netfilter/ip6_tables.c 		cleanup_entry(iter, net);
net              1764 net/ipv6/netfilter/ip6_tables.c int ip6t_register_table(struct net *net, const struct xt_table *table,
net              1782 net/ipv6/netfilter/ip6_tables.c 	ret = translate_table(net, newinfo, loc_cpu_entry, repl);
net              1786 net/ipv6/netfilter/ip6_tables.c 	new_table = xt_register_table(net, table, &bootstrap, newinfo);
net              1797 net/ipv6/netfilter/ip6_tables.c 	ret = nf_register_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1799 net/ipv6/netfilter/ip6_tables.c 		__ip6t_unregister_table(net, new_table);
net              1810 net/ipv6/netfilter/ip6_tables.c void ip6t_unregister_table(struct net *net, struct xt_table *table,
net              1814 net/ipv6/netfilter/ip6_tables.c 		nf_unregister_net_hooks(net, ops, hweight32(table->valid_hooks));
net              1815 net/ipv6/netfilter/ip6_tables.c 	__ip6t_unregister_table(net, table);
net              1913 net/ipv6/netfilter/ip6_tables.c static int __net_init ip6_tables_net_init(struct net *net)
net              1915 net/ipv6/netfilter/ip6_tables.c 	return xt_proto_init(net, NFPROTO_IPV6);
net              1918 net/ipv6/netfilter/ip6_tables.c static void __net_exit ip6_tables_net_exit(struct net *net)
net              1920 net/ipv6/netfilter/ip6_tables.c 	xt_proto_fini(net, NFPROTO_IPV6);
net                38 net/ipv6/netfilter/ip6t_REJECT.c 	struct net *net = xt_net(par);
net                42 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_NOROUTE, xt_hooknum(par));
net                45 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED,
net                49 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_NOT_NEIGHBOUR,
net                53 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_ADDR_UNREACH,
net                57 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_PORT_UNREACH,
net                64 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_reset6(net, skb, xt_hooknum(par));
net                67 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_POLICY_FAIL, xt_hooknum(par));
net                70 net/ipv6/netfilter/ip6t_REJECT.c 		nf_send_unreach6(net, skb, ICMPV6_REJECT_ROUTE,
net                16 net/ipv6/netfilter/ip6t_SYNPROXY.c 	struct net *net = xt_net(par);
net                17 net/ipv6/netfilter/ip6t_SYNPROXY.c 	struct synproxy_net *snet = synproxy_pernet(net);
net                48 net/ipv6/netfilter/ip6t_SYNPROXY.c 		synproxy_send_client_synack_ipv6(net, skb, th, &opts);
net                54 net/ipv6/netfilter/ip6t_SYNPROXY.c 		if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts,
net                68 net/ipv6/netfilter/ip6t_SYNPROXY.c 	struct synproxy_net *snet = synproxy_pernet(par->net);
net                77 net/ipv6/netfilter/ip6t_SYNPROXY.c 	err = nf_ct_netns_get(par->net, par->family);
net                81 net/ipv6/netfilter/ip6t_SYNPROXY.c 	err = nf_synproxy_ipv6_init(snet, par->net);
net                83 net/ipv6/netfilter/ip6t_SYNPROXY.c 		nf_ct_netns_put(par->net, par->family);
net                92 net/ipv6/netfilter/ip6t_SYNPROXY.c 	struct synproxy_net *snet = synproxy_pernet(par->net);
net                94 net/ipv6/netfilter/ip6t_SYNPROXY.c 	nf_synproxy_ipv6_fini(snet, par->net);
net                95 net/ipv6/netfilter/ip6t_SYNPROXY.c 	nf_ct_netns_put(par->net, par->family);
net                32 net/ipv6/netfilter/ip6t_rpfilter.c static bool rpfilter_lookup_reverse6(struct net *net, const struct sk_buff *skb,
net                63 net/ipv6/netfilter/ip6t_rpfilter.c 	rt = (void *)ip6_route_lookup(net, &fl6, skb, lookup_flags);
net                22 net/ipv6/netfilter/ip6table_filter.c static int __net_init ip6table_filter_table_init(struct net *net);
net                38 net/ipv6/netfilter/ip6table_filter.c 	return ip6t_do_table(skb, state, state->net->ipv6.ip6table_filter);
net                47 net/ipv6/netfilter/ip6table_filter.c static int __net_init ip6table_filter_table_init(struct net *net)
net                52 net/ipv6/netfilter/ip6table_filter.c 	if (net->ipv6.ip6table_filter)
net                62 net/ipv6/netfilter/ip6table_filter.c 	err = ip6t_register_table(net, &packet_filter, repl, filter_ops,
net                63 net/ipv6/netfilter/ip6table_filter.c 				  &net->ipv6.ip6table_filter);
net                68 net/ipv6/netfilter/ip6table_filter.c static int __net_init ip6table_filter_net_init(struct net *net)
net                70 net/ipv6/netfilter/ip6table_filter.c 	if (net == &init_net || !forward)
net                71 net/ipv6/netfilter/ip6table_filter.c 		return ip6table_filter_table_init(net);
net                76 net/ipv6/netfilter/ip6table_filter.c static void __net_exit ip6table_filter_net_exit(struct net *net)
net                78 net/ipv6/netfilter/ip6table_filter.c 	if (!net->ipv6.ip6table_filter)
net                80 net/ipv6/netfilter/ip6table_filter.c 	ip6t_unregister_table(net, net->ipv6.ip6table_filter, filter_ops);
net                81 net/ipv6/netfilter/ip6table_filter.c 	net->ipv6.ip6table_filter = NULL;
net                23 net/ipv6/netfilter/ip6table_mangle.c static int __net_init ip6table_mangle_table_init(struct net *net);
net                52 net/ipv6/netfilter/ip6table_mangle.c 	ret = ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle);
net                60 net/ipv6/netfilter/ip6table_mangle.c 		err = ip6_route_me_harder(state->net, skb);
net                75 net/ipv6/netfilter/ip6table_mangle.c 	return ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle);
net                79 net/ipv6/netfilter/ip6table_mangle.c static int __net_init ip6table_mangle_table_init(struct net *net)
net                84 net/ipv6/netfilter/ip6table_mangle.c 	if (net->ipv6.ip6table_mangle)
net                90 net/ipv6/netfilter/ip6table_mangle.c 	ret = ip6t_register_table(net, &packet_mangler, repl, mangle_ops,
net                91 net/ipv6/netfilter/ip6table_mangle.c 				  &net->ipv6.ip6table_mangle);
net                96 net/ipv6/netfilter/ip6table_mangle.c static void __net_exit ip6table_mangle_net_exit(struct net *net)
net                98 net/ipv6/netfilter/ip6table_mangle.c 	if (!net->ipv6.ip6table_mangle)
net               101 net/ipv6/netfilter/ip6table_mangle.c 	ip6t_unregister_table(net, net->ipv6.ip6table_mangle, mangle_ops);
net               102 net/ipv6/netfilter/ip6table_mangle.c 	net->ipv6.ip6table_mangle = NULL;
net                18 net/ipv6/netfilter/ip6table_nat.c static int __net_init ip6table_nat_table_init(struct net *net);
net                35 net/ipv6/netfilter/ip6table_nat.c 	return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat);
net                65 net/ipv6/netfilter/ip6table_nat.c static int ip6t_nat_register_lookups(struct net *net)
net                70 net/ipv6/netfilter/ip6table_nat.c 		ret = nf_nat_ipv6_register_fn(net, &nf_nat_ipv6_ops[i]);
net                73 net/ipv6/netfilter/ip6table_nat.c 				nf_nat_ipv6_unregister_fn(net, &nf_nat_ipv6_ops[--i]);
net                82 net/ipv6/netfilter/ip6table_nat.c static void ip6t_nat_unregister_lookups(struct net *net)
net                87 net/ipv6/netfilter/ip6table_nat.c 		nf_nat_ipv6_unregister_fn(net, &nf_nat_ipv6_ops[i]);
net                90 net/ipv6/netfilter/ip6table_nat.c static int __net_init ip6table_nat_table_init(struct net *net)
net                95 net/ipv6/netfilter/ip6table_nat.c 	if (net->ipv6.ip6table_nat)
net               101 net/ipv6/netfilter/ip6table_nat.c 	ret = ip6t_register_table(net, &nf_nat_ipv6_table, repl,
net               102 net/ipv6/netfilter/ip6table_nat.c 				  NULL, &net->ipv6.ip6table_nat);
net               108 net/ipv6/netfilter/ip6table_nat.c 	ret = ip6t_nat_register_lookups(net);
net               110 net/ipv6/netfilter/ip6table_nat.c 		ip6t_unregister_table(net, net->ipv6.ip6table_nat, NULL);
net               111 net/ipv6/netfilter/ip6table_nat.c 		net->ipv6.ip6table_nat = NULL;
net               117 net/ipv6/netfilter/ip6table_nat.c static void __net_exit ip6table_nat_net_exit(struct net *net)
net               119 net/ipv6/netfilter/ip6table_nat.c 	if (!net->ipv6.ip6table_nat)
net               121 net/ipv6/netfilter/ip6table_nat.c 	ip6t_nat_unregister_lookups(net);
net               122 net/ipv6/netfilter/ip6table_nat.c 	ip6t_unregister_table(net, net->ipv6.ip6table_nat, NULL);
net               123 net/ipv6/netfilter/ip6table_nat.c 	net->ipv6.ip6table_nat = NULL;
net                14 net/ipv6/netfilter/ip6table_raw.c static int __net_init ip6table_raw_table_init(struct net *net);
net                43 net/ipv6/netfilter/ip6table_raw.c 	return ip6t_do_table(skb, state, state->net->ipv6.ip6table_raw);
net                48 net/ipv6/netfilter/ip6table_raw.c static int __net_init ip6table_raw_table_init(struct net *net)
net                57 net/ipv6/netfilter/ip6table_raw.c 	if (net->ipv6.ip6table_raw)
net                63 net/ipv6/netfilter/ip6table_raw.c 	ret = ip6t_register_table(net, table, repl, rawtable_ops,
net                64 net/ipv6/netfilter/ip6table_raw.c 				  &net->ipv6.ip6table_raw);
net                69 net/ipv6/netfilter/ip6table_raw.c static void __net_exit ip6table_raw_net_exit(struct net *net)
net                71 net/ipv6/netfilter/ip6table_raw.c 	if (!net->ipv6.ip6table_raw)
net                73 net/ipv6/netfilter/ip6table_raw.c 	ip6t_unregister_table(net, net->ipv6.ip6table_raw, rawtable_ops);
net                74 net/ipv6/netfilter/ip6table_raw.c 	net->ipv6.ip6table_raw = NULL;
net                27 net/ipv6/netfilter/ip6table_security.c static int __net_init ip6table_security_table_init(struct net *net);
net                42 net/ipv6/netfilter/ip6table_security.c 	return ip6t_do_table(skb, state, state->net->ipv6.ip6table_security);
net                47 net/ipv6/netfilter/ip6table_security.c static int __net_init ip6table_security_table_init(struct net *net)
net                52 net/ipv6/netfilter/ip6table_security.c 	if (net->ipv6.ip6table_security)
net                58 net/ipv6/netfilter/ip6table_security.c 	ret = ip6t_register_table(net, &security_table, repl, sectbl_ops,
net                59 net/ipv6/netfilter/ip6table_security.c 				  &net->ipv6.ip6table_security);
net                64 net/ipv6/netfilter/ip6table_security.c static void __net_exit ip6table_security_net_exit(struct net *net)
net                66 net/ipv6/netfilter/ip6table_security.c 	if (!net->ipv6.ip6table_security)
net                68 net/ipv6/netfilter/ip6table_security.c 	ip6t_unregister_table(net, net->ipv6.ip6table_security, sectbl_ops);
net                69 net/ipv6/netfilter/ip6table_security.c 	net->ipv6.ip6table_security = NULL;
net                76 net/ipv6/netfilter/nf_conntrack_reasm.c static int nf_ct_frag6_sysctl_register(struct net *net)
net                82 net/ipv6/netfilter/nf_conntrack_reasm.c 	if (!net_eq(net, &init_net)) {
net                89 net/ipv6/netfilter/nf_conntrack_reasm.c 	table[0].data	= &net->nf_frag.fqdir->timeout;
net                90 net/ipv6/netfilter/nf_conntrack_reasm.c 	table[1].data	= &net->nf_frag.fqdir->low_thresh;
net                91 net/ipv6/netfilter/nf_conntrack_reasm.c 	table[1].extra2	= &net->nf_frag.fqdir->high_thresh;
net                92 net/ipv6/netfilter/nf_conntrack_reasm.c 	table[2].data	= &net->nf_frag.fqdir->high_thresh;
net                93 net/ipv6/netfilter/nf_conntrack_reasm.c 	table[2].extra1	= &net->nf_frag.fqdir->low_thresh;
net                96 net/ipv6/netfilter/nf_conntrack_reasm.c 	hdr = register_net_sysctl(net, "net/netfilter", table);
net               100 net/ipv6/netfilter/nf_conntrack_reasm.c 	net->nf_frag_frags_hdr = hdr;
net               104 net/ipv6/netfilter/nf_conntrack_reasm.c 	if (!net_eq(net, &init_net))
net               110 net/ipv6/netfilter/nf_conntrack_reasm.c static void __net_exit nf_ct_frags6_sysctl_unregister(struct net *net)
net               114 net/ipv6/netfilter/nf_conntrack_reasm.c 	table = net->nf_frag_frags_hdr->ctl_table_arg;
net               115 net/ipv6/netfilter/nf_conntrack_reasm.c 	unregister_net_sysctl_table(net->nf_frag_frags_hdr);
net               116 net/ipv6/netfilter/nf_conntrack_reasm.c 	if (!net_eq(net, &init_net))
net               121 net/ipv6/netfilter/nf_conntrack_reasm.c static int nf_ct_frag6_sysctl_register(struct net *net)
net               125 net/ipv6/netfilter/nf_conntrack_reasm.c static void __net_exit nf_ct_frags6_sysctl_unregister(struct net *net)
net               145 net/ipv6/netfilter/nf_conntrack_reasm.c 	ip6frag_expire_frag_queue(fq->q.fqdir->net, fq);
net               149 net/ipv6/netfilter/nf_conntrack_reasm.c static struct frag_queue *fq_find(struct net *net, __be32 id, u32 user,
net               161 net/ipv6/netfilter/nf_conntrack_reasm.c 	q = inet_frag_find(net->nf_frag.fqdir, &key);
net               439 net/ipv6/netfilter/nf_conntrack_reasm.c int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user)
net               465 net/ipv6/netfilter/nf_conntrack_reasm.c 	fq = fq_find(net, fhdr->identification, user, hdr,
net               486 net/ipv6/netfilter/nf_conntrack_reasm.c static int nf_ct_net_init(struct net *net)
net               490 net/ipv6/netfilter/nf_conntrack_reasm.c 	res = fqdir_init(&net->nf_frag.fqdir, &nf_frags, net);
net               494 net/ipv6/netfilter/nf_conntrack_reasm.c 	net->nf_frag.fqdir->high_thresh = IPV6_FRAG_HIGH_THRESH;
net               495 net/ipv6/netfilter/nf_conntrack_reasm.c 	net->nf_frag.fqdir->low_thresh = IPV6_FRAG_LOW_THRESH;
net               496 net/ipv6/netfilter/nf_conntrack_reasm.c 	net->nf_frag.fqdir->timeout = IPV6_FRAG_TIMEOUT;
net               498 net/ipv6/netfilter/nf_conntrack_reasm.c 	res = nf_ct_frag6_sysctl_register(net);
net               500 net/ipv6/netfilter/nf_conntrack_reasm.c 		fqdir_exit(net->nf_frag.fqdir);
net               504 net/ipv6/netfilter/nf_conntrack_reasm.c static void nf_ct_net_pre_exit(struct net *net)
net               506 net/ipv6/netfilter/nf_conntrack_reasm.c 	fqdir_pre_exit(net->nf_frag.fqdir);
net               509 net/ipv6/netfilter/nf_conntrack_reasm.c static void nf_ct_net_exit(struct net *net)
net               511 net/ipv6/netfilter/nf_conntrack_reasm.c 	nf_ct_frags6_sysctl_unregister(net);
net               512 net/ipv6/netfilter/nf_conntrack_reasm.c 	fqdir_exit(net->nf_frag.fqdir);
net                66 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 	err = nf_ct_frag6_gather(state->net, skb,
net                90 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c static void __net_exit defrag6_net_exit(struct net *net)
net                92 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 	if (net->nf.defrag_ipv6) {
net                93 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 		nf_unregister_net_hooks(net, ipv6_defrag_ops,
net                95 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 		net->nf.defrag_ipv6 = false;
net               131 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c int nf_defrag_ipv6_enable(struct net *net)
net               137 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 	if (net->nf.defrag_ipv6)
net               141 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 	if (net->nf.defrag_ipv6)
net               144 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 	err = nf_register_net_hooks(net, ipv6_defrag_ops,
net               147 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c 		net->nf.defrag_ipv6 = true;
net                19 net/ipv6/netfilter/nf_dup_ipv6.c static bool nf_dup_ipv6_route(struct net *net, struct sk_buff *skb,
net                34 net/ipv6/netfilter/nf_dup_ipv6.c 	dst = ip6_route_output(net, NULL, &fl6);
net                47 net/ipv6/netfilter/nf_dup_ipv6.c void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum,
net                65 net/ipv6/netfilter/nf_dup_ipv6.c 	if (nf_dup_ipv6_route(net, skb, gw, oif)) {
net                67 net/ipv6/netfilter/nf_dup_ipv6.c 		ip6_local_out(net, skb->sk, skb);
net                36 net/ipv6/netfilter/nf_log_ipv6.c static void dump_ipv6_packet(struct net *net, struct nf_log_buf *m,
net               258 net/ipv6/netfilter/nf_log_ipv6.c 				dump_ipv6_packet(net, m, info, skb,
net               278 net/ipv6/netfilter/nf_log_ipv6.c 		nf_log_dump_sk_uid_gid(net, m, skb->sk);
net               341 net/ipv6/netfilter/nf_log_ipv6.c static void nf_log_ip6_packet(struct net *net, u_int8_t pf,
net               351 net/ipv6/netfilter/nf_log_ipv6.c 	if (!net_eq(net, &init_net) && !sysctl_nf_log_all_netns)
net               365 net/ipv6/netfilter/nf_log_ipv6.c 	dump_ipv6_packet(net, m, loginfo, skb, skb_network_offset(skb), 1);
net               377 net/ipv6/netfilter/nf_log_ipv6.c static int __net_init nf_log_ipv6_net_init(struct net *net)
net               379 net/ipv6/netfilter/nf_log_ipv6.c 	return nf_log_set(net, NFPROTO_IPV6, &nf_ip6_logger);
net               382 net/ipv6/netfilter/nf_log_ipv6.c static void __net_exit nf_log_ipv6_net_exit(struct net *net)
net               384 net/ipv6/netfilter/nf_log_ipv6.c 	nf_log_unset(net, &nf_ip6_logger);
net               129 net/ipv6/netfilter/nf_reject_ipv6.c void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook)
net               158 net/ipv6/netfilter/nf_reject_ipv6.c 	fl6.flowi6_mark = IP6_REPLY_MARK(net, oldskb->mark);
net               160 net/ipv6/netfilter/nf_reject_ipv6.c 	dst = ip6_route_output(net, NULL, &fl6);
net               165 net/ipv6/netfilter/nf_reject_ipv6.c 	dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
net               213 net/ipv6/netfilter/nf_reject_ipv6.c 		ip6_local_out(net, nskb->sk, nskb);
net               239 net/ipv6/netfilter/nf_reject_ipv6.c void nf_send_unreach6(struct net *net, struct sk_buff *skb_in,
net               246 net/ipv6/netfilter/nf_reject_ipv6.c 		skb_in->dev = net->loopback_dev;
net                78 net/ipv6/netfilter/nf_socket_ipv6.c nf_socket_get_sock_v6(struct net *net, struct sk_buff *skb, int doff,
net                86 net/ipv6/netfilter/nf_socket_ipv6.c 		return inet6_lookup(net, &tcp_hashinfo, skb, doff,
net                90 net/ipv6/netfilter/nf_socket_ipv6.c 		return udp6_lib_lookup(net, saddr, sport, daddr, dport,
net                97 net/ipv6/netfilter/nf_socket_ipv6.c struct sock *nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb,
net               141 net/ipv6/netfilter/nf_socket_ipv6.c 	return nf_socket_get_sock_v6(net, data_skb, doff, tproto, saddr, daddr,
net                40 net/ipv6/netfilter/nf_tproxy_ipv6.c 			 struct net *net,
net                59 net/ipv6/netfilter/nf_tproxy_ipv6.c 		sk2 = nf_tproxy_get_sock_v6(net, skb, thoff, tproto,
net                76 net/ipv6/netfilter/nf_tproxy_ipv6.c nf_tproxy_get_sock_v6(struct net *net, struct sk_buff *skb, int thoff,
net                96 net/ipv6/netfilter/nf_tproxy_ipv6.c 			sk = inet6_lookup_listener(net, &tcp_hashinfo, skb,
net               111 net/ipv6/netfilter/nf_tproxy_ipv6.c 			sk = __inet6_lookup_established(net, &tcp_hashinfo,
net               121 net/ipv6/netfilter/nf_tproxy_ipv6.c 		sk = udp6_lib_lookup(net, saddr, sport, daddr, dport,
net                14 net/ipv6/output_core.c static u32 __ipv6_select_ident(struct net *net,
net                28 net/ipv6/output_core.c 	if (unlikely(siphash_key_is_zero(&net->ipv4.ip_id_key)))
net                29 net/ipv6/output_core.c 		get_random_bytes(&net->ipv4.ip_id_key,
net                30 net/ipv6/output_core.c 				 sizeof(net->ipv4.ip_id_key));
net                32 net/ipv6/output_core.c 	hash = siphash(&combined, sizeof(combined), &net->ipv4.ip_id_key);
net                53 net/ipv6/output_core.c __be32 ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb)
net                66 net/ipv6/output_core.c 	id = __ipv6_select_ident(net, &addrs[1], &addrs[0]);
net                71 net/ipv6/output_core.c __be32 ipv6_select_ident(struct net *net,
net                77 net/ipv6/output_core.c 	id = __ipv6_select_ident(net, daddr, saddr);
net               148 net/ipv6/output_core.c int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net               168 net/ipv6/output_core.c 		       net, sk, skb, NULL, skb_dst(skb)->dev,
net               173 net/ipv6/output_core.c int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net               177 net/ipv6/output_core.c 	err = __ip6_local_out(net, sk, skb);
net               179 net/ipv6/output_core.c 		err = dst_output(net, sk, skb);
net                41 net/ipv6/ping.c static int dummy_ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
net               218 net/ipv6/ping.c static int __net_init ping_v6_proc_init_net(struct net *net)
net               220 net/ipv6/ping.c 	if (!proc_create_net("icmp6", 0444, net->proc_net, &ping_v6_seq_ops,
net               226 net/ipv6/ping.c static void __net_exit ping_v6_proc_exit_net(struct net *net)
net               228 net/ipv6/ping.c 	remove_proc_entry("icmp6", net->proc_net);
net                36 net/ipv6/proc.c 	struct net *net = seq->private;
net                39 net/ipv6/proc.c 		       sock_prot_inuse_get(net, &tcpv6_prot));
net                41 net/ipv6/proc.c 		       sock_prot_inuse_get(net, &udpv6_prot));
net                43 net/ipv6/proc.c 			sock_prot_inuse_get(net, &udplitev6_prot));
net                45 net/ipv6/proc.c 		       sock_prot_inuse_get(net, &rawv6_prot));
net                47 net/ipv6/proc.c 		   atomic_read(&net->ipv6.fqdir->rhashtable.nelems),
net                48 net/ipv6/proc.c 		   frag_mem_limit(net->ipv6.fqdir));
net               215 net/ipv6/proc.c 	struct net *net = (struct net *)seq->private;
net               217 net/ipv6/proc.c 	snmp6_seq_show_item64(seq, net->mib.ipv6_statistics,
net               219 net/ipv6/proc.c 	snmp6_seq_show_item(seq, net->mib.icmpv6_statistics,
net               221 net/ipv6/proc.c 	snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs);
net               222 net/ipv6/proc.c 	snmp6_seq_show_item(seq, net->mib.udp_stats_in6,
net               224 net/ipv6/proc.c 	snmp6_seq_show_item(seq, net->mib.udplite_stats_in6,
net               245 net/ipv6/proc.c 	struct net *net;
net               250 net/ipv6/proc.c 	net = dev_net(idev->dev);
net               251 net/ipv6/proc.c 	if (!net->mib.proc_net_devsnmp6)
net               255 net/ipv6/proc.c 			net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev);
net               265 net/ipv6/proc.c 	struct net *net = dev_net(idev->dev);
net               266 net/ipv6/proc.c 	if (!net->mib.proc_net_devsnmp6)
net               275 net/ipv6/proc.c static int __net_init ipv6_proc_init_net(struct net *net)
net               277 net/ipv6/proc.c 	if (!proc_create_net_single("sockstat6", 0444, net->proc_net,
net               281 net/ipv6/proc.c 	if (!proc_create_net_single("snmp6", 0444, net->proc_net,
net               285 net/ipv6/proc.c 	net->mib.proc_net_devsnmp6 = proc_mkdir("dev_snmp6", net->proc_net);
net               286 net/ipv6/proc.c 	if (!net->mib.proc_net_devsnmp6)
net               291 net/ipv6/proc.c 	remove_proc_entry("snmp6", net->proc_net);
net               293 net/ipv6/proc.c 	remove_proc_entry("sockstat6", net->proc_net);
net               297 net/ipv6/proc.c static void __net_exit ipv6_proc_exit_net(struct net *net)
net               299 net/ipv6/proc.c 	remove_proc_entry("sockstat6", net->proc_net);
net               300 net/ipv6/proc.c 	remove_proc_entry("dev_snmp6", net->proc_net);
net               301 net/ipv6/proc.c 	remove_proc_entry("snmp6", net->proc_net);
net                69 net/ipv6/raw.c struct sock *__raw_v6_lookup(struct net *net, struct sock *sk,
net                78 net/ipv6/raw.c 			if (!net_eq(sock_net(sk), net))
net                85 net/ipv6/raw.c 			if (!raw_sk_bound_dev_eq(net, sk->sk_bound_dev_if,
net               164 net/ipv6/raw.c 	struct net *net;
net               177 net/ipv6/raw.c 	net = dev_net(skb->dev);
net               178 net/ipv6/raw.c 	sk = __raw_v6_lookup(net, sk, nexthdr, daddr, saddr,
net               222 net/ipv6/raw.c 		sk = __raw_v6_lookup(net, sk_next(sk), nexthdr, daddr, saddr,
net               367 net/ipv6/raw.c 	struct net *net;
net               378 net/ipv6/raw.c 		net = dev_net(skb->dev);
net               380 net/ipv6/raw.c 		while ((sk = __raw_v6_lookup(net, sk, nexthdr, saddr, daddr,
net               623 net/ipv6/raw.c 	struct net *net = sock_net(sk);
net               686 net/ipv6/raw.c 	IP6_UPD_PO_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len);
net               687 net/ipv6/raw.c 	err = NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, sk, skb,
net               692 net/ipv6/raw.c 		IP6_INC_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS);
net               701 net/ipv6/raw.c 	IP6_INC_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS);
net              1328 net/ipv6/raw.c static int __net_init raw6_init_net(struct net *net)
net              1330 net/ipv6/raw.c 	if (!proc_create_net_data("raw6", 0444, net->proc_net, &raw6_seq_ops,
net              1337 net/ipv6/raw.c static void __net_exit raw6_exit_net(struct net *net)
net              1339 net/ipv6/raw.c 	remove_proc_entry("raw6", net->proc_net);
net                78 net/ipv6/reassembly.c 	ip6frag_expire_frag_queue(fq->q.fqdir->net, fq);
net                82 net/ipv6/reassembly.c fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif)
net                97 net/ipv6/reassembly.c 	q = inet_frag_find(net->ipv6.fqdir, &key);
net               108 net/ipv6/reassembly.c 	struct net *net = dev_net(skb_dst(skb)->dev);
net               230 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               234 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
net               251 net/ipv6/reassembly.c 	struct net *net = fq->q.fqdir->net;
net               299 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, __in6_dev_stats_get(dev, skb), IPSTATS_MIB_REASMOKS);
net               313 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, __in6_dev_stats_get(dev, skb), IPSTATS_MIB_REASMFAILS);
net               324 net/ipv6/reassembly.c 	struct net *net = dev_net(skb_dst(skb)->dev);
net               330 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), IPSTATS_MIB_REASMREQDS);
net               346 net/ipv6/reassembly.c 		__IP6_INC_STATS(net,
net               355 net/ipv6/reassembly.c 	fq = fq_find(net, fhdr->identification, hdr, iif);
net               369 net/ipv6/reassembly.c 			__IP6_INC_STATS(net, __in6_dev_get_safely(skb->dev),
net               377 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), IPSTATS_MIB_REASMFAILS);
net               382 net/ipv6/reassembly.c 	__IP6_INC_STATS(net, __in6_dev_get_safely(skb->dev),
net               430 net/ipv6/reassembly.c static int __net_init ip6_frags_ns_sysctl_register(struct net *net)
net               436 net/ipv6/reassembly.c 	if (!net_eq(net, &init_net)) {
net               442 net/ipv6/reassembly.c 	table[0].data	= &net->ipv6.fqdir->high_thresh;
net               443 net/ipv6/reassembly.c 	table[0].extra1	= &net->ipv6.fqdir->low_thresh;
net               444 net/ipv6/reassembly.c 	table[1].data	= &net->ipv6.fqdir->low_thresh;
net               445 net/ipv6/reassembly.c 	table[1].extra2	= &net->ipv6.fqdir->high_thresh;
net               446 net/ipv6/reassembly.c 	table[2].data	= &net->ipv6.fqdir->timeout;
net               448 net/ipv6/reassembly.c 	hdr = register_net_sysctl(net, "net/ipv6", table);
net               452 net/ipv6/reassembly.c 	net->ipv6.sysctl.frags_hdr = hdr;
net               456 net/ipv6/reassembly.c 	if (!net_eq(net, &init_net))
net               462 net/ipv6/reassembly.c static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net)
net               466 net/ipv6/reassembly.c 	table = net->ipv6.sysctl.frags_hdr->ctl_table_arg;
net               467 net/ipv6/reassembly.c 	unregister_net_sysctl_table(net->ipv6.sysctl.frags_hdr);
net               468 net/ipv6/reassembly.c 	if (!net_eq(net, &init_net))
net               486 net/ipv6/reassembly.c static int ip6_frags_ns_sysctl_register(struct net *net)
net               491 net/ipv6/reassembly.c static void ip6_frags_ns_sysctl_unregister(struct net *net)
net               505 net/ipv6/reassembly.c static int __net_init ipv6_frags_init_net(struct net *net)
net               509 net/ipv6/reassembly.c 	res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net);
net               513 net/ipv6/reassembly.c 	net->ipv6.fqdir->high_thresh = IPV6_FRAG_HIGH_THRESH;
net               514 net/ipv6/reassembly.c 	net->ipv6.fqdir->low_thresh = IPV6_FRAG_LOW_THRESH;
net               515 net/ipv6/reassembly.c 	net->ipv6.fqdir->timeout = IPV6_FRAG_TIMEOUT;
net               517 net/ipv6/reassembly.c 	res = ip6_frags_ns_sysctl_register(net);
net               519 net/ipv6/reassembly.c 		fqdir_exit(net->ipv6.fqdir);
net               523 net/ipv6/reassembly.c static void __net_exit ipv6_frags_pre_exit_net(struct net *net)
net               525 net/ipv6/reassembly.c 	fqdir_pre_exit(net->ipv6.fqdir);
net               528 net/ipv6/reassembly.c static void __net_exit ipv6_frags_exit_net(struct net *net)
net               530 net/ipv6/reassembly.c 	ip6_frags_ns_sysctl_unregister(net);
net               531 net/ipv6/reassembly.c 	fqdir_exit(net->ipv6.fqdir);
net                93 net/ipv6/route.c static int		ip6_pkt_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net                95 net/ipv6/route.c static int		ip6_pkt_prohibit_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net               105 net/ipv6/route.c static int rt6_fill_node(struct net *net, struct sk_buff *skb,
net               115 net/ipv6/route.c static struct fib6_info *rt6_add_route_info(struct net *net,
net               120 net/ipv6/route.c static struct fib6_info *rt6_get_route_info(struct net *net,
net               148 net/ipv6/route.c 		struct net *net = dev_net(rt->dst.dev);
net               152 net/ipv6/route.c 		atomic_dec(&net->ipv6.rt6_stats->fib_rt_uncache);
net               157 net/ipv6/route.c static void rt6_uncached_list_flush_dev(struct net *net, struct net_device *dev)
net               159 net/ipv6/route.c 	struct net_device *loopback_dev = net->loopback_dev;
net               352 net/ipv6/route.c struct rt6_info *ip6_dst_alloc(struct net *net, struct net_device *dev,
net               355 net/ipv6/route.c 	struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev,
net               360 net/ipv6/route.c 		atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc);
net               427 net/ipv6/route.c void fib6_select_path(const struct net *net, struct fib6_result *res,
net               442 net/ipv6/route.c 		fl6->mp_hash = rt6_multipath_hash(net, fl6, skb, NULL);
net               475 net/ipv6/route.c static bool __rt6_device_match(struct net *net, const struct fib6_nh *nh,
net               488 net/ipv6/route.c 		if (ipv6_chk_addr(net, saddr, dev,
net               497 net/ipv6/route.c 	struct net		*net;
net               509 net/ipv6/route.c 	return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif,
net               514 net/ipv6/route.c static struct fib6_nh *rt6_nh_dev_match(struct net *net, struct nexthop *nh,
net               520 net/ipv6/route.c 		.net   = net,
net               535 net/ipv6/route.c static void rt6_device_match(struct net *net, struct fib6_result *res,
net               558 net/ipv6/route.c 			nh = rt6_nh_dev_match(net, spf6i->nh, res, saddr,
net               564 net/ipv6/route.c 			if (__rt6_device_match(net, nh, saddr, oif, flags))
net               574 net/ipv6/route.c 		res->f6i = net->ipv6.fib6_null_entry;
net               588 net/ipv6/route.c 		res->f6i = net->ipv6.fib6_null_entry;
net               871 net/ipv6/route.c static void rt6_select(struct net *net, struct fib6_node *fn, int oif,
net               882 net/ipv6/route.c 	if (!leaf || leaf == net->ipv6.fib6_null_entry)
net               921 net/ipv6/route.c 		res->f6i = net->ipv6.fib6_null_entry;
net               938 net/ipv6/route.c 	struct net *net = dev_net(dev);
net               981 net/ipv6/route.c 		rt = rt6_get_dflt_router(net, gwaddr, dev);
net               983 net/ipv6/route.c 		rt = rt6_get_route_info(net, prefix, rinfo->prefix_len,
net               987 net/ipv6/route.c 		ip6_del_rt(net, rt);
net               992 net/ipv6/route.c 		rt = rt6_add_route_info(net, prefix, rinfo->prefix_len, gwaddr,
net              1169 net/ipv6/route.c static bool ip6_hold_safe(struct net *net, struct rt6_info **prt)
net              1175 net/ipv6/route.c 	if (net) {
net              1176 net/ipv6/route.c 		rt = net->ipv6.ip6_null_entry;
net              1212 net/ipv6/route.c static struct rt6_info *ip6_pol_route_lookup(struct net *net,
net              1230 net/ipv6/route.c 		res.f6i = net->ipv6.fib6_null_entry;
net              1232 net/ipv6/route.c 		rt6_device_match(net, &res, &fl6->saddr, fl6->flowi6_oif,
net              1235 net/ipv6/route.c 	if (res.f6i == net->ipv6.fib6_null_entry) {
net              1240 net/ipv6/route.c 		rt = net->ipv6.ip6_null_entry;
net              1247 net/ipv6/route.c 	fib6_select_path(net, &res, fl6, fl6->flowi6_oif,
net              1253 net/ipv6/route.c 		if (ip6_hold_safe(net, &rt))
net              1261 net/ipv6/route.c 	trace_fib6_table_lookup(net, &res, table, fl6);
net              1268 net/ipv6/route.c struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
net              1271 net/ipv6/route.c 	return fib6_rule_lookup(net, fl6, skb, flags, ip6_pol_route_lookup);
net              1275 net/ipv6/route.c struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr,
net              1291 net/ipv6/route.c 	dst = fib6_rule_lookup(net, &fl6, skb, flags, ip6_pol_route_lookup);
net              1321 net/ipv6/route.c int ip6_ins_rt(struct net *net, struct fib6_info *rt)
net              1323 net/ipv6/route.c 	struct nl_info info = {	.nl_net = net, };
net              1426 net/ipv6/route.c static struct rt6_info *rt6_make_pcpu_route(struct net *net,
net              1460 net/ipv6/route.c 	struct net *net;
net              1465 net/ipv6/route.c 	net = dev_net(rt6_ex->rt6i->dst.dev);
net              1466 net/ipv6/route.c 	net->ipv6.rt6_stats->fib_rt_cache--;
net              1661 net/ipv6/route.c 	struct net *net = dev_net(nrt->dst.dev);
net              1719 net/ipv6/route.c 	net->ipv6.rt6_stats->fib_rt_cache++;
net              1730 net/ipv6/route.c 		fib6_update_sernum(net, f6i);
net              1732 net/ipv6/route.c 		fib6_force_start_gc(net);
net              2180 net/ipv6/route.c int fib6_table_lookup(struct net *net, struct fib6_table *table, int oif,
net              2192 net/ipv6/route.c 	rt6_select(net, fn, oif, res, strict);
net              2193 net/ipv6/route.c 	if (res->f6i == net->ipv6.fib6_null_entry) {
net              2205 net/ipv6/route.c 	trace_fib6_table_lookup(net, res, table, fl6);
net              2210 net/ipv6/route.c struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
net              2223 net/ipv6/route.c 	if (net->ipv6.devconf_all->forwarding == 0)
net              2228 net/ipv6/route.c 	fib6_table_lookup(net, table, oif, fl6, &res, strict);
net              2229 net/ipv6/route.c 	if (res.f6i == net->ipv6.fib6_null_entry)
net              2232 net/ipv6/route.c 	fib6_select_path(net, &res, fl6, oif, false, skb, strict);
net              2254 net/ipv6/route.c 			atomic_inc(&net->ipv6.rt6_stats->fib_rt_uncache);
net              2265 net/ipv6/route.c 			rt = rt6_make_pcpu_route(net, &res);
net              2271 net/ipv6/route.c 		rt = net->ipv6.ip6_null_entry;
net              2273 net/ipv6/route.c 		ip6_hold_safe(net, &rt);
net              2280 net/ipv6/route.c static struct rt6_info *ip6_pol_route_input(struct net *net,
net              2286 net/ipv6/route.c 	return ip6_pol_route(net, table, fl6->flowi6_iif, fl6, skb, flags);
net              2289 net/ipv6/route.c struct dst_entry *ip6_route_input_lookup(struct net *net,
net              2298 net/ipv6/route.c 	return fib6_rule_lookup(net, fl6, skb, flags, ip6_pol_route_input);
net              2351 net/ipv6/route.c u32 rt6_multipath_hash(const struct net *net, const struct flowi6 *fl6,
net              2357 net/ipv6/route.c 	switch (ip6_multipath_hash_policy(net)) {
net              2447 net/ipv6/route.c 	struct net *net = dev_net(skb->dev);
net              2464 net/ipv6/route.c 	if (fib6_rules_early_flow_dissect(net, skb, &fl6, &_flkeys))
net              2468 net/ipv6/route.c 		fl6.mp_hash = rt6_multipath_hash(net, &fl6, skb, flkeys);
net              2470 net/ipv6/route.c 	skb_dst_set_noref(skb, ip6_route_input_lookup(net, skb->dev,
net              2474 net/ipv6/route.c static struct rt6_info *ip6_pol_route_output(struct net *net,
net              2480 net/ipv6/route.c 	return ip6_pol_route(net, table, fl6->flowi6_oif, fl6, skb, flags);
net              2483 net/ipv6/route.c struct dst_entry *ip6_route_output_flags_noref(struct net *net,
net              2494 net/ipv6/route.c 		dst = l3mdev_link_scope_lookup(net, fl6);
net              2512 net/ipv6/route.c 	return fib6_rule_lookup(net, fl6, NULL, flags, ip6_pol_route_output);
net              2516 net/ipv6/route.c struct dst_entry *ip6_route_output_flags(struct net *net,
net              2525 net/ipv6/route.c         dst = ip6_route_output_flags_noref(net, sk, fl6, flags);
net              2529 net/ipv6/route.c                 dst = &net->ipv6.ip6_null_entry->dst;
net              2538 net/ipv6/route.c struct dst_entry *ip6_blackhole_route(struct net *net, struct dst_entry *dst_orig)
net              2541 net/ipv6/route.c 	struct net_device *loopback_dev = net->loopback_dev;
net              2548 net/ipv6/route.c 		atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc);
net              2711 net/ipv6/route.c 	struct net *net = dev_net(rt->dst.dev);
net              2715 net/ipv6/route.c 	rt6_update_expires(rt, net->ipv6.sysctl.ip6_rt_mtu_expires);
net              2810 net/ipv6/route.c void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu,
net              2817 net/ipv6/route.c 		.flowi6_mark = mark ? mark : IP6_REPLY_MARK(net, skb->mark),
net              2824 net/ipv6/route.c 	dst = ip6_route_output(net, NULL, &fl6);
net              2921 net/ipv6/route.c static struct rt6_info *__ip6_route_redirect(struct net *net,
net              2981 net/ipv6/route.c 		rt = net->ipv6.fib6_null_entry;
net              2983 net/ipv6/route.c 		ret = net->ipv6.ip6_null_entry;
net              2987 net/ipv6/route.c 	if (rt == net->ipv6.fib6_null_entry) {
net              2997 net/ipv6/route.c 		ip6_hold_safe(net, &ret);
net              3006 net/ipv6/route.c 	trace_fib6_table_lookup(net, &res, table, fl6);
net              3010 net/ipv6/route.c static struct dst_entry *ip6_route_redirect(struct net *net,
net              3021 net/ipv6/route.c 	return fib6_rule_lookup(net, &rdfl.fl6, skb,
net              3025 net/ipv6/route.c void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark,
net              3040 net/ipv6/route.c 	dst = ip6_route_redirect(net, &fl6, skb, &ipv6_hdr(skb)->saddr);
net              3046 net/ipv6/route.c void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif)
net              3056 net/ipv6/route.c 		.flowi6_uid = sock_net_uid(net, NULL),
net              3059 net/ipv6/route.c 	dst = ip6_route_redirect(net, &fl6, skb, &iph->saddr);
net              3075 net/ipv6/route.c 	struct net *net = dev_net(dev);
net              3079 net/ipv6/route.c 	if (mtu < net->ipv6.sysctl.ip6_rt_min_advmss)
net              3080 net/ipv6/route.c 		mtu = net->ipv6.sysctl.ip6_rt_min_advmss;
net              3163 net/ipv6/route.c 	struct net *net = dev_net(dev);
net              3168 net/ipv6/route.c 	rt = ip6_dst_alloc(net, dev, 0);
net              3188 net/ipv6/route.c 	atomic_inc(&net->ipv6.rt6_stats->fib_rt_uncache);
net              3190 net/ipv6/route.c 	dst = xfrm_lookup(net, &rt->dst, flowi6_to_flowi(fl6), NULL, 0);
net              3198 net/ipv6/route.c 	struct net *net = container_of(ops, struct net, ipv6.ip6_dst_ops);
net              3199 net/ipv6/route.c 	int rt_min_interval = net->ipv6.sysctl.ip6_rt_gc_min_interval;
net              3200 net/ipv6/route.c 	int rt_max_size = net->ipv6.sysctl.ip6_rt_max_size;
net              3201 net/ipv6/route.c 	int rt_elasticity = net->ipv6.sysctl.ip6_rt_gc_elasticity;
net              3202 net/ipv6/route.c 	int rt_gc_timeout = net->ipv6.sysctl.ip6_rt_gc_timeout;
net              3203 net/ipv6/route.c 	unsigned long rt_last_gc = net->ipv6.ip6_rt_last_gc;
net              3211 net/ipv6/route.c 	net->ipv6.ip6_rt_gc_expire++;
net              3212 net/ipv6/route.c 	fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net, true);
net              3215 net/ipv6/route.c 		net->ipv6.ip6_rt_gc_expire = rt_gc_timeout>>1;
net              3217 net/ipv6/route.c 	net->ipv6.ip6_rt_gc_expire -= net->ipv6.ip6_rt_gc_expire>>rt_elasticity;
net              3221 net/ipv6/route.c static int ip6_nh_lookup_table(struct net *net, struct fib6_config *cfg,
net              3233 net/ipv6/route.c 	table = fib6_get_table(net, tbid);
net              3242 net/ipv6/route.c 	err = fib6_table_lookup(net, table, cfg->fc_ifindex, &fl6, res, flags);
net              3243 net/ipv6/route.c 	if (!err && res->f6i != net->ipv6.fib6_null_entry)
net              3244 net/ipv6/route.c 		fib6_select_path(net, res, &fl6, cfg->fc_ifindex,
net              3250 net/ipv6/route.c static int ip6_route_check_nh_onlink(struct net *net,
net              3260 net/ipv6/route.c 	err = ip6_nh_lookup_table(net, cfg, gw_addr, tbid, 0, &res);
net              3273 net/ipv6/route.c static int ip6_route_check_nh(struct net *net,
net              3285 net/ipv6/route.c 		err = ip6_nh_lookup_table(net, cfg, gw_addr,
net              3302 net/ipv6/route.c 		err = fib6_lookup(net, cfg->fc_ifindex, &fl6, &res, flags);
net              3310 net/ipv6/route.c 		fib6_select_path(net, &res, &fl6, cfg->fc_ifindex,
net              3327 net/ipv6/route.c static int ip6_validate_gw(struct net *net, struct fib6_config *cfg,
net              3344 net/ipv6/route.c 	    ipv6_chk_addr_and_flags(net, gw_addr, dev, skip_dev, 0, 0)) {
net              3367 net/ipv6/route.c 			err = ip6_route_check_nh_onlink(net, cfg, dev, extack);
net              3369 net/ipv6/route.c 			err = ip6_route_check_nh(net, cfg, _dev, idev);
net              3394 net/ipv6/route.c 	    ipv6_chk_addr_and_flags(net, gw_addr, dev, skip_dev, 0, 0)) {
net              3415 net/ipv6/route.c int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
net              3431 net/ipv6/route.c 		dev = dev_get_by_index(net, cfg->fc_ifindex);
net              3463 net/ipv6/route.c 		if (dev != net->loopback_dev) {
net              3468 net/ipv6/route.c 			dev = net->loopback_dev;
net              3480 net/ipv6/route.c 		err = ip6_validate_gw(net, cfg, &dev, &idev, extack);
net              3578 net/ipv6/route.c 	struct net *net = cfg->fc_nlinfo.nl_net;
net              3619 net/ipv6/route.c 		nh = nexthop_find_by_id(net, cfg->fc_nh_id);
net              3632 net/ipv6/route.c 		table = fib6_get_table(net, cfg->fc_table);
net              3635 net/ipv6/route.c 			table = fib6_new_table(net, cfg->fc_table);
net              3638 net/ipv6/route.c 		table = fib6_new_table(net, cfg->fc_table);
net              3649 net/ipv6/route.c 	rt->fib6_metrics = ip_fib_metrics_init(net, cfg->fc_mx, cfg->fc_mx_len,
net              3697 net/ipv6/route.c 		err = fib6_nh_init(net, rt->fib6_nh, cfg, gfp_flags, extack);
net              3715 net/ipv6/route.c 		if (!ipv6_chk_addr(net, &cfg->fc_prefsrc, dev, 0)) {
net              3749 net/ipv6/route.c 	struct net *net = info->nl_net;
net              3753 net/ipv6/route.c 	if (rt == net->ipv6.fib6_null_entry) {
net              3768 net/ipv6/route.c int ip6_del_rt(struct net *net, struct fib6_info *rt)
net              3770 net/ipv6/route.c 	struct nl_info info = { .nl_net = net };
net              3778 net/ipv6/route.c 	struct net *net = info->nl_net;
net              3783 net/ipv6/route.c 	if (rt == net->ipv6.fib6_null_entry)
net              3796 net/ipv6/route.c 			if (rt6_fill_node(net, skb, rt, NULL,
net              3806 net/ipv6/route.c 		call_fib6_multipath_entry_notifiers(net,
net              3827 net/ipv6/route.c 		rtnl_notify(skb, net, info->portid, RTNLGRP_IPV6_ROUTE,
net              4119 net/ipv6/route.c static struct fib6_info *rt6_get_route_info(struct net *net,
net              4130 net/ipv6/route.c 	table = fib6_get_table(net, tb_id);
net              4159 net/ipv6/route.c static struct fib6_info *rt6_add_route_info(struct net *net,
net              4175 net/ipv6/route.c 		.fc_nlinfo.nl_net = net,
net              4188 net/ipv6/route.c 	return rt6_get_route_info(net, prefix, prefixlen, gwaddr, dev);
net              4192 net/ipv6/route.c struct fib6_info *rt6_get_dflt_router(struct net *net,
net              4200 net/ipv6/route.c 	table = fib6_get_table(net, tb_id);
net              4224 net/ipv6/route.c struct fib6_info *rt6_add_dflt_router(struct net *net,
net              4239 net/ipv6/route.c 		.fc_nlinfo.nl_net = net,
net              4252 net/ipv6/route.c 	return rt6_get_dflt_router(net, gwaddr, dev);
net              4255 net/ipv6/route.c static void __rt6_purge_dflt_routers(struct net *net,
net              4270 net/ipv6/route.c 			ip6_del_rt(net, rt);
net              4279 net/ipv6/route.c void rt6_purge_dflt_routers(struct net *net)
net              4288 net/ipv6/route.c 		head = &net->ipv6.fib_table_hash[h];
net              4291 net/ipv6/route.c 				__rt6_purge_dflt_routers(net, table);
net              4298 net/ipv6/route.c static void rtmsg_to_fib6_config(struct net *net,
net              4303 net/ipv6/route.c 		.fc_table = l3mdev_fib_table_by_index(net, rtmsg->rtmsg_ifindex) ?
net              4313 net/ipv6/route.c 		.fc_nlinfo.nl_net = net,
net              4321 net/ipv6/route.c int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg)
net              4330 net/ipv6/route.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              4337 net/ipv6/route.c 		rtmsg_to_fib6_config(net, &rtmsg, &cfg);
net              4365 net/ipv6/route.c 	struct net *net = dev_net(dst->dev);
net              4370 net/ipv6/route.c 	    dst->dev == net->loopback_dev)
net              4371 net/ipv6/route.c 		idev = __in6_dev_get_safely(dev_get_by_index_rcu(net, IP6CB(skb)->iif));
net              4379 net/ipv6/route.c 			IP6_INC_STATS(net, idev, IPSTATS_MIB_INADDRERRORS);
net              4384 net/ipv6/route.c 		IP6_INC_STATS(net, idev, ipstats_mib_noroutes);
net              4402 net/ipv6/route.c static int ip6_pkt_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net              4413 net/ipv6/route.c static int ip6_pkt_prohibit_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net              4423 net/ipv6/route.c struct fib6_info *addrconf_f6i_alloc(struct net *net,
net              4435 net/ipv6/route.c 		.fc_nlinfo.nl_net = net,
net              4457 net/ipv6/route.c 	struct net *net;
net              4464 net/ipv6/route.c 	struct net *net = ((struct arg_dev_net_ip *)arg)->net;
net              4469 net/ipv6/route.c 	    rt != net->ipv6.fib6_null_entry &&
net              4481 net/ipv6/route.c 	struct net *net = dev_net(ifp->idev->dev);
net              4484 net/ipv6/route.c 		.net = net,
net              4487 net/ipv6/route.c 	fib6_clean_all(net, fib6_remove_prefsrc, &adni);
net              4516 net/ipv6/route.c void rt6_clean_tohost(struct net *net, struct in6_addr *gateway)
net              4518 net/ipv6/route.c 	fib6_clean_all(net, fib6_clean_tohost, gateway);
net              4626 net/ipv6/route.c 	struct net *net = dev_net(arg->dev);
net              4628 net/ipv6/route.c 	if (rt != net->ipv6.fib6_null_entry && !rt->nh &&
net              4631 net/ipv6/route.c 		fib6_update_sernum_upto_root(net, rt);
net              4712 net/ipv6/route.c 	struct net *net = dev_net(dev);
net              4714 net/ipv6/route.c 	if (rt == net->ipv6.fib6_null_entry || rt->nh)
net              4735 net/ipv6/route.c 			fib6_update_sernum(net, rt);
net              4759 net/ipv6/route.c 	struct net *net = dev_net(dev);
net              4761 net/ipv6/route.c 	if (net->ipv6.sysctl.skip_notify_on_dev_down)
net              4762 net/ipv6/route.c 		fib6_clean_all_skip_notify(net, fib6_ifdown, &arg);
net              4764 net/ipv6/route.c 		fib6_clean_all(net, fib6_ifdown, &arg);
net              5013 net/ipv6/route.c static int ip6_route_info_append(struct net *net,
net              5396 net/ipv6/route.c static int rt6_fill_node(struct net *net, struct sk_buff *skb,
net              5464 net/ipv6/route.c 			int err = ip6mr_get_route(net, skb, rtm, portid);
net              5476 net/ipv6/route.c 		if (ip6_route_get_saddr(net, rt, dest, 0, &saddr_buf) == 0 &&
net              5645 net/ipv6/route.c 			err = rt6_fill_node(dump->net, dump->skb, w->rt,
net              5667 net/ipv6/route.c 	struct net *net = arg->net;
net              5670 net/ipv6/route.c 	if (rt == net->ipv6.fib6_null_entry)
net              5694 net/ipv6/route.c 			if (rt6_fill_node(net, arg->skb, rt, NULL, NULL, NULL,
net              5799 net/ipv6/route.c 	struct net *net = sock_net(in_skb->sk);
net              5868 net/ipv6/route.c 		dev = dev_get_by_index_rcu(net, iif);
net              5880 net/ipv6/route.c 		dst = ip6_route_input_lookup(net, dev, &fl6, NULL, flags);
net              5886 net/ipv6/route.c 		dst = ip6_route_output(net, NULL, &fl6);
net              5897 net/ipv6/route.c 	if (rt == net->ipv6.ip6_null_entry) {
net              5916 net/ipv6/route.c 			err = rt6_fill_node(net, skb, from, NULL, NULL, NULL,
net              5921 net/ipv6/route.c 			err = rt6_fill_node(net, skb, from, dst, &fl6.daddr,
net              5935 net/ipv6/route.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              5944 net/ipv6/route.c 	struct net *net = info->nl_net;
net              5955 net/ipv6/route.c 	err = rt6_fill_node(net, skb, rt, NULL, NULL, NULL, 0,
net              5963 net/ipv6/route.c 	rtnl_notify(skb, net, info->portid, RTNLGRP_IPV6_ROUTE,
net              5968 net/ipv6/route.c 		rtnl_set_sk_err(net, RTNLGRP_IPV6_ROUTE, err);
net              5971 net/ipv6/route.c void fib6_rt_update(struct net *net, struct fib6_info *rt,
net              5981 net/ipv6/route.c 	call_fib6_entry_notifiers(net, FIB_EVENT_ENTRY_REPLACE, rt, NULL);
net              5987 net/ipv6/route.c 	err = rt6_fill_node(net, skb, rt, NULL, NULL, NULL, 0,
net              5995 net/ipv6/route.c 	rtnl_notify(skb, net, info->portid, RTNLGRP_IPV6_ROUTE,
net              6000 net/ipv6/route.c 		rtnl_set_sk_err(net, RTNLGRP_IPV6_ROUTE, err);
net              6007 net/ipv6/route.c 	struct net *net = dev_net(dev);
net              6013 net/ipv6/route.c 		net->ipv6.fib6_null_entry->fib6_nh->fib_nh_dev = dev;
net              6014 net/ipv6/route.c 		net->ipv6.ip6_null_entry->dst.dev = dev;
net              6015 net/ipv6/route.c 		net->ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(dev);
net              6017 net/ipv6/route.c 		net->ipv6.ip6_prohibit_entry->dst.dev = dev;
net              6018 net/ipv6/route.c 		net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev);
net              6019 net/ipv6/route.c 		net->ipv6.ip6_blk_hole_entry->dst.dev = dev;
net              6020 net/ipv6/route.c 		net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev);
net              6027 net/ipv6/route.c 		in6_dev_put_clear(&net->ipv6.ip6_null_entry->rt6i_idev);
net              6029 net/ipv6/route.c 		in6_dev_put_clear(&net->ipv6.ip6_prohibit_entry->rt6i_idev);
net              6030 net/ipv6/route.c 		in6_dev_put_clear(&net->ipv6.ip6_blk_hole_entry->rt6i_idev);
net              6044 net/ipv6/route.c 	struct net *net = (struct net *)seq->private;
net              6046 net/ipv6/route.c 		   net->ipv6.rt6_stats->fib_nodes,
net              6047 net/ipv6/route.c 		   net->ipv6.rt6_stats->fib_route_nodes,
net              6048 net/ipv6/route.c 		   atomic_read(&net->ipv6.rt6_stats->fib_rt_alloc),
net              6049 net/ipv6/route.c 		   net->ipv6.rt6_stats->fib_rt_entries,
net              6050 net/ipv6/route.c 		   net->ipv6.rt6_stats->fib_rt_cache,
net              6051 net/ipv6/route.c 		   dst_entries_get_slow(&net->ipv6.ip6_dst_ops),
net              6052 net/ipv6/route.c 		   net->ipv6.rt6_stats->fib_discarded_routes);
net              6064 net/ipv6/route.c 	struct net *net;
net              6070 net/ipv6/route.c 	net = (struct net *)ctl->extra1;
net              6071 net/ipv6/route.c 	delay = net->ipv6.sysctl.flush_delay;
net              6076 net/ipv6/route.c 	fib6_run_gc(delay <= 0 ? 0 : (unsigned long)delay, net, delay > 0);
net              6163 net/ipv6/route.c struct ctl_table * __net_init ipv6_route_sysctl_init(struct net *net)
net              6172 net/ipv6/route.c 		table[0].data = &net->ipv6.sysctl.flush_delay;
net              6173 net/ipv6/route.c 		table[0].extra1 = net;
net              6174 net/ipv6/route.c 		table[1].data = &net->ipv6.ip6_dst_ops.gc_thresh;
net              6175 net/ipv6/route.c 		table[2].data = &net->ipv6.sysctl.ip6_rt_max_size;
net              6176 net/ipv6/route.c 		table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval;
net              6177 net/ipv6/route.c 		table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout;
net              6178 net/ipv6/route.c 		table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval;
net              6179 net/ipv6/route.c 		table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity;
net              6180 net/ipv6/route.c 		table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires;
net              6181 net/ipv6/route.c 		table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss;
net              6182 net/ipv6/route.c 		table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval;
net              6183 net/ipv6/route.c 		table[10].data = &net->ipv6.sysctl.skip_notify_on_dev_down;
net              6186 net/ipv6/route.c 		if (net->user_ns != &init_user_ns)
net              6194 net/ipv6/route.c static int __net_init ip6_route_net_init(struct net *net)
net              6198 net/ipv6/route.c 	memcpy(&net->ipv6.ip6_dst_ops, &ip6_dst_ops_template,
net              6199 net/ipv6/route.c 	       sizeof(net->ipv6.ip6_dst_ops));
net              6201 net/ipv6/route.c 	if (dst_entries_init(&net->ipv6.ip6_dst_ops) < 0)
net              6204 net/ipv6/route.c 	net->ipv6.fib6_null_entry = fib6_info_alloc(GFP_KERNEL, true);
net              6205 net/ipv6/route.c 	if (!net->ipv6.fib6_null_entry)
net              6207 net/ipv6/route.c 	memcpy(net->ipv6.fib6_null_entry, &fib6_null_entry_template,
net              6208 net/ipv6/route.c 	       sizeof(*net->ipv6.fib6_null_entry));
net              6210 net/ipv6/route.c 	net->ipv6.ip6_null_entry = kmemdup(&ip6_null_entry_template,
net              6211 net/ipv6/route.c 					   sizeof(*net->ipv6.ip6_null_entry),
net              6213 net/ipv6/route.c 	if (!net->ipv6.ip6_null_entry)
net              6215 net/ipv6/route.c 	net->ipv6.ip6_null_entry->dst.ops = &net->ipv6.ip6_dst_ops;
net              6216 net/ipv6/route.c 	dst_init_metrics(&net->ipv6.ip6_null_entry->dst,
net              6218 net/ipv6/route.c 	INIT_LIST_HEAD(&net->ipv6.ip6_null_entry->rt6i_uncached);
net              6221 net/ipv6/route.c 	net->ipv6.fib6_has_custom_rules = false;
net              6222 net/ipv6/route.c 	net->ipv6.ip6_prohibit_entry = kmemdup(&ip6_prohibit_entry_template,
net              6223 net/ipv6/route.c 					       sizeof(*net->ipv6.ip6_prohibit_entry),
net              6225 net/ipv6/route.c 	if (!net->ipv6.ip6_prohibit_entry)
net              6227 net/ipv6/route.c 	net->ipv6.ip6_prohibit_entry->dst.ops = &net->ipv6.ip6_dst_ops;
net              6228 net/ipv6/route.c 	dst_init_metrics(&net->ipv6.ip6_prohibit_entry->dst,
net              6230 net/ipv6/route.c 	INIT_LIST_HEAD(&net->ipv6.ip6_prohibit_entry->rt6i_uncached);
net              6232 net/ipv6/route.c 	net->ipv6.ip6_blk_hole_entry = kmemdup(&ip6_blk_hole_entry_template,
net              6233 net/ipv6/route.c 					       sizeof(*net->ipv6.ip6_blk_hole_entry),
net              6235 net/ipv6/route.c 	if (!net->ipv6.ip6_blk_hole_entry)
net              6237 net/ipv6/route.c 	net->ipv6.ip6_blk_hole_entry->dst.ops = &net->ipv6.ip6_dst_ops;
net              6238 net/ipv6/route.c 	dst_init_metrics(&net->ipv6.ip6_blk_hole_entry->dst,
net              6240 net/ipv6/route.c 	INIT_LIST_HEAD(&net->ipv6.ip6_blk_hole_entry->rt6i_uncached);
net              6243 net/ipv6/route.c 	net->ipv6.sysctl.flush_delay = 0;
net              6244 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_max_size = 4096;
net              6245 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2;
net              6246 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_gc_timeout = 60*HZ;
net              6247 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_gc_interval = 30*HZ;
net              6248 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_gc_elasticity = 9;
net              6249 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ;
net              6250 net/ipv6/route.c 	net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40;
net              6251 net/ipv6/route.c 	net->ipv6.sysctl.skip_notify_on_dev_down = 0;
net              6253 net/ipv6/route.c 	net->ipv6.ip6_rt_gc_expire = 30*HZ;
net              6261 net/ipv6/route.c 	kfree(net->ipv6.ip6_prohibit_entry);
net              6263 net/ipv6/route.c 	kfree(net->ipv6.ip6_null_entry);
net              6266 net/ipv6/route.c 	kfree(net->ipv6.fib6_null_entry);
net              6268 net/ipv6/route.c 	dst_entries_destroy(&net->ipv6.ip6_dst_ops);
net              6273 net/ipv6/route.c static void __net_exit ip6_route_net_exit(struct net *net)
net              6275 net/ipv6/route.c 	kfree(net->ipv6.fib6_null_entry);
net              6276 net/ipv6/route.c 	kfree(net->ipv6.ip6_null_entry);
net              6278 net/ipv6/route.c 	kfree(net->ipv6.ip6_prohibit_entry);
net              6279 net/ipv6/route.c 	kfree(net->ipv6.ip6_blk_hole_entry);
net              6281 net/ipv6/route.c 	dst_entries_destroy(&net->ipv6.ip6_dst_ops);
net              6284 net/ipv6/route.c static int __net_init ip6_route_net_init_late(struct net *net)
net              6287 net/ipv6/route.c 	proc_create_net("ipv6_route", 0, net->proc_net, &ipv6_route_seq_ops,
net              6289 net/ipv6/route.c 	proc_create_net_single("rt6_stats", 0444, net->proc_net,
net              6295 net/ipv6/route.c static void __net_exit ip6_route_net_exit_late(struct net *net)
net              6298 net/ipv6/route.c 	remove_proc_entry("ipv6_route", net->proc_net);
net              6299 net/ipv6/route.c 	remove_proc_entry("rt6_stats", net->proc_net);
net              6308 net/ipv6/route.c static int __net_init ipv6_inetpeer_init(struct net *net)
net              6315 net/ipv6/route.c 	net->ipv6.peers = bp;
net              6319 net/ipv6/route.c static void __net_exit ipv6_inetpeer_exit(struct net *net)
net              6321 net/ipv6/route.c 	struct inet_peer_base *bp = net->ipv6.peers;
net              6323 net/ipv6/route.c 	net->ipv6.peers = NULL;
net                85 net/ipv6/seg6.c 	struct net *net = genl_info_net(info);
net                94 net/ipv6/seg6.c 	sdata = seg6_pernet(net);
net               112 net/ipv6/seg6.c 	hinfo = seg6_hmac_info_lookup(net, hmackeyid);
net               118 net/ipv6/seg6.c 		err = seg6_hmac_info_del(net, hmackeyid);
net               129 net/ipv6/seg6.c 		err = seg6_hmac_info_del(net, hmackeyid);
net               147 net/ipv6/seg6.c 	err = seg6_hmac_info_add(net, hmackeyid, hinfo);
net               167 net/ipv6/seg6.c 	struct net *net = genl_info_net(info);
net               171 net/ipv6/seg6.c 	sdata = seg6_pernet(net);
net               196 net/ipv6/seg6.c 	struct net *net = genl_info_net(info);
net               211 net/ipv6/seg6.c 	tun_src = rcu_dereference(seg6_pernet(net)->tun_src);
net               265 net/ipv6/seg6.c 	struct net *net = sock_net(cb->skb->sk);
net               269 net/ipv6/seg6.c 	sdata = seg6_pernet(net);
net               351 net/ipv6/seg6.c static int __net_init seg6_net_init(struct net *net)
net               367 net/ipv6/seg6.c 	net->ipv6.seg6_data = sdata;
net               370 net/ipv6/seg6.c 	seg6_hmac_net_init(net);
net               376 net/ipv6/seg6.c static void __net_exit seg6_net_exit(struct net *net)
net               378 net/ipv6/seg6.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net               381 net/ipv6/seg6.c 	seg6_hmac_net_exit(net);
net               241 net/ipv6/seg6_hmac.c 	struct net *net = dev_net(skb->dev);
net               267 net/ipv6/seg6_hmac.c 	hinfo = seg6_hmac_info_lookup(net, be32_to_cpu(tlv->hmackeyid));
net               282 net/ipv6/seg6_hmac.c struct seg6_hmac_info *seg6_hmac_info_lookup(struct net *net, u32 key)
net               284 net/ipv6/seg6_hmac.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net               293 net/ipv6/seg6_hmac.c int seg6_hmac_info_add(struct net *net, u32 key, struct seg6_hmac_info *hinfo)
net               295 net/ipv6/seg6_hmac.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net               305 net/ipv6/seg6_hmac.c int seg6_hmac_info_del(struct net *net, u32 key)
net               307 net/ipv6/seg6_hmac.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net               327 net/ipv6/seg6_hmac.c int seg6_push_hmac(struct net *net, struct in6_addr *saddr,
net               340 net/ipv6/seg6_hmac.c 	hinfo = seg6_hmac_info_lookup(net, be32_to_cpu(tlv->hmackeyid));
net               406 net/ipv6/seg6_hmac.c int __net_init seg6_hmac_net_init(struct net *net)
net               408 net/ipv6/seg6_hmac.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net               439 net/ipv6/seg6_hmac.c void __net_exit seg6_hmac_net_exit(struct net *net)
net               441 net/ipv6/seg6_hmac.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net                69 net/ipv6/seg6_iptunnel.c static void set_tun_src(struct net *net, struct net_device *dev,
net                72 net/ipv6/seg6_iptunnel.c 	struct seg6_pernet_data *sdata = seg6_pernet(net);
net                82 net/ipv6/seg6_iptunnel.c 		ipv6_dev_get_saddr(net, dev, daddr, IPV6_PREFER_SRC_PUBLIC,
net                90 net/ipv6/seg6_iptunnel.c static __be32 seg6_make_flowlabel(struct net *net, struct sk_buff *skb,
net                93 net/ipv6/seg6_iptunnel.c 	int do_flowlabel = net->ipv6.sysctl.seg6_flowlabel;
net               111 net/ipv6/seg6_iptunnel.c 	struct net *net = dev_net(dst->dev);
net               125 net/ipv6/seg6_iptunnel.c 	flowlabel = seg6_make_flowlabel(net, skb, inner_hdr);
net               156 net/ipv6/seg6_iptunnel.c 	set_tun_src(net, dst->dev, &hdr->daddr, &hdr->saddr);
net               160 net/ipv6/seg6_iptunnel.c 		err = seg6_push_hmac(net, &hdr->saddr, isrh);
net               210 net/ipv6/seg6_iptunnel.c 		struct net *net = dev_net(skb_dst(skb)->dev);
net               212 net/ipv6/seg6_iptunnel.c 		err = seg6_push_hmac(net, &hdr->saddr, isrh);
net               326 net/ipv6/seg6_iptunnel.c static int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               354 net/ipv6/seg6_iptunnel.c 		dst = ip6_route_output(net, NULL, &fl6);
net               373 net/ipv6/seg6_iptunnel.c 	return dst_output(net, sk, skb);
net               157 net/ipv6/seg6_local.c 	struct net *net = dev_net(skb->dev);
net               175 net/ipv6/seg6_local.c 		dst = ip6_route_input_lookup(net, skb->dev, &fl6, skb, flags);
net               179 net/ipv6/seg6_local.c 		table = fib6_get_table(net, tbl_id);
net               183 net/ipv6/seg6_local.c 		rt = ip6_pol_route(net, table, 0, &fl6, skb, flags);
net               194 net/ipv6/seg6_local.c 		rt = net->ipv6.ip6_blk_hole_entry;
net               267 net/ipv6/seg6_local.c 	struct net *net = dev_net(skb->dev);
net               287 net/ipv6/seg6_local.c 	odev = dev_get_by_index_rcu(net, slwt->oif);
net                89 net/ipv6/sit.c static struct ip_tunnel *ipip6_tunnel_lookup(struct net *net,
net                97 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net               196 net/ipv6/sit.c 	struct net *net = dev_net(dev);
net               197 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net               223 net/ipv6/sit.c static struct ip_tunnel *ipip6_tunnel_locate(struct net *net,
net               232 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net               261 net/ipv6/sit.c 	dev_net_set(dev, net);
net               474 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(tunnel->net, sit_net_id);
net               665 net/ipv6/sit.c 		    !net_eq(tunnel->net, dev_net(tunnel->dev))))
net               902 net/ipv6/sit.c 			   sock_net_uid(tunnel->net, NULL));
net               906 net/ipv6/sit.c 		rt = ip_route_output_flow(tunnel->net, &fl4, NULL);
net               998 net/ipv6/sit.c 		      df, !net_eq(tunnel->net, dev_net(dev)));
net              1070 net/ipv6/sit.c 		struct rtable *rt = ip_route_output_ports(tunnel->net, &fl4,
net              1086 net/ipv6/sit.c 		tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link);
net              1101 net/ipv6/sit.c 	struct net *net = t->net;
net              1102 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1173 net/ipv6/sit.c 	struct net *net = t->net;
net              1174 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1189 net/ipv6/sit.c 			t = ipip6_tunnel_locate(net, &p, 0);
net              1217 net/ipv6/sit.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1233 net/ipv6/sit.c 		t = ipip6_tunnel_locate(net, &p, cmd == SIOCADDTUNNEL);
net              1263 net/ipv6/sit.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1271 net/ipv6/sit.c 			t = ipip6_tunnel_locate(net, &p, 0);
net              1294 net/ipv6/sit.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1321 net/ipv6/sit.c 		if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1399 net/ipv6/sit.c 	tunnel->net = dev_net(dev);
net              1421 net/ipv6/sit.c 	struct net *net = dev_net(dev);
net              1422 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1564 net/ipv6/sit.c static int ipip6_newlink(struct net *src_net, struct net_device *dev,
net              1568 net/ipv6/sit.c 	struct net *net = dev_net(dev);
net              1586 net/ipv6/sit.c 	if (ipip6_tunnel_locate(net, &nt->parms, 0))
net              1616 net/ipv6/sit.c 	struct net *net = t->net;
net              1617 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1639 net/ipv6/sit.c 	t = ipip6_tunnel_locate(net, &p, 0);
net              1768 net/ipv6/sit.c 	struct net *net = dev_net(dev);
net              1769 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1810 net/ipv6/sit.c static void __net_exit sit_destroy_tunnels(struct net *net,
net              1813 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1817 net/ipv6/sit.c 	for_each_netdev_safe(net, dev, aux)
net              1831 net/ipv6/sit.c 				if (!net_eq(dev_net(t->dev), net))
net              1840 net/ipv6/sit.c static int __net_init sit_init_net(struct net *net)
net              1842 net/ipv6/sit.c 	struct sit_net *sitn = net_generic(net, sit_net_id);
net              1851 net/ipv6/sit.c 	if (!net_has_fallback_tunnels(net))
net              1861 net/ipv6/sit.c 	dev_net_set(sitn->fb_tunnel_dev, net);
net              1890 net/ipv6/sit.c 	struct net *net;
net              1893 net/ipv6/sit.c 	list_for_each_entry(net, net_list, exit_list)
net              1894 net/ipv6/sit.c 		sit_destroy_tunnels(net, &list);
net                32 net/ipv6/sysctl_net_ipv6.c 	struct net *net;
net                35 net/ipv6/sysctl_net_ipv6.c 	net = container_of(table->data, struct net,
net                39 net/ipv6/sysctl_net_ipv6.c 		call_netevent_notifiers(NETEVENT_IPV6_MPATH_HASH_UPDATE, net);
net               201 net/ipv6/sysctl_net_ipv6.c static int __net_init ipv6_sysctl_net_init(struct net *net)
net               213 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[0].data = &net->ipv6.sysctl.bindv6only;
net               214 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[1].data = &net->ipv6.sysctl.anycast_src_echo_reply;
net               215 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[2].data = &net->ipv6.sysctl.flowlabel_consistency;
net               216 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[3].data = &net->ipv6.sysctl.auto_flowlabels;
net               217 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[4].data = &net->ipv6.sysctl.fwmark_reflect;
net               218 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[5].data = &net->ipv6.sysctl.idgen_retries;
net               219 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[6].data = &net->ipv6.sysctl.idgen_delay;
net               220 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[7].data = &net->ipv6.sysctl.flowlabel_state_ranges;
net               221 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[8].data = &net->ipv6.sysctl.ip_nonlocal_bind;
net               222 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[9].data = &net->ipv6.sysctl.flowlabel_reflect;
net               223 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[10].data = &net->ipv6.sysctl.max_dst_opts_cnt;
net               224 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[11].data = &net->ipv6.sysctl.max_hbh_opts_cnt;
net               225 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[12].data = &net->ipv6.sysctl.max_dst_opts_len;
net               226 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[13].data = &net->ipv6.sysctl.max_hbh_opts_len;
net               227 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[14].data = &net->ipv6.sysctl.multipath_hash_policy,
net               228 net/ipv6/sysctl_net_ipv6.c 	ipv6_table[15].data = &net->ipv6.sysctl.seg6_flowlabel;
net               230 net/ipv6/sysctl_net_ipv6.c 	ipv6_route_table = ipv6_route_sysctl_init(net);
net               234 net/ipv6/sysctl_net_ipv6.c 	ipv6_icmp_table = ipv6_icmp_sysctl_init(net);
net               238 net/ipv6/sysctl_net_ipv6.c 	net->ipv6.sysctl.hdr = register_net_sysctl(net, "net/ipv6", ipv6_table);
net               239 net/ipv6/sysctl_net_ipv6.c 	if (!net->ipv6.sysctl.hdr)
net               242 net/ipv6/sysctl_net_ipv6.c 	net->ipv6.sysctl.route_hdr =
net               243 net/ipv6/sysctl_net_ipv6.c 		register_net_sysctl(net, "net/ipv6/route", ipv6_route_table);
net               244 net/ipv6/sysctl_net_ipv6.c 	if (!net->ipv6.sysctl.route_hdr)
net               247 net/ipv6/sysctl_net_ipv6.c 	net->ipv6.sysctl.icmp_hdr =
net               248 net/ipv6/sysctl_net_ipv6.c 		register_net_sysctl(net, "net/ipv6/icmp", ipv6_icmp_table);
net               249 net/ipv6/sysctl_net_ipv6.c 	if (!net->ipv6.sysctl.icmp_hdr)
net               256 net/ipv6/sysctl_net_ipv6.c 	unregister_net_sysctl_table(net->ipv6.sysctl.route_hdr);
net               258 net/ipv6/sysctl_net_ipv6.c 	unregister_net_sysctl_table(net->ipv6.sysctl.hdr);
net               268 net/ipv6/sysctl_net_ipv6.c static void __net_exit ipv6_sysctl_net_exit(struct net *net)
net               274 net/ipv6/sysctl_net_ipv6.c 	ipv6_table = net->ipv6.sysctl.hdr->ctl_table_arg;
net               275 net/ipv6/sysctl_net_ipv6.c 	ipv6_route_table = net->ipv6.sysctl.route_hdr->ctl_table_arg;
net               276 net/ipv6/sysctl_net_ipv6.c 	ipv6_icmp_table = net->ipv6.sysctl.icmp_hdr->ctl_table_arg;
net               278 net/ipv6/sysctl_net_ipv6.c 	unregister_net_sysctl_table(net->ipv6.sysctl.icmp_hdr);
net               279 net/ipv6/sysctl_net_ipv6.c 	unregister_net_sysctl_table(net->ipv6.sysctl.route_hdr);
net               280 net/ipv6/sysctl_net_ipv6.c 	unregister_net_sysctl_table(net->ipv6.sysctl.hdr);
net               123 net/ipv6/tcp_ipv6.c static u32 tcp_v6_init_ts_off(const struct net *net, const struct sk_buff *skb)
net               125 net/ipv6/tcp_ipv6.c 	return secure_tcpv6_ts_off(net, ipv6_hdr(skb)->daddr.s6_addr32,
net               365 net/ipv6/tcp_ipv6.c 	struct net *net = dev_net(skb->dev);
net               374 net/ipv6/tcp_ipv6.c 	sk = __inet6_lookup_established(net, &tcp_hashinfo,
net               380 net/ipv6/tcp_ipv6.c 		__ICMP6_INC_STATS(net, __in6_dev_get(skb->dev),
net               398 net/ipv6/tcp_ipv6.c 		__NET_INC_STATS(net, LINUX_MIB_LOCKDROPPEDICMPS);
net               404 net/ipv6/tcp_ipv6.c 		__NET_INC_STATS(net, LINUX_MIB_TCPMINTTLDROP);
net               414 net/ipv6/tcp_ipv6.c 		__NET_INC_STATS(net, LINUX_MIB_OUTOFWINDOWICMPS);
net               814 net/ipv6/tcp_ipv6.c 	struct net *net = sk ? sock_net(sk) : dev_net(skb_dst(skb)->dev);
net               815 net/ipv6/tcp_ipv6.c 	struct sock *ctl_sk = net->ipv6.tcp_sk;
net               882 net/ipv6/tcp_ipv6.c 		if (!oif && netif_index_is_l3_master(net, skb->skb_iif))
net               899 net/ipv6/tcp_ipv6.c 	fl6.flowi6_mark = IP6_REPLY_MARK(net, skb->mark) ?: mark;
net               902 net/ipv6/tcp_ipv6.c 	fl6.flowi6_uid = sock_net_uid(net, sk && sk_fullsock(sk) ? sk : NULL);
net               914 net/ipv6/tcp_ipv6.c 		TCP_INC_STATS(net, TCP_MIB_OUTSEGS);
net               916 net/ipv6/tcp_ipv6.c 			TCP_INC_STATS(net, TCP_MIB_OUTRSTS);
net               937 net/ipv6/tcp_ipv6.c 	struct net *net;
net               949 net/ipv6/tcp_ipv6.c 	net = sk ? sock_net(sk) : dev_net(skb_dst(skb)->dev);
net               963 net/ipv6/tcp_ipv6.c 		sk1 = inet6_lookup_listener(net,
net              1004 net/ipv6/tcp_ipv6.c 		if (net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_TCP_RESET)
net              1488 net/ipv6/tcp_ipv6.c 	struct net *net = dev_net(skb->dev);
net              1496 net/ipv6/tcp_ipv6.c 	__TCP_INC_STATS(net, TCP_MIB_INSEGS);
net              1579 net/ipv6/tcp_ipv6.c 		__NET_INC_STATS(net, LINUX_MIB_TCPMINTTLDROP);
net              1632 net/ipv6/tcp_ipv6.c 		__TCP_INC_STATS(net, TCP_MIB_CSUMERRORS);
net              1634 net/ipv6/tcp_ipv6.c 		__TCP_INC_STATS(net, TCP_MIB_INERRS);
net              1992 net/ipv6/tcp_ipv6.c int __net_init tcp6_proc_init(struct net *net)
net              1994 net/ipv6/tcp_ipv6.c 	if (!proc_create_net_data("tcp6", 0444, net->proc_net, &tcp6_seq_ops,
net              2000 net/ipv6/tcp_ipv6.c void tcp6_proc_exit(struct net *net)
net              2002 net/ipv6/tcp_ipv6.c 	remove_proc_entry("tcp6", net->proc_net);
net              2037 net/ipv6/tcp_ipv6.c 	.sysctl_wmem_offset	= offsetof(struct net, ipv4.sysctl_tcp_wmem),
net              2038 net/ipv6/tcp_ipv6.c 	.sysctl_rmem_offset	= offsetof(struct net, ipv4.sysctl_tcp_rmem),
net              2073 net/ipv6/tcp_ipv6.c static int __net_init tcpv6_net_init(struct net *net)
net              2075 net/ipv6/tcp_ipv6.c 	return inet_ctl_sock_create(&net->ipv6.tcp_sk, PF_INET6,
net              2076 net/ipv6/tcp_ipv6.c 				    SOCK_RAW, IPPROTO_TCP, net);
net              2079 net/ipv6/tcp_ipv6.c static void __net_exit tcpv6_net_exit(struct net *net)
net              2081 net/ipv6/tcp_ipv6.c 	inet_ctl_sock_destroy(net->ipv6.tcp_sk);
net                57 net/ipv6/udp.c static u32 udp6_ehashfn(const struct net *net,
net                77 net/ipv6/udp.c 			       udp_ipv6_hash_secret + net_hash_mix(net));
net               101 net/ipv6/udp.c static int compute_score(struct sock *sk, struct net *net,
net               110 net/ipv6/udp.c 	if (!net_eq(sock_net(sk), net) ||
net               133 net/ipv6/udp.c 	dev_match = udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif);
net               145 net/ipv6/udp.c static struct sock *udp6_lib_lookup2(struct net *net,
net               158 net/ipv6/udp.c 		score = compute_score(sk, net, saddr, sport,
net               163 net/ipv6/udp.c 				hash = udp6_ehashfn(net, daddr, hnum,
net               179 net/ipv6/udp.c struct sock *__udp6_lib_lookup(struct net *net,
net               190 net/ipv6/udp.c 	hash2 = ipv6_portaddr_hash(net, daddr, hnum);
net               194 net/ipv6/udp.c 	result = udp6_lib_lookup2(net, saddr, sport,
net               198 net/ipv6/udp.c 		hash2 = ipv6_portaddr_hash(net, &in6addr_any, hnum);
net               203 net/ipv6/udp.c 		result = udp6_lib_lookup2(net, saddr, sport,
net               239 net/ipv6/udp.c struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport,
net               244 net/ipv6/udp.c 	sk =  __udp6_lib_lookup(net, saddr, sport, daddr, dport,
net               448 net/ipv6/udp.c static struct sock *__udp6_lib_err_encap(struct net *net,
net               468 net/ipv6/udp.c 	sk = __udp6_lib_lookup(net, &hdr->daddr, uh->source,
net               504 net/ipv6/udp.c 	struct net *net = dev_net(skb->dev);
net               506 net/ipv6/udp.c 	sk = __udp6_lib_lookup(net, daddr, uh->dest, saddr, uh->source,
net               512 net/ipv6/udp.c 			sk = __udp6_lib_err_encap(net, hdr, offset, uh,
net               520 net/ipv6/udp.c 			__ICMP6_INC_STATS(net, __in6_dev_get(skb->dev),
net               705 net/ipv6/udp.c static bool __udp_v6_is_mcast_sock(struct net *net, struct sock *sk,
net               712 net/ipv6/udp.c 	if (!net_eq(sock_net(sk), net))
net               720 net/ipv6/udp.c 	    !udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif) ||
net               743 net/ipv6/udp.c static int __udp6_lib_mcast_deliver(struct net *net, struct sk_buff *skb,
net               750 net/ipv6/udp.c 	struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum);
net               759 net/ipv6/udp.c 		hash2_any = ipv6_portaddr_hash(net, &in6addr_any, hnum) &
net               761 net/ipv6/udp.c 		hash2 = ipv6_portaddr_hash(net, daddr, hnum) & udptable->mask;
net               768 net/ipv6/udp.c 		if (!__udp_v6_is_mcast_sock(net, sk, uh->dest, daddr,
net               784 net/ipv6/udp.c 			__UDP6_INC_STATS(net, UDP_MIB_RCVBUFERRORS,
net               786 net/ipv6/udp.c 			__UDP6_INC_STATS(net, UDP_MIB_INERRORS,
net               806 net/ipv6/udp.c 		__UDP6_INC_STATS(net, UDP_MIB_IGNOREDMULTI,
net               844 net/ipv6/udp.c 	struct net *net = dev_net(skb->dev);
net               905 net/ipv6/udp.c 		return __udp6_lib_mcast_deliver(net, skb,
net               925 net/ipv6/udp.c 	__UDP6_INC_STATS(net, UDP_MIB_NOPORTS, proto == IPPROTO_UDPLITE);
net               942 net/ipv6/udp.c 	__UDP6_INC_STATS(net, UDP_MIB_CSUMERRORS, proto == IPPROTO_UDPLITE);
net               944 net/ipv6/udp.c 	__UDP6_INC_STATS(net, UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE);
net               950 net/ipv6/udp.c static struct sock *__udp6_lib_demux_lookup(struct net *net,
net               956 net/ipv6/udp.c 	unsigned int hash2 = ipv6_portaddr_hash(net, loc_addr, hnum);
net               964 net/ipv6/udp.c 		    INET6_MATCH(sk, net, rmt_addr, loc_addr, ports, dif, sdif))
net               974 net/ipv6/udp.c 	struct net *net = dev_net(skb->dev);
net               988 net/ipv6/udp.c 		sk = __udp6_lib_demux_lookup(net, uh->dest,
net              1638 net/ipv6/udp.c int __net_init udp6_proc_init(struct net *net)
net              1640 net/ipv6/udp.c 	if (!proc_create_net_data("udp6", 0444, net->proc_net, &udp6_seq_ops,
net              1646 net/ipv6/udp.c void udp6_proc_exit(struct net *net)
net              1648 net/ipv6/udp.c 	remove_proc_entry("udp6", net->proc_net);
net              1675 net/ipv6/udp.c 	.sysctl_wmem_offset     = offsetof(struct net, ipv4.sysctl_udp_wmem_min),
net              1676 net/ipv6/udp.c 	.sysctl_rmem_offset     = offsetof(struct net, ipv4.sysctl_udp_rmem_min),
net               100 net/ipv6/udplite.c static int __net_init udplite6_proc_init_net(struct net *net)
net               102 net/ipv6/udplite.c 	if (!proc_create_net_data("udplite6", 0444, net->proc_net,
net               109 net/ipv6/udplite.c static void __net_exit udplite6_proc_exit_net(struct net *net)
net               111 net/ipv6/udplite.c 	remove_proc_entry("udplite6", net->proc_net);
net                35 net/ipv6/xfrm6_input.c static int xfrm6_transport_finish2(struct net *net, struct sock *sk,
net                87 net/ipv6/xfrm6_input.c 	struct net *net = dev_net(skb->dev);
net                94 net/ipv6/xfrm6_input.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINERROR);
net                99 net/ipv6/xfrm6_input.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINBUFFERERROR);
net               123 net/ipv6/xfrm6_input.c 		x = xfrm_state_lookup_byaddr(net, skb->mark, dst, src, proto, AF_INET6);
net               145 net/ipv6/xfrm6_input.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINNOSTATES);
net               136 net/ipv6/xfrm6_output.c static int __xfrm6_output_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net               143 net/ipv6/xfrm6_output.c static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               153 net/ipv6/xfrm6_output.c 		return dst_output(net, sk, skb);
net               178 net/ipv6/xfrm6_output.c 		return ip6_fragment(net, sk, skb,
net               185 net/ipv6/xfrm6_output.c int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               188 net/ipv6/xfrm6_output.c 			    net, sk, skb,  NULL, skb_dst(skb)->dev,
net                26 net/ipv6/xfrm6_policy.c static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, int oif,
net                36 net/ipv6/xfrm6_policy.c 	fl6.flowi6_oif = l3mdev_master_ifindex_by_index(net, oif);
net                43 net/ipv6/xfrm6_policy.c 	dst = ip6_route_output(net, NULL, &fl6);
net                54 net/ipv6/xfrm6_policy.c static int xfrm6_get_saddr(struct net *net, int oif,
net                61 net/ipv6/xfrm6_policy.c 	dst = xfrm6_dst_lookup(net, 0, oif, NULL, daddr, mark);
net               198 net/ipv6/xfrm6_policy.c static int __net_init xfrm6_net_sysctl_init(struct net *net)
net               204 net/ipv6/xfrm6_policy.c 	if (!net_eq(net, &init_net)) {
net               209 net/ipv6/xfrm6_policy.c 		table[0].data = &net->xfrm.xfrm6_dst_ops.gc_thresh;
net               212 net/ipv6/xfrm6_policy.c 	hdr = register_net_sysctl(net, "net/ipv6", table);
net               216 net/ipv6/xfrm6_policy.c 	net->ipv6.sysctl.xfrm6_hdr = hdr;
net               220 net/ipv6/xfrm6_policy.c 	if (!net_eq(net, &init_net))
net               226 net/ipv6/xfrm6_policy.c static void __net_exit xfrm6_net_sysctl_exit(struct net *net)
net               230 net/ipv6/xfrm6_policy.c 	if (!net->ipv6.sysctl.xfrm6_hdr)
net               233 net/ipv6/xfrm6_policy.c 	table = net->ipv6.sysctl.xfrm6_hdr->ctl_table_arg;
net               234 net/ipv6/xfrm6_policy.c 	unregister_net_sysctl_table(net->ipv6.sysctl.xfrm6_hdr);
net               235 net/ipv6/xfrm6_policy.c 	if (!net_eq(net, &init_net))
net               239 net/ipv6/xfrm6_policy.c static inline int xfrm6_net_sysctl_init(struct net *net)
net               244 net/ipv6/xfrm6_policy.c static inline void xfrm6_net_sysctl_exit(struct net *net)
net               249 net/ipv6/xfrm6_policy.c static int __net_init xfrm6_net_init(struct net *net)
net               253 net/ipv6/xfrm6_policy.c 	memcpy(&net->xfrm.xfrm6_dst_ops, &xfrm6_dst_ops_template,
net               255 net/ipv6/xfrm6_policy.c 	ret = dst_entries_init(&net->xfrm.xfrm6_dst_ops);
net               259 net/ipv6/xfrm6_policy.c 	ret = xfrm6_net_sysctl_init(net);
net               261 net/ipv6/xfrm6_policy.c 		dst_entries_destroy(&net->xfrm.xfrm6_dst_ops);
net               266 net/ipv6/xfrm6_policy.c static void __net_exit xfrm6_net_exit(struct net *net)
net               268 net/ipv6/xfrm6_policy.c 	xfrm6_net_sysctl_exit(net);
net               269 net/ipv6/xfrm6_policy.c 	dst_entries_destroy(&net->xfrm.xfrm6_dst_ops);
net                35 net/ipv6/xfrm6_tunnel.c static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net)
net                37 net/ipv6/xfrm6_tunnel.c 	return net_generic(net, xfrm6_tunnel_net_id);
net                74 net/ipv6/xfrm6_tunnel.c static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr)
net                76 net/ipv6/xfrm6_tunnel.c 	struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
net                89 net/ipv6/xfrm6_tunnel.c __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr)
net                95 net/ipv6/xfrm6_tunnel.c 	x6spi = __xfrm6_tunnel_spi_lookup(net, saddr);
net               102 net/ipv6/xfrm6_tunnel.c static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi)
net               104 net/ipv6/xfrm6_tunnel.c 	struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
net               117 net/ipv6/xfrm6_tunnel.c static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
net               119 net/ipv6/xfrm6_tunnel.c 	struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
net               131 net/ipv6/xfrm6_tunnel.c 		index = __xfrm6_tunnel_spi_check(net, spi);
net               139 net/ipv6/xfrm6_tunnel.c 		index = __xfrm6_tunnel_spi_check(net, spi);
net               163 net/ipv6/xfrm6_tunnel.c __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
net               169 net/ipv6/xfrm6_tunnel.c 	x6spi = __xfrm6_tunnel_spi_lookup(net, saddr);
net               174 net/ipv6/xfrm6_tunnel.c 		spi = __xfrm6_tunnel_alloc_spi(net, saddr);
net               187 net/ipv6/xfrm6_tunnel.c static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr)
net               189 net/ipv6/xfrm6_tunnel.c 	struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
net               224 net/ipv6/xfrm6_tunnel.c 	struct net *net = dev_net(skb->dev);
net               228 net/ipv6/xfrm6_tunnel.c 	spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr);
net               288 net/ipv6/xfrm6_tunnel.c 	struct net *net = xs_net(x);
net               290 net/ipv6/xfrm6_tunnel.c 	xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr);
net               315 net/ipv6/xfrm6_tunnel.c static int __net_init xfrm6_tunnel_net_init(struct net *net)
net               317 net/ipv6/xfrm6_tunnel.c 	struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
net               329 net/ipv6/xfrm6_tunnel.c static void __net_exit xfrm6_tunnel_net_exit(struct net *net)
net               331 net/ipv6/xfrm6_tunnel.c 	struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
net               335 net/ipv6/xfrm6_tunnel.c 	xfrm_state_flush(net, 0, false, true);
net               611 net/iucv/af_iucv.c static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
net                20 net/kcm/kcmproc.c 	struct net *net = seq_file_net(seq);
net                21 net/kcm/kcmproc.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net                37 net/kcm/kcmproc.c 	struct net *net = seq_file_net(seq);
net                38 net/kcm/kcmproc.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net                85 net/kcm/kcmproc.c 	struct net *net = seq_file_net(seq);
net                86 net/kcm/kcmproc.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net               249 net/kcm/kcmproc.c 	struct net *net = seq->private;
net               250 net/kcm/kcmproc.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net               348 net/kcm/kcmproc.c static int kcm_proc_init_net(struct net *net)
net               350 net/kcm/kcmproc.c 	if (!proc_create_net_single("kcm_stats", 0444, net->proc_net,
net               354 net/kcm/kcmproc.c 	if (!proc_create_net("kcm", 0444, net->proc_net, &kcm_seq_ops,
net               361 net/kcm/kcmproc.c 	remove_proc_entry("kcm_stats", net->proc_net);
net               366 net/kcm/kcmproc.c static void kcm_proc_exit_net(struct net *net)
net               368 net/kcm/kcmproc.c 	remove_proc_entry("kcm", net->proc_net);
net               369 net/kcm/kcmproc.c 	remove_proc_entry("kcm_stats", net->proc_net);
net              1942 net/kcm/kcmsock.c static int kcm_create(struct net *net, struct socket *sock,
net              1945 net/kcm/kcmsock.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net              1963 net/kcm/kcmsock.c 	sk = sk_alloc(net, PF_KCM, GFP_KERNEL, &kcm_proto, kern);
net              2007 net/kcm/kcmsock.c static __net_init int kcm_init_net(struct net *net)
net              2009 net/kcm/kcmsock.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net              2017 net/kcm/kcmsock.c static __net_exit void kcm_exit_net(struct net *net)
net              2019 net/kcm/kcmsock.c 	struct kcm_net *knet = net_generic(net, kcm_net_id);
net                96 net/key/af_key.c 	struct net *net = sock_net(sk);
net                97 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net               117 net/key/af_key.c 	struct net *net = sock_net(sk);
net               118 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net               138 net/key/af_key.c static int pfkey_create(struct net *net, struct socket *sock, int protocol,
net               141 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net               146 net/key/af_key.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net               154 net/key/af_key.c 	sk = sk_alloc(net, PF_KEY, GFP_KERNEL, &key_proto, kern);
net               221 net/key/af_key.c 			   struct net *net)
net               223 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net               656 net/key/af_key.c static struct  xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, void * const *ext_hdrs)
net               694 net/key/af_key.c 	return xfrm_state_lookup(net, DUMMY_MARK, xaddr, sa->sadb_sa_spi, proto, family);
net              1063 net/key/af_key.c static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net,
net              1126 net/key/af_key.c 	x = xfrm_state_alloc(net);
net              1311 net/key/af_key.c 	struct net *net = sock_net(sk);
net              1362 net/key/af_key.c 		x = xfrm_find_acq_byseq(net, DUMMY_MARK, hdr->sadb_msg_seq);
net              1370 net/key/af_key.c 		x = xfrm_find_acq(net, &dummy_mark, mode, reqid, 0, proto, xdaddr, xsaddr, 1, family);
net              1409 net/key/af_key.c 	pfkey_broadcast(resp_skb, GFP_KERNEL, BROADCAST_ONE, sk, net);
net              1416 net/key/af_key.c 	struct net *net = sock_net(sk);
net              1425 net/key/af_key.c 	x = xfrm_find_acq_byseq(net, DUMMY_MARK, hdr->sadb_msg_seq);
net              1503 net/key/af_key.c 	struct net *net = sock_net(sk);
net              1508 net/key/af_key.c 	x = pfkey_msg2xfrm_state(net, hdr, ext_hdrs);
net              1540 net/key/af_key.c 	struct net *net = sock_net(sk);
net              1550 net/key/af_key.c 	x = pfkey_xfrm_state_lookup(net, hdr, ext_hdrs);
net              1580 net/key/af_key.c 	struct net *net = sock_net(sk);
net              1591 net/key/af_key.c 	x = pfkey_xfrm_state_lookup(net, hdr, ext_hdrs);
net              1754 net/key/af_key.c 	pfkey_broadcast(skb, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net);
net              1761 net/key/af_key.c 	struct net *net = sock_net(sk);
net              1770 net/key/af_key.c 	err = xfrm_state_flush(net, proto, true, false);
net              1782 net/key/af_key.c 	c.net = net;
net              1820 net/key/af_key.c 	struct net *net = sock_net(&pfk->sk);
net              1821 net/key/af_key.c 	return xfrm_state_walk(net, &pfk->dump.u.state, dump_sa, (void *) pfk);
net              1826 net/key/af_key.c 	struct net *net = sock_net(&pfk->sk);
net              1828 net/key/af_key.c 	xfrm_state_walk_done(&pfk->dump.u.state, net);
net              1915 net/key/af_key.c static u32 gen_reqid(struct net *net)
net              1928 net/key/af_key.c 		rc = xfrm_policy_walk(net, &walk, check_reqid, (void*)&reqid);
net              1929 net/key/af_key.c 		xfrm_policy_walk_done(&walk, net);
net              1939 net/key/af_key.c 	struct net *net = xp_net(xp);
net              1961 net/key/af_key.c 		if (!t->reqid && !(t->reqid = gen_reqid(net)))
net              2238 net/key/af_key.c 	struct net *net = sock_net(sk);
net              2258 net/key/af_key.c 	xp = xfrm_policy_alloc(net, GFP_KERNEL);
net              2353 net/key/af_key.c 	struct net *net = sock_net(sk);
net              2403 net/key/af_key.c 	xp = xfrm_policy_bysel_ctx(net, DUMMY_MARK, 0, XFRM_POLICY_TYPE_MAIN,
net              2549 net/key/af_key.c 	struct net *net = sock_net(sk);
net              2623 net/key/af_key.c 			    kma ? &k : NULL, net, NULL);
net              2639 net/key/af_key.c 	struct net *net = sock_net(sk);
net              2654 net/key/af_key.c 	xp = xfrm_policy_byid(net, DUMMY_MARK, 0, XFRM_POLICY_TYPE_MAIN,
net              2716 net/key/af_key.c 	struct net *net = sock_net(&pfk->sk);
net              2717 net/key/af_key.c 	return xfrm_policy_walk(net, &pfk->dump.u.policy, dump_sp, (void *) pfk);
net              2722 net/key/af_key.c 	struct net *net = sock_net((struct sock *)pfk);
net              2724 net/key/af_key.c 	xfrm_policy_walk_done(&pfk->dump.u.policy, net);
net              2764 net/key/af_key.c 	pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net);
net              2771 net/key/af_key.c 	struct net *net = sock_net(sk);
net              2775 net/key/af_key.c 	err = xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, true);
net              2787 net/key/af_key.c 	c.net = net;
net              3054 net/key/af_key.c 	struct net *net = x ? xs_net(x) : c->net;
net              3055 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net              3116 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(c->net, pfkey_net_id);
net              3243 net/key/af_key.c 	struct net *net = sock_net(sk);
net              3276 net/key/af_key.c 	xp = xfrm_policy_alloc(net, GFP_ATOMIC);
net              3649 net/key/af_key.c 	struct net *net = sock_net(sk);
net              3672 net/key/af_key.c 	mutex_lock(&net->xfrm.xfrm_cfg_mutex);
net              3674 net/key/af_key.c 	mutex_unlock(&net->xfrm.xfrm_cfg_mutex);
net              3777 net/key/af_key.c 	struct net *net = seq_file_net(f);
net              3778 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net              3786 net/key/af_key.c 	struct net *net = seq_file_net(f);
net              3787 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net              3805 net/key/af_key.c static int __net_init pfkey_init_proc(struct net *net)
net              3809 net/key/af_key.c 	e = proc_create_net("pfkey", 0, net->proc_net, &pfkey_seq_ops,
net              3817 net/key/af_key.c static void __net_exit pfkey_exit_proc(struct net *net)
net              3819 net/key/af_key.c 	remove_proc_entry("pfkey", net->proc_net);
net              3822 net/key/af_key.c static inline int pfkey_init_proc(struct net *net)
net              3827 net/key/af_key.c static inline void pfkey_exit_proc(struct net *net)
net              3843 net/key/af_key.c static int __net_init pfkey_net_init(struct net *net)
net              3845 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net              3851 net/key/af_key.c 	rv = pfkey_init_proc(net);
net              3856 net/key/af_key.c static void __net_exit pfkey_net_exit(struct net *net)
net              3858 net/key/af_key.c 	struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id);
net              3860 net/key/af_key.c 	pfkey_exit_proc(net);
net               123 net/l2tp/l2tp_core.c static inline struct l2tp_net *l2tp_pernet(const struct net *net)
net               125 net/l2tp/l2tp_core.c 	BUG_ON(!net);
net               127 net/l2tp/l2tp_core.c 	return net_generic(net, l2tp_net_id);
net               162 net/l2tp/l2tp_core.c struct l2tp_tunnel *l2tp_tunnel_get(const struct net *net, u32 tunnel_id)
net               164 net/l2tp/l2tp_core.c 	const struct l2tp_net *pn = l2tp_pernet(net);
net               182 net/l2tp/l2tp_core.c struct l2tp_tunnel *l2tp_tunnel_get_nth(const struct net *net, int nth)
net               184 net/l2tp/l2tp_core.c 	const struct l2tp_net *pn = l2tp_pernet(net);
net               224 net/l2tp/l2tp_core.c struct l2tp_session *l2tp_session_get(const struct net *net, u32 session_id)
net               229 net/l2tp/l2tp_core.c 	session_list = l2tp_session_id_hash_2(l2tp_pernet(net), session_id);
net               271 net/l2tp/l2tp_core.c struct l2tp_session *l2tp_session_get_by_ifname(const struct net *net,
net               274 net/l2tp/l2tp_core.c 	struct l2tp_net *pn = l2tp_pernet(net);
net              1291 net/l2tp/l2tp_core.c static int l2tp_tunnel_sock_create(struct net *net,
net              1328 net/l2tp/l2tp_core.c 		err = udp_sock_create(net, &udp_conf, &sock);
net              1339 net/l2tp/l2tp_core.c 			err = sock_create_kern(net, AF_INET6, SOCK_DGRAM,
net              1367 net/l2tp/l2tp_core.c 			err = sock_create_kern(net, AF_INET, SOCK_DGRAM,
net              1407 net/l2tp/l2tp_core.c int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp)
net              1454 net/l2tp/l2tp_core.c static int l2tp_validate_socket(const struct sock *sk, const struct net *net,
net              1457 net/l2tp/l2tp_core.c 	if (!net_eq(sock_net(sk), net))
net              1476 net/l2tp/l2tp_core.c int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
net              1486 net/l2tp/l2tp_core.c 		ret = l2tp_tunnel_sock_create(net, tunnel->tunnel_id,
net              1496 net/l2tp/l2tp_core.c 		ret = l2tp_validate_socket(sock->sk, net, tunnel->encap);
net              1501 net/l2tp/l2tp_core.c 	tunnel->l2tp_net = net;
net              1502 net/l2tp/l2tp_core.c 	pn = l2tp_pernet(net);
net              1528 net/l2tp/l2tp_core.c 		setup_udp_tunnel_sock(net, sock, &udp_cfg);
net              1715 net/l2tp/l2tp_core.c static __net_init int l2tp_init_net(struct net *net)
net              1717 net/l2tp/l2tp_core.c 	struct l2tp_net *pn = net_generic(net, l2tp_net_id);
net              1731 net/l2tp/l2tp_core.c static __net_exit void l2tp_exit_net(struct net *net)
net              1733 net/l2tp/l2tp_core.c 	struct l2tp_net *pn = l2tp_pernet(net);
net               169 net/l2tp/l2tp_core.h 	struct net		*l2tp_net;	/* the net we belong to */
net               181 net/l2tp/l2tp_core.h 	int (*session_create)(struct net *net, struct l2tp_tunnel *tunnel,
net               192 net/l2tp/l2tp_core.h struct l2tp_tunnel *l2tp_tunnel_get(const struct net *net, u32 tunnel_id);
net               193 net/l2tp/l2tp_core.h struct l2tp_tunnel *l2tp_tunnel_get_nth(const struct net *net, int nth);
net               199 net/l2tp/l2tp_core.h struct l2tp_session *l2tp_session_get(const struct net *net, u32 session_id);
net               201 net/l2tp/l2tp_core.h struct l2tp_session *l2tp_session_get_by_ifname(const struct net *net,
net               204 net/l2tp/l2tp_core.h int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
net               207 net/l2tp/l2tp_core.h int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
net                36 net/l2tp/l2tp_debugfs.c 	struct net *net;
net                49 net/l2tp/l2tp_debugfs.c 	pd->tunnel = l2tp_tunnel_get_nth(pd->net, pd->tunnel_idx);
net               280 net/l2tp/l2tp_debugfs.c 	pd->net = get_net_ns_by_pid(current->pid);
net               281 net/l2tp/l2tp_debugfs.c 	if (IS_ERR(pd->net)) {
net               282 net/l2tp/l2tp_debugfs.c 		rc = PTR_ERR(pd->net);
net               297 net/l2tp/l2tp_debugfs.c 	put_net(pd->net);
net               310 net/l2tp/l2tp_debugfs.c 	if (pd->net)
net               311 net/l2tp/l2tp_debugfs.c 		put_net(pd->net);
net               257 net/l2tp/l2tp_eth.c static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel,
net               291 net/l2tp/l2tp_eth.c 	dev_net_set(dev, net);
net                46 net/l2tp/l2tp_ip.c static struct sock *__l2tp_ip_bind_lookup(const struct net *net, __be32 laddr,
net                55 net/l2tp/l2tp_ip.c 		if (!net_eq(sock_net(sk), net))
net               114 net/l2tp/l2tp_ip.c 	struct net *net = dev_net(skb->dev);
net               142 net/l2tp/l2tp_ip.c 	session = l2tp_session_get(net, session_id);
net               183 net/l2tp/l2tp_ip.c 	sk = __l2tp_ip_bind_lookup(net, iph->daddr, iph->saddr, inet_iif(skb),
net               264 net/l2tp/l2tp_ip.c 	struct net *net = sock_net(sk);
net               282 net/l2tp/l2tp_ip.c 	chk_addr_ret = inet_addr_type(net, addr->l2tp_addr.s_addr);
net               294 net/l2tp/l2tp_ip.c 	if (__l2tp_ip_bind_lookup(net, addr->l2tp_addr.s_addr, 0,
net                54 net/l2tp/l2tp_ip6.c static struct sock *__l2tp_ip6_bind_lookup(const struct net *net,
net                66 net/l2tp/l2tp_ip6.c 		if (!net_eq(sock_net(sk), net))
net               126 net/l2tp/l2tp_ip6.c 	struct net *net = dev_net(skb->dev);
net               154 net/l2tp/l2tp_ip6.c 	session = l2tp_session_get(net, session_id);
net               195 net/l2tp/l2tp_ip6.c 	sk = __l2tp_ip6_bind_lookup(net, &iph->daddr, &iph->saddr,
net               280 net/l2tp/l2tp_ip6.c 	struct net *net = sock_net(sk);
net               344 net/l2tp/l2tp_ip6.c 	if (__l2tp_ip6_bind_lookup(net, &addr->l2tp_addr, NULL, bound_dev_if,
net                55 net/l2tp/l2tp_netlink.c 	struct net *net = genl_info_net(info);
net                59 net/l2tp/l2tp_netlink.c 		session = l2tp_session_get_by_ifname(net, ifname);
net                64 net/l2tp/l2tp_netlink.c 		tunnel = l2tp_tunnel_get(net, tunnel_id);
net               169 net/l2tp/l2tp_netlink.c 	struct net *net = genl_info_net(info);
net               240 net/l2tp/l2tp_netlink.c 		ret = l2tp_tunnel_create(net, fd, proto_version, tunnel_id,
net               249 net/l2tp/l2tp_netlink.c 	ret = l2tp_tunnel_register(tunnel, net, &cfg);
net               267 net/l2tp/l2tp_netlink.c 	struct net *net = genl_info_net(info);
net               275 net/l2tp/l2tp_netlink.c 	tunnel = l2tp_tunnel_get(net, tunnel_id);
net               297 net/l2tp/l2tp_netlink.c 	struct net *net = genl_info_net(info);
net               305 net/l2tp/l2tp_netlink.c 	tunnel = l2tp_tunnel_get(net, tunnel_id);
net               442 net/l2tp/l2tp_netlink.c 	struct net *net = genl_info_net(info);
net               457 net/l2tp/l2tp_netlink.c 	tunnel = l2tp_tunnel_get(net, tunnel_id);
net               470 net/l2tp/l2tp_netlink.c 	return genlmsg_unicast(net, msg, info->snd_portid);
net               484 net/l2tp/l2tp_netlink.c 	struct net *net = sock_net(skb->sk);
net               487 net/l2tp/l2tp_netlink.c 		tunnel = l2tp_tunnel_get_nth(net, ti);
net               517 net/l2tp/l2tp_netlink.c 	struct net *net = genl_info_net(info);
net               525 net/l2tp/l2tp_netlink.c 	tunnel = l2tp_tunnel_get(net, tunnel_id);
net               621 net/l2tp/l2tp_netlink.c 	ret = l2tp_nl_cmd_ops[cfg.pw_type]->session_create(net, tunnel,
net               820 net/l2tp/l2tp_netlink.c 	struct net *net = sock_net(skb->sk);
net               828 net/l2tp/l2tp_netlink.c 			tunnel = l2tp_tunnel_get_nth(net, ti);
net               505 net/l2tp/l2tp_ppp.c static int pppol2tp_create(struct net *net, struct socket *sock, int kern)
net               510 net/l2tp/l2tp_ppp.c 	sk = sk_alloc(net, PF_PPPOX, GFP_KERNEL, &pppol2tp_sk_proto, kern);
net               863 net/l2tp/l2tp_ppp.c static int pppol2tp_session_create(struct net *net, struct l2tp_tunnel *tunnel,
net              1439 net/l2tp/l2tp_ppp.c static void pppol2tp_next_tunnel(struct net *net, struct pppol2tp_seq_data *pd)
net              1446 net/l2tp/l2tp_ppp.c 		pd->tunnel = l2tp_tunnel_get_nth(net, pd->tunnel_idx);
net              1457 net/l2tp/l2tp_ppp.c static void pppol2tp_next_session(struct net *net, struct pppol2tp_seq_data *pd)
net              1468 net/l2tp/l2tp_ppp.c 		pppol2tp_next_tunnel(net, pd);
net              1476 net/l2tp/l2tp_ppp.c 	struct net *net;
net              1483 net/l2tp/l2tp_ppp.c 	net = seq_file_net(m);
net              1486 net/l2tp/l2tp_ppp.c 		pppol2tp_next_tunnel(net, pd);
net              1488 net/l2tp/l2tp_ppp.c 		pppol2tp_next_session(net, pd);
net              1635 net/l2tp/l2tp_ppp.c static __net_init int pppol2tp_init_net(struct net *net)
net              1640 net/l2tp/l2tp_ppp.c 	pde = proc_create_net("pppol2tp", 0444, net->proc_net,
net              1651 net/l2tp/l2tp_ppp.c static __net_exit void pppol2tp_exit_net(struct net *net)
net              1653 net/l2tp/l2tp_ppp.c 	remove_proc_entry("pppol2tp", net->proc_net);
net                51 net/l3mdev/l3mdev.c int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex)
net                55 net/l3mdev/l3mdev.c 	dev = dev_get_by_index_rcu(net, ifindex);
net                96 net/l3mdev/l3mdev.c u32 l3mdev_fib_table_by_index(struct net *net, int ifindex)
net               106 net/l3mdev/l3mdev.c 	dev = dev_get_by_index_rcu(net, ifindex);
net               125 net/l3mdev/l3mdev.c struct dst_entry *l3mdev_link_scope_lookup(struct net *net,
net               133 net/l3mdev/l3mdev.c 		dev = dev_get_by_index_rcu(net, fl6->flowi6_oif);
net               153 net/l3mdev/l3mdev.c int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
net               161 net/l3mdev/l3mdev.c 	dev = dev_get_by_index_rcu(net, fl->flowi_oif);
net               169 net/l3mdev/l3mdev.c 	dev = dev_get_by_index_rcu(net, fl->flowi_iif);
net               183 net/l3mdev/l3mdev.c void l3mdev_update_flow(struct net *net, struct flowi *fl)
net               191 net/l3mdev/l3mdev.c 		dev = dev_get_by_index_rcu(net, fl->flowi_oif);
net               203 net/l3mdev/l3mdev.c 		dev = dev_get_by_index_rcu(net, fl->flowi_iif);
net               163 net/llc/af_llc.c static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
net               169 net/llc/af_llc.c 	if (!ns_capable(net->user_ns, CAP_NET_RAW))
net               172 net/llc/af_llc.c 	if (!net_eq(net, &init_net))
net               177 net/llc/af_llc.c 		sk = llc_sk_alloc(net, PF_LLC, GFP_KERNEL, &llc_proto, kern);
net               915 net/llc/llc_conn.c struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority, struct proto *prot, int kern)
net               917 net/llc/llc_conn.c 	struct sock *sk = sk_alloc(net, family, priority, prot, kern);
net                74 net/mpls/af_mpls.c 		       struct nlmsghdr *nlh, struct net *net, u32 portid,
net                77 net/mpls/af_mpls.c static struct mpls_route *mpls_route_input_rcu(struct net *net, unsigned index)
net                81 net/mpls/af_mpls.c 	if (index < net->mpls.platform_labels) {
net                83 net/mpls/af_mpls.c 			rcu_dereference(net->mpls.platform_label);
net               269 net/mpls/af_mpls.c static bool mpls_egress(struct net *net, struct mpls_route *rt,
net               304 net/mpls/af_mpls.c 		     net->mpls.ip_ttl_propagate))
net               326 net/mpls/af_mpls.c 		     net->mpls.ip_ttl_propagate))
net               344 net/mpls/af_mpls.c 	struct net *net = dev_net(dev);
net               384 net/mpls/af_mpls.c 	rt = mpls_route_input_rcu(net, dec.label);
net               536 net/mpls/af_mpls.c static void mpls_notify_route(struct net *net, unsigned index,
net               547 net/mpls/af_mpls.c 		rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags);
net               550 net/mpls/af_mpls.c static void mpls_route_update(struct net *net, unsigned index,
net               559 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net               563 net/mpls/af_mpls.c 	mpls_notify_route(net, index, rt, new, info);
net               569 net/mpls/af_mpls.c static unsigned find_free_label(struct net *net)
net               575 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net               576 net/mpls/af_mpls.c 	platform_labels = net->mpls.platform_labels;
net               586 net/mpls/af_mpls.c static struct net_device *inet_fib_lookup_dev(struct net *net,
net               594 net/mpls/af_mpls.c 	rt = ip_route_output(net, daddr.s_addr, 0, 0, 0);
net               606 net/mpls/af_mpls.c static struct net_device *inet_fib_lookup_dev(struct net *net,
net               614 net/mpls/af_mpls.c static struct net_device *inet6_fib_lookup_dev(struct net *net,
net               626 net/mpls/af_mpls.c 	dst = ipv6_stub->ipv6_dst_lookup_flow(net, NULL, &fl6, NULL);
net               637 net/mpls/af_mpls.c static struct net_device *inet6_fib_lookup_dev(struct net *net,
net               644 net/mpls/af_mpls.c static struct net_device *find_outdev(struct net *net,
net               653 net/mpls/af_mpls.c 			dev = inet_fib_lookup_dev(net, mpls_nh_via(rt, nh));
net               656 net/mpls/af_mpls.c 			dev = inet6_fib_lookup_dev(net, mpls_nh_via(rt, nh));
net               662 net/mpls/af_mpls.c 		dev = dev_get_by_index(net, oif);
net               677 net/mpls/af_mpls.c static int mpls_nh_assign_dev(struct net *net, struct mpls_route *rt,
net               683 net/mpls/af_mpls.c 	dev = find_outdev(net, rt, nh, oif);
net               768 net/mpls/af_mpls.c 	struct net *net = cfg->rc_nlinfo.nl_net;
net               784 net/mpls/af_mpls.c 	err = mpls_nh_assign_dev(net, rt, nh, cfg->rc_ifindex);
net               797 net/mpls/af_mpls.c static int mpls_nh_build(struct net *net, struct mpls_route *rt,
net               823 net/mpls/af_mpls.c 	err = mpls_nh_assign_dev(net, rt, nh, oif);
net               937 net/mpls/af_mpls.c static bool mpls_label_ok(struct net *net, unsigned int *index,
net               950 net/mpls/af_mpls.c 	if (is_ok && *index >= net->mpls.platform_labels) {
net               956 net/mpls/af_mpls.c 	*index = array_index_nospec(*index, net->mpls.platform_labels);
net               964 net/mpls/af_mpls.c 	struct net *net = cfg->rc_nlinfo.nl_net;
net               977 net/mpls/af_mpls.c 		index = find_free_label(net);
net               980 net/mpls/af_mpls.c 	if (!mpls_label_ok(net, &index, extack))
net               991 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net              1038 net/mpls/af_mpls.c 	mpls_route_update(net, index, rt, &cfg->rc_nlinfo);
net              1051 net/mpls/af_mpls.c 	struct net *net = cfg->rc_nlinfo.nl_net;
net              1057 net/mpls/af_mpls.c 	if (!mpls_label_ok(net, &index, extack))
net              1060 net/mpls/af_mpls.c 	mpls_route_update(net, index, NULL, &cfg->rc_nlinfo);
net              1181 net/mpls/af_mpls.c static void mpls_netconf_notify_devconf(struct net *net, int event,
net              1199 net/mpls/af_mpls.c 	rtnl_notify(skb, net, 0, RTNLGRP_MPLS_NETCONF, NULL, GFP_KERNEL);
net              1203 net/mpls/af_mpls.c 		rtnl_set_sk_err(net, RTNLGRP_MPLS_NETCONF, err);
net              1254 net/mpls/af_mpls.c 	struct net *net = sock_net(in_skb->sk);
net              1271 net/mpls/af_mpls.c 	dev = __dev_get_by_index(net, ifindex);
net              1294 net/mpls/af_mpls.c 	err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
net              1303 net/mpls/af_mpls.c 	struct net *net = sock_net(skb->sk);
net              1330 net/mpls/af_mpls.c 		head = &net->dev_index_head[h];
net              1332 net/mpls/af_mpls.c 		cb->seq = net->dev_base_seq;
net              1374 net/mpls/af_mpls.c 		struct net *net = ctl->extra2;
net              1379 net/mpls/af_mpls.c 			mpls_netconf_notify_devconf(net, RTM_NEWNETCONF,
net              1402 net/mpls/af_mpls.c 	struct net *net = dev_net(dev);
net              1416 net/mpls/af_mpls.c 		table[i].extra2 = net;
net              1421 net/mpls/af_mpls.c 	mdev->sysctl = register_net_sysctl(net, path, table);
net              1425 net/mpls/af_mpls.c 	mpls_netconf_notify_devconf(net, RTM_NEWNETCONF, NETCONFA_ALL, mdev);
net              1437 net/mpls/af_mpls.c 	struct net *net = dev_net(dev);
net              1444 net/mpls/af_mpls.c 	mpls_netconf_notify_devconf(net, RTM_DELNETCONF, 0, mdev);
net              1497 net/mpls/af_mpls.c 	struct net *net = dev_net(dev);
net              1501 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net              1502 net/mpls/af_mpls.c 	for (index = 0; index < net->mpls.platform_labels; index++) {
net              1541 net/mpls/af_mpls.c 			mpls_route_update(net, index, NULL, NULL);
net              1548 net/mpls/af_mpls.c 	struct net *net = dev_net(dev);
net              1552 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net              1553 net/mpls/af_mpls.c 	for (index = 0; index < net->mpls.platform_labels; index++) {
net              2074 net/mpls/af_mpls.c static int mpls_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
net              2078 net/mpls/af_mpls.c 	return ip_valid_fib_dump_req(net, nlh, filter, cb);
net              2081 net/mpls/af_mpls.c static int mpls_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
net              2119 net/mpls/af_mpls.c 			filter->dev = __dev_get_by_index(net, ifindex);
net              2158 net/mpls/af_mpls.c 	struct net *net = sock_net(skb->sk);
net              2170 net/mpls/af_mpls.c 		err = mpls_valid_fib_dump_req(net, nlh, &filter, cb);
net              2187 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net              2188 net/mpls/af_mpls.c 	platform_labels = net->mpls.platform_labels;
net              2252 net/mpls/af_mpls.c 		       struct nlmsghdr *nlh, struct net *net, u32 portid,
net              2270 net/mpls/af_mpls.c 	rtnl_notify(skb, net, portid, RTNLGRP_MPLS_ROUTE, nlh, GFP_KERNEL);
net              2275 net/mpls/af_mpls.c 		rtnl_set_sk_err(net, RTNLGRP_MPLS_ROUTE, err);
net              2339 net/mpls/af_mpls.c 	struct net *net = sock_net(in_skb->sk);
net              2370 net/mpls/af_mpls.c 		if (!mpls_label_ok(net, &in_label, extack)) {
net              2376 net/mpls/af_mpls.c 	rt = mpls_route_input_rcu(net, in_label);
net              2397 net/mpls/af_mpls.c 		return rtnl_unicast(skb, net, portid);
net              2487 net/mpls/af_mpls.c 	err = rtnl_unicast(skb, net, portid);
net              2499 net/mpls/af_mpls.c static int resize_platform_label_table(struct net *net, size_t limit)
net              2516 net/mpls/af_mpls.c 		struct net_device *lo = net->loopback_dev;
net              2530 net/mpls/af_mpls.c 		struct net_device *lo = net->loopback_dev;
net              2546 net/mpls/af_mpls.c 	old = rtnl_dereference(net->mpls.platform_label);
net              2547 net/mpls/af_mpls.c 	old_limit = net->mpls.platform_labels;
net              2551 net/mpls/af_mpls.c 		mpls_route_update(net, index, NULL, NULL);
net              2574 net/mpls/af_mpls.c 	net->mpls.platform_labels = limit;
net              2575 net/mpls/af_mpls.c 	rcu_assign_pointer(net->mpls.platform_label, labels);
net              2599 net/mpls/af_mpls.c 	struct net *net = table->data;
net              2600 net/mpls/af_mpls.c 	int platform_labels = net->mpls.platform_labels;
net              2614 net/mpls/af_mpls.c 		ret = resize_platform_label_table(net, platform_labels);
net              2620 net/mpls/af_mpls.c 	(&((struct net *)0)->field)
net              2651 net/mpls/af_mpls.c static int mpls_net_init(struct net *net)
net              2656 net/mpls/af_mpls.c 	net->mpls.platform_labels = 0;
net              2657 net/mpls/af_mpls.c 	net->mpls.platform_label = NULL;
net              2658 net/mpls/af_mpls.c 	net->mpls.ip_ttl_propagate = 1;
net              2659 net/mpls/af_mpls.c 	net->mpls.default_ttl = 255;
net              2669 net/mpls/af_mpls.c 		table[i].data = (char *)net + (uintptr_t)table[i].data;
net              2671 net/mpls/af_mpls.c 	net->mpls.ctl = register_net_sysctl(net, "net/mpls", table);
net              2672 net/mpls/af_mpls.c 	if (net->mpls.ctl == NULL) {
net              2680 net/mpls/af_mpls.c static void mpls_net_exit(struct net *net)
net              2687 net/mpls/af_mpls.c 	table = net->mpls.ctl->ctl_table_arg;
net              2688 net/mpls/af_mpls.c 	unregister_net_sysctl_table(net->mpls.ctl);
net              2701 net/mpls/af_mpls.c 	platform_label = rtnl_dereference(net->mpls.platform_label);
net              2702 net/mpls/af_mpls.c 	platform_labels = net->mpls.platform_labels;
net              2706 net/mpls/af_mpls.c 		mpls_notify_route(net, index, rt, NULL, NULL);
net                48 net/mpls/mpls_iptunnel.c 	struct net *net;
net                56 net/mpls/mpls_iptunnel.c 	net = dev_net(out_dev);
net                82 net/mpls/mpls_iptunnel.c 			 !net->mpls.ip_ttl_propagate)
net                83 net/mpls/mpls_iptunnel.c 			ttl = net->mpls.default_ttl;
net                91 net/mpls/mpls_iptunnel.c 			 !net->mpls.ip_ttl_propagate)
net                92 net/mpls/mpls_iptunnel.c 			ttl = net->mpls.default_ttl;
net                34 net/ncsi/ncsi-netlink.c static struct ncsi_dev_priv *ndp_from_ifindex(struct net *net, u32 ifindex)
net                41 net/ncsi/ncsi-netlink.c 	if (!net)
net                44 net/ncsi/ncsi-netlink.c 	dev = dev_get_by_index(net, ifindex);
net               483 net/ncsi/ncsi-netlink.c 	struct net *net;
net               487 net/ncsi/ncsi-netlink.c 	net = dev_net(nr->rsp->dev);
net               513 net/ncsi/ncsi-netlink.c 	return genlmsg_unicast(net, skb, nr->snd_portid);
net               525 net/ncsi/ncsi-netlink.c 	struct net *net;
net               539 net/ncsi/ncsi-netlink.c 	net = dev_net(nr->cmd->dev);
net               556 net/ncsi/ncsi-netlink.c 	return genlmsg_unicast(net, skb, nr->snd_portid);
net               568 net/ncsi/ncsi-netlink.c 	struct net *net;
net               574 net/ncsi/ncsi-netlink.c 	net = dev_net(dev);
net               584 net/ncsi/ncsi-netlink.c 	return nlmsg_unicast(net->genl_sock, skb, snd_portid);
net               267 net/netfilter/core.c nf_hook_entry_head(struct net *net, int pf, unsigned int hooknum,
net               275 net/netfilter/core.c 		if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum))
net               277 net/netfilter/core.c 		return net->nf.hooks_arp + hooknum;
net               281 net/netfilter/core.c 		if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum))
net               283 net/netfilter/core.c 		return net->nf.hooks_bridge + hooknum;
net               286 net/netfilter/core.c 		if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum))
net               288 net/netfilter/core.c 		return net->nf.hooks_ipv4 + hooknum;
net               290 net/netfilter/core.c 		if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum))
net               292 net/netfilter/core.c 		return net->nf.hooks_ipv6 + hooknum;
net               295 net/netfilter/core.c 		if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_decnet) <= hooknum))
net               297 net/netfilter/core.c 		return net->nf.hooks_decnet + hooknum;
net               306 net/netfilter/core.c 		if (dev && dev_net(dev) == net)
net               314 net/netfilter/core.c static int __nf_register_net_hook(struct net *net, int pf,
net               326 net/netfilter/core.c 		    !reg->dev || dev_net(reg->dev) != net)
net               330 net/netfilter/core.c 	pp = nf_hook_entry_head(net, pf, reg->hooknum, reg->dev);
net               386 net/netfilter/core.c static void __nf_unregister_net_hook(struct net *net, int pf,
net               392 net/netfilter/core.c 	pp = nf_hook_entry_head(net, pf, reg->hooknum, reg->dev);
net               421 net/netfilter/core.c 	nf_queue_nf_hook_drop(net);
net               425 net/netfilter/core.c void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *reg)
net               428 net/netfilter/core.c 		__nf_unregister_net_hook(net, NFPROTO_IPV4, reg);
net               429 net/netfilter/core.c 		__nf_unregister_net_hook(net, NFPROTO_IPV6, reg);
net               431 net/netfilter/core.c 		__nf_unregister_net_hook(net, reg->pf, reg);
net               449 net/netfilter/core.c int nf_register_net_hook(struct net *net, const struct nf_hook_ops *reg)
net               454 net/netfilter/core.c 		err = __nf_register_net_hook(net, NFPROTO_IPV4, reg);
net               458 net/netfilter/core.c 		err = __nf_register_net_hook(net, NFPROTO_IPV6, reg);
net               460 net/netfilter/core.c 			__nf_unregister_net_hook(net, NFPROTO_IPV4, reg);
net               464 net/netfilter/core.c 		err = __nf_register_net_hook(net, reg->pf, reg);
net               473 net/netfilter/core.c int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
net               480 net/netfilter/core.c 		err = nf_register_net_hook(net, &reg[i]);
net               488 net/netfilter/core.c 		nf_unregister_net_hooks(net, reg, i);
net               493 net/netfilter/core.c void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
net               499 net/netfilter/core.c 		nf_unregister_net_hook(net, &reg[i]);
net               617 net/netfilter/core.c static int __net_init netfilter_net_init(struct net *net)
net               619 net/netfilter/core.c 	__netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf.hooks_ipv4));
net               620 net/netfilter/core.c 	__netfilter_net_init(net->nf.hooks_ipv6, ARRAY_SIZE(net->nf.hooks_ipv6));
net               622 net/netfilter/core.c 	__netfilter_net_init(net->nf.hooks_arp, ARRAY_SIZE(net->nf.hooks_arp));
net               625 net/netfilter/core.c 	__netfilter_net_init(net->nf.hooks_bridge, ARRAY_SIZE(net->nf.hooks_bridge));
net               628 net/netfilter/core.c 	__netfilter_net_init(net->nf.hooks_decnet, ARRAY_SIZE(net->nf.hooks_decnet));
net               632 net/netfilter/core.c 	net->nf.proc_netfilter = proc_net_mkdir(net, "netfilter",
net               633 net/netfilter/core.c 						net->proc_net);
net               634 net/netfilter/core.c 	if (!net->nf.proc_netfilter) {
net               635 net/netfilter/core.c 		if (!net_eq(net, &init_net))
net               645 net/netfilter/core.c static void __net_exit netfilter_net_exit(struct net *net)
net               647 net/netfilter/core.c 	remove_proc_entry("netfilter", net->proc_net);
net               241 net/netfilter/ipset/ip_set_bitmap_ip.c bitmap_ip_create(struct net *net, struct ip_set *set, struct nlattr *tb[],
net               318 net/netfilter/ipset/ip_set_bitmap_ipmac.c bitmap_ipmac_create(struct net *net, struct ip_set *set, struct nlattr *tb[],
net               222 net/netfilter/ipset/ip_set_bitmap_port.c bitmap_port_create(struct net *net, struct ip_set *set, struct nlattr *tb[],
net                38 net/netfilter/ipset/ip_set_core.c static inline struct ip_set_net *ip_set_pernet(struct net *net)
net                40 net/netfilter/ipset/ip_set_core.c 	return net_generic(net, ip_set_net_id);
net               547 net/netfilter/ipset/ip_set_core.c ip_set_rcu_get(struct net *net, ip_set_id_t index)
net               550 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net               661 net/netfilter/ipset/ip_set_core.c ip_set_get_byname(struct net *net, const char *name, struct ip_set **set)
net               665 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net               702 net/netfilter/ipset/ip_set_core.c ip_set_put_byindex(struct net *net, ip_set_id_t index)
net               704 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net               716 net/netfilter/ipset/ip_set_core.c ip_set_name_byindex(struct net *net, ip_set_id_t index, char *name)
net               718 net/netfilter/ipset/ip_set_core.c 	struct ip_set *set = ip_set_rcu_get(net, index);
net               738 net/netfilter/ipset/ip_set_core.c ip_set_nfnl_get_byindex(struct net *net, ip_set_id_t index)
net               741 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net               765 net/netfilter/ipset/ip_set_core.c ip_set_nfnl_put(struct net *net, ip_set_id_t index)
net               768 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net               891 net/netfilter/ipset/ip_set_core.c static int ip_set_none(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net               899 net/netfilter/ipset/ip_set_core.c static int ip_set_create(struct net *net, struct sock *ctnl,
net               904 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net               959 net/netfilter/ipset/ip_set_core.c 	ret = set->type->create(net, set, tb, flags);
net              1041 net/netfilter/ipset/ip_set_core.c static int ip_set_destroy(struct net *net, struct sock *ctnl,
net              1046 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1120 net/netfilter/ipset/ip_set_core.c static int ip_set_flush(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net              1125 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1160 net/netfilter/ipset/ip_set_core.c static int ip_set_rename(struct net *net, struct sock *ctnl,
net              1165 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1210 net/netfilter/ipset/ip_set_core.c static int ip_set_swap(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net              1215 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1501 net/netfilter/ipset/ip_set_core.c static int ip_set_dump(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net              1593 net/netfilter/ipset/ip_set_core.c static int ip_set_ad(struct net *net, struct sock *ctnl,
net              1600 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1649 net/netfilter/ipset/ip_set_core.c static int ip_set_uadd(struct net *net, struct sock *ctnl,
net              1654 net/netfilter/ipset/ip_set_core.c 	return ip_set_ad(net, ctnl, skb,
net              1658 net/netfilter/ipset/ip_set_core.c static int ip_set_udel(struct net *net, struct sock *ctnl,
net              1663 net/netfilter/ipset/ip_set_core.c 	return ip_set_ad(net, ctnl, skb,
net              1667 net/netfilter/ipset/ip_set_core.c static int ip_set_utest(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net              1672 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1704 net/netfilter/ipset/ip_set_core.c static int ip_set_header(struct net *net, struct sock *ctnl,
net              1709 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1761 net/netfilter/ipset/ip_set_core.c static int ip_set_type(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net              1820 net/netfilter/ipset/ip_set_core.c static int ip_set_protocol(struct net *net, struct sock *ctnl,
net              1861 net/netfilter/ipset/ip_set_core.c static int ip_set_byname(struct net *net, struct sock *ctnl,
net              1866 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1913 net/netfilter/ipset/ip_set_core.c static int ip_set_byindex(struct net *net, struct sock *ctnl,
net              1918 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              2059 net/netfilter/ipset/ip_set_core.c 	struct net *net = sock_net(sk);
net              2060 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              2062 net/netfilter/ipset/ip_set_core.c 	if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              2183 net/netfilter/ipset/ip_set_core.c ip_set_net_init(struct net *net)
net              2185 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              2202 net/netfilter/ipset/ip_set_core.c ip_set_net_exit(struct net *net)
net              2204 net/netfilter/ipset/ip_set_core.c 	struct ip_set_net *inst = ip_set_pernet(net);
net              1451 net/netfilter/ipset/ip_set_hash_gen.h IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,
net                44 net/netfilter/ipset/ip_set_list_set.c 	struct net *net;	/* namespace */
net               159 net/netfilter/ipset/ip_set_list_set.c 	ip_set_put_byindex(map->net, e->id);
net               169 net/netfilter/ipset/ip_set_list_set.c 	ip_set_put_byindex(map->net, old->id);
net               270 net/netfilter/ipset/ip_set_list_set.c 		ip_set_put_byindex(map->net, d->id);
net               366 net/netfilter/ipset/ip_set_list_set.c 	e.id = ip_set_get_byname(map->net, nla_data(tb[IPSET_ATTR_NAME]), &s);
net               387 net/netfilter/ipset/ip_set_list_set.c 		e.refid = ip_set_get_byname(map->net,
net               404 net/netfilter/ipset/ip_set_list_set.c 		ip_set_put_byindex(map->net, e.refid);
net               406 net/netfilter/ipset/ip_set_list_set.c 		ip_set_put_byindex(map->net, e.id);
net               434 net/netfilter/ipset/ip_set_list_set.c 		ip_set_put_byindex(map->net, e->id);
net               508 net/netfilter/ipset/ip_set_list_set.c 		ip_set_name_byindex(map->net, e->id, name);
net               589 net/netfilter/ipset/ip_set_list_set.c init_list_set(struct net *net, struct ip_set *set, u32 size)
net               598 net/netfilter/ipset/ip_set_list_set.c 	map->net = net;
net               607 net/netfilter/ipset/ip_set_list_set.c list_set_create(struct net *net, struct ip_set *set, struct nlattr *tb[],
net               625 net/netfilter/ipset/ip_set_list_set.c 	if (!init_list_set(net, set, size))
net               535 net/netfilter/ipvs/ip_vs_app.c 	struct net *net = seq_file_net(seq);
net               536 net/netfilter/ipvs/ip_vs_app.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               547 net/netfilter/ipvs/ip_vs_app.c 	struct net *net = seq_file_net(seq);
net               548 net/netfilter/ipvs/ip_vs_app.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               602 net/netfilter/ipvs/ip_vs_app.c 	proc_create_net("ip_vs_app", 0, ipvs->net->proc_net, &ip_vs_app_seq_ops,
net               610 net/netfilter/ipvs/ip_vs_app.c 	remove_proc_entry("ip_vs_app", ipvs->net->proc_net);
net              1087 net/netfilter/ipvs/ip_vs_conn.c 		struct net *net = seq_file_net(seq);
net              1092 net/netfilter/ipvs/ip_vs_conn.c 		if (!net_eq(cp->ipvs->net, net))
net              1165 net/netfilter/ipvs/ip_vs_conn.c 		struct net *net = seq_file_net(seq);
net              1167 net/netfilter/ipvs/ip_vs_conn.c 		if (!net_eq(cp->ipvs->net, net))
net              1376 net/netfilter/ipvs/ip_vs_conn.c 	proc_create_net("ip_vs_conn", 0, ipvs->net->proc_net,
net              1378 net/netfilter/ipvs/ip_vs_conn.c 	proc_create_net("ip_vs_conn_sync", 0, ipvs->net->proc_net,
net              1388 net/netfilter/ipvs/ip_vs_conn.c 	remove_proc_entry("ip_vs_conn", ipvs->net->proc_net);
net              1389 net/netfilter/ipvs/ip_vs_conn.c 	remove_proc_entry("ip_vs_conn_sync", ipvs->net->proc_net);
net               582 net/netfilter/ipvs/ip_vs_core.c static inline int ip_vs_addr_is_unicast(struct net *net, int af,
net               589 net/netfilter/ipvs/ip_vs_core.c 	return (inet_addr_type(net, addr->ip) == RTN_UNICAST);
net               602 net/netfilter/ipvs/ip_vs_core.c 	struct net *net = ipvs->net;
net               614 net/netfilter/ipvs/ip_vs_core.c 	    ip_vs_addr_is_unicast(net, svc->af, &iph->daddr)) {
net               676 net/netfilter/ipvs/ip_vs_core.c 			skb->dev = net->loopback_dev;
net               730 net/netfilter/ipvs/ip_vs_core.c 	err = ip_defrag(ipvs->net, skb, user);
net               751 net/netfilter/ipvs/ip_vs_core.c 		    ip6_route_me_harder(ipvs->net, skb) != 0)
net               756 net/netfilter/ipvs/ip_vs_core.c 		    ip_route_me_harder(ipvs->net, skb, RTN_LOCAL) != 0)
net              1469 net/netfilter/ipvs/ip_vs_core.c 						skb->dev = ipvs->net->loopback_dev;
net              1503 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_out(net_ipvs(state->net), state->hook, skb, AF_INET);
net              1514 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_out(net_ipvs(state->net), state->hook, skb, AF_INET);
net              1528 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_out(net_ipvs(state->net), state->hook, skb, AF_INET6);
net              1539 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_out(net_ipvs(state->net), state->hook, skb, AF_INET6);
net              1819 net/netfilter/ipvs/ip_vs_core.c 			ipv4_update_pmtu(skb, ipvs->net, mtu, 0, 0);
net              2165 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_in(net_ipvs(state->net), state->hook, skb, AF_INET);
net              2176 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_in(net_ipvs(state->net), state->hook, skb, AF_INET);
net              2189 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_in(net_ipvs(state->net), state->hook, skb, AF_INET6);
net              2200 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_in(net_ipvs(state->net), state->hook, skb, AF_INET6);
net              2220 net/netfilter/ipvs/ip_vs_core.c 	struct netns_ipvs *ipvs = net_ipvs(state->net);
net              2238 net/netfilter/ipvs/ip_vs_core.c 	struct netns_ipvs *ipvs = net_ipvs(state->net);
net              2351 net/netfilter/ipvs/ip_vs_core.c static int __net_init __ip_vs_init(struct net *net)
net              2355 net/netfilter/ipvs/ip_vs_core.c 	ipvs = net_generic(net, ip_vs_net_id);
net              2361 net/netfilter/ipvs/ip_vs_core.c 	ipvs->net = net;
net              2365 net/netfilter/ipvs/ip_vs_core.c 	net->ipvs = ipvs;
net              2401 net/netfilter/ipvs/ip_vs_core.c 	net->ipvs = NULL;
net              2405 net/netfilter/ipvs/ip_vs_core.c static void __net_exit __ip_vs_cleanup(struct net *net)
net              2407 net/netfilter/ipvs/ip_vs_core.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              2416 net/netfilter/ipvs/ip_vs_core.c 	net->ipvs = NULL;
net              2419 net/netfilter/ipvs/ip_vs_core.c static int __net_init __ip_vs_dev_init(struct net *net)
net              2423 net/netfilter/ipvs/ip_vs_core.c 	ret = nf_register_net_hooks(net, ip_vs_ops, ARRAY_SIZE(ip_vs_ops));
net              2432 net/netfilter/ipvs/ip_vs_core.c static void __net_exit __ip_vs_dev_cleanup(struct net *net)
net              2434 net/netfilter/ipvs/ip_vs_core.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              2436 net/netfilter/ipvs/ip_vs_core.c 	nf_unregister_net_hooks(net, ip_vs_ops, ARRAY_SIZE(ip_vs_ops));
net                72 net/netfilter/ipvs/ip_vs_ctl.c static bool __ip_vs_addr_is_local_v6(struct net *net,
net                78 net/netfilter/ipvs/ip_vs_ctl.c 	struct dst_entry *dst = ip6_route_output(net, NULL, &fl6);
net               426 net/netfilter/ipvs/ip_vs_ctl.c 	    (vport == FTPDATA || ntohs(vport) >= inet_prot_sock(ipvs->net))) {
net               965 net/netfilter/ipvs/ip_vs_ctl.c 			!__ip_vs_addr_is_local_v6(svc->ipvs->net, &udest->addr.in6))
net               968 net/netfilter/ipvs/ip_vs_ctl.c 		ret = nf_defrag_ipv6_enable(svc->ipvs->net);
net               974 net/netfilter/ipvs/ip_vs_ctl.c 		atype = inet_addr_type(svc->ipvs->net, udest->addr.ip);
net              1310 net/netfilter/ipvs/ip_vs_ctl.c 		ret = nf_defrag_ipv6_enable(ipvs->net);
net              1648 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = dev_net(dev);
net              1649 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              2021 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = seq_file_net(seq);
net              2022 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              2127 net/netfilter/ipvs/ip_vs_ctl.c 		struct net *net = seq_file_net(seq);
net              2128 net/netfilter/ipvs/ip_vs_ctl.c 		struct netns_ipvs *ipvs = net_ipvs(net);
net              2204 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = seq_file_single_net(seq);
net              2213 net/netfilter/ipvs/ip_vs_ctl.c 	ip_vs_copy_stats(&show, &net_ipvs(net)->tot_stats);
net              2236 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = seq_file_single_net(seq);
net              2237 net/netfilter/ipvs/ip_vs_ctl.c 	struct ip_vs_stats *tot_stats = &net_ipvs(net)->tot_stats;
net              2413 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(sk);
net              2421 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              2733 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(sk);
net              2734 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              2736 net/netfilter/ipvs/ip_vs_ctl.c 	BUG_ON(!net);
net              3109 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(skb->sk);
net              3110 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              3322 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(skb->sk);
net              3323 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              3481 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(skb->sk);
net              3482 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              3602 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(skb->sk);
net              3603 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              3631 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(skb->sk);
net              3632 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              3758 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = sock_net(skb->sk);
net              3759 net/netfilter/ipvs/ip_vs_ctl.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net              3982 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = ipvs->net;
net              3991 net/netfilter/ipvs/ip_vs_ctl.c 	if (!net_eq(net, &init_net)) {
net              3997 net/netfilter/ipvs/ip_vs_ctl.c 		if (net->user_ns != &init_user_ns)
net              4050 net/netfilter/ipvs/ip_vs_ctl.c 	ipvs->sysctl_hdr = register_net_sysctl(net, "net/ipv4/vs", tbl);
net              4052 net/netfilter/ipvs/ip_vs_ctl.c 		if (!net_eq(net, &init_net))
net              4067 net/netfilter/ipvs/ip_vs_ctl.c 	struct net *net = ipvs->net;
net              4074 net/netfilter/ipvs/ip_vs_ctl.c 	if (!net_eq(net, &init_net))
net              4120 net/netfilter/ipvs/ip_vs_ctl.c 	proc_create_net("ip_vs", 0, ipvs->net->proc_net, &ip_vs_info_seq_ops,
net              4122 net/netfilter/ipvs/ip_vs_ctl.c 	proc_create_net_single("ip_vs_stats", 0, ipvs->net->proc_net,
net              4124 net/netfilter/ipvs/ip_vs_ctl.c 	proc_create_net_single("ip_vs_stats_percpu", 0, ipvs->net->proc_net,
net              4141 net/netfilter/ipvs/ip_vs_ctl.c 	remove_proc_entry("ip_vs_stats_percpu", ipvs->net->proc_net);
net              4142 net/netfilter/ipvs/ip_vs_ctl.c 	remove_proc_entry("ip_vs_stats", ipvs->net->proc_net);
net              4143 net/netfilter/ipvs/ip_vs_ctl.c 	remove_proc_entry("ip_vs", ipvs->net->proc_net);
net               575 net/netfilter/ipvs/ip_vs_ftp.c static int __net_init __ip_vs_ftp_init(struct net *net)
net               579 net/netfilter/ipvs/ip_vs_ftp.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               606 net/netfilter/ipvs/ip_vs_ftp.c static void __ip_vs_ftp_exit(struct net *net)
net               608 net/netfilter/ipvs/ip_vs_ftp.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               550 net/netfilter/ipvs/ip_vs_lblc.c static int __net_init __ip_vs_lblc_init(struct net *net)
net               552 net/netfilter/ipvs/ip_vs_lblc.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               557 net/netfilter/ipvs/ip_vs_lblc.c 	if (!net_eq(net, &init_net)) {
net               565 net/netfilter/ipvs/ip_vs_lblc.c 		if (net->user_ns != &init_user_ns)
net               574 net/netfilter/ipvs/ip_vs_lblc.c 		register_net_sysctl(net, "net/ipv4/vs", ipvs->lblc_ctl_table);
net               576 net/netfilter/ipvs/ip_vs_lblc.c 		if (!net_eq(net, &init_net))
net               584 net/netfilter/ipvs/ip_vs_lblc.c static void __net_exit __ip_vs_lblc_exit(struct net *net)
net               586 net/netfilter/ipvs/ip_vs_lblc.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               590 net/netfilter/ipvs/ip_vs_lblc.c 	if (!net_eq(net, &init_net))
net               596 net/netfilter/ipvs/ip_vs_lblc.c static int __net_init __ip_vs_lblc_init(struct net *net) { return 0; }
net               597 net/netfilter/ipvs/ip_vs_lblc.c static void __net_exit __ip_vs_lblc_exit(struct net *net) { }
net               736 net/netfilter/ipvs/ip_vs_lblcr.c static int __net_init __ip_vs_lblcr_init(struct net *net)
net               738 net/netfilter/ipvs/ip_vs_lblcr.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               743 net/netfilter/ipvs/ip_vs_lblcr.c 	if (!net_eq(net, &init_net)) {
net               751 net/netfilter/ipvs/ip_vs_lblcr.c 		if (net->user_ns != &init_user_ns)
net               759 net/netfilter/ipvs/ip_vs_lblcr.c 		register_net_sysctl(net, "net/ipv4/vs", ipvs->lblcr_ctl_table);
net               761 net/netfilter/ipvs/ip_vs_lblcr.c 		if (!net_eq(net, &init_net))
net               769 net/netfilter/ipvs/ip_vs_lblcr.c static void __net_exit __ip_vs_lblcr_exit(struct net *net)
net               771 net/netfilter/ipvs/ip_vs_lblcr.c 	struct netns_ipvs *ipvs = net_ipvs(net);
net               775 net/netfilter/ipvs/ip_vs_lblcr.c 	if (!net_eq(net, &init_net))
net               781 net/netfilter/ipvs/ip_vs_lblcr.c static int __net_init __ip_vs_lblcr_init(struct net *net) { return 0; }
net               782 net/netfilter/ipvs/ip_vs_lblcr.c static void __net_exit __ip_vs_lblcr_exit(struct net *net) { }
net               146 net/netfilter/ipvs/ip_vs_nfct.c 	struct net *net = nf_ct_net(ct);
net               158 net/netfilter/ipvs/ip_vs_nfct.c 	ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum,
net               262 net/netfilter/ipvs/ip_vs_nfct.c 	h = nf_conntrack_find_get(cp->ipvs->net, &nf_ct_zone_dflt, &tuple);
net              1482 net/netfilter/ipvs/ip_vs_sync.c 	result = sock_create_kern(ipvs->net, ipvs->mcfg.mcast_af, SOCK_DGRAM,
net              1539 net/netfilter/ipvs/ip_vs_sync.c 	result = sock_create_kern(ipvs->net, ipvs->bcfg.mcast_af, SOCK_DGRAM,
net              1796 net/netfilter/ipvs/ip_vs_sync.c 	dev = __dev_get_by_name(ipvs->net, c->mcast_ifn);
net               123 net/netfilter/ipvs/ip_vs_xmit.c static struct rtable *do_output_route4(struct net *net, __be32 daddr,
net               136 net/netfilter/ipvs/ip_vs_xmit.c 	rt = ip_route_output_key(net, &fl4);
net               221 net/netfilter/ipvs/ip_vs_xmit.c 		struct net *net = ipvs->net;
net               225 net/netfilter/ipvs/ip_vs_xmit.c 				skb->dev = net->loopback_dev;
net               260 net/netfilter/ipvs/ip_vs_xmit.c 	struct net *net = ipvs->net;
net               274 net/netfilter/ipvs/ip_vs_xmit.c 			__IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS);
net               289 net/netfilter/ipvs/ip_vs_xmit.c 			__IP_INC_STATS(net, IPSTATS_MIB_INHDRERRORS);
net               312 net/netfilter/ipvs/ip_vs_xmit.c 	struct net *net = ipvs->net;
net               330 net/netfilter/ipvs/ip_vs_xmit.c 			rt = do_output_route4(net, dest->addr.ip, rt_mode,
net               355 net/netfilter/ipvs/ip_vs_xmit.c 		rt = do_output_route4(net, daddr, rt_mode, &saddr);
net               432 net/netfilter/ipvs/ip_vs_xmit.c __ip_vs_route_output_v6(struct net *net, struct in6_addr *daddr,
net               443 net/netfilter/ipvs/ip_vs_xmit.c 	dst = ip6_route_output(net, NULL, &fl6);
net               449 net/netfilter/ipvs/ip_vs_xmit.c 	    ipv6_dev_get_saddr(net, ip6_dst_idev(dst)->dev,
net               453 net/netfilter/ipvs/ip_vs_xmit.c 		dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
net               477 net/netfilter/ipvs/ip_vs_xmit.c 	struct net *net = ipvs->net;
net               498 net/netfilter/ipvs/ip_vs_xmit.c 			dst = __ip_vs_route_output_v6(net, &dest->addr.in6,
net               519 net/netfilter/ipvs/ip_vs_xmit.c 		dst = __ip_vs_route_output_v6(net, daddr, ret_saddr, do_xfrm,
net               658 net/netfilter/ipvs/ip_vs_xmit.c 		NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb,
net               678 net/netfilter/ipvs/ip_vs_xmit.c 		NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb,
net              1022 net/netfilter/ipvs/ip_vs_xmit.c ipvs_gue_encap(struct net *net, struct sk_buff *skb,
net              1026 net/netfilter/ipvs/ip_vs_xmit.c 	__be16 sport = udp_flow_src_port(net, skb, 0, 0, false);
net              1096 net/netfilter/ipvs/ip_vs_xmit.c ipvs_gre_encap(struct net *net, struct sk_buff *skb,
net              1137 net/netfilter/ipvs/ip_vs_xmit.c 	struct net *net = ipvs->net;
net              1232 net/netfilter/ipvs/ip_vs_xmit.c 		if (ipvs_gue_encap(net, skb, cp, &next_protocol))
net              1241 net/netfilter/ipvs/ip_vs_xmit.c 		ipvs_gre_encap(net, skb, cp, &next_protocol);
net              1259 net/netfilter/ipvs/ip_vs_xmit.c 	ip_select_ident(net, skb, NULL);
net              1266 net/netfilter/ipvs/ip_vs_xmit.c 		ip_local_out(net, skb->sk, skb);
net              1287 net/netfilter/ipvs/ip_vs_xmit.c 	struct net *net = ipvs->net;
net              1380 net/netfilter/ipvs/ip_vs_xmit.c 		if (ipvs_gue_encap(net, skb, cp, &next_protocol))
net              1389 net/netfilter/ipvs/ip_vs_xmit.c 		ipvs_gre_encap(net, skb, cp, &next_protocol);
net              1413 net/netfilter/ipvs/ip_vs_xmit.c 		ip6_local_out(net, skb->sk, skb);
net                61 net/netfilter/nf_conncount.c 	struct net *net;
net                97 net/netfilter/nf_conncount.c find_or_evict(struct net *net, struct nf_conncount_list *list,
net               105 net/netfilter/nf_conncount.c 	found = nf_conntrack_find_get(net, &conn->zone, &conn->tuple);
net               125 net/netfilter/nf_conncount.c static int __nf_conncount_add(struct net *net,
net               140 net/netfilter/nf_conncount.c 		found = find_or_evict(net, list, conn);
net               196 net/netfilter/nf_conncount.c int nf_conncount_add(struct net *net,
net               205 net/netfilter/nf_conncount.c 	ret = __nf_conncount_add(net, list, tuple, zone);
net               221 net/netfilter/nf_conncount.c bool nf_conncount_gc_list(struct net *net,
net               235 net/netfilter/nf_conncount.c 		found = find_or_evict(net, list, conn);
net               300 net/netfilter/nf_conncount.c insert_tree(struct net *net,
net               333 net/netfilter/nf_conncount.c 			ret = nf_conncount_add(net, &rbconn->list, tuple, zone);
net               345 net/netfilter/nf_conncount.c 		if (do_gc && nf_conncount_gc_list(net, &rbconn->list))
net               385 net/netfilter/nf_conncount.c count_tree(struct net *net,
net               415 net/netfilter/nf_conncount.c 				nf_conncount_gc_list(net, &rbconn->list);
net               429 net/netfilter/nf_conncount.c 			ret = __nf_conncount_add(net, &rbconn->list, tuple, zone);
net               441 net/netfilter/nf_conncount.c 	return insert_tree(net, data, root, hash, key, tuple, zone);
net               459 net/netfilter/nf_conncount.c 		if (nf_conncount_gc_list(data->net, &rbconn->list))
net               506 net/netfilter/nf_conncount.c unsigned int nf_conncount_count(struct net *net,
net               512 net/netfilter/nf_conncount.c 	return count_tree(net, data, key, tuple, zone);
net               516 net/netfilter/nf_conncount.c struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int family,
net               533 net/netfilter/nf_conncount.c 	ret = nf_ct_netns_get(net, family);
net               543 net/netfilter/nf_conncount.c 	data->net = net;
net               575 net/netfilter/nf_conncount.c void nf_conncount_destroy(struct net *net, unsigned int family,
net               581 net/netfilter/nf_conncount.c 	nf_ct_netns_put(net, family);
net                31 net/netfilter/nf_conntrack_acct.c void nf_conntrack_acct_pernet_init(struct net *net)
net                33 net/netfilter/nf_conntrack_acct.c 	net->ct.sysctl_acct = nf_ct_acct;
net               123 net/netfilter/nf_conntrack_core.c static bool nf_conntrack_double_lock(struct net *net, unsigned int h1,
net               185 net/netfilter/nf_conntrack_core.c 			      const struct net *net)
net               196 net/netfilter/nf_conntrack_core.c 	seed = nf_conntrack_hash_rnd ^ net_hash_mix(net);
net               208 net/netfilter/nf_conntrack_core.c static u32 __hash_conntrack(const struct net *net,
net               212 net/netfilter/nf_conntrack_core.c 	return reciprocal_scale(hash_conntrack_raw(tuple, net), size);
net               215 net/netfilter/nf_conntrack_core.c static u32 hash_conntrack(const struct net *net,
net               218 net/netfilter/nf_conntrack_core.c 	return scale_hash(hash_conntrack_raw(tuple, net));
net               245 net/netfilter/nf_conntrack_core.c 		struct net *net,
net               289 net/netfilter/nf_conntrack_core.c 		return icmpv6_pkt_to_tuple(skb, dataoff, net, tuple);
net               292 net/netfilter/nf_conntrack_core.c 		return icmp_pkt_to_tuple(skb, dataoff, net, tuple);
net               295 net/netfilter/nf_conntrack_core.c 		return gre_pkt_to_tuple(skb, dataoff, net, tuple);
net               396 net/netfilter/nf_conntrack_core.c 		       struct net *net, struct nf_conntrack_tuple *tuple)
net               405 net/netfilter/nf_conntrack_core.c 	return nf_ct_get_tuple(skb, nhoff, protoff, l3num, protonum, net, tuple);
net               541 net/netfilter/nf_conntrack_core.c struct nf_conn *nf_ct_tmpl_alloc(struct net *net,
net               565 net/netfilter/nf_conntrack_core.c 	write_pnet(&tmpl->ct_net, net);
net               632 net/netfilter/nf_conntrack_core.c 	struct net *net = nf_ct_net(ct);
net               641 net/netfilter/nf_conntrack_core.c 		hash = hash_conntrack(net,
net               643 net/netfilter/nf_conntrack_core.c 		reply_hash = hash_conntrack(net,
net               645 net/netfilter/nf_conntrack_core.c 	} while (nf_conntrack_double_lock(net, hash, reply_hash, sequence));
net               687 net/netfilter/nf_conntrack_core.c 		const struct net *net)
net               697 net/netfilter/nf_conntrack_core.c 	       net_eq(net, nf_ct_net(ct));
net               730 net/netfilter/nf_conntrack_core.c ____nf_conntrack_find(struct net *net, const struct nf_conntrack_zone *zone,
net               751 net/netfilter/nf_conntrack_core.c 		if (nf_ct_key_equal(h, tuple, zone, net))
net               760 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(net, search_restart);
net               769 net/netfilter/nf_conntrack_core.c __nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone,
net               777 net/netfilter/nf_conntrack_core.c 	h = ____nf_conntrack_find(net, zone, tuple, hash);
net               784 net/netfilter/nf_conntrack_core.c 			if (likely(nf_ct_key_equal(h, tuple, zone, net)))
net               800 net/netfilter/nf_conntrack_core.c nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone,
net               803 net/netfilter/nf_conntrack_core.c 	return __nf_conntrack_find_get(net, zone, tuple,
net               804 net/netfilter/nf_conntrack_core.c 				       hash_conntrack_raw(tuple, net));
net               822 net/netfilter/nf_conntrack_core.c 	struct net *net = nf_ct_net(ct);
net               833 net/netfilter/nf_conntrack_core.c 		hash = hash_conntrack(net,
net               835 net/netfilter/nf_conntrack_core.c 		reply_hash = hash_conntrack(net,
net               837 net/netfilter/nf_conntrack_core.c 	} while (nf_conntrack_double_lock(net, hash, reply_hash, sequence));
net               842 net/netfilter/nf_conntrack_core.c 				    zone, net))
net               847 net/netfilter/nf_conntrack_core.c 				    zone, net))
net               855 net/netfilter/nf_conntrack_core.c 	NF_CT_STAT_INC(net, insert);
net               861 net/netfilter/nf_conntrack_core.c 	NF_CT_STAT_INC(net, insert_failed);
net               899 net/netfilter/nf_conntrack_core.c static int nf_ct_resolve_clash(struct net *net, struct sk_buff *skb,
net               922 net/netfilter/nf_conntrack_core.c 	NF_CT_STAT_INC(net, drop);
net               938 net/netfilter/nf_conntrack_core.c 	struct net *net;
net               943 net/netfilter/nf_conntrack_core.c 	net = nf_ct_net(ct);
net               960 net/netfilter/nf_conntrack_core.c 		reply_hash = hash_conntrack(net,
net               963 net/netfilter/nf_conntrack_core.c 	} while (nf_conntrack_double_lock(net, hash, reply_hash, sequence));
net              1000 net/netfilter/nf_conntrack_core.c 				    zone, net))
net              1005 net/netfilter/nf_conntrack_core.c 				    zone, net))
net              1039 net/netfilter/nf_conntrack_core.c 	ret = nf_ct_resolve_clash(net, skb, ctinfo, h);
net              1042 net/netfilter/nf_conntrack_core.c 	NF_CT_STAT_INC(net, insert_failed);
net              1054 net/netfilter/nf_conntrack_core.c 	struct net *net = nf_ct_net(ignored_conntrack);
net              1067 net/netfilter/nf_conntrack_core.c 	hash = __hash_conntrack(net, tuple, hsize);
net              1080 net/netfilter/nf_conntrack_core.c 		if (nf_ct_key_equal(h, tuple, zone, net)) {
net              1097 net/netfilter/nf_conntrack_core.c 			NF_CT_STAT_INC_ATOMIC(net, found);
net              1104 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(net, search_restart);
net              1118 net/netfilter/nf_conntrack_core.c static unsigned int early_drop_list(struct net *net,
net              1138 net/netfilter/nf_conntrack_core.c 		    !net_eq(nf_ct_net(tmp), net) ||
net              1152 net/netfilter/nf_conntrack_core.c 		if (net_eq(nf_ct_net(tmp), net) &&
net              1163 net/netfilter/nf_conntrack_core.c static noinline int early_drop(struct net *net, unsigned int hash)
net              1178 net/netfilter/nf_conntrack_core.c 		drops = early_drop_list(net, &ct_hash[bucket]);
net              1182 net/netfilter/nf_conntrack_core.c 			NF_CT_STAT_ADD_ATOMIC(net, early_drop, drops);
net              1252 net/netfilter/nf_conntrack_core.c 			struct net *net;
net              1271 net/netfilter/nf_conntrack_core.c 			net = nf_ct_net(tmp);
net              1272 net/netfilter/nf_conntrack_core.c 			if (atomic_read(&net->ct.count) < nf_conntrack_max95)
net              1345 net/netfilter/nf_conntrack_core.c __nf_conntrack_alloc(struct net *net,
net              1354 net/netfilter/nf_conntrack_core.c 	atomic_inc(&net->ct.count);
net              1357 net/netfilter/nf_conntrack_core.c 	    unlikely(atomic_read(&net->ct.count) > nf_conntrack_max)) {
net              1358 net/netfilter/nf_conntrack_core.c 		if (!early_drop(net, hash)) {
net              1361 net/netfilter/nf_conntrack_core.c 			atomic_dec(&net->ct.count);
net              1383 net/netfilter/nf_conntrack_core.c 	write_pnet(&ct->ct_net, net);
net              1396 net/netfilter/nf_conntrack_core.c 	atomic_dec(&net->ct.count);
net              1400 net/netfilter/nf_conntrack_core.c struct nf_conn *nf_conntrack_alloc(struct net *net,
net              1406 net/netfilter/nf_conntrack_core.c 	return __nf_conntrack_alloc(net, zone, orig, repl, gfp, 0);
net              1412 net/netfilter/nf_conntrack_core.c 	struct net *net = nf_ct_net(ct);
net              1423 net/netfilter/nf_conntrack_core.c 	atomic_dec(&net->ct.count);
net              1431 net/netfilter/nf_conntrack_core.c init_conntrack(struct net *net, struct nf_conn *tmpl,
net              1451 net/netfilter/nf_conntrack_core.c 	ct = __nf_conntrack_alloc(net, zone, tuple, &repl_tuple, GFP_ATOMIC,
net              1477 net/netfilter/nf_conntrack_core.c 	if (net->ct.expect_count) {
net              1479 net/netfilter/nf_conntrack_core.c 		exp = nf_ct_find_expectation(net, zone, tuple);
net              1499 net/netfilter/nf_conntrack_core.c 			NF_CT_STAT_INC(net, expect_new);
net              1538 net/netfilter/nf_conntrack_core.c 			     dataoff, state->pf, protonum, state->net,
net              1546 net/netfilter/nf_conntrack_core.c 	hash = hash_conntrack_raw(&tuple, state->net);
net              1547 net/netfilter/nf_conntrack_core.c 	h = __nf_conntrack_find_get(state->net, zone, &tuple, hash);
net              1549 net/netfilter/nf_conntrack_core.c 		h = init_conntrack(state->net, tmpl, &tuple,
net              1604 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, error);
net              1605 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, invalid);
net              1681 net/netfilter/nf_conntrack_core.c 			NF_CT_STAT_INC_ATOMIC(state->net, ignore);
net              1691 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, error);
net              1692 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, invalid);
net              1713 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, drop);
net              1721 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, invalid);
net              1733 net/netfilter/nf_conntrack_core.c 		NF_CT_STAT_INC_ATOMIC(state->net, invalid);
net              1735 net/netfilter/nf_conntrack_core.c 			NF_CT_STAT_INC_ATOMIC(state->net, drop);
net              1882 net/netfilter/nf_conntrack_core.c static int __nf_conntrack_update(struct net *net, struct sk_buff *skb,
net              1901 net/netfilter/nf_conntrack_core.c 			     l4num, net, &tuple))
net              1920 net/netfilter/nf_conntrack_core.c 	h = nf_conntrack_find_get(net, nf_ct_zone(ct), &tuple);
net              2001 net/netfilter/nf_conntrack_core.c static int nf_conntrack_update(struct net *net, struct sk_buff *skb)
net              2012 net/netfilter/nf_conntrack_core.c 		err = __nf_conntrack_update(net, skb, ct, ctinfo);
net              2119 net/netfilter/nf_conntrack_core.c 	struct net *net;
net              2126 net/netfilter/nf_conntrack_core.c 	if (!net_eq(d->net, nf_ct_net(i)))
net              2133 net/netfilter/nf_conntrack_core.c __nf_ct_unconfirmed_destroy(struct net *net)
net              2142 net/netfilter/nf_conntrack_core.c 		pcpu = per_cpu_ptr(net->ct.pcpu_lists, cpu);
net              2160 net/netfilter/nf_conntrack_core.c void nf_ct_unconfirmed_destroy(struct net *net)
net              2164 net/netfilter/nf_conntrack_core.c 	if (atomic_read(&net->ct.count) > 0) {
net              2165 net/netfilter/nf_conntrack_core.c 		__nf_ct_unconfirmed_destroy(net);
net              2166 net/netfilter/nf_conntrack_core.c 		nf_queue_nf_hook_drop(net);
net              2172 net/netfilter/nf_conntrack_core.c void nf_ct_iterate_cleanup_net(struct net *net,
net              2180 net/netfilter/nf_conntrack_core.c 	if (atomic_read(&net->ct.count) == 0)
net              2185 net/netfilter/nf_conntrack_core.c 	d.net = net;
net              2205 net/netfilter/nf_conntrack_core.c 	struct net *net;
net              2208 net/netfilter/nf_conntrack_core.c 	for_each_net(net) {
net              2209 net/netfilter/nf_conntrack_core.c 		if (atomic_read(&net->ct.count) == 0)
net              2211 net/netfilter/nf_conntrack_core.c 		__nf_ct_unconfirmed_destroy(net);
net              2212 net/netfilter/nf_conntrack_core.c 		nf_queue_nf_hook_drop(net);
net              2267 net/netfilter/nf_conntrack_core.c void nf_conntrack_cleanup_net(struct net *net)
net              2271 net/netfilter/nf_conntrack_core.c 	list_add(&net->exit_list, &single);
net              2278 net/netfilter/nf_conntrack_core.c 	struct net *net;
net              2288 net/netfilter/nf_conntrack_core.c 	list_for_each_entry(net, net_exit_list, exit_list) {
net              2289 net/netfilter/nf_conntrack_core.c 		nf_ct_iterate_cleanup(kill_all, net, 0, 0);
net              2290 net/netfilter/nf_conntrack_core.c 		if (atomic_read(&net->ct.count) != 0)
net              2298 net/netfilter/nf_conntrack_core.c 	list_for_each_entry(net, net_exit_list, exit_list) {
net              2299 net/netfilter/nf_conntrack_core.c 		nf_conntrack_proto_pernet_fini(net);
net              2300 net/netfilter/nf_conntrack_core.c 		nf_conntrack_ecache_pernet_fini(net);
net              2301 net/netfilter/nf_conntrack_core.c 		nf_conntrack_expect_pernet_fini(net);
net              2302 net/netfilter/nf_conntrack_core.c 		free_percpu(net->ct.stat);
net              2303 net/netfilter/nf_conntrack_core.c 		free_percpu(net->ct.pcpu_lists);
net              2571 net/netfilter/nf_conntrack_core.c int nf_conntrack_init_net(struct net *net)
net              2578 net/netfilter/nf_conntrack_core.c 	atomic_set(&net->ct.count, 0);
net              2580 net/netfilter/nf_conntrack_core.c 	net->ct.pcpu_lists = alloc_percpu(struct ct_pcpu);
net              2581 net/netfilter/nf_conntrack_core.c 	if (!net->ct.pcpu_lists)
net              2585 net/netfilter/nf_conntrack_core.c 		struct ct_pcpu *pcpu = per_cpu_ptr(net->ct.pcpu_lists, cpu);
net              2592 net/netfilter/nf_conntrack_core.c 	net->ct.stat = alloc_percpu(struct ip_conntrack_stat);
net              2593 net/netfilter/nf_conntrack_core.c 	if (!net->ct.stat)
net              2596 net/netfilter/nf_conntrack_core.c 	ret = nf_conntrack_expect_pernet_init(net);
net              2600 net/netfilter/nf_conntrack_core.c 	nf_conntrack_acct_pernet_init(net);
net              2601 net/netfilter/nf_conntrack_core.c 	nf_conntrack_tstamp_pernet_init(net);
net              2602 net/netfilter/nf_conntrack_core.c 	nf_conntrack_ecache_pernet_init(net);
net              2603 net/netfilter/nf_conntrack_core.c 	nf_conntrack_helper_pernet_init(net);
net              2604 net/netfilter/nf_conntrack_core.c 	nf_conntrack_proto_pernet_init(net);
net              2609 net/netfilter/nf_conntrack_core.c 	free_percpu(net->ct.stat);
net              2611 net/netfilter/nf_conntrack_core.c 	free_percpu(net->ct.pcpu_lists);
net               124 net/netfilter/nf_conntrack_ecache.c 	struct net *net = nf_ct_net(ct);
net               129 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference(net->ct.nf_conntrack_event_cb);
net               180 net/netfilter/nf_conntrack_ecache.c 	struct net *net = nf_ct_net(ct);
net               188 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference(net->ct.nf_conntrack_event_cb);
net               235 net/netfilter/nf_conntrack_ecache.c 	struct net *net = nf_ct_exp_net(exp);
net               240 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference(net->ct.nf_expect_event_cb);
net               260 net/netfilter/nf_conntrack_ecache.c int nf_conntrack_register_notifier(struct net *net,
net               267 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference_protected(net->ct.nf_conntrack_event_cb,
net               273 net/netfilter/nf_conntrack_ecache.c 	rcu_assign_pointer(net->ct.nf_conntrack_event_cb, new);
net               282 net/netfilter/nf_conntrack_ecache.c void nf_conntrack_unregister_notifier(struct net *net,
net               288 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference_protected(net->ct.nf_conntrack_event_cb,
net               291 net/netfilter/nf_conntrack_ecache.c 	RCU_INIT_POINTER(net->ct.nf_conntrack_event_cb, NULL);
net               297 net/netfilter/nf_conntrack_ecache.c int nf_ct_expect_register_notifier(struct net *net,
net               304 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference_protected(net->ct.nf_expect_event_cb,
net               310 net/netfilter/nf_conntrack_ecache.c 	rcu_assign_pointer(net->ct.nf_expect_event_cb, new);
net               319 net/netfilter/nf_conntrack_ecache.c void nf_ct_expect_unregister_notifier(struct net *net,
net               325 net/netfilter/nf_conntrack_ecache.c 	notify = rcu_dereference_protected(net->ct.nf_expect_event_cb,
net               328 net/netfilter/nf_conntrack_ecache.c 	RCU_INIT_POINTER(net->ct.nf_expect_event_cb, NULL);
net               343 net/netfilter/nf_conntrack_ecache.c void nf_conntrack_ecache_pernet_init(struct net *net)
net               345 net/netfilter/nf_conntrack_ecache.c 	net->ct.sysctl_events = nf_ct_events;
net               346 net/netfilter/nf_conntrack_ecache.c 	INIT_DELAYED_WORK(&net->ct.ecache_dwork, ecache_work);
net               349 net/netfilter/nf_conntrack_ecache.c void nf_conntrack_ecache_pernet_fini(struct net *net)
net               351 net/netfilter/nf_conntrack_ecache.c 	cancel_delayed_work_sync(&net->ct.ecache_dwork);
net                51 net/netfilter/nf_conntrack_expect.c 	struct net *net = nf_ct_exp_net(exp);
net                57 net/netfilter/nf_conntrack_expect.c 	net->ct.expect_count--;
net                65 net/netfilter/nf_conntrack_expect.c 	NF_CT_STAT_INC(net, expect_delete);
net                79 net/netfilter/nf_conntrack_expect.c static unsigned int nf_ct_expect_dst_hash(const struct net *n, const struct nf_conntrack_tuple *tuple)
net                98 net/netfilter/nf_conntrack_expect.c 		const struct net *net)
net               101 net/netfilter/nf_conntrack_expect.c 	       net_eq(net, nf_ct_net(i->master)) &&
net               117 net/netfilter/nf_conntrack_expect.c __nf_ct_expect_find(struct net *net,
net               124 net/netfilter/nf_conntrack_expect.c 	if (!net->ct.expect_count)
net               127 net/netfilter/nf_conntrack_expect.c 	h = nf_ct_expect_dst_hash(net, tuple);
net               129 net/netfilter/nf_conntrack_expect.c 		if (nf_ct_exp_equal(tuple, i, zone, net))
net               138 net/netfilter/nf_conntrack_expect.c nf_ct_expect_find_get(struct net *net,
net               145 net/netfilter/nf_conntrack_expect.c 	i = __nf_ct_expect_find(net, zone, tuple);
net               157 net/netfilter/nf_conntrack_expect.c nf_ct_find_expectation(struct net *net,
net               164 net/netfilter/nf_conntrack_expect.c 	if (!net->ct.expect_count)
net               167 net/netfilter/nf_conntrack_expect.c 	h = nf_ct_expect_dst_hash(net, tuple);
net               170 net/netfilter/nf_conntrack_expect.c 		    nf_ct_exp_equal(tuple, i, zone, net)) {
net               373 net/netfilter/nf_conntrack_expect.c 	struct net *net = nf_ct_exp_net(exp);
net               374 net/netfilter/nf_conntrack_expect.c 	unsigned int h = nf_ct_expect_dst_hash(net, &exp->tuple);
net               392 net/netfilter/nf_conntrack_expect.c 	net->ct.expect_count++;
net               394 net/netfilter/nf_conntrack_expect.c 	NF_CT_STAT_INC(net, expect_create);
net               421 net/netfilter/nf_conntrack_expect.c 	struct net *net = nf_ct_exp_net(expect);
net               430 net/netfilter/nf_conntrack_expect.c 	h = nf_ct_expect_dst_hash(net, &expect->tuple);
net               461 net/netfilter/nf_conntrack_expect.c 	if (net->ct.expect_count >= nf_ct_expect_max) {
net               514 net/netfilter/nf_conntrack_expect.c void nf_ct_expect_iterate_net(struct net *net,
net               530 net/netfilter/nf_conntrack_expect.c 			if (!net_eq(nf_ct_exp_net(exp), net))
net               658 net/netfilter/nf_conntrack_expect.c static int exp_proc_init(struct net *net)
net               665 net/netfilter/nf_conntrack_expect.c 	proc = proc_create_net("nf_conntrack_expect", 0440, net->proc_net,
net               670 net/netfilter/nf_conntrack_expect.c 	root_uid = make_kuid(net->user_ns, 0);
net               671 net/netfilter/nf_conntrack_expect.c 	root_gid = make_kgid(net->user_ns, 0);
net               678 net/netfilter/nf_conntrack_expect.c static void exp_proc_remove(struct net *net)
net               681 net/netfilter/nf_conntrack_expect.c 	remove_proc_entry("nf_conntrack_expect", net->proc_net);
net               687 net/netfilter/nf_conntrack_expect.c int nf_conntrack_expect_pernet_init(struct net *net)
net               689 net/netfilter/nf_conntrack_expect.c 	net->ct.expect_count = 0;
net               690 net/netfilter/nf_conntrack_expect.c 	return exp_proc_init(net);
net               693 net/netfilter/nf_conntrack_expect.c void nf_conntrack_expect_pernet_fini(struct net *net)
net               695 net/netfilter/nf_conntrack_expect.c 	exp_proc_remove(net);
net               719 net/netfilter/nf_conntrack_h323_main.c static int callforward_do_filter(struct net *net,
net               736 net/netfilter/nf_conntrack_h323_main.c 		if (!nf_ip_route(net, (struct dst_entry **)&rt1,
net               738 net/netfilter/nf_conntrack_h323_main.c 			if (!nf_ip_route(net, (struct dst_entry **)&rt2,
net               760 net/netfilter/nf_conntrack_h323_main.c 		if (!nf_ip6_route(net, (struct dst_entry **)&rt1,
net               762 net/netfilter/nf_conntrack_h323_main.c 			if (!nf_ip6_route(net, (struct dst_entry **)&rt2,
net               792 net/netfilter/nf_conntrack_h323_main.c 	struct net *net = nf_ct_net(ct);
net               803 net/netfilter/nf_conntrack_h323_main.c 	    callforward_do_filter(net, &addr, &ct->tuplehash[!dir].tuple.src.u3,
net              1229 net/netfilter/nf_conntrack_h323_main.c 	struct net *net = nf_ct_net(ct);
net              1239 net/netfilter/nf_conntrack_h323_main.c 	exp = __nf_ct_expect_find(net, nf_ct_zone(ct), &tuple);
net               213 net/netfilter/nf_conntrack_helper.c nf_ct_lookup_helper(struct nf_conn *ct, struct net *net)
net               215 net/netfilter/nf_conntrack_helper.c 	if (!net->ct.sysctl_auto_assign_helper) {
net               216 net/netfilter/nf_conntrack_helper.c 		if (net->ct.auto_assign_helper_warned)
net               224 net/netfilter/nf_conntrack_helper.c 		net->ct.auto_assign_helper_warned = 1;
net               237 net/netfilter/nf_conntrack_helper.c 	struct net *net = nf_ct_net(ct);
net               259 net/netfilter/nf_conntrack_helper.c 		helper = nf_ct_lookup_helper(ct, net);
net               558 net/netfilter/nf_conntrack_helper.c void nf_conntrack_helper_pernet_init(struct net *net)
net               560 net/netfilter/nf_conntrack_helper.c 	net->ct.auto_assign_helper_warned = false;
net               561 net/netfilter/nf_conntrack_helper.c 	net->ct.sysctl_auto_assign_helper = nf_ct_auto_assign_helper;
net                61 net/netfilter/nf_conntrack_labels.c int nf_connlabels_get(struct net *net, unsigned int bits)
net                67 net/netfilter/nf_conntrack_labels.c 	net->ct.labels_used++;
net                74 net/netfilter/nf_conntrack_labels.c void nf_connlabels_put(struct net *net)
net                77 net/netfilter/nf_conntrack_labels.c 	net->ct.labels_used--;
net               683 net/netfilter/nf_conntrack_netlink.c 	struct net *net;
net               706 net/netfilter/nf_conntrack_netlink.c 	net = nf_ct_net(ct);
net               707 net/netfilter/nf_conntrack_netlink.c 	if (!item->report && !nfnetlink_has_listeners(net, group))
net               800 net/netfilter/nf_conntrack_netlink.c 	err = nfnetlink_send(skb, net, item->portid, group, item->report,
net               812 net/netfilter/nf_conntrack_netlink.c 	if (nfnetlink_set_err(net, 0, group, -ENOBUFS) > 0)
net               906 net/netfilter/nf_conntrack_netlink.c 	struct net *net = sock_net(skb->sk);
net               945 net/netfilter/nf_conntrack_netlink.c 			if (!net_eq(net, nf_ct_net(ct)))
net              1233 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_flush_conntrack(struct net *net,
net              1245 net/netfilter/nf_conntrack_netlink.c 	nf_ct_iterate_cleanup_net(net, ctnetlink_flush_iterate, filter,
net              1252 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_del_conntrack(struct net *net, struct sock *ctnl,
net              1278 net/netfilter/nf_conntrack_netlink.c 		return ctnetlink_flush_conntrack(net, cda,
net              1286 net/netfilter/nf_conntrack_netlink.c 	h = nf_conntrack_find_get(net, &zone, &tuple);
net              1312 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_get_conntrack(struct net *net, struct sock *ctnl,
net              1354 net/netfilter/nf_conntrack_netlink.c 	h = nf_conntrack_find_get(net, &zone, &tuple);
net              1406 net/netfilter/nf_conntrack_netlink.c 	struct net *net = sock_net(skb->sk);
net              1419 net/netfilter/nf_conntrack_netlink.c 		pcpu = per_cpu_ptr(net->ct.pcpu_lists, cpu);
net              1467 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_get_ct_dying(struct net *net, struct sock *ctnl,
net              1490 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_get_ct_unconfirmed(struct net *net, struct sock *ctnl,
net              1936 net/netfilter/nf_conntrack_netlink.c ctnetlink_create_conntrack(struct net *net,
net              1949 net/netfilter/nf_conntrack_netlink.c 	ct = nf_conntrack_alloc(net, zone, otuple, rtuple, GFP_ATOMIC);
net              2069 net/netfilter/nf_conntrack_netlink.c 		master_h = nf_conntrack_find_get(net, zone, &master);
net              2097 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_new_conntrack(struct net *net, struct sock *ctnl,
net              2130 net/netfilter/nf_conntrack_netlink.c 		h = nf_conntrack_find_get(net, &zone, &otuple);
net              2132 net/netfilter/nf_conntrack_netlink.c 		h = nf_conntrack_find_get(net, &zone, &rtuple);
net              2144 net/netfilter/nf_conntrack_netlink.c 			ct = ctnetlink_create_conntrack(net, &zone, cda, &otuple,
net              2243 net/netfilter/nf_conntrack_netlink.c 	struct net *net = sock_net(skb->sk);
net              2254 net/netfilter/nf_conntrack_netlink.c 		st = per_cpu_ptr(net->ct.stat, cpu);
net              2266 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_stat_ct_cpu(struct net *net, struct sock *ctnl,
net              2284 net/netfilter/nf_conntrack_netlink.c 			    struct net *net)
net              2289 net/netfilter/nf_conntrack_netlink.c 	unsigned int nr_conntracks = atomic_read(&net->ct.count);
net              2316 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_stat_ct(struct net *net, struct sock *ctnl,
net              2833 net/netfilter/nf_conntrack_netlink.c 	struct net *net = nf_ct_exp_net(exp);
net              2850 net/netfilter/nf_conntrack_netlink.c 	if (!item->report && !nfnetlink_has_listeners(net, group))
net              2871 net/netfilter/nf_conntrack_netlink.c 	nfnetlink_send(skb, net, item->portid, group, item->report, GFP_ATOMIC);
net              2879 net/netfilter/nf_conntrack_netlink.c 	nfnetlink_set_err(net, 0, 0, -ENOBUFS);
net              2893 net/netfilter/nf_conntrack_netlink.c 	struct net *net = sock_net(skb->sk);
net              2907 net/netfilter/nf_conntrack_netlink.c 			if (!net_eq(nf_ct_net(exp->master), net))
net              2985 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_dump_exp_ct(struct net *net, struct sock *ctnl,
net              3012 net/netfilter/nf_conntrack_netlink.c 	h = nf_conntrack_find_get(net, &zone, &tuple);
net              3031 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_get_expect(struct net *net, struct sock *ctnl,
net              3046 net/netfilter/nf_conntrack_netlink.c 			return ctnetlink_dump_exp_ct(net, ctnl, skb, nlh, cda,
net              3073 net/netfilter/nf_conntrack_netlink.c 	exp = nf_ct_expect_find_get(net, &zone, &tuple);
net              3129 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_del_expect(struct net *net, struct sock *ctnl,
net              3153 net/netfilter/nf_conntrack_netlink.c 		exp = nf_ct_expect_find_get(net, &zone, &tuple);
net              3179 net/netfilter/nf_conntrack_netlink.c 		nf_ct_expect_iterate_net(net, expect_iter_name, name,
net              3184 net/netfilter/nf_conntrack_netlink.c 		nf_ct_expect_iterate_net(net, expect_iter_all, NULL,
net              3308 net/netfilter/nf_conntrack_netlink.c ctnetlink_create_expect(struct net *net,
net              3335 net/netfilter/nf_conntrack_netlink.c 	h = nf_conntrack_find_get(net, zone, &master_tuple);
net              3382 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_new_expect(struct net *net, struct sock *ctnl,
net              3409 net/netfilter/nf_conntrack_netlink.c 	exp = __nf_ct_expect_find(net, &zone, &tuple);
net              3414 net/netfilter/nf_conntrack_netlink.c 			err = ctnetlink_create_expect(net, &zone, cda, u3,
net              3466 net/netfilter/nf_conntrack_netlink.c 	struct net *net = sock_net(skb->sk);
net              3477 net/netfilter/nf_conntrack_netlink.c 		st = per_cpu_ptr(net->ct.stat, cpu);
net              3488 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_stat_exp_cpu(struct net *net, struct sock *ctnl,
net              3564 net/netfilter/nf_conntrack_netlink.c static int __net_init ctnetlink_net_init(struct net *net)
net              3569 net/netfilter/nf_conntrack_netlink.c 	ret = nf_conntrack_register_notifier(net, &ctnl_notifier);
net              3575 net/netfilter/nf_conntrack_netlink.c 	ret = nf_ct_expect_register_notifier(net, &ctnl_notifier_exp);
net              3585 net/netfilter/nf_conntrack_netlink.c 	nf_conntrack_unregister_notifier(net, &ctnl_notifier);
net              3591 net/netfilter/nf_conntrack_netlink.c static void ctnetlink_net_exit(struct net *net)
net              3594 net/netfilter/nf_conntrack_netlink.c 	nf_ct_expect_unregister_notifier(net, &ctnl_notifier_exp);
net              3595 net/netfilter/nf_conntrack_netlink.c 	nf_conntrack_unregister_notifier(net, &ctnl_notifier);
net              3601 net/netfilter/nf_conntrack_netlink.c 	struct net *net;
net              3603 net/netfilter/nf_conntrack_netlink.c 	list_for_each_entry(net, net_exit_list, exit_list)
net              3604 net/netfilter/nf_conntrack_netlink.c 		ctnetlink_net_exit(net);
net               114 net/netfilter/nf_conntrack_pptp.c 	struct net *net = nf_ct_net(ct);
net               137 net/netfilter/nf_conntrack_pptp.c 		exp_other = nf_ct_expect_find_get(net, nf_ct_zone(ct), &inv_t);
net               149 net/netfilter/nf_conntrack_pptp.c static int destroy_sibling_or_exp(struct net *net, struct nf_conn *ct,
net               161 net/netfilter/nf_conntrack_pptp.c 	h = nf_conntrack_find_get(net, zone, t);
net               171 net/netfilter/nf_conntrack_pptp.c 		exp = nf_ct_expect_find_get(net, zone, t);
net               185 net/netfilter/nf_conntrack_pptp.c 	struct net *net = nf_ct_net(ct);
net               196 net/netfilter/nf_conntrack_pptp.c 	if (!destroy_sibling_or_exp(net, ct, &t))
net               204 net/netfilter/nf_conntrack_pptp.c 	if (!destroy_sibling_or_exp(net, ct, &t))
net                52 net/netfilter/nf_conntrack_proto.c 			    struct net *net,
net                59 net/netfilter/nf_conntrack_proto.c 	if (net->ct.sysctl_log_invalid != protonum &&
net                60 net/netfilter/nf_conntrack_proto.c 	    net->ct.sysctl_log_invalid != IPPROTO_RAW)
net                67 net/netfilter/nf_conntrack_proto.c 	nf_log_packet(net, pf, 0, skb, NULL, NULL, NULL,
net                79 net/netfilter/nf_conntrack_proto.c 	struct net *net;
net                82 net/netfilter/nf_conntrack_proto.c 	net = nf_ct_net(ct);
net                83 net/netfilter/nf_conntrack_proto.c 	if (likely(net->ct.sysctl_log_invalid == 0))
net                90 net/netfilter/nf_conntrack_proto.c 	nf_l4proto_log_invalid(skb, net, nf_ct_l3num(ct),
net               447 net/netfilter/nf_conntrack_proto.c static int nf_ct_netns_do_get(struct net *net, u8 nfproto)
net               449 net/netfilter/nf_conntrack_proto.c 	struct nf_conntrack_net *cnet = net_generic(net, nf_conntrack_net_id);
net               460 net/netfilter/nf_conntrack_proto.c 		err = nf_defrag_ipv4_enable(net);
net               466 net/netfilter/nf_conntrack_proto.c 		err = nf_register_net_hooks(net, ipv4_conntrack_ops,
net               478 net/netfilter/nf_conntrack_proto.c 		err = nf_defrag_ipv6_enable(net);
net               484 net/netfilter/nf_conntrack_proto.c 		err = nf_register_net_hooks(net, ipv6_conntrack_ops,
net               511 net/netfilter/nf_conntrack_proto.c 		err = nf_register_net_hooks(net, nf_ct_bridge_info->ops,
net               526 net/netfilter/nf_conntrack_proto.c 		nf_ct_iterate_cleanup_net(net, nf_ct_tcp_fixup,
net               532 net/netfilter/nf_conntrack_proto.c static void nf_ct_netns_do_put(struct net *net, u8 nfproto)
net               534 net/netfilter/nf_conntrack_proto.c 	struct nf_conntrack_net *cnet = net_generic(net, nf_conntrack_net_id);
net               540 net/netfilter/nf_conntrack_proto.c 			nf_unregister_net_hooks(net, ipv4_conntrack_ops,
net               546 net/netfilter/nf_conntrack_proto.c 			nf_unregister_net_hooks(net, ipv6_conntrack_ops,
net               554 net/netfilter/nf_conntrack_proto.c 			nf_unregister_net_hooks(net, nf_ct_bridge_info->ops,
net               563 net/netfilter/nf_conntrack_proto.c static int nf_ct_netns_inet_get(struct net *net)
net               567 net/netfilter/nf_conntrack_proto.c 	err = nf_ct_netns_do_get(net, NFPROTO_IPV4);
net               570 net/netfilter/nf_conntrack_proto.c 	err = nf_ct_netns_do_get(net, NFPROTO_IPV6);
net               576 net/netfilter/nf_conntrack_proto.c 	nf_ct_netns_put(net, NFPROTO_IPV4);
net               581 net/netfilter/nf_conntrack_proto.c int nf_ct_netns_get(struct net *net, u8 nfproto)
net               587 net/netfilter/nf_conntrack_proto.c 		err = nf_ct_netns_inet_get(net);
net               590 net/netfilter/nf_conntrack_proto.c 		err = nf_ct_netns_do_get(net, NFPROTO_BRIDGE);
net               594 net/netfilter/nf_conntrack_proto.c 		err = nf_ct_netns_inet_get(net);
net               596 net/netfilter/nf_conntrack_proto.c 			nf_ct_netns_put(net, NFPROTO_BRIDGE);
net               601 net/netfilter/nf_conntrack_proto.c 		err = nf_ct_netns_do_get(net, nfproto);
net               608 net/netfilter/nf_conntrack_proto.c void nf_ct_netns_put(struct net *net, uint8_t nfproto)
net               612 net/netfilter/nf_conntrack_proto.c 		nf_ct_netns_do_put(net, NFPROTO_BRIDGE);
net               615 net/netfilter/nf_conntrack_proto.c 		nf_ct_netns_do_put(net, NFPROTO_IPV4);
net               616 net/netfilter/nf_conntrack_proto.c 		nf_ct_netns_do_put(net, NFPROTO_IPV6);
net               619 net/netfilter/nf_conntrack_proto.c 		nf_ct_netns_do_put(net, nfproto);
net               674 net/netfilter/nf_conntrack_proto.c void nf_conntrack_proto_pernet_init(struct net *net)
net               676 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_generic_init_net(net);
net               677 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_udp_init_net(net);
net               678 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_tcp_init_net(net);
net               679 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_icmp_init_net(net);
net               681 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_icmpv6_init_net(net);
net               684 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_dccp_init_net(net);
net               687 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_sctp_init_net(net);
net               690 net/netfilter/nf_conntrack_proto.c 	nf_conntrack_gre_init_net(net);
net               694 net/netfilter/nf_conntrack_proto.c void nf_conntrack_proto_pernet_fini(struct net *net)
net               697 net/netfilter/nf_conntrack_proto.c 	nf_ct_gre_keymap_flush(net);
net               387 net/netfilter/nf_conntrack_proto_dccp.c 	struct net *net = nf_ct_net(ct);
net               395 net/netfilter/nf_conntrack_proto_dccp.c 		dn = nf_dccp_pernet(net);
net               453 net/netfilter/nf_conntrack_proto_dccp.c 	    state->net->ct.sysctl_checksum &&
net               466 net/netfilter/nf_conntrack_proto_dccp.c 	nf_l4proto_log_invalid(skb, state->net, state->pf,
net               674 net/netfilter/nf_conntrack_proto_dccp.c 				      struct net *net, void *data)
net               676 net/netfilter/nf_conntrack_proto_dccp.c 	struct nf_dccp_net *dn = nf_dccp_pernet(net);
net               726 net/netfilter/nf_conntrack_proto_dccp.c void nf_conntrack_dccp_init_net(struct net *net)
net               728 net/netfilter/nf_conntrack_proto_dccp.c 	struct nf_dccp_net *dn = nf_dccp_pernet(net);
net                21 net/netfilter/nf_conntrack_proto_generic.c 					 struct net *net, void *data)
net                23 net/netfilter/nf_conntrack_proto_generic.c 	struct nf_generic_net *gn = nf_generic_pernet(net);
net                60 net/netfilter/nf_conntrack_proto_generic.c void nf_conntrack_generic_init_net(struct net *net)
net                62 net/netfilter/nf_conntrack_proto_generic.c 	struct nf_generic_net *gn = nf_generic_pernet(net);
net                53 net/netfilter/nf_conntrack_proto_gre.c static inline struct nf_gre_net *gre_pernet(struct net *net)
net                55 net/netfilter/nf_conntrack_proto_gre.c 	return &net->ct.nf_ct_proto.gre;
net                58 net/netfilter/nf_conntrack_proto_gre.c void nf_ct_gre_keymap_flush(struct net *net)
net                60 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_gre_net *net_gre = gre_pernet(net);
net                82 net/netfilter/nf_conntrack_proto_gre.c static __be16 gre_keymap_lookup(struct net *net, struct nf_conntrack_tuple *t)
net                84 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_gre_net *net_gre = gre_pernet(net);
net               105 net/netfilter/nf_conntrack_proto_gre.c 	struct net *net = nf_ct_net(ct);
net               106 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_gre_net *net_gre = gre_pernet(net);
net               165 net/netfilter/nf_conntrack_proto_gre.c 		      struct net *net, struct nf_conntrack_tuple *tuple)
net               193 net/netfilter/nf_conntrack_proto_gre.c 	srckey = gre_keymap_lookup(net, tuple);
net               209 net/netfilter/nf_conntrack_proto_gre.c static unsigned int *gre_get_timeouts(struct net *net)
net               211 net/netfilter/nf_conntrack_proto_gre.c 	return gre_pernet(net)->timeouts;
net               257 net/netfilter/nf_conntrack_proto_gre.c 				     struct net *net, void *data)
net               260 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_gre_net *net_gre = gre_pernet(net);
net               263 net/netfilter/nf_conntrack_proto_gre.c 		timeouts = gre_get_timeouts(net);
net               302 net/netfilter/nf_conntrack_proto_gre.c void nf_conntrack_gre_init_net(struct net *net)
net               304 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_gre_net *net_gre = gre_pernet(net);
net                26 net/netfilter/nf_conntrack_proto_icmp.c 		       struct net *net, struct nf_conntrack_tuple *tuple)
net               123 net/netfilter/nf_conntrack_proto_icmp.c 			       state->pf, state->net, &origtuple))
net               131 net/netfilter/nf_conntrack_proto_icmp.c 	h = nf_conntrack_find_get(state->net, zone, &innertuple);
net               171 net/netfilter/nf_conntrack_proto_icmp.c 			nf_l4proto_log_invalid(skb, state->net, state->pf,
net               176 net/netfilter/nf_conntrack_proto_icmp.c 			nf_l4proto_log_invalid(skb, state->net, state->pf,
net               198 net/netfilter/nf_conntrack_proto_icmp.c 	nf_l4proto_log_invalid(skb, state->net, state->pf,
net               219 net/netfilter/nf_conntrack_proto_icmp.c 	if (state->net->ct.sysctl_checksum &&
net               313 net/netfilter/nf_conntrack_proto_icmp.c 				      struct net *net, void *data)
net               316 net/netfilter/nf_conntrack_proto_icmp.c 	struct nf_icmp_net *in = nf_icmp_pernet(net);
net               349 net/netfilter/nf_conntrack_proto_icmp.c void nf_conntrack_icmp_init_net(struct net *net)
net               351 net/netfilter/nf_conntrack_proto_icmp.c 	struct nf_icmp_net *in = nf_icmp_pernet(net);
net                31 net/netfilter/nf_conntrack_proto_icmpv6.c 			 struct net *net,
net                79 net/netfilter/nf_conntrack_proto_icmpv6.c static unsigned int *icmpv6_get_timeouts(struct net *net)
net                81 net/netfilter/nf_conntrack_proto_icmpv6.c 	return &nf_icmpv6_pernet(net)->timeout;
net               127 net/netfilter/nf_conntrack_proto_icmpv6.c 	nf_l4proto_log_invalid(skb, state->net, state->pf,
net               148 net/netfilter/nf_conntrack_proto_icmpv6.c 	    state->net->ct.sysctl_checksum &&
net               232 net/netfilter/nf_conntrack_proto_icmpv6.c 					struct net *net, void *data)
net               235 net/netfilter/nf_conntrack_proto_icmpv6.c 	struct nf_icmp_net *in = nf_icmpv6_pernet(net);
net               238 net/netfilter/nf_conntrack_proto_icmpv6.c 		timeout = icmpv6_get_timeouts(net);
net               268 net/netfilter/nf_conntrack_proto_icmpv6.c void nf_conntrack_icmpv6_init_net(struct net *net)
net               270 net/netfilter/nf_conntrack_proto_icmpv6.c 	struct nf_icmp_net *in = nf_icmpv6_pernet(net);
net               337 net/netfilter/nf_conntrack_proto_sctp.c 	    state->net->ct.sysctl_checksum &&
net               352 net/netfilter/nf_conntrack_proto_sctp.c 	nf_l4proto_log_invalid(skb, state->net, state->pf, IPPROTO_SCTP, "%s", logmsg);
net               591 net/netfilter/nf_conntrack_proto_sctp.c 				      struct net *net, void *data)
net               594 net/netfilter/nf_conntrack_proto_sctp.c 	struct nf_sctp_net *sn = nf_sctp_pernet(net);
net               645 net/netfilter/nf_conntrack_proto_sctp.c void nf_conntrack_sctp_init_net(struct net *net)
net               647 net/netfilter/nf_conntrack_proto_sctp.c 	struct nf_sctp_net *sn = nf_sctp_pernet(net);
net               469 net/netfilter/nf_conntrack_proto_tcp.c 	struct net *net = nf_ct_net(ct);
net               470 net/netfilter/nf_conntrack_proto_tcp.c 	struct nf_tcp_net *tn = nf_tcp_pernet(net);
net               718 net/netfilter/nf_conntrack_proto_tcp.c 	nf_l4proto_log_invalid(skb, state->net, state->pf, IPPROTO_TCP, "%s", msg);
net               741 net/netfilter/nf_conntrack_proto_tcp.c 	if (state->net->ct.sysctl_checksum &&
net               763 net/netfilter/nf_conntrack_proto_tcp.c 	struct net *net = nf_ct_net(ct);
net               764 net/netfilter/nf_conntrack_proto_tcp.c 	const struct nf_tcp_net *tn = nf_tcp_pernet(net);
net               843 net/netfilter/nf_conntrack_proto_tcp.c 	struct net *net = nf_ct_net(ct);
net               844 net/netfilter/nf_conntrack_proto_tcp.c 	struct nf_tcp_net *tn = nf_tcp_pernet(net);
net              1308 net/netfilter/nf_conntrack_proto_tcp.c 				     struct net *net, void *data)
net              1310 net/netfilter/nf_conntrack_proto_tcp.c 	struct nf_tcp_net *tn = nf_tcp_pernet(net);
net              1419 net/netfilter/nf_conntrack_proto_tcp.c void nf_conntrack_tcp_init_net(struct net *net)
net              1421 net/netfilter/nf_conntrack_proto_tcp.c 	struct nf_tcp_net *tn = nf_tcp_pernet(net);
net                32 net/netfilter/nf_conntrack_proto_udp.c static unsigned int *udp_get_timeouts(struct net *net)
net                34 net/netfilter/nf_conntrack_proto_udp.c 	return nf_udp_pernet(net)->timeouts;
net                41 net/netfilter/nf_conntrack_proto_udp.c 	nf_l4proto_log_invalid(skb, state->net, state->pf,
net                75 net/netfilter/nf_conntrack_proto_udp.c 	    state->net->ct.sysctl_checksum &&
net               130 net/netfilter/nf_conntrack_proto_udp.c 	nf_l4proto_log_invalid(skb, state->net, state->pf,
net               166 net/netfilter/nf_conntrack_proto_udp.c 	    state->net->ct.sysctl_checksum &&
net               214 net/netfilter/nf_conntrack_proto_udp.c 				     struct net *net, void *data)
net               217 net/netfilter/nf_conntrack_proto_udp.c 	struct nf_udp_net *un = nf_udp_pernet(net);
net               260 net/netfilter/nf_conntrack_proto_udp.c void nf_conntrack_udp_init_net(struct net *net)
net               262 net/netfilter/nf_conntrack_proto_udp.c 	struct nf_udp_net *un = nf_udp_pernet(net);
net               856 net/netfilter/nf_conntrack_sip.c 	struct net *net = nf_ct_net(ct);
net               872 net/netfilter/nf_conntrack_sip.c 		struct net *net = dev_net(dev);
net               881 net/netfilter/nf_conntrack_sip.c 				nf_ip_route(net, &dst, &fl, false);
net               886 net/netfilter/nf_conntrack_sip.c 				nf_ip6_route(net, &dst, &fl, false);
net               924 net/netfilter/nf_conntrack_sip.c 		exp = __nf_ct_expect_find(net, nf_ct_zone(ct), &tuple);
net               298 net/netfilter/nf_conntrack_standalone.c 	struct net *net = seq_file_net(s);
net               314 net/netfilter/nf_conntrack_standalone.c 	if (!net_eq(nf_ct_net(ct), net))
net               387 net/netfilter/nf_conntrack_standalone.c 	struct net *net = seq_file_net(seq);
net               397 net/netfilter/nf_conntrack_standalone.c 		return per_cpu_ptr(net->ct.stat, cpu);
net               405 net/netfilter/nf_conntrack_standalone.c 	struct net *net = seq_file_net(seq);
net               412 net/netfilter/nf_conntrack_standalone.c 		return per_cpu_ptr(net->ct.stat, cpu);
net               424 net/netfilter/nf_conntrack_standalone.c 	struct net *net = seq_file_net(seq);
net               425 net/netfilter/nf_conntrack_standalone.c 	unsigned int nr_conntracks = atomic_read(&net->ct.count);
net               464 net/netfilter/nf_conntrack_standalone.c static int nf_conntrack_standalone_init_proc(struct net *net)
net               470 net/netfilter/nf_conntrack_standalone.c 	pde = proc_create_net("nf_conntrack", 0440, net->proc_net, &ct_seq_ops,
net               475 net/netfilter/nf_conntrack_standalone.c 	root_uid = make_kuid(net->user_ns, 0);
net               476 net/netfilter/nf_conntrack_standalone.c 	root_gid = make_kgid(net->user_ns, 0);
net               480 net/netfilter/nf_conntrack_standalone.c 	pde = proc_create_net("nf_conntrack", 0444, net->proc_net_stat,
net               487 net/netfilter/nf_conntrack_standalone.c 	remove_proc_entry("nf_conntrack", net->proc_net);
net               492 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_fini_proc(struct net *net)
net               494 net/netfilter/nf_conntrack_standalone.c 	remove_proc_entry("nf_conntrack", net->proc_net_stat);
net               495 net/netfilter/nf_conntrack_standalone.c 	remove_proc_entry("nf_conntrack", net->proc_net);
net               498 net/netfilter/nf_conntrack_standalone.c static int nf_conntrack_standalone_init_proc(struct net *net)
net               503 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_fini_proc(struct net *net)
net               937 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_init_tcp_sysctl(struct net *net,
net               940 net/netfilter/nf_conntrack_standalone.c 	struct nf_tcp_net *tn = nf_tcp_pernet(net);
net               966 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_init_sctp_sysctl(struct net *net,
net               970 net/netfilter/nf_conntrack_standalone.c 	struct nf_sctp_net *sn = nf_sctp_pernet(net);
net               989 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_init_dccp_sysctl(struct net *net,
net               993 net/netfilter/nf_conntrack_standalone.c 	struct nf_dccp_net *dn = nf_dccp_pernet(net);
net              1012 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_init_gre_sysctl(struct net *net,
net              1016 net/netfilter/nf_conntrack_standalone.c 	struct nf_gre_net *gn = nf_gre_pernet(net);
net              1023 net/netfilter/nf_conntrack_standalone.c static int nf_conntrack_standalone_init_sysctl(struct net *net)
net              1025 net/netfilter/nf_conntrack_standalone.c 	struct nf_udp_net *un = nf_udp_pernet(net);
net              1035 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_COUNT].data = &net->ct.count;
net              1036 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_CHECKSUM].data = &net->ct.sysctl_checksum;
net              1037 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_LOG_INVALID].data = &net->ct.sysctl_log_invalid;
net              1038 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_ACCT].data = &net->ct.sysctl_acct;
net              1039 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_HELPER].data = &net->ct.sysctl_auto_assign_helper;
net              1041 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_EVENTS].data = &net->ct.sysctl_events;
net              1044 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_TIMESTAMP].data = &net->ct.sysctl_tstamp;
net              1046 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_PROTO_TIMEOUT_GENERIC].data = &nf_generic_pernet(net)->timeout;
net              1047 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_PROTO_TIMEOUT_ICMP].data = &nf_icmp_pernet(net)->timeout;
net              1048 net/netfilter/nf_conntrack_standalone.c 	table[NF_SYSCTL_CT_PROTO_TIMEOUT_ICMPV6].data = &nf_icmpv6_pernet(net)->timeout;
net              1052 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_init_tcp_sysctl(net, table);
net              1053 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_init_sctp_sysctl(net, table);
net              1054 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_init_dccp_sysctl(net, table);
net              1055 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_init_gre_sysctl(net, table);
net              1058 net/netfilter/nf_conntrack_standalone.c 	if (net->user_ns != &init_user_ns) {
net              1070 net/netfilter/nf_conntrack_standalone.c 	if (!net_eq(&init_net, net))
net              1073 net/netfilter/nf_conntrack_standalone.c 	net->ct.sysctl_header = register_net_sysctl(net, "net/netfilter", table);
net              1074 net/netfilter/nf_conntrack_standalone.c 	if (!net->ct.sysctl_header)
net              1084 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_fini_sysctl(struct net *net)
net              1088 net/netfilter/nf_conntrack_standalone.c 	table = net->ct.sysctl_header->ctl_table_arg;
net              1089 net/netfilter/nf_conntrack_standalone.c 	unregister_net_sysctl_table(net->ct.sysctl_header);
net              1093 net/netfilter/nf_conntrack_standalone.c static int nf_conntrack_standalone_init_sysctl(struct net *net)
net              1098 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_standalone_fini_sysctl(struct net *net)
net              1103 net/netfilter/nf_conntrack_standalone.c static void nf_conntrack_fini_net(struct net *net)
net              1106 net/netfilter/nf_conntrack_standalone.c 		nf_ct_netns_put(net, NFPROTO_INET);
net              1108 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_fini_proc(net);
net              1109 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_fini_sysctl(net);
net              1112 net/netfilter/nf_conntrack_standalone.c static int nf_conntrack_pernet_init(struct net *net)
net              1116 net/netfilter/nf_conntrack_standalone.c 	net->ct.sysctl_checksum = 1;
net              1118 net/netfilter/nf_conntrack_standalone.c 	ret = nf_conntrack_standalone_init_sysctl(net);
net              1122 net/netfilter/nf_conntrack_standalone.c 	ret = nf_conntrack_standalone_init_proc(net);
net              1126 net/netfilter/nf_conntrack_standalone.c 	ret = nf_conntrack_init_net(net);
net              1131 net/netfilter/nf_conntrack_standalone.c 		ret = nf_ct_netns_get(net, NFPROTO_INET);
net              1139 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_cleanup_net(net);
net              1141 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_fini_proc(net);
net              1143 net/netfilter/nf_conntrack_standalone.c 	nf_conntrack_standalone_fini_sysctl(net);
net              1149 net/netfilter/nf_conntrack_standalone.c 	struct net *net;
net              1151 net/netfilter/nf_conntrack_standalone.c 	list_for_each_entry(net, net_exit_list, exit_list)
net              1152 net/netfilter/nf_conntrack_standalone.c 		nf_conntrack_fini_net(net);
net                26 net/netfilter/nf_conntrack_timeout.c (*nf_ct_timeout_find_get_hook)(struct net *net, const char *name) __read_mostly;
net                43 net/netfilter/nf_conntrack_timeout.c void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout)
net                45 net/netfilter/nf_conntrack_timeout.c 	nf_ct_iterate_cleanup_net(net, untimeout, timeout, 0, 0);
net                58 net/netfilter/nf_conntrack_timeout.c int nf_ct_set_timeout(struct net *net, struct nf_conn *ct,
net                75 net/netfilter/nf_conntrack_timeout.c 	timeout = timeout_find_get(net, timeout_name);
net                28 net/netfilter/nf_conntrack_timestamp.c void nf_conntrack_tstamp_pernet_init(struct net *net)
net                30 net/netfilter/nf_conntrack_timestamp.c 	net->ct.sysctl_tstamp = nf_ct_tstamp;
net                62 net/netfilter/nf_dup_netdev.c 	dev = dev_get_by_index(ctx->net, oif);
net               232 net/netfilter/nf_flow_table_ip.c 	dst_output(state->net, state->sk, skb);
net                10 net/netfilter/nf_internals.h void nf_queue_nf_hook_drop(struct net *net);
net                45 net/netfilter/nf_log.c int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger)
net                49 net/netfilter/nf_log.c 	if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers))
net                53 net/netfilter/nf_log.c 	log = nft_log_dereference(net->nf.nf_loggers[pf]);
net                55 net/netfilter/nf_log.c 		rcu_assign_pointer(net->nf.nf_loggers[pf], logger);
net                63 net/netfilter/nf_log.c void nf_log_unset(struct net *net, const struct nf_logger *logger)
net                70 net/netfilter/nf_log.c 		log = nft_log_dereference(net->nf.nf_loggers[i]);
net                72 net/netfilter/nf_log.c 			RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL);
net               128 net/netfilter/nf_log.c int nf_log_bind_pf(struct net *net, u_int8_t pf,
net               131 net/netfilter/nf_log.c 	if (pf >= ARRAY_SIZE(net->nf.nf_loggers))
net               138 net/netfilter/nf_log.c 	rcu_assign_pointer(net->nf.nf_loggers[pf], logger);
net               144 net/netfilter/nf_log.c void nf_log_unbind_pf(struct net *net, u_int8_t pf)
net               146 net/netfilter/nf_log.c 	if (pf >= ARRAY_SIZE(net->nf.nf_loggers))
net               149 net/netfilter/nf_log.c 	RCU_INIT_POINTER(net->nf.nf_loggers[pf], NULL);
net               215 net/netfilter/nf_log.c void nf_log_packet(struct net *net,
net               232 net/netfilter/nf_log.c 		logger = rcu_dereference(net->nf.nf_loggers[pf]);
net               238 net/netfilter/nf_log.c 		logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix);
net               244 net/netfilter/nf_log.c void nf_log_trace(struct net *net,
net               257 net/netfilter/nf_log.c 	logger = rcu_dereference(net->nf.nf_loggers[pf]);
net               262 net/netfilter/nf_log.c 		logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix);
net               328 net/netfilter/nf_log.c 	struct net *net = seq_file_net(seq);
net               332 net/netfilter/nf_log.c 	if (*pos >= ARRAY_SIZE(net->nf.nf_loggers))
net               340 net/netfilter/nf_log.c 	struct net *net = seq_file_net(s);
net               344 net/netfilter/nf_log.c 	if (*pos >= ARRAY_SIZE(net->nf.nf_loggers))
net               360 net/netfilter/nf_log.c 	struct net *net = seq_file_net(s);
net               362 net/netfilter/nf_log.c 	logger = nft_log_dereference(net->nf.nf_loggers[*pos]);
net               423 net/netfilter/nf_log.c 	struct net *net = table->extra2;
net               438 net/netfilter/nf_log.c 			nf_log_unbind_pf(net, tindex);
net               447 net/netfilter/nf_log.c 		rcu_assign_pointer(net->nf.nf_loggers[tindex], logger);
net               454 net/netfilter/nf_log.c 		logger = nft_log_dereference(net->nf.nf_loggers[tindex]);
net               466 net/netfilter/nf_log.c static int netfilter_log_sysctl_init(struct net *net)
net               472 net/netfilter/nf_log.c 	if (!net_eq(net, &init_net)) {
net               491 net/netfilter/nf_log.c 		nf_log_sysctl_fhdr = register_net_sysctl(net, "net/netfilter",
net               498 net/netfilter/nf_log.c 		table[i].extra2 = net;
net               500 net/netfilter/nf_log.c 	net->nf.nf_log_dir_header = register_net_sysctl(net,
net               503 net/netfilter/nf_log.c 	if (!net->nf.nf_log_dir_header)
net               509 net/netfilter/nf_log.c 	if (!net_eq(net, &init_net))
net               518 net/netfilter/nf_log.c static void netfilter_log_sysctl_exit(struct net *net)
net               522 net/netfilter/nf_log.c 	table = net->nf.nf_log_dir_header->ctl_table_arg;
net               523 net/netfilter/nf_log.c 	unregister_net_sysctl_table(net->nf.nf_log_dir_header);
net               524 net/netfilter/nf_log.c 	if (!net_eq(net, &init_net))
net               530 net/netfilter/nf_log.c static int netfilter_log_sysctl_init(struct net *net)
net               535 net/netfilter/nf_log.c static void netfilter_log_sysctl_exit(struct net *net)
net               540 net/netfilter/nf_log.c static int __net_init nf_log_net_init(struct net *net)
net               545 net/netfilter/nf_log.c 	if (!proc_create_net("nf_log", 0444, net->nf.proc_netfilter,
net               549 net/netfilter/nf_log.c 	ret = netfilter_log_sysctl_init(net);
net               557 net/netfilter/nf_log.c 	remove_proc_entry("nf_log", net->nf.proc_netfilter);
net               562 net/netfilter/nf_log.c static void __net_exit nf_log_net_exit(struct net *net)
net               564 net/netfilter/nf_log.c 	netfilter_log_sysctl_exit(net);
net               566 net/netfilter/nf_log.c 	remove_proc_entry("nf_log", net->nf.proc_netfilter);
net               132 net/netfilter/nf_log_common.c void nf_log_dump_sk_uid_gid(struct net *net, struct nf_log_buf *m,
net               135 net/netfilter/nf_log_common.c 	if (!sk || !sk_fullsock(sk) || !net_eq(net, sock_net(sk)))
net               175 net/netfilter/nf_log_common.c void nf_log_l2packet(struct net *net, u_int8_t pf,
net               186 net/netfilter/nf_log_common.c 		nf_log_packet(net, NFPROTO_IPV4, hooknum, skb, in, out,
net               190 net/netfilter/nf_log_common.c 		nf_log_packet(net, NFPROTO_IPV6, hooknum, skb, in, out,
net               195 net/netfilter/nf_log_common.c 		nf_log_packet(net, NFPROTO_ARP, hooknum, skb, in, out,
net                15 net/netfilter/nf_log_netdev.c static void nf_log_netdev_packet(struct net *net, u_int8_t pf,
net                23 net/netfilter/nf_log_netdev.c 	nf_log_l2packet(net, pf, skb->protocol, hooknum, skb, in, out,
net                34 net/netfilter/nf_log_netdev.c static int __net_init nf_log_netdev_net_init(struct net *net)
net                36 net/netfilter/nf_log_netdev.c 	return nf_log_set(net, NFPROTO_NETDEV, &nf_netdev_logger);
net                39 net/netfilter/nf_log_netdev.c static void __net_exit nf_log_netdev_net_exit(struct net *net)
net                41 net/netfilter/nf_log_netdev.c 	nf_log_unset(net, &nf_netdev_logger);
net               150 net/netfilter/nf_nat_core.c int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family)
net               168 net/netfilter/nf_nat_core.c 	if (sk && !net_eq(net, sock_net(sk)))
net               171 net/netfilter/nf_nat_core.c 	dst = xfrm_lookup(net, dst, &fl, sk, 0);
net               190 net/netfilter/nf_nat_core.c hash_by_src(const struct net *n, const struct nf_conntrack_tuple *tuple)
net               296 net/netfilter/nf_nat_core.c find_appropriate_src(struct net *net,
net               302 net/netfilter/nf_nat_core.c 	unsigned int h = hash_by_src(net, tuple);
net               307 net/netfilter/nf_nat_core.c 		    net_eq(net, nf_ct_net(ct)) &&
net               531 net/netfilter/nf_nat_core.c 	struct net *net = nf_ct_net(ct);
net               551 net/netfilter/nf_nat_core.c 		} else if (find_appropriate_src(net, zone,
net               604 net/netfilter/nf_nat_core.c 	struct net *net = nf_ct_net(ct);
net               649 net/netfilter/nf_nat_core.c 		srchash = hash_by_src(net,
net              1015 net/netfilter/nf_nat_core.c int nf_nat_register_fn(struct net *net, u8 pf, const struct nf_hook_ops *ops,
net              1018 net/netfilter/nf_nat_core.c 	struct nat_net *nat_net = net_generic(net, nat_net_id);
net              1063 net/netfilter/nf_nat_core.c 		ret = nf_register_net_hooks(net, nat_ops, ops_count);
net              1090 net/netfilter/nf_nat_core.c void nf_nat_unregister_fn(struct net *net, u8 pf, const struct nf_hook_ops *ops,
net              1093 net/netfilter/nf_nat_core.c 	struct nat_net *nat_net = net_generic(net, nat_net_id);
net              1124 net/netfilter/nf_nat_core.c 		nf_unregister_net_hooks(net, nat_ops, ops_count);
net                80 net/netfilter/nf_nat_masquerade.c 	struct net *net = dev_net(dev);
net                88 net/netfilter/nf_nat_masquerade.c 		nf_ct_iterate_cleanup_net(net, device_cmp,
net               114 net/netfilter/nf_nat_masquerade.c 	struct net *net = dev_net(idev->dev);
net               125 net/netfilter/nf_nat_masquerade.c 		nf_ct_iterate_cleanup_net(net, inet_cmp, ptr, 0, 0);
net               142 net/netfilter/nf_nat_masquerade.c nat_ipv6_dev_get_saddr(struct net *net, const struct net_device *dev,
net               152 net/netfilter/nf_nat_masquerade.c 	return v6_ops->dev_get_saddr(net, dev, daddr, srcprefs, saddr);
net               154 net/netfilter/nf_nat_masquerade.c 	return ipv6_dev_get_saddr(net, dev, daddr, srcprefs, saddr);
net               192 net/netfilter/nf_nat_masquerade.c 	struct net *net;
net               216 net/netfilter/nf_nat_masquerade.c 	nf_ct_iterate_cleanup_net(w->net, inet6_cmp, (void *)w, 0, 0);
net               218 net/netfilter/nf_nat_masquerade.c 	put_net(w->net);
net               237 net/netfilter/nf_nat_masquerade.c 	struct net *net;
net               243 net/netfilter/nf_nat_masquerade.c 	net = maybe_get_net(dev_net(dev));
net               244 net/netfilter/nf_nat_masquerade.c 	if (!net)
net               256 net/netfilter/nf_nat_masquerade.c 		w->net = net;
net               265 net/netfilter/nf_nat_masquerade.c 	put_net(net);
net               690 net/netfilter/nf_nat_proto.c 			err = nf_xfrm_me_harder(state->net, skb, AF_INET);
net               718 net/netfilter/nf_nat_proto.c 			err = ip_route_me_harder(state->net, skb, RTN_UNSPEC);
net               727 net/netfilter/nf_nat_proto.c 			err = nf_xfrm_me_harder(state->net, skb, AF_INET);
net               767 net/netfilter/nf_nat_proto.c int nf_nat_ipv4_register_fn(struct net *net, const struct nf_hook_ops *ops)
net               769 net/netfilter/nf_nat_proto.c 	return nf_nat_register_fn(net, ops->pf, ops, nf_nat_ipv4_ops,
net               774 net/netfilter/nf_nat_proto.c void nf_nat_ipv4_unregister_fn(struct net *net, const struct nf_hook_ops *ops)
net               776 net/netfilter/nf_nat_proto.c 	nf_nat_unregister_fn(net, ops->pf, ops, ARRAY_SIZE(nf_nat_ipv4_ops));
net               927 net/netfilter/nf_nat_proto.c 			err = nf_xfrm_me_harder(state->net, skb, AF_INET6);
net               956 net/netfilter/nf_nat_proto.c 			err = nf_ip6_route_me_harder(state->net, skb);
net               965 net/netfilter/nf_nat_proto.c 			err = nf_xfrm_me_harder(state->net, skb, AF_INET6);
net              1006 net/netfilter/nf_nat_proto.c int nf_nat_ipv6_register_fn(struct net *net, const struct nf_hook_ops *ops)
net              1008 net/netfilter/nf_nat_proto.c 	return nf_nat_register_fn(net, ops->pf, ops, nf_nat_ipv6_ops,
net              1013 net/netfilter/nf_nat_proto.c void nf_nat_ipv6_unregister_fn(struct net *net, const struct nf_hook_ops *ops)
net              1015 net/netfilter/nf_nat_proto.c 	nf_nat_unregister_fn(net, ops->pf, ops, ARRAY_SIZE(nf_nat_ipv6_ops));
net              1021 net/netfilter/nf_nat_proto.c int nf_nat_inet_register_fn(struct net *net, const struct nf_hook_ops *ops)
net              1028 net/netfilter/nf_nat_proto.c 	ret = nf_nat_register_fn(net, NFPROTO_IPV6, ops, nf_nat_ipv6_ops,
net              1033 net/netfilter/nf_nat_proto.c 	ret = nf_nat_register_fn(net, NFPROTO_IPV4, ops, nf_nat_ipv4_ops,
net              1036 net/netfilter/nf_nat_proto.c 		nf_nat_unregister_fn(net, NFPROTO_IPV6, ops,
net              1042 net/netfilter/nf_nat_proto.c void nf_nat_inet_unregister_fn(struct net *net, const struct nf_hook_ops *ops)
net              1044 net/netfilter/nf_nat_proto.c 	nf_nat_unregister_fn(net, NFPROTO_IPV4, ops, ARRAY_SIZE(nf_nat_ipv4_ops));
net              1045 net/netfilter/nf_nat_proto.c 	nf_nat_unregister_fn(net, NFPROTO_IPV6, ops, ARRAY_SIZE(nf_nat_ipv6_ops));
net                34 net/netfilter/nf_queue.c void nf_register_queue_handler(struct net *net, const struct nf_queue_handler *qh)
net                37 net/netfilter/nf_queue.c 	WARN_ON(rcu_access_pointer(net->nf.queue_handler));
net                38 net/netfilter/nf_queue.c 	rcu_assign_pointer(net->nf.queue_handler, qh);
net                43 net/netfilter/nf_queue.c void nf_unregister_queue_handler(struct net *net)
net                45 net/netfilter/nf_queue.c 	RCU_INIT_POINTER(net->nf.queue_handler, NULL);
net               117 net/netfilter/nf_queue.c void nf_queue_nf_hook_drop(struct net *net)
net               122 net/netfilter/nf_queue.c 	qh = rcu_dereference(net->nf.queue_handler);
net               124 net/netfilter/nf_queue.c 		qh->nf_hook_drop(net);
net               164 net/netfilter/nf_queue.c 	struct net *net = state->net;
net               168 net/netfilter/nf_queue.c 	qh = rcu_dereference(net->nf.queue_handler);
net               272 net/netfilter/nf_queue.c static struct nf_hook_entries *nf_hook_entries_head(const struct net *net, u8 pf, u8 hooknum)
net               277 net/netfilter/nf_queue.c 		return rcu_dereference(net->nf.hooks_bridge[hooknum]);
net               280 net/netfilter/nf_queue.c 		return rcu_dereference(net->nf.hooks_ipv4[hooknum]);
net               282 net/netfilter/nf_queue.c 		return rcu_dereference(net->nf.hooks_ipv6[hooknum]);
net               297 net/netfilter/nf_queue.c 	const struct net *net;
net               302 net/netfilter/nf_queue.c 	net = entry->state.net;
net               305 net/netfilter/nf_queue.c 	hooks = nf_hook_entries_head(net, pf, entry->state.hook);
net               337 net/netfilter/nf_queue.c 		entry->state.okfn(entry->state.net, entry->state.sk, skb);
net               307 net/netfilter/nf_synproxy_core.c static int __net_init synproxy_proc_init(struct net *net)
net               309 net/netfilter/nf_synproxy_core.c 	if (!proc_create_net("synproxy", 0444, net->proc_net_stat,
net               315 net/netfilter/nf_synproxy_core.c static void __net_exit synproxy_proc_exit(struct net *net)
net               317 net/netfilter/nf_synproxy_core.c 	remove_proc_entry("synproxy", net->proc_net_stat);
net               320 net/netfilter/nf_synproxy_core.c static int __net_init synproxy_proc_init(struct net *net)
net               325 net/netfilter/nf_synproxy_core.c static void __net_exit synproxy_proc_exit(struct net *net)
net               331 net/netfilter/nf_synproxy_core.c static int __net_init synproxy_net_init(struct net *net)
net               333 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net               337 net/netfilter/nf_synproxy_core.c 	ct = nf_ct_tmpl_alloc(net, &nf_ct_zone_dflt, GFP_KERNEL);
net               354 net/netfilter/nf_synproxy_core.c 	err = synproxy_proc_init(net);
net               368 net/netfilter/nf_synproxy_core.c static void __net_exit synproxy_net_exit(struct net *net)
net               370 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net               373 net/netfilter/nf_synproxy_core.c 	synproxy_proc_exit(net);
net               414 net/netfilter/nf_synproxy_core.c synproxy_build_ip(struct net *net, struct sk_buff *skb, __be32 saddr,
net               426 net/netfilter/nf_synproxy_core.c 	iph->ttl	= net->ipv4.sysctl_ip_default_ttl;
net               436 net/netfilter/nf_synproxy_core.c synproxy_send_tcp(struct net *net,
net               449 net/netfilter/nf_synproxy_core.c 	if (ip_route_me_harder(net, nskb, RTN_UNSPEC))
net               457 net/netfilter/nf_synproxy_core.c 	ip_local_out(net, nskb->sk, nskb);
net               465 net/netfilter/nf_synproxy_core.c synproxy_send_client_synack(struct net *net,
net               484 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr);
net               502 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp(net, skb, nskb, skb_nfct(skb),
net               508 net/netfilter/nf_synproxy_core.c synproxy_send_server_syn(struct net *net,
net               512 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net               527 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr);
net               548 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp(net, skb, nskb, &snet->tmpl->ct_general, IP_CT_NEW,
net               553 net/netfilter/nf_synproxy_core.c synproxy_send_server_ack(struct net *net,
net               572 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr);
net               588 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp(net, skb, nskb, NULL, 0, niph, nth, tcp_hdr_size);
net               592 net/netfilter/nf_synproxy_core.c synproxy_send_client_ack(struct net *net,
net               610 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr);
net               626 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp(net, skb, nskb, skb_nfct(skb),
net               631 net/netfilter/nf_synproxy_core.c synproxy_recv_client_ack(struct net *net,
net               635 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net               651 net/netfilter/nf_synproxy_core.c 	synproxy_send_server_syn(net, skb, th, opts, recv_seq);
net               660 net/netfilter/nf_synproxy_core.c 	struct net *net = nhs->net;
net               661 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net               719 net/netfilter/nf_synproxy_core.c 			if (synproxy_recv_client_ack(net, skb, th, &opts,
net               752 net/netfilter/nf_synproxy_core.c 		synproxy_send_server_ack(net, state, skb, th, &opts);
net               758 net/netfilter/nf_synproxy_core.c 		synproxy_send_client_ack(net, skb, th, &opts);
net               786 net/netfilter/nf_synproxy_core.c int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net)
net               791 net/netfilter/nf_synproxy_core.c 		err = nf_register_net_hooks(net, ipv4_synproxy_ops,
net               802 net/netfilter/nf_synproxy_core.c void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net)
net               806 net/netfilter/nf_synproxy_core.c 		nf_unregister_net_hooks(net, ipv4_synproxy_ops,
net               813 net/netfilter/nf_synproxy_core.c synproxy_build_ip_ipv6(struct net *net, struct sk_buff *skb,
net               822 net/netfilter/nf_synproxy_core.c 	iph->hop_limit	= net->ipv6.devconf_all->hop_limit;
net               831 net/netfilter/nf_synproxy_core.c synproxy_send_tcp_ipv6(struct net *net,
net               854 net/netfilter/nf_synproxy_core.c 	err = nf_ip6_route(net, &dst, flowi6_to_flowi(&fl6), false);
net               859 net/netfilter/nf_synproxy_core.c 	dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
net               870 net/netfilter/nf_synproxy_core.c 	ip6_local_out(net, nskb->sk, nskb);
net               878 net/netfilter/nf_synproxy_core.c synproxy_send_client_synack_ipv6(struct net *net,
net               898 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->daddr, &iph->saddr);
net               916 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp_ipv6(net, skb, nskb, skb_nfct(skb),
net               923 net/netfilter/nf_synproxy_core.c synproxy_send_server_syn_ipv6(struct net *net, const struct sk_buff *skb,
net               927 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net               942 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->saddr, &iph->daddr);
net               963 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp_ipv6(net, skb, nskb, &snet->tmpl->ct_general,
net               968 net/netfilter/nf_synproxy_core.c synproxy_send_server_ack_ipv6(struct net *net, const struct ip_ct_tcp *state,
net               987 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->daddr, &iph->saddr);
net              1003 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp_ipv6(net, skb, nskb, NULL, 0, niph, nth,
net              1008 net/netfilter/nf_synproxy_core.c synproxy_send_client_ack_ipv6(struct net *net, const struct sk_buff *skb,
net              1026 net/netfilter/nf_synproxy_core.c 	niph = synproxy_build_ip_ipv6(net, nskb, &iph->saddr, &iph->daddr);
net              1042 net/netfilter/nf_synproxy_core.c 	synproxy_send_tcp_ipv6(net, skb, nskb, skb_nfct(skb),
net              1048 net/netfilter/nf_synproxy_core.c synproxy_recv_client_ack_ipv6(struct net *net,
net              1053 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net              1069 net/netfilter/nf_synproxy_core.c 	synproxy_send_server_syn_ipv6(net, skb, th, opts, recv_seq);
net              1078 net/netfilter/nf_synproxy_core.c 	struct net *net = nhs->net;
net              1079 net/netfilter/nf_synproxy_core.c 	struct synproxy_net *snet = synproxy_pernet(net);
net              1143 net/netfilter/nf_synproxy_core.c 			if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts,
net              1176 net/netfilter/nf_synproxy_core.c 		synproxy_send_server_ack_ipv6(net, state, skb, th, &opts);
net              1182 net/netfilter/nf_synproxy_core.c 		synproxy_send_client_ack_ipv6(net, skb, th, &opts);
net              1211 net/netfilter/nf_synproxy_core.c nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net)
net              1216 net/netfilter/nf_synproxy_core.c 		err = nf_register_net_hooks(net, ipv6_synproxy_ops,
net              1228 net/netfilter/nf_synproxy_core.c nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net)
net              1232 net/netfilter/nf_synproxy_core.c 		nf_unregister_net_hooks(net, ipv6_synproxy_ops,
net                68 net/netfilter/nf_tables_api.c static void nft_validate_state_update(struct net *net, u8 new_validate_state)
net                70 net/netfilter/nf_tables_api.c 	switch (net->nft.validate_state) {
net                81 net/netfilter/nf_tables_api.c 	net->nft.validate_state = new_validate_state;
net                87 net/netfilter/nf_tables_api.c 			 struct net *net,
net                95 net/netfilter/nf_tables_api.c 	ctx->net	= net;
net               136 net/netfilter/nf_tables_api.c 	struct net *net = ctx->net;
net               142 net/netfilter/nf_tables_api.c 	list_for_each_entry_reverse(trans, &net->nft.commit_list, list) {
net               156 net/netfilter/nf_tables_api.c static int nf_tables_register_hook(struct net *net,
net               171 net/netfilter/nf_tables_api.c 		return basechain->type->ops_register(net, ops);
net               173 net/netfilter/nf_tables_api.c 	return nf_register_net_hook(net, ops);
net               176 net/netfilter/nf_tables_api.c static void nf_tables_unregister_hook(struct net *net,
net               190 net/netfilter/nf_tables_api.c 		return basechain->type->ops_unregister(net, ops);
net               192 net/netfilter/nf_tables_api.c 	nf_unregister_net_hook(net, ops);
net               204 net/netfilter/nf_tables_api.c 		nft_activate_next(ctx->net, ctx->table);
net               206 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               218 net/netfilter/nf_tables_api.c 	nft_deactivate_next(ctx->net, ctx->table);
net               231 net/netfilter/nf_tables_api.c 		nft_activate_next(ctx->net, ctx->chain);
net               233 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               246 net/netfilter/nf_tables_api.c 	nft_deactivate_next(ctx->net, ctx->chain);
net               284 net/netfilter/nf_tables_api.c 	if (nft_is_active_next(ctx->net, rule)) {
net               285 net/netfilter/nf_tables_api.c 		nft_deactivate_next(ctx->net, rule);
net               306 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               336 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, rule))
net               358 net/netfilter/nf_tables_api.c 		nft_activate_next(ctx->net, set);
net               361 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               374 net/netfilter/nf_tables_api.c 	nft_deactivate_next(ctx->net, set);
net               390 net/netfilter/nf_tables_api.c 		nft_activate_next(ctx->net, obj);
net               393 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               406 net/netfilter/nf_tables_api.c 	nft_deactivate_next(ctx->net, obj);
net               423 net/netfilter/nf_tables_api.c 		nft_activate_next(ctx->net, flowtable);
net               426 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               440 net/netfilter/nf_tables_api.c 	nft_deactivate_next(ctx->net, flowtable);
net               450 net/netfilter/nf_tables_api.c static struct nft_table *nft_table_lookup(const struct net *net,
net               459 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net               469 net/netfilter/nf_tables_api.c static struct nft_table *nft_table_lookup_byhandle(const struct net *net,
net               475 net/netfilter/nf_tables_api.c 	list_for_each_entry(table, &net->nft.tables, list) {
net               524 net/netfilter/nf_tables_api.c static int nft_request_module(struct net *net, const char *fmt, ...)
net               537 net/netfilter/nf_tables_api.c 	list_for_each_entry(req, &net->nft.module_list, list) {
net               553 net/netfilter/nf_tables_api.c 	list_add_tail(&req->list, &net->nft.module_list);
net               567 net/netfilter/nf_tables_api.c nf_tables_chain_type_lookup(struct net *net, const struct nlattr *nla,
net               579 net/netfilter/nf_tables_api.c 		if (nft_request_module(net, "nft-chain-%u-%.*s", family,
net               595 net/netfilter/nf_tables_api.c static int nf_tables_fill_table_info(struct sk_buff *skb, struct net *net,
net               610 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(net->nft.base_seq & 0xffff);
net               633 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(ctx->net, NFNLGRP_NFTABLES))
net               640 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_table_info(skb, ctx->net, ctx->portid, ctx->seq,
net               647 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, ctx->net, ctx->portid, NFNLGRP_NFTABLES,
net               651 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(ctx->net, ctx->portid, NFNLGRP_NFTABLES, -ENOBUFS);
net               660 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net               664 net/netfilter/nf_tables_api.c 	cb->seq = net->nft.base_seq;
net               666 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net               675 net/netfilter/nf_tables_api.c 		if (!nft_is_active(net, table))
net               677 net/netfilter/nf_tables_api.c 		if (nf_tables_fill_table_info(skb, net,
net               712 net/netfilter/nf_tables_api.c static int nf_tables_gettable(struct net *net, struct sock *nlsk,
net               718 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net               733 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_TABLE_NAME], family, genmask);
net               743 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_table_info(skb2, net, NETLINK_CB(skb).portid,
net               756 net/netfilter/nf_tables_api.c static void nft_table_disable(struct net *net, struct nft_table *table, u32 cnt)
net               762 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(net, chain))
net               770 net/netfilter/nf_tables_api.c 		nf_unregister_net_hook(net, &nft_base_chain(chain)->ops);
net               774 net/netfilter/nf_tables_api.c static int nf_tables_table_enable(struct net *net, struct nft_table *table)
net               780 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(net, chain))
net               785 net/netfilter/nf_tables_api.c 		err = nf_register_net_hook(net, &nft_base_chain(chain)->ops);
net               794 net/netfilter/nf_tables_api.c 		nft_table_disable(net, table, i);
net               798 net/netfilter/nf_tables_api.c static void nf_tables_table_disable(struct net *net, struct nft_table *table)
net               800 net/netfilter/nf_tables_api.c 	nft_table_disable(net, table, 0);
net               829 net/netfilter/nf_tables_api.c 		ret = nf_tables_table_enable(ctx->net, ctx->table);
net               839 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net               897 net/netfilter/nf_tables_api.c static int nf_tables_newtable(struct net *net, struct sock *nlsk,
net               903 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net               911 net/netfilter/nf_tables_api.c 	lockdep_assert_held(&net->nft.commit_mutex);
net               913 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, attr, family, genmask);
net               925 net/netfilter/nf_tables_api.c 		nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net               956 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net               961 net/netfilter/nf_tables_api.c 	list_add_tail_rcu(&table->list, &net->nft.tables);
net               982 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, chain))
net               993 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, set))
net              1006 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, flowtable))
net              1015 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, obj))
net              1024 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, chain))
net              1045 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(table, nt, &ctx->net->nft.tables, list) {
net              1051 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, table))
net              1068 net/netfilter/nf_tables_api.c static int nf_tables_deltable(struct net *net, struct sock *nlsk,
net              1074 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              1080 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, 0, NULL, NULL, nla);
net              1087 net/netfilter/nf_tables_api.c 		table = nft_table_lookup_byhandle(net, attr, genmask);
net              1090 net/netfilter/nf_tables_api.c 		table = nft_table_lookup(net, attr, family, genmask);
net              1156 net/netfilter/nf_tables_api.c static bool lockdep_commit_lock_is_held(const struct net *net)
net              1159 net/netfilter/nf_tables_api.c 	return lockdep_is_held(&net->nft.commit_mutex);
net              1165 net/netfilter/nf_tables_api.c static struct nft_chain *nft_chain_lookup(struct net *net,
net              1179 net/netfilter/nf_tables_api.c 		!lockdep_commit_lock_is_held(net));
net              1257 net/netfilter/nf_tables_api.c static int nf_tables_fill_chain_info(struct sk_buff *skb, struct net *net,
net              1273 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(net->nft.base_seq & 0xffff);
net              1309 net/netfilter/nf_tables_api.c 					      lockdep_commit_lock_is_held(net));
net              1336 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(ctx->net, NFNLGRP_NFTABLES))
net              1343 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_chain_info(skb, ctx->net, ctx->portid, ctx->seq,
net              1351 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, ctx->net, ctx->portid, NFNLGRP_NFTABLES,
net              1355 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(ctx->net, ctx->portid, NFNLGRP_NFTABLES, -ENOBUFS);
net              1365 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              1369 net/netfilter/nf_tables_api.c 	cb->seq = net->nft.base_seq;
net              1371 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net              1381 net/netfilter/nf_tables_api.c 			if (!nft_is_active(net, chain))
net              1383 net/netfilter/nf_tables_api.c 			if (nf_tables_fill_chain_info(skb, net,
net              1404 net/netfilter/nf_tables_api.c static int nf_tables_getchain(struct net *net, struct sock *nlsk,
net              1410 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net              1426 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_CHAIN_TABLE], family, genmask);
net              1432 net/netfilter/nf_tables_api.c 	chain = nft_chain_lookup(net, table, nla[NFTA_CHAIN_NAME], genmask);
net              1442 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_chain_info(skb2, net, NETLINK_CB(skb).portid,
net              1499 net/netfilter/nf_tables_api.c 			   lockdep_commit_lock_is_held(trans->ctx.net));
net              1552 net/netfilter/nf_tables_api.c static int nft_chain_parse_hook(struct net *net,
net              1562 net/netfilter/nf_tables_api.c 	lockdep_assert_held(&net->nft.commit_mutex);
net              1583 net/netfilter/nf_tables_api.c 		type = nf_tables_chain_type_lookup(net, nla[NFTA_CHAIN_TYPE],
net              1610 net/netfilter/nf_tables_api.c 		dev = __dev_get_by_name(net, ifname);
net              1657 net/netfilter/nf_tables_api.c 	struct net *net = ctx->net;
net              1670 net/netfilter/nf_tables_api.c 		err = nft_chain_parse_hook(net, nla, &hook, family, true);
net              1738 net/netfilter/nf_tables_api.c 	err = nf_tables_register_hook(net, table, chain);
net              1764 net/netfilter/nf_tables_api.c 	nf_tables_unregister_hook(net, table, chain);
net              1791 net/netfilter/nf_tables_api.c 		err = nft_chain_parse_hook(ctx->net, nla, &hook, ctx->family,
net              1816 net/netfilter/nf_tables_api.c 		chain2 = nft_chain_lookup(ctx->net, table,
net              1856 net/netfilter/nf_tables_api.c 		list_for_each_entry(tmp, &ctx->net->nft.commit_list, list) {
net              1869 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net              1878 net/netfilter/nf_tables_api.c static int nf_tables_newchain(struct net *net, struct sock *nlsk,
net              1884 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              1894 net/netfilter/nf_tables_api.c 	lockdep_assert_held(&net->nft.commit_mutex);
net              1896 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_CHAIN_TABLE], family, genmask);
net              1914 net/netfilter/nf_tables_api.c 		chain = nft_chain_lookup(net, table, attr, genmask);
net              1952 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
net              1969 net/netfilter/nf_tables_api.c static int nf_tables_delchain(struct net *net, struct sock *nlsk,
net              1975 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              1986 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_CHAIN_TABLE], family, genmask);
net              1998 net/netfilter/nf_tables_api.c 		chain = nft_chain_lookup(net, table, attr, genmask);
net              2009 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
net              2013 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(net, rule))
net              2087 net/netfilter/nf_tables_api.c static int nft_expr_type_request_module(struct net *net, u8 family,
net              2090 net/netfilter/nf_tables_api.c 	if (nft_request_module(net, "nft-expr-%u-%.*s", family,
net              2098 net/netfilter/nf_tables_api.c static const struct nft_expr_type *nft_expr_type_get(struct net *net,
net              2114 net/netfilter/nf_tables_api.c 		if (nft_expr_type_request_module(net, family, nla) == -EAGAIN)
net              2117 net/netfilter/nf_tables_api.c 		if (nft_request_module(net, "nft-expr-%.*s",
net              2190 net/netfilter/nf_tables_api.c 	type = nft_expr_type_get(ctx->net, ctx->family, tb[NFTA_EXPR_NAME]);
net              2210 net/netfilter/nf_tables_api.c 				if (nft_expr_type_request_module(ctx->net,
net              2340 net/netfilter/nf_tables_api.c static int nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net,
net              2361 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(net->nft.base_seq & 0xffff);
net              2409 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(ctx->net, NFNLGRP_NFTABLES))
net              2416 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_rule_info(skb, ctx->net, ctx->portid, ctx->seq,
net              2424 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, ctx->net, ctx->portid, NFNLGRP_NFTABLES,
net              2428 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(ctx->net, ctx->portid, NFNLGRP_NFTABLES, -ENOBUFS);
net              2442 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              2448 net/netfilter/nf_tables_api.c 		if (!nft_is_active(net, rule))
net              2456 net/netfilter/nf_tables_api.c 		if (nf_tables_fill_rule_info(skb, net, NETLINK_CB(cb->skb).portid,
net              2481 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              2485 net/netfilter/nf_tables_api.c 	cb->seq = net->nft.base_seq;
net              2487 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net              2503 net/netfilter/nf_tables_api.c 				if (!nft_is_active(net, chain))
net              2573 net/netfilter/nf_tables_api.c static int nf_tables_getrule(struct net *net, struct sock *nlsk,
net              2579 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net              2599 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_RULE_TABLE], family, genmask);
net              2605 net/netfilter/nf_tables_api.c 	chain = nft_chain_lookup(net, table, nla[NFTA_RULE_CHAIN], genmask);
net              2621 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_rule_info(skb2, net, NETLINK_CB(skb).portid,
net              2670 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, rule))
net              2687 net/netfilter/nf_tables_api.c static int nft_table_validate(struct net *net, const struct nft_table *table)
net              2691 net/netfilter/nf_tables_api.c 		.net	= net,
net              2709 net/netfilter/nf_tables_api.c static struct nft_rule *nft_rule_lookup_byid(const struct net *net,
net              2714 net/netfilter/nf_tables_api.c static int nf_tables_newrule(struct net *net, struct sock *nlsk,
net              2720 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              2736 net/netfilter/nf_tables_api.c 	lockdep_assert_held(&net->nft.commit_mutex);
net              2738 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_RULE_TABLE], family, genmask);
net              2744 net/netfilter/nf_tables_api.c 	chain = nft_chain_lookup(net, table, nla[NFTA_RULE_CHAIN], genmask);
net              2783 net/netfilter/nf_tables_api.c 			old_rule = nft_rule_lookup_byid(net, nla[NFTA_RULE_POSITION_ID]);
net              2791 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
net              2831 net/netfilter/nf_tables_api.c 	nft_activate_next(net, rule);
net              2850 net/netfilter/nf_tables_api.c 			nft_validate_state_update(net, NFT_VALIDATE_NEED);
net              2891 net/netfilter/nf_tables_api.c 	if (net->nft.validate_state == NFT_VALIDATE_DO)
net              2892 net/netfilter/nf_tables_api.c 		return nft_table_validate(net, table);
net              2895 net/netfilter/nf_tables_api.c 		flow = nft_flow_rule_create(net, rule);
net              2917 net/netfilter/nf_tables_api.c static struct nft_rule *nft_rule_lookup_byid(const struct net *net,
net              2923 net/netfilter/nf_tables_api.c 	list_for_each_entry(trans, &net->nft.commit_list, list) {
net              2933 net/netfilter/nf_tables_api.c static int nf_tables_delrule(struct net *net, struct sock *nlsk,
net              2939 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              2946 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_RULE_TABLE], family, genmask);
net              2953 net/netfilter/nf_tables_api.c 		chain = nft_chain_lookup(net, table, nla[NFTA_RULE_CHAIN],
net              2961 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
net              2973 net/netfilter/nf_tables_api.c 			rule = nft_rule_lookup_byid(net, nla[NFTA_RULE_ID]);
net              2985 net/netfilter/nf_tables_api.c 			if (!nft_is_active_next(net, chain))
net              3046 net/netfilter/nf_tables_api.c 	lockdep_assert_held(&ctx->net->nft.commit_mutex);
net              3050 net/netfilter/nf_tables_api.c 		if (nft_request_module(ctx->net, "nft-set") == -EAGAIN)
net              3133 net/netfilter/nf_tables_api.c static int nft_ctx_init_from_setattr(struct nft_ctx *ctx, struct net *net,
net              3145 net/netfilter/nf_tables_api.c 		table = nft_table_lookup(net, nla[NFTA_SET_TABLE], family,
net              3153 net/netfilter/nf_tables_api.c 	nft_ctx_init(ctx, net, skb, nlh, family, table, NULL, nla);
net              3187 net/netfilter/nf_tables_api.c static struct nft_set *nft_set_lookup_byid(const struct net *net,
net              3193 net/netfilter/nf_tables_api.c 	list_for_each_entry(trans, &net->nft.commit_list, list) {
net              3205 net/netfilter/nf_tables_api.c struct nft_set *nft_set_lookup_global(const struct net *net,
net              3218 net/netfilter/nf_tables_api.c 		set = nft_set_lookup_byid(net, nla_set_id, genmask);
net              3244 net/netfilter/nf_tables_api.c 			if (!nft_is_active_next(ctx->net, set))
net              3268 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, i))
net              3315 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(ctx->net->nft.base_seq & 0xffff);
net              3384 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(ctx->net, NFNLGRP_NFTABLES))
net              3397 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, ctx->net, portid, NFNLGRP_NFTABLES, ctx->report,
net              3401 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(ctx->net, portid, NFNLGRP_NFTABLES, -ENOBUFS);
net              3409 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              3416 net/netfilter/nf_tables_api.c 	cb->seq = net->nft.base_seq;
net              3418 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net              3436 net/netfilter/nf_tables_api.c 			if (!nft_is_active(net, set))
net              3482 net/netfilter/nf_tables_api.c static int nf_tables_getset(struct net *net, struct sock *nlsk,
net              3487 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net              3495 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_setattr(&ctx, net, skb, nlh, nla, extack,
net              3554 net/netfilter/nf_tables_api.c static int nf_tables_newset(struct net *net, struct sock *nlsk,
net              3560 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              3671 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_SET_TABLE], family, genmask);
net              3677 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net              3736 net/netfilter/nf_tables_api.c 	write_pnet(&set->net, net);
net              3786 net/netfilter/nf_tables_api.c static int nf_tables_delset(struct net *net, struct sock *nlsk,
net              3792 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              3803 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_setattr(&ctx, net, skb, nlh, nla, extack,
net              3866 net/netfilter/nf_tables_api.c 		iter.genmask	= nft_genmask_next(ctx->net);
net              3984 net/netfilter/nf_tables_api.c static int nft_ctx_init_from_elemattr(struct nft_ctx *ctx, struct net *net,
net              3995 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_SET_ELEM_LIST_TABLE], family,
net              4002 net/netfilter/nf_tables_api.c 	nft_ctx_init(ctx, net, skb, nlh, family, table, NULL, nla);
net              4105 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              4117 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net              4151 net/netfilter/nf_tables_api.c 	nfmsg->res_id	    = htons(net->nft.base_seq & 0xffff);
net              4164 net/netfilter/nf_tables_api.c 	args.iter.genmask	= nft_genmask_cur(net);
net              4223 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(ctx->net->nft.base_seq & 0xffff);
net              4298 net/netfilter/nf_tables_api.c 	priv = set->ops->get(ctx->net, set, &elem, flags);
net              4314 net/netfilter/nf_tables_api.c 	err = nfnetlink_unicast(skb, ctx->net, ctx->portid, MSG_DONTWAIT);
net              4328 net/netfilter/nf_tables_api.c static int nf_tables_getsetelem(struct net *net, struct sock *nlsk,
net              4333 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net              4339 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
net              4381 net/netfilter/nf_tables_api.c 	struct net *net = ctx->net;
net              4386 net/netfilter/nf_tables_api.c 	if (!ctx->report && !nfnetlink_has_listeners(net, NFNLGRP_NFTABLES))
net              4400 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, net, portid, NFNLGRP_NFTABLES, ctx->report,
net              4404 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(net, portid, NFNLGRP_NFTABLES, -ENOBUFS);
net              4455 net/netfilter/nf_tables_api.c 		.net	= read_pnet(&set->net),
net              4495 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(ctx->net);
net              4588 net/netfilter/nf_tables_api.c 		obj = nft_obj_lookup(ctx->net, ctx->table,
net              4611 net/netfilter/nf_tables_api.c 				.net	= ctx->net,
net              4629 net/netfilter/nf_tables_api.c 				nft_validate_state_update(ctx->net,
net              4671 net/netfilter/nf_tables_api.c 	ext->genmask = nft_genmask_cur(ctx->net) | NFT_SET_ELEM_BUSY_MASK;
net              4672 net/netfilter/nf_tables_api.c 	err = set->ops->insert(ctx->net, set, &elem, &ext2);
net              4703 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net              4707 net/netfilter/nf_tables_api.c 	set->ops->remove(ctx->net, set, &elem);
net              4723 net/netfilter/nf_tables_api.c static int nf_tables_newsetelem(struct net *net, struct sock *nlsk,
net              4728 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              4737 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
net              4742 net/netfilter/nf_tables_api.c 	set = nft_set_lookup_global(net, ctx.table, nla[NFTA_SET_ELEM_LIST_SET],
net              4756 net/netfilter/nf_tables_api.c 	if (net->nft.validate_state == NFT_VALIDATE_DO)
net              4757 net/netfilter/nf_tables_api.c 		return nft_table_validate(net, ctx.table);
net              4785 net/netfilter/nf_tables_api.c static void nft_set_elem_activate(const struct net *net,
net              4797 net/netfilter/nf_tables_api.c static void nft_set_elem_deactivate(const struct net *net,
net              4866 net/netfilter/nf_tables_api.c 	priv = set->ops->deactivate(ctx->net, set, &elem);
net              4874 net/netfilter/nf_tables_api.c 	nft_set_elem_deactivate(ctx->net, set, &elem);
net              4877 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net              4903 net/netfilter/nf_tables_api.c 	if (!set->ops->flush(ctx->net, set, elem->priv)) {
net              4909 net/netfilter/nf_tables_api.c 	nft_set_elem_deactivate(ctx->net, set, elem);
net              4912 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net              4920 net/netfilter/nf_tables_api.c static int nf_tables_delsetelem(struct net *net, struct sock *nlsk,
net              4925 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              4931 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
net              5024 net/netfilter/nf_tables_api.c struct nft_object *nft_obj_lookup(const struct net *net,
net              5038 net/netfilter/nf_tables_api.c 		     !lockdep_commit_lock_is_held(net));
net              5165 net/netfilter/nf_tables_api.c nft_obj_type_get(struct net *net, u32 objtype)
net              5176 net/netfilter/nf_tables_api.c 		if (nft_request_module(net, "nft-obj-%u", objtype) == -EAGAIN)
net              5206 net/netfilter/nf_tables_api.c 	list_add_tail(&trans->list, &ctx->net->nft.commit_list);
net              5215 net/netfilter/nf_tables_api.c static int nf_tables_newobj(struct net *net, struct sock *nlsk,
net              5222 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              5235 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_OBJ_TABLE], family, genmask);
net              5242 net/netfilter/nf_tables_api.c 	obj = nft_obj_lookup(net, table, nla[NFTA_OBJ_NAME], objtype, genmask);
net              5258 net/netfilter/nf_tables_api.c 		nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net              5263 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net              5265 net/netfilter/nf_tables_api.c 	type = nft_obj_type_get(net, objtype);
net              5310 net/netfilter/nf_tables_api.c static int nf_tables_fill_obj_info(struct sk_buff *skb, struct net *net,
net              5326 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(net->nft.base_seq & 0xffff);
net              5356 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              5365 net/netfilter/nf_tables_api.c 	cb->seq = net->nft.base_seq;
net              5367 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net              5372 net/netfilter/nf_tables_api.c 			if (!nft_is_active(net, obj))
net              5387 net/netfilter/nf_tables_api.c 			if (nf_tables_fill_obj_info(skb, net, NETLINK_CB(cb->skb).portid,
net              5446 net/netfilter/nf_tables_api.c static int nf_tables_getobj(struct net *net, struct sock *nlsk,
net              5452 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net              5477 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_OBJ_TABLE], family, genmask);
net              5484 net/netfilter/nf_tables_api.c 	obj = nft_obj_lookup(net, table, nla[NFTA_OBJ_NAME], objtype, genmask);
net              5497 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_obj_info(skb2, net, NETLINK_CB(skb).portid,
net              5519 net/netfilter/nf_tables_api.c static int nf_tables_delobj(struct net *net, struct sock *nlsk,
net              5525 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              5537 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_OBJ_TABLE], family, genmask);
net              5549 net/netfilter/nf_tables_api.c 		obj = nft_obj_lookup(net, table, attr, objtype, genmask);
net              5561 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net              5566 net/netfilter/nf_tables_api.c void nft_obj_notify(struct net *net, const struct nft_table *table,
net              5574 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(net, NFNLGRP_NFTABLES))
net              5581 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_obj_info(skb, net, portid, seq, event, 0, family,
net              5588 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, net, portid, NFNLGRP_NFTABLES, report, gfp);
net              5591 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(net, portid, NFNLGRP_NFTABLES, -ENOBUFS);
net              5598 net/netfilter/nf_tables_api.c 	nft_obj_notify(ctx->net, ctx->table, obj, ctx->portid, ctx->seq, event,
net              5690 net/netfilter/nf_tables_api.c 		dev = __dev_get_by_name(ctx->net, ifname);
net              5781 net/netfilter/nf_tables_api.c nft_flowtable_type_get(struct net *net, u8 family)
net              5792 net/netfilter/nf_tables_api.c 		if (nft_request_module(net, "nf-flowtable-%u", family) == -EAGAIN)
net              5799 net/netfilter/nf_tables_api.c static void nft_unregister_flowtable_net_hooks(struct net *net,
net              5808 net/netfilter/nf_tables_api.c 		nf_unregister_net_hook(net, &flowtable->ops[i]);
net              5812 net/netfilter/nf_tables_api.c static int nf_tables_newflowtable(struct net *net, struct sock *nlsk,
net              5821 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              5832 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
net              5856 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net              5871 net/netfilter/nf_tables_api.c 	type = nft_flowtable_type_get(net, family);
net              5904 net/netfilter/nf_tables_api.c 		err = nf_register_net_hook(net, &flowtable->ops[i]);
net              5921 net/netfilter/nf_tables_api.c 		nf_unregister_net_hook(net, &flowtable->ops[k]);
net              5935 net/netfilter/nf_tables_api.c static int nf_tables_delflowtable(struct net *net, struct sock *nlsk,
net              5942 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(net);
net              5954 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
net              5978 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
net              5983 net/netfilter/nf_tables_api.c static int nf_tables_fill_flowtable_info(struct sk_buff *skb, struct net *net,
net              6001 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(net->nft.base_seq & 0xffff);
net              6049 net/netfilter/nf_tables_api.c 	struct net *net = sock_net(skb->sk);
net              6055 net/netfilter/nf_tables_api.c 	cb->seq = net->nft.base_seq;
net              6057 net/netfilter/nf_tables_api.c 	list_for_each_entry_rcu(table, &net->nft.tables, list) {
net              6062 net/netfilter/nf_tables_api.c 			if (!nft_is_active(net, flowtable))
net              6073 net/netfilter/nf_tables_api.c 			if (nf_tables_fill_flowtable_info(skb, net, NETLINK_CB(cb->skb).portid,
net              6128 net/netfilter/nf_tables_api.c static int nf_tables_getflowtable(struct net *net, struct sock *nlsk,
net              6135 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_cur(net);
net              6157 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
net              6171 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_flowtable_info(skb2, net, NETLINK_CB(skb).portid,
net              6192 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(ctx->net, NFNLGRP_NFTABLES))
net              6199 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_flowtable_info(skb, ctx->net, ctx->portid,
net              6207 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb, ctx->net, ctx->portid, NFNLGRP_NFTABLES,
net              6211 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(ctx->net, ctx->portid, NFNLGRP_NFTABLES, -ENOBUFS);
net              6223 net/netfilter/nf_tables_api.c static int nf_tables_fill_gen_info(struct sk_buff *skb, struct net *net,
net              6238 net/netfilter/nf_tables_api.c 	nfmsg->res_id		= htons(net->nft.base_seq & 0xffff);
net              6240 net/netfilter/nf_tables_api.c 	if (nla_put_be32(skb, NFTA_GEN_ID, htonl(net->nft.base_seq)) ||
net              6274 net/netfilter/nf_tables_api.c 	struct net *net;
net              6279 net/netfilter/nf_tables_api.c 	net = dev_net(dev);
net              6280 net/netfilter/nf_tables_api.c 	mutex_lock(&net->nft.commit_mutex);
net              6281 net/netfilter/nf_tables_api.c 	list_for_each_entry(table, &net->nft.tables, list) {
net              6286 net/netfilter/nf_tables_api.c 	mutex_unlock(&net->nft.commit_mutex);
net              6295 net/netfilter/nf_tables_api.c static void nf_tables_gen_notify(struct net *net, struct sk_buff *skb,
net              6303 net/netfilter/nf_tables_api.c 	    !nfnetlink_has_listeners(net, NFNLGRP_NFTABLES))
net              6310 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_gen_info(skb2, net, NETLINK_CB(skb).portid,
net              6317 net/netfilter/nf_tables_api.c 	nfnetlink_send(skb2, net, NETLINK_CB(skb).portid, NFNLGRP_NFTABLES,
net              6321 net/netfilter/nf_tables_api.c 	nfnetlink_set_err(net, NETLINK_CB(skb).portid, NFNLGRP_NFTABLES,
net              6325 net/netfilter/nf_tables_api.c static int nf_tables_getgen(struct net *net, struct sock *nlsk,
net              6337 net/netfilter/nf_tables_api.c 	err = nf_tables_fill_gen_info(skb2, net, NETLINK_CB(skb).portid,
net              6464 net/netfilter/nf_tables_api.c static int nf_tables_validate(struct net *net)
net              6468 net/netfilter/nf_tables_api.c 	switch (net->nft.validate_state) {
net              6472 net/netfilter/nf_tables_api.c 		nft_validate_state_update(net, NFT_VALIDATE_DO);
net              6475 net/netfilter/nf_tables_api.c 		list_for_each_entry(table, &net->nft.tables, list) {
net              6476 net/netfilter/nf_tables_api.c 			if (nft_table_validate(net, table) < 0)
net              6583 net/netfilter/nf_tables_api.c 		put_net(trans->ctx.net);
net              6608 net/netfilter/nf_tables_api.c static int nf_tables_commit_chain_prepare(struct net *net, struct nft_chain *chain)
net              6615 net/netfilter/nf_tables_api.c 	if (chain->rules_next || !nft_is_active_next(net, chain))
net              6622 net/netfilter/nf_tables_api.c 		if (nft_is_active_next(net, rule))
net              6631 net/netfilter/nf_tables_api.c 		if (nft_is_active_next(net, rule))
net              6639 net/netfilter/nf_tables_api.c static void nf_tables_commit_chain_prepare_cancel(struct net *net)
net              6643 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) {
net              6676 net/netfilter/nf_tables_api.c static void nf_tables_commit_chain(struct net *net, struct nft_chain *chain)
net              6681 net/netfilter/nf_tables_api.c 	next_genbit = nft_gencursor_next(net);
net              6684 net/netfilter/nf_tables_api.c 				       lockdep_commit_lock_is_held(net));
net              6686 net/netfilter/nf_tables_api.c 				       lockdep_commit_lock_is_held(net));
net              6739 net/netfilter/nf_tables_api.c static void nf_tables_module_autoload_cleanup(struct net *net)
net              6743 net/netfilter/nf_tables_api.c 	WARN_ON_ONCE(!list_empty(&net->nft.commit_list));
net              6744 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(req, next, &net->nft.module_list, list) {
net              6751 net/netfilter/nf_tables_api.c static void nf_tables_commit_release(struct net *net)
net              6762 net/netfilter/nf_tables_api.c 	if (list_empty(&net->nft.commit_list)) {
net              6763 net/netfilter/nf_tables_api.c 		nf_tables_module_autoload_cleanup(net);
net              6764 net/netfilter/nf_tables_api.c 		mutex_unlock(&net->nft.commit_mutex);
net              6768 net/netfilter/nf_tables_api.c 	trans = list_last_entry(&net->nft.commit_list,
net              6770 net/netfilter/nf_tables_api.c 	get_net(trans->ctx.net);
net              6775 net/netfilter/nf_tables_api.c 	list_splice_tail_init(&net->nft.commit_list, &nf_tables_destroy_list);
net              6778 net/netfilter/nf_tables_api.c 	nf_tables_module_autoload_cleanup(net);
net              6779 net/netfilter/nf_tables_api.c 	mutex_unlock(&net->nft.commit_mutex);
net              6784 net/netfilter/nf_tables_api.c static int nf_tables_commit(struct net *net, struct sk_buff *skb)
net              6792 net/netfilter/nf_tables_api.c 	if (list_empty(&net->nft.commit_list)) {
net              6793 net/netfilter/nf_tables_api.c 		mutex_unlock(&net->nft.commit_mutex);
net              6798 net/netfilter/nf_tables_api.c 	if (nf_tables_validate(net) < 0)
net              6801 net/netfilter/nf_tables_api.c 	err = nft_flow_rule_offload_commit(net);
net              6806 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) {
net              6813 net/netfilter/nf_tables_api.c 			ret = nf_tables_commit_chain_prepare(net, chain);
net              6815 net/netfilter/nf_tables_api.c 				nf_tables_commit_chain_prepare_cancel(net);
net              6822 net/netfilter/nf_tables_api.c 	list_for_each_entry(table, &net->nft.tables, list) {
net              6824 net/netfilter/nf_tables_api.c 			nf_tables_commit_chain(net, chain);
net              6831 net/netfilter/nf_tables_api.c 	while (++net->nft.base_seq == 0);
net              6834 net/netfilter/nf_tables_api.c 	net->nft.gencursor = nft_gencursor_next(net);
net              6836 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) {
net              6841 net/netfilter/nf_tables_api.c 					nf_tables_table_disable(net,
net              6846 net/netfilter/nf_tables_api.c 				nft_clear(net, trans->ctx.table);
net              6862 net/netfilter/nf_tables_api.c 				nft_clear(net, trans->ctx.chain);
net              6870 net/netfilter/nf_tables_api.c 			nf_tables_unregister_hook(trans->ctx.net,
net              6875 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, nft_trans_rule(trans));
net              6891 net/netfilter/nf_tables_api.c 			nft_clear(net, nft_trans_set(trans));
net              6911 net/netfilter/nf_tables_api.c 			te->set->ops->activate(net, te->set, &te->elem);
net              6923 net/netfilter/nf_tables_api.c 			te->set->ops->remove(net, te->set, &te->elem);
net              6934 net/netfilter/nf_tables_api.c 				nft_clear(net, nft_trans_obj(trans));
net              6947 net/netfilter/nf_tables_api.c 			nft_clear(net, nft_trans_flowtable(trans));
net              6958 net/netfilter/nf_tables_api.c 			nft_unregister_flowtable_net_hooks(net,
net              6964 net/netfilter/nf_tables_api.c 	nf_tables_gen_notify(net, skb, NFT_MSG_NEWGEN);
net              6965 net/netfilter/nf_tables_api.c 	nf_tables_commit_release(net);
net              6970 net/netfilter/nf_tables_api.c static void nf_tables_module_autoload(struct net *net)
net              6975 net/netfilter/nf_tables_api.c 	list_splice_init(&net->nft.module_list, &module_list);
net              6976 net/netfilter/nf_tables_api.c 	mutex_unlock(&net->nft.commit_mutex);
net              6981 net/netfilter/nf_tables_api.c 	mutex_lock(&net->nft.commit_mutex);
net              6982 net/netfilter/nf_tables_api.c 	list_splice(&module_list, &net->nft.module_list);
net              7014 net/netfilter/nf_tables_api.c static int __nf_tables_abort(struct net *net, bool autoload)
net              7019 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe_reverse(trans, next, &net->nft.commit_list,
net              7025 net/netfilter/nf_tables_api.c 					nf_tables_table_disable(net,
net              7035 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, trans->ctx.table);
net              7046 net/netfilter/nf_tables_api.c 				nf_tables_unregister_hook(trans->ctx.net,
net              7053 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, trans->ctx.chain);
net              7065 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, nft_trans_rule(trans));
net              7079 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, nft_trans_set(trans));
net              7088 net/netfilter/nf_tables_api.c 			te->set->ops->remove(net, te->set, &te->elem);
net              7094 net/netfilter/nf_tables_api.c 			nft_set_elem_activate(net, te->set, &te->elem);
net              7095 net/netfilter/nf_tables_api.c 			te->set->ops->activate(net, te->set, &te->elem);
net              7111 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, nft_trans_obj(trans));
net              7117 net/netfilter/nf_tables_api.c 			nft_unregister_flowtable_net_hooks(net,
net              7122 net/netfilter/nf_tables_api.c 			nft_clear(trans->ctx.net, nft_trans_flowtable(trans));
net              7131 net/netfilter/nf_tables_api.c 					 &net->nft.commit_list, list) {
net              7137 net/netfilter/nf_tables_api.c 		nf_tables_module_autoload(net);
net              7139 net/netfilter/nf_tables_api.c 		nf_tables_module_autoload_cleanup(net);
net              7144 net/netfilter/nf_tables_api.c static void nf_tables_cleanup(struct net *net)
net              7146 net/netfilter/nf_tables_api.c 	nft_validate_state_update(net, NFT_VALIDATE_SKIP);
net              7149 net/netfilter/nf_tables_api.c static int nf_tables_abort(struct net *net, struct sk_buff *skb, bool autoload)
net              7151 net/netfilter/nf_tables_api.c 	int ret = __nf_tables_abort(net, autoload);
net              7153 net/netfilter/nf_tables_api.c 	mutex_unlock(&net->nft.commit_mutex);
net              7158 net/netfilter/nf_tables_api.c static bool nf_tables_valid_genid(struct net *net, u32 genid)
net              7162 net/netfilter/nf_tables_api.c 	mutex_lock(&net->nft.commit_mutex);
net              7164 net/netfilter/nf_tables_api.c 	genid_ok = genid == 0 || net->nft.base_seq == genid;
net              7166 net/netfilter/nf_tables_api.c 		mutex_unlock(&net->nft.commit_mutex);
net              7290 net/netfilter/nf_tables_api.c 		if (!nft_is_active_next(ctx->net, set))
net              7301 net/netfilter/nf_tables_api.c 			iter.genmask	= nft_genmask_next(ctx->net);
net              7468 net/netfilter/nf_tables_api.c 	u8 genmask = nft_genmask_next(ctx->net);
net              7501 net/netfilter/nf_tables_api.c 		chain = nft_chain_lookup(ctx->net, ctx->table,
net              7674 net/netfilter/nf_tables_api.c 	nf_tables_unregister_hook(ctx->net, ctx->chain->table, ctx->chain);
net              7688 net/netfilter/nf_tables_api.c static void __nft_release_tables(struct net *net)
net              7697 net/netfilter/nf_tables_api.c 		.net	= net,
net              7701 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(table, nt, &net->nft.tables, list) {
net              7705 net/netfilter/nf_tables_api.c 			nf_tables_unregister_hook(net, table, chain);
net              7742 net/netfilter/nf_tables_api.c static int __net_init nf_tables_init_net(struct net *net)
net              7744 net/netfilter/nf_tables_api.c 	INIT_LIST_HEAD(&net->nft.tables);
net              7745 net/netfilter/nf_tables_api.c 	INIT_LIST_HEAD(&net->nft.commit_list);
net              7746 net/netfilter/nf_tables_api.c 	INIT_LIST_HEAD(&net->nft.module_list);
net              7747 net/netfilter/nf_tables_api.c 	mutex_init(&net->nft.commit_mutex);
net              7748 net/netfilter/nf_tables_api.c 	net->nft.base_seq = 1;
net              7749 net/netfilter/nf_tables_api.c 	net->nft.validate_state = NFT_VALIDATE_SKIP;
net              7754 net/netfilter/nf_tables_api.c static void __net_exit nf_tables_exit_net(struct net *net)
net              7756 net/netfilter/nf_tables_api.c 	mutex_lock(&net->nft.commit_mutex);
net              7757 net/netfilter/nf_tables_api.c 	if (!list_empty(&net->nft.commit_list))
net              7758 net/netfilter/nf_tables_api.c 		__nf_tables_abort(net, false);
net              7759 net/netfilter/nf_tables_api.c 	__nft_release_tables(net);
net              7760 net/netfilter/nf_tables_api.c 	mutex_unlock(&net->nft.commit_mutex);
net              7761 net/netfilter/nf_tables_api.c 	WARN_ON_ONCE(!list_empty(&net->nft.tables));
net              7762 net/netfilter/nf_tables_api.c 	WARN_ON_ONCE(!list_empty(&net->nft.module_list));
net               152 net/netfilter/nf_tables_core.c 	const struct net *net = nft_net(pkt);
net               159 net/netfilter/nf_tables_core.c 	bool genbit = READ_ONCE(net->nft.gencursor);
net                31 net/netfilter/nf_tables_offload.c struct nft_flow_rule *nft_flow_rule_create(struct net *net,
net                61 net/netfilter/nf_tables_offload.c 	ctx->net = net;
net               238 net/netfilter/nf_tables_offload.c 	bo.net = dev_net(dev);
net               264 net/netfilter/nf_tables_offload.c 	bo.net = dev_net(dev);
net               283 net/netfilter/nf_tables_offload.c 	bo.net = dev_net(dev);
net               328 net/netfilter/nf_tables_offload.c int nft_flow_rule_offload_commit(struct net *net)
net               334 net/netfilter/nf_tables_offload.c 	list_for_each_entry(trans, &net->nft.commit_list, list) {
net               385 net/netfilter/nf_tables_offload.c 	list_for_each_entry(trans, &net->nft.commit_list, list) {
net               407 net/netfilter/nf_tables_offload.c 	struct net *net = dev_net(dev);
net               411 net/netfilter/nf_tables_offload.c 	list_for_each_entry(table, &net->nft.tables, list) {
net               435 net/netfilter/nf_tables_offload.c 	struct net *net = dev_net(dev);
net               438 net/netfilter/nf_tables_offload.c 	mutex_lock(&net->nft.commit_mutex);
net               446 net/netfilter/nf_tables_offload.c 	mutex_unlock(&net->nft.commit_mutex);
net               465 net/netfilter/nf_tables_offload.c 	struct net *net = dev_net(dev);
net               471 net/netfilter/nf_tables_offload.c 	mutex_lock(&net->nft.commit_mutex);
net               475 net/netfilter/nf_tables_offload.c 	mutex_unlock(&net->nft.commit_mutex);
net               132 net/netfilter/nfnetlink.c int nfnetlink_has_listeners(struct net *net, unsigned int group)
net               134 net/netfilter/nfnetlink.c 	return netlink_has_listeners(net->nfnl, group);
net               138 net/netfilter/nfnetlink.c int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
net               141 net/netfilter/nfnetlink.c 	return nlmsg_notify(net->nfnl, skb, portid, group, echo, flags);
net               145 net/netfilter/nfnetlink.c int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error)
net               147 net/netfilter/nfnetlink.c 	return netlink_set_err(net->nfnl, portid, group, error);
net               151 net/netfilter/nfnetlink.c int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid,
net               154 net/netfilter/nfnetlink.c 	return netlink_unicast(net->nfnl, skb, portid, flags);
net               162 net/netfilter/nfnetlink.c 	struct net *net = sock_net(skb->sk);
net               218 net/netfilter/nfnetlink.c 			err = nc->call_rcu(net, net->nfnl, skb, nlh,
net               229 net/netfilter/nfnetlink.c 				err = nc->call(net, net->nfnl, skb, nlh,
net               301 net/netfilter/nfnetlink.c 	struct net *net = sock_net(skb->sk);
net               347 net/netfilter/nfnetlink.c 	if (!ss->valid_genid(net, genid)) {
net               433 net/netfilter/nfnetlink.c 				err = nc->call_batch(net, net->nfnl, skb, nlh,
net               479 net/netfilter/nfnetlink.c 		ss->abort(net, oskb, true);
net               485 net/netfilter/nfnetlink.c 		err = ss->commit(net, oskb);
net               490 net/netfilter/nfnetlink.c 			ss->abort(net, oskb, false);
net               494 net/netfilter/nfnetlink.c 		ss->abort(net, oskb, false);
net               497 net/netfilter/nfnetlink.c 		ss->cleanup(net);
net               567 net/netfilter/nfnetlink.c static int nfnetlink_bind(struct net *net, int group)
net               586 net/netfilter/nfnetlink.c static int __net_init nfnetlink_net_init(struct net *net)
net               597 net/netfilter/nfnetlink.c 	nfnl = netlink_kernel_create(net, NETLINK_NETFILTER, &cfg);
net               600 net/netfilter/nfnetlink.c 	net->nfnl_stash = nfnl;
net               601 net/netfilter/nfnetlink.c 	rcu_assign_pointer(net->nfnl, nfnl);
net               607 net/netfilter/nfnetlink.c 	struct net *net;
net               609 net/netfilter/nfnetlink.c 	list_for_each_entry(net, net_exit_list, exit_list)
net               610 net/netfilter/nfnetlink.c 		RCU_INIT_POINTER(net->nfnl, NULL);
net               612 net/netfilter/nfnetlink.c 	list_for_each_entry(net, net_exit_list, exit_list)
net               613 net/netfilter/nfnetlink.c 		netlink_kernel_release(net->nfnl_stash);
net                47 net/netfilter/nfnetlink_acct.c static int nfnl_acct_new(struct net *net, struct sock *nfnl,
net                64 net/netfilter/nfnetlink_acct.c 	list_for_each_entry(nfacct, &net->nfnl_acct_list, head) {
net               126 net/netfilter/nfnetlink_acct.c 	list_add_tail_rcu(&nfacct->head, &net->nfnl_acct_list);
net               190 net/netfilter/nfnetlink_acct.c 	struct net *net = sock_net(skb->sk);
net               202 net/netfilter/nfnetlink_acct.c 	list_for_each_entry_rcu(cur, &net->nfnl_acct_list, head) {
net               267 net/netfilter/nfnetlink_acct.c static int nfnl_acct_get(struct net *net, struct sock *nfnl,
net               291 net/netfilter/nfnetlink_acct.c 	list_for_each_entry(cur, &net->nfnl_acct_list, head) {
net               340 net/netfilter/nfnetlink_acct.c static int nfnl_acct_del(struct net *net, struct sock *nfnl,
net               350 net/netfilter/nfnetlink_acct.c 		list_for_each_entry_safe(cur, tmp, &net->nfnl_acct_list, head)
net               357 net/netfilter/nfnetlink_acct.c 	list_for_each_entry(cur, &net->nfnl_acct_list, head) {
net               403 net/netfilter/nfnetlink_acct.c struct nf_acct *nfnl_acct_find_get(struct net *net, const char *acct_name)
net               408 net/netfilter/nfnetlink_acct.c 	list_for_each_entry_rcu(cur, &net->nfnl_acct_list, head) {
net               445 net/netfilter/nfnetlink_acct.c static void nfnl_overquota_report(struct net *net, struct nf_acct *nfacct)
net               460 net/netfilter/nfnetlink_acct.c 	netlink_broadcast(net->nfnl, skb, 0, NFNLGRP_ACCT_QUOTA,
net               464 net/netfilter/nfnetlink_acct.c int nfnl_acct_overquota(struct net *net, struct nf_acct *nfacct)
net               482 net/netfilter/nfnetlink_acct.c 		nfnl_overquota_report(net, nfacct);
net               489 net/netfilter/nfnetlink_acct.c static int __net_init nfnl_acct_net_init(struct net *net)
net               491 net/netfilter/nfnetlink_acct.c 	INIT_LIST_HEAD(&net->nfnl_acct_list);
net               496 net/netfilter/nfnetlink_acct.c static void __net_exit nfnl_acct_net_exit(struct net *net)
net               500 net/netfilter/nfnetlink_acct.c 	list_for_each_entry_safe(cur, tmp, &net->nfnl_acct_list, head) {
net               411 net/netfilter/nfnetlink_cthelper.c static int nfnl_cthelper_new(struct net *net, struct sock *nfnl,
net               615 net/netfilter/nfnetlink_cthelper.c static int nfnl_cthelper_get(struct net *net, struct sock *nfnl,
net               686 net/netfilter/nfnetlink_cthelper.c static int nfnl_cthelper_del(struct net *net, struct sock *nfnl,
net                48 net/netfilter/nfnetlink_cttimeout.c 			  struct net *net, const struct nlattr *attr)
net                67 net/netfilter/nfnetlink_cttimeout.c 	ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout);
net                74 net/netfilter/nfnetlink_cttimeout.c static int cttimeout_new_timeout(struct net *net, struct sock *ctnl,
net                97 net/netfilter/nfnetlink_cttimeout.c 	list_for_each_entry(timeout, &net->nfct_timeout_list, head) {
net               119 net/netfilter/nfnetlink_cttimeout.c 							 net, cda[CTA_TIMEOUT_DATA]);
net               140 net/netfilter/nfnetlink_cttimeout.c 	ret = ctnl_timeout_parse_policy(&timeout->timeout.data, l4proto, net,
net               149 net/netfilter/nfnetlink_cttimeout.c 	list_add_tail_rcu(&timeout->head, &net->nfct_timeout_list);
net               209 net/netfilter/nfnetlink_cttimeout.c 	struct net *net = sock_net(skb->sk);
net               220 net/netfilter/nfnetlink_cttimeout.c 	list_for_each_entry_rcu(cur, &net->nfct_timeout_list, head) {
net               241 net/netfilter/nfnetlink_cttimeout.c static int cttimeout_get_timeout(struct net *net, struct sock *ctnl,
net               262 net/netfilter/nfnetlink_cttimeout.c 	list_for_each_entry(cur, &net->nfct_timeout_list, head) {
net               294 net/netfilter/nfnetlink_cttimeout.c static int ctnl_timeout_try_del(struct net *net, struct ctnl_timeout *timeout)
net               304 net/netfilter/nfnetlink_cttimeout.c 		nf_ct_untimeout(net, &timeout->timeout);
net               312 net/netfilter/nfnetlink_cttimeout.c static int cttimeout_del_timeout(struct net *net, struct sock *ctnl,
net               323 net/netfilter/nfnetlink_cttimeout.c 		list_for_each_entry_safe(cur, tmp, &net->nfct_timeout_list,
net               325 net/netfilter/nfnetlink_cttimeout.c 			ctnl_timeout_try_del(net, cur);
net               331 net/netfilter/nfnetlink_cttimeout.c 	list_for_each_entry(cur, &net->nfct_timeout_list, head) {
net               335 net/netfilter/nfnetlink_cttimeout.c 		ret = ctnl_timeout_try_del(net, cur);
net               344 net/netfilter/nfnetlink_cttimeout.c static int cttimeout_default_set(struct net *net, struct sock *ctnl,
net               368 net/netfilter/nfnetlink_cttimeout.c 	ret = ctnl_timeout_parse_policy(NULL, l4proto, net,
net               379 net/netfilter/nfnetlink_cttimeout.c cttimeout_default_fill_info(struct net *net, struct sk_buff *skb, u32 portid,
net               423 net/netfilter/nfnetlink_cttimeout.c static int cttimeout_default_get(struct net *net, struct sock *ctnl,
net               449 net/netfilter/nfnetlink_cttimeout.c 		timeouts = &nf_icmp_pernet(net)->timeout;
net               452 net/netfilter/nfnetlink_cttimeout.c 		timeouts = nf_tcp_pernet(net)->timeouts;
net               456 net/netfilter/nfnetlink_cttimeout.c 		timeouts = nf_udp_pernet(net)->timeouts;
net               460 net/netfilter/nfnetlink_cttimeout.c 		timeouts = nf_dccp_pernet(net)->dccp_timeout;
net               464 net/netfilter/nfnetlink_cttimeout.c 		timeouts = &nf_icmpv6_pernet(net)->timeout;
net               468 net/netfilter/nfnetlink_cttimeout.c 		timeouts = nf_sctp_pernet(net)->timeouts;
net               473 net/netfilter/nfnetlink_cttimeout.c 		timeouts = nf_gre_pernet(net)->timeouts;
net               477 net/netfilter/nfnetlink_cttimeout.c 		timeouts = &nf_generic_pernet(net)->timeout;
net               493 net/netfilter/nfnetlink_cttimeout.c 	ret = cttimeout_default_fill_info(net, skb2, NETLINK_CB(skb).portid,
net               513 net/netfilter/nfnetlink_cttimeout.c static struct nf_ct_timeout *ctnl_timeout_find_get(struct net *net,
net               518 net/netfilter/nfnetlink_cttimeout.c 	list_for_each_entry_rcu(timeout, &net->nfct_timeout_list, head) {
net               574 net/netfilter/nfnetlink_cttimeout.c static int __net_init cttimeout_net_init(struct net *net)
net               576 net/netfilter/nfnetlink_cttimeout.c 	INIT_LIST_HEAD(&net->nfct_timeout_list);
net               581 net/netfilter/nfnetlink_cttimeout.c static void __net_exit cttimeout_net_exit(struct net *net)
net               585 net/netfilter/nfnetlink_cttimeout.c 	nf_ct_unconfirmed_destroy(net);
net               586 net/netfilter/nfnetlink_cttimeout.c 	nf_ct_untimeout(net, NULL);
net               588 net/netfilter/nfnetlink_cttimeout.c 	list_for_each_entry_safe(cur, tmp, &net->nfct_timeout_list, head) {
net                64 net/netfilter/nfnetlink_log.c 	struct net *net;
net                90 net/netfilter/nfnetlink_log.c static struct nfnl_log_net *nfnl_log_pernet(struct net *net)
net                92 net/netfilter/nfnetlink_log.c 	return net_generic(net, nfnl_log_net_id);
net               139 net/netfilter/nfnetlink_log.c 	put_net(inst->net);
net               154 net/netfilter/nfnetlink_log.c instance_create(struct net *net, u_int16_t group_num,
net               158 net/netfilter/nfnetlink_log.c 	struct nfnl_log_net *log = nfnl_log_pernet(net);
net               186 net/netfilter/nfnetlink_log.c 	inst->net = get_net(net);
net               322 net/netfilter/nfnetlink_log.c nfulnl_alloc_skb(struct net *net, u32 peer_portid, unsigned int inst_size,
net               359 net/netfilter/nfnetlink_log.c 	nfnetlink_unicast(inst->skb, inst->net, inst->peer_portid,
net               674 net/netfilter/nfnetlink_log.c nfulnl_log_packet(struct net *net,
net               689 net/netfilter/nfnetlink_log.c 	struct nfnl_log_net *log = nfnl_log_pernet(net);
net               785 net/netfilter/nfnetlink_log.c 		inst->skb = nfulnl_alloc_skb(net, inst->peer_portid,
net               822 net/netfilter/nfnetlink_log.c 	struct nfnl_log_net *log = nfnl_log_pernet(n->net);
net               848 net/netfilter/nfnetlink_log.c static int nfulnl_recv_unsupp(struct net *net, struct sock *ctnl,
net               872 net/netfilter/nfnetlink_log.c static int nfulnl_recv_config(struct net *net, struct sock *ctnl,
net               881 net/netfilter/nfnetlink_log.c 	struct nfnl_log_net *log = nfnl_log_pernet(net);
net               892 net/netfilter/nfnetlink_log.c 			return nf_log_bind_pf(net, pf, &nfulnl_logger);
net               894 net/netfilter/nfnetlink_log.c 			nf_log_unbind_pf(net, pf);
net               935 net/netfilter/nfnetlink_log.c 			inst = instance_create(net, group_num,
net              1016 net/netfilter/nfnetlink_log.c static struct hlist_node *get_first(struct net *net, struct iter_state *st)
net              1022 net/netfilter/nfnetlink_log.c 	log = nfnl_log_pernet(net);
net              1033 net/netfilter/nfnetlink_log.c static struct hlist_node *get_next(struct net *net, struct iter_state *st,
net              1044 net/netfilter/nfnetlink_log.c 		log = nfnl_log_pernet(net);
net              1051 net/netfilter/nfnetlink_log.c static struct hlist_node *get_idx(struct net *net, struct iter_state *st,
net              1055 net/netfilter/nfnetlink_log.c 	head = get_first(net, st);
net              1058 net/netfilter/nfnetlink_log.c 		while (pos && (head = get_next(net, st, head)))
net              1103 net/netfilter/nfnetlink_log.c static int __net_init nfnl_log_net_init(struct net *net)
net              1106 net/netfilter/nfnetlink_log.c 	struct nfnl_log_net *log = nfnl_log_pernet(net);
net              1118 net/netfilter/nfnetlink_log.c 	proc = proc_create_net("nfnetlink_log", 0440, net->nf.proc_netfilter,
net              1123 net/netfilter/nfnetlink_log.c 	root_uid = make_kuid(net->user_ns, 0);
net              1124 net/netfilter/nfnetlink_log.c 	root_gid = make_kgid(net->user_ns, 0);
net              1131 net/netfilter/nfnetlink_log.c static void __net_exit nfnl_log_net_exit(struct net *net)
net              1133 net/netfilter/nfnetlink_log.c 	struct nfnl_log_net *log = nfnl_log_pernet(net);
net              1137 net/netfilter/nfnetlink_log.c 	remove_proc_entry("nfnetlink_log", net->nf.proc_netfilter);
net              1139 net/netfilter/nfnetlink_log.c 	nf_log_unset(net, &nfulnl_logger);
net               197 net/netfilter/nfnetlink_osf.c 	     const struct nf_osf_info *info, struct net *net,
net               233 net/netfilter/nfnetlink_osf.c 			nf_log_packet(net, family, hooknum, skb,
net               247 net/netfilter/nfnetlink_osf.c 		nf_log_packet(net, family, hooknum, skb, in, out, NULL,
net               295 net/netfilter/nfnetlink_osf.c static int nfnl_osf_add_callback(struct net *net, struct sock *ctnl,
net               342 net/netfilter/nfnetlink_osf.c static int nfnl_osf_remove_callback(struct net *net, struct sock *ctnl,
net                91 net/netfilter/nfnetlink_queue.c static struct nfnl_queue_net *nfnl_queue_pernet(struct net *net)
net                93 net/netfilter/nfnetlink_queue.c 	return net_generic(net, nfnl_queue_net_id);
net               237 net/netfilter/nfnetlink_queue.c 			err = ct_hook->update(entry->state.net, entry->skb);
net               375 net/netfilter/nfnetlink_queue.c nfqnl_build_packet_message(struct net *net, struct nfqnl_instance *queue,
net               651 net/netfilter/nfnetlink_queue.c __nfqnl_enqueue_packet(struct net *net, struct nfqnl_instance *queue,
net               659 net/netfilter/nfnetlink_queue.c 	nskb = nfqnl_build_packet_message(net, queue, entry, &packet_id_ptr);
net               684 net/netfilter/nfnetlink_queue.c 	err = nfnetlink_unicast(nskb, net, queue->peer_portid, MSG_DONTWAIT);
net               747 net/netfilter/nfnetlink_queue.c __nfqnl_enqueue_packet_gso(struct net *net, struct nfqnl_instance *queue,
net               758 net/netfilter/nfnetlink_queue.c 		ret = __nfqnl_enqueue_packet(net, queue, entry);
net               769 net/netfilter/nfnetlink_queue.c 		ret = __nfqnl_enqueue_packet(net, queue, entry_seg);
net               783 net/netfilter/nfnetlink_queue.c 	struct net *net = entry->state.net;
net               784 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net               806 net/netfilter/nfnetlink_queue.c 		return __nfqnl_enqueue_packet(net, queue, entry);
net               821 net/netfilter/nfnetlink_queue.c 			err = __nfqnl_enqueue_packet_gso(net, queue,
net               925 net/netfilter/nfnetlink_queue.c nfqnl_dev_drop(struct net *net, int ifindex)
net               928 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net               959 net/netfilter/nfnetlink_queue.c static void nfqnl_nf_hook_drop(struct net *net)
net               961 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net               978 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(n->net);
net              1059 net/netfilter/nfnetlink_queue.c static int nfqnl_recv_verdict_batch(struct net *net, struct sock *ctnl,
net              1072 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net              1167 net/netfilter/nfnetlink_queue.c static int nfqnl_recv_verdict(struct net *net, struct sock *ctnl,
net              1182 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net              1233 net/netfilter/nfnetlink_queue.c static int nfqnl_recv_unsupp(struct net *net, struct sock *ctnl,
net              1254 net/netfilter/nfnetlink_queue.c static int nfqnl_recv_config(struct net *net, struct sock *ctnl,
net              1263 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net              1411 net/netfilter/nfnetlink_queue.c 	struct net *net;
net              1417 net/netfilter/nfnetlink_queue.c 	net = seq_file_net(seq);
net              1418 net/netfilter/nfnetlink_queue.c 	q = nfnl_queue_pernet(net);
net              1429 net/netfilter/nfnetlink_queue.c 	struct net *net = seq_file_net(seq);
net              1438 net/netfilter/nfnetlink_queue.c 		q = nfnl_queue_pernet(net);
net              1495 net/netfilter/nfnetlink_queue.c static int __net_init nfnl_queue_net_init(struct net *net)
net              1498 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net              1506 net/netfilter/nfnetlink_queue.c 	if (!proc_create_net("nfnetlink_queue", 0440, net->nf.proc_netfilter,
net              1510 net/netfilter/nfnetlink_queue.c 	nf_register_queue_handler(net, &nfqh);
net              1514 net/netfilter/nfnetlink_queue.c static void __net_exit nfnl_queue_net_exit(struct net *net)
net              1516 net/netfilter/nfnetlink_queue.c 	struct nfnl_queue_net *q = nfnl_queue_pernet(net);
net              1519 net/netfilter/nfnetlink_queue.c 	nf_unregister_queue_handler(net);
net              1521 net/netfilter/nfnetlink_queue.c 	remove_proc_entry("nfnetlink_queue", net->nf.proc_netfilter);
net               321 net/netfilter/nft_chain_filter.c 		.net	= dev_net(dev),
net               328 net/netfilter/nft_chain_filter.c 	mutex_lock(&ctx.net->nft.commit_mutex);
net               329 net/netfilter/nft_chain_filter.c 	list_for_each_entry(table, &ctx.net->nft.tables, list) {
net               343 net/netfilter/nft_chain_filter.c 	mutex_unlock(&ctx.net->nft.commit_mutex);
net                78 net/netfilter/nft_chain_nat.c static int nft_nat_inet_reg(struct net *net, const struct nf_hook_ops *ops)
net                80 net/netfilter/nft_chain_nat.c 	return nf_nat_inet_register_fn(net, ops);
net                83 net/netfilter/nft_chain_nat.c static void nft_nat_inet_unreg(struct net *net, const struct nf_hook_ops *ops)
net                85 net/netfilter/nft_chain_nat.c 	nf_nat_inet_unregister_fn(net, ops);
net                45 net/netfilter/nft_chain_route.c 			err = ip_route_me_harder(state->net, skb, RTN_UNSPEC);
net                95 net/netfilter/nft_chain_route.c 		err = nf_ip6_route_me_harder(state->net, skb);
net               140 net/netfilter/nft_compat.c 	par->net	= ctx->net;
net               258 net/netfilter/nft_compat.c 	par.net = ctx->net;
net               384 net/netfilter/nft_compat.c 	par->net	= ctx->net;
net               490 net/netfilter/nft_compat.c 	par.net = ctx->net;
net               602 net/netfilter/nft_compat.c static int nfnl_compat_get_rcu(struct net *net, struct sock *nfnl,
net                83 net/netfilter/nft_connlimit.c 	return nf_ct_netns_get(ctx->net, ctx->family);
net                89 net/netfilter/nft_connlimit.c 	nf_ct_netns_put(ctx->net, ctx->family);
net               218 net/netfilter/nft_connlimit.c static bool nft_connlimit_gc(struct net *net, const struct nft_expr *expr)
net               224 net/netfilter/nft_connlimit.c 	ret = nf_conncount_gc_list(net, &priv->list);
net               509 net/netfilter/nft_ct.c 	err = nf_ct_netns_get(ctx->net, ctx->family);
net               516 net/netfilter/nft_ct.c 		nf_ct_set_acct(ctx->net, true);
net               526 net/netfilter/nft_ct.c 		nf_connlabels_put(ctx->net);
net               562 net/netfilter/nft_ct.c 		err = nf_connlabels_get(ctx->net, (len * BITS_PER_BYTE) - 1);
net               610 net/netfilter/nft_ct.c 	err = nf_ct_netns_get(ctx->net, ctx->family);
net               624 net/netfilter/nft_ct.c 	nf_ct_netns_put(ctx->net, ctx->family);
net               633 net/netfilter/nft_ct.c 	nf_ct_netns_put(ctx->net, ctx->family);
net               795 net/netfilter/nft_ct.c 			    struct net *net, const struct nlattr *attr)
net               814 net/netfilter/nft_ct.c 	ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeouts);
net               895 net/netfilter/nft_ct.c 	ret = nft_ct_timeout_parse_policy(&timeout->data, l4proto, ctx->net,
net               903 net/netfilter/nft_ct.c 	ret = nf_ct_netns_get(ctx->net, ctx->family);
net               922 net/netfilter/nft_ct.c 	nf_ct_untimeout(ctx->net, timeout);
net               923 net/netfilter/nft_ct.c 	nf_ct_netns_put(ctx->net, ctx->family);
net              1035 net/netfilter/nft_ct.c 	err = nf_ct_netns_get(ctx->net, ctx->family);
net              1059 net/netfilter/nft_ct.c 	nf_ct_netns_put(ctx->net, ctx->family);
net              1186 net/netfilter/nft_ct.c 	return nf_ct_netns_get(ctx->net, ctx->family);
net              1192 net/netfilter/nft_ct.c 	nf_ct_netns_put(ctx->net, ctx->family);
net               133 net/netfilter/nft_dynset.c 	u8 genmask = nft_genmask_next(ctx->net);
net               138 net/netfilter/nft_dynset.c 	lockdep_assert_held(&ctx->net->nft.commit_mutex);
net               154 net/netfilter/nft_dynset.c 	set = nft_set_lookup_global(ctx->net, ctx->table,
net                70 net/netfilter/nft_exthdr.c static int ipv4_find_option(struct net *net, struct sk_buff *skb,
net                98 net/netfilter/nft_exthdr.c 	if (__ip_options_compile(net, opt, NULL, &info))
net               163 net/netfilter/nft_flow_offload.c 	u8 genmask = nft_genmask_next(ctx->net);
net               177 net/netfilter/nft_flow_offload.c 	return nf_ct_netns_get(ctx->net, ctx->family);
net               200 net/netfilter/nft_flow_offload.c 	nf_ct_netns_put(ctx->net, ctx->family);
net                62 net/netfilter/nft_lookup.c 	u8 genmask = nft_genmask_next(ctx->net);
net                71 net/netfilter/nft_lookup.c 	set = nft_set_lookup_global(ctx->net, ctx->table, tb[NFTA_LOOKUP_SET],
net               205 net/netfilter/nft_lookup.c 	iter.genmask	= nft_genmask_next(ctx->net);
net                77 net/netfilter/nft_masq.c 	return nf_ct_netns_get(ctx->net, ctx->family);
net               124 net/netfilter/nft_masq.c 	nf_ct_netns_put(ctx->net, NFPROTO_IPV4);
net               170 net/netfilter/nft_masq.c 	nf_ct_netns_put(ctx->net, NFPROTO_IPV6);
net               225 net/netfilter/nft_masq.c 	nf_ct_netns_put(ctx->net, NFPROTO_INET);
net               202 net/netfilter/nft_nat.c 	return nf_ct_netns_get(ctx->net, family);
net               255 net/netfilter/nft_nat.c 	nf_ct_netns_put(ctx->net, priv->family);
net                30 net/netfilter/nft_objref.c 	u8 genmask = nft_genmask_next(ctx->net);
net                38 net/netfilter/nft_objref.c 	obj = nft_obj_lookup(ctx->net, ctx->table,
net               127 net/netfilter/nft_objref.c 	u8 genmask = nft_genmask_next(ctx->net);
net               131 net/netfilter/nft_objref.c 	set = nft_set_lookup_global(ctx->net, ctx->table,
net                79 net/netfilter/nft_redir.c 	return nf_ct_netns_get(ctx->net, ctx->family);
net               129 net/netfilter/nft_redir.c 	nf_ct_netns_put(ctx->net, NFPROTO_IPV4);
net               178 net/netfilter/nft_redir.c 	nf_ct_netns_put(ctx->net, NFPROTO_IPV6);
net               220 net/netfilter/nft_redir.c 	nf_ct_netns_put(ctx->net, NFPROTO_INET);
net                76 net/netfilter/nft_set_bitmap.c static bool nft_bitmap_lookup(const struct net *net, const struct nft_set *set,
net                80 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_cur(net);
net               106 net/netfilter/nft_set_bitmap.c static void *nft_bitmap_get(const struct net *net, const struct nft_set *set,
net               110 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_cur(net);
net               123 net/netfilter/nft_set_bitmap.c static int nft_bitmap_insert(const struct net *net, const struct nft_set *set,
net               129 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_next(net);
net               146 net/netfilter/nft_set_bitmap.c static void nft_bitmap_remove(const struct net *net,
net               152 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_next(net);
net               161 net/netfilter/nft_set_bitmap.c static void nft_bitmap_activate(const struct net *net,
net               167 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_next(net);
net               173 net/netfilter/nft_set_bitmap.c 	nft_set_elem_change_active(net, set, &be->ext);
net               176 net/netfilter/nft_set_bitmap.c static bool nft_bitmap_flush(const struct net *net,
net               180 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_next(net);
net               187 net/netfilter/nft_set_bitmap.c 	nft_set_elem_change_active(net, set, &be->ext);
net               192 net/netfilter/nft_set_bitmap.c static void *nft_bitmap_deactivate(const struct net *net,
net               198 net/netfilter/nft_set_bitmap.c 	u8 genmask = nft_genmask_next(net);
net               209 net/netfilter/nft_set_bitmap.c 	nft_set_elem_change_active(net, set, &be->ext);
net                77 net/netfilter/nft_set_hash.c static bool nft_rhash_lookup(const struct net *net, const struct nft_set *set,
net                83 net/netfilter/nft_set_hash.c 		.genmask = nft_genmask_cur(net),
net                95 net/netfilter/nft_set_hash.c static void *nft_rhash_get(const struct net *net, const struct nft_set *set,
net               101 net/netfilter/nft_set_hash.c 		.genmask = nft_genmask_cur(net),
net               158 net/netfilter/nft_set_hash.c static int nft_rhash_insert(const struct net *net, const struct nft_set *set,
net               165 net/netfilter/nft_set_hash.c 		.genmask = nft_genmask_next(net),
net               182 net/netfilter/nft_set_hash.c static void nft_rhash_activate(const struct net *net, const struct nft_set *set,
net               187 net/netfilter/nft_set_hash.c 	nft_set_elem_change_active(net, set, &he->ext);
net               191 net/netfilter/nft_set_hash.c static bool nft_rhash_flush(const struct net *net,
net               197 net/netfilter/nft_set_hash.c 	    !nft_is_active(net, &he->ext)) {
net               198 net/netfilter/nft_set_hash.c 		nft_set_elem_change_active(net, set, &he->ext);
net               204 net/netfilter/nft_set_hash.c static void *nft_rhash_deactivate(const struct net *net,
net               211 net/netfilter/nft_set_hash.c 		.genmask = nft_genmask_next(net),
net               219 net/netfilter/nft_set_hash.c 	    !nft_rhash_flush(net, set, he))
net               227 net/netfilter/nft_set_hash.c static void nft_rhash_remove(const struct net *net,
net               321 net/netfilter/nft_set_hash.c 			    expr->ops->gc(read_pnet(&set->net), expr))
net               422 net/netfilter/nft_set_hash.c static bool nft_hash_lookup(const struct net *net, const struct nft_set *set,
net               426 net/netfilter/nft_set_hash.c 	u8 genmask = nft_genmask_cur(net);
net               442 net/netfilter/nft_set_hash.c static void *nft_hash_get(const struct net *net, const struct nft_set *set,
net               446 net/netfilter/nft_set_hash.c 	u8 genmask = nft_genmask_cur(net);
net               460 net/netfilter/nft_set_hash.c static bool nft_hash_lookup_fast(const struct net *net,
net               465 net/netfilter/nft_set_hash.c 	u8 genmask = nft_genmask_cur(net);
net               500 net/netfilter/nft_set_hash.c static int nft_hash_insert(const struct net *net, const struct nft_set *set,
net               506 net/netfilter/nft_set_hash.c 	u8 genmask = nft_genmask_next(net);
net               522 net/netfilter/nft_set_hash.c static void nft_hash_activate(const struct net *net, const struct nft_set *set,
net               527 net/netfilter/nft_set_hash.c 	nft_set_elem_change_active(net, set, &he->ext);
net               530 net/netfilter/nft_set_hash.c static bool nft_hash_flush(const struct net *net,
net               535 net/netfilter/nft_set_hash.c 	nft_set_elem_change_active(net, set, &he->ext);
net               539 net/netfilter/nft_set_hash.c static void *nft_hash_deactivate(const struct net *net,
net               545 net/netfilter/nft_set_hash.c 	u8 genmask = nft_genmask_next(net);
net               553 net/netfilter/nft_set_hash.c 			nft_set_elem_change_active(net, set, &he->ext);
net               560 net/netfilter/nft_set_hash.c static void nft_hash_remove(const struct net *net,
net                47 net/netfilter/nft_set_rbtree.c static bool __nft_rbtree_lookup(const struct net *net, const struct nft_set *set,
net                53 net/netfilter/nft_set_rbtree.c 	u8 genmask = nft_genmask_cur(net);
net               110 net/netfilter/nft_set_rbtree.c static bool nft_rbtree_lookup(const struct net *net, const struct nft_set *set,
net               117 net/netfilter/nft_set_rbtree.c 	ret = __nft_rbtree_lookup(net, set, key, ext, seq);
net               123 net/netfilter/nft_set_rbtree.c 	ret = __nft_rbtree_lookup(net, set, key, ext, seq);
net               129 net/netfilter/nft_set_rbtree.c static bool __nft_rbtree_get(const struct net *net, const struct nft_set *set,
net               193 net/netfilter/nft_set_rbtree.c static void *nft_rbtree_get(const struct net *net, const struct nft_set *set,
net               200 net/netfilter/nft_set_rbtree.c 	u8 genmask = nft_genmask_cur(net);
net               203 net/netfilter/nft_set_rbtree.c 	ret = __nft_rbtree_get(net, set, key, &rbe, seq, flags, genmask);
net               209 net/netfilter/nft_set_rbtree.c 	ret = __nft_rbtree_get(net, set, key, &rbe, seq, flags, genmask);
net               217 net/netfilter/nft_set_rbtree.c static int __nft_rbtree_insert(const struct net *net, const struct nft_set *set,
net               222 net/netfilter/nft_set_rbtree.c 	u8 genmask = nft_genmask_next(net);
net               259 net/netfilter/nft_set_rbtree.c static int nft_rbtree_insert(const struct net *net, const struct nft_set *set,
net               269 net/netfilter/nft_set_rbtree.c 	err = __nft_rbtree_insert(net, set, rbe, ext);
net               276 net/netfilter/nft_set_rbtree.c static void nft_rbtree_remove(const struct net *net,
net               290 net/netfilter/nft_set_rbtree.c static void nft_rbtree_activate(const struct net *net,
net               296 net/netfilter/nft_set_rbtree.c 	nft_set_elem_change_active(net, set, &rbe->ext);
net               300 net/netfilter/nft_set_rbtree.c static bool nft_rbtree_flush(const struct net *net,
net               306 net/netfilter/nft_set_rbtree.c 	    !nft_is_active(net, &rbe->ext)) {
net               307 net/netfilter/nft_set_rbtree.c 		nft_set_elem_change_active(net, set, &rbe->ext);
net               313 net/netfilter/nft_set_rbtree.c static void *nft_rbtree_deactivate(const struct net *net,
net               320 net/netfilter/nft_set_rbtree.c 	u8 genmask = nft_genmask_next(net);
net               345 net/netfilter/nft_set_rbtree.c 			nft_rbtree_flush(net, set, rbe);
net                52 net/netfilter/nft_synproxy.c 	struct net *net = nft_net(pkt);
net                53 net/netfilter/nft_synproxy.c 	struct synproxy_net *snet = synproxy_pernet(net);
net                59 net/netfilter/nft_synproxy.c 		synproxy_send_client_synack(net, skb, tcp, opts);
net                64 net/netfilter/nft_synproxy.c 		if (synproxy_recv_client_ack(net, skb, tcp, opts,
net                83 net/netfilter/nft_synproxy.c 	struct net *net = nft_net(pkt);
net                84 net/netfilter/nft_synproxy.c 	struct synproxy_net *snet = synproxy_pernet(net);
net                90 net/netfilter/nft_synproxy.c 		synproxy_send_client_synack_ipv6(net, skb, tcp, opts);
net                95 net/netfilter/nft_synproxy.c 		if (synproxy_recv_client_ack_ipv6(net, skb, tcp, opts,
net               156 net/netfilter/nft_synproxy.c 	struct synproxy_net *snet = synproxy_pernet(ctx->net);
net               171 net/netfilter/nft_synproxy.c 	err = nf_ct_netns_get(ctx->net, ctx->family);
net               177 net/netfilter/nft_synproxy.c 		err = nf_synproxy_ipv4_init(snet, ctx->net);
net               183 net/netfilter/nft_synproxy.c 		err = nf_synproxy_ipv6_init(snet, ctx->net);
net               190 net/netfilter/nft_synproxy.c 		err = nf_synproxy_ipv4_init(snet, ctx->net);
net               193 net/netfilter/nft_synproxy.c 		err = nf_synproxy_ipv6_init(snet, ctx->net);
net               202 net/netfilter/nft_synproxy.c 	nf_ct_netns_put(ctx->net, ctx->family);
net               208 net/netfilter/nft_synproxy.c 	struct synproxy_net *snet = synproxy_pernet(ctx->net);
net               212 net/netfilter/nft_synproxy.c 		nf_synproxy_ipv4_fini(snet, ctx->net);
net               216 net/netfilter/nft_synproxy.c 		nf_synproxy_ipv6_fini(snet, ctx->net);
net               221 net/netfilter/nft_synproxy.c 		nf_synproxy_ipv4_fini(snet, ctx->net);
net               222 net/netfilter/nft_synproxy.c 		nf_synproxy_ipv6_fini(snet, ctx->net);
net               225 net/netfilter/nft_synproxy.c 	nf_ct_netns_put(ctx->net, ctx->family);
net               222 net/netfilter/nft_tproxy.c 		err = nf_defrag_ipv4_enable(ctx->net);
net               229 net/netfilter/nft_tproxy.c 		err = nf_defrag_ipv6_enable(ctx->net);
net               236 net/netfilter/nft_tproxy.c 		err = nf_defrag_ipv4_enable(ctx->net);
net               240 net/netfilter/nft_tproxy.c 		err = nf_defrag_ipv6_enable(ctx->net);
net               163 net/netfilter/utils.c int nf_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
net               171 net/netfilter/utils.c 		ret = nf_ip_route(net, dst, fl, strict);
net               174 net/netfilter/utils.c 		ret = nf_ip6_route(net, dst, fl, strict);
net               194 net/netfilter/utils.c 			return ip_route_me_harder(entry->state.net, skb,
net              1201 net/netfilter/x_tables.c struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
net              1207 net/netfilter/x_tables.c 	list_for_each_entry(t, &net->xt.tables[af], list)
net              1211 net/netfilter/x_tables.c 	if (net == &init_net)
net              1223 net/netfilter/x_tables.c 		err = t->table_init(net);
net              1239 net/netfilter/x_tables.c 	list_for_each_entry(t, &net->xt.tables[af], list)
net              1250 net/netfilter/x_tables.c struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,
net              1253 net/netfilter/x_tables.c 	struct xt_table *t = xt_find_table_lock(net, af, name);
net              1260 net/netfilter/x_tables.c 		t = xt_find_table_lock(net, af, name);
net              1424 net/netfilter/x_tables.c struct xt_table *xt_register_table(struct net *net,
net              1442 net/netfilter/x_tables.c 	list_for_each_entry(t, &net->xt.tables[table->af], list) {
net              1461 net/netfilter/x_tables.c 	list_add(&table->list, &net->xt.tables[table->af]);
net              1490 net/netfilter/x_tables.c 	struct net *net = seq_file_net(seq);
net              1494 net/netfilter/x_tables.c 	return seq_list_start(&net->xt.tables[af], *pos);
net              1499 net/netfilter/x_tables.c 	struct net *net = seq_file_net(seq);
net              1502 net/netfilter/x_tables.c 	return seq_list_next(v, &net->xt.tables[af], pos);
net              1725 net/netfilter/x_tables.c int xt_proto_init(struct net *net, u_int8_t af)
net              1739 net/netfilter/x_tables.c 	root_uid = make_kuid(net->user_ns, 0);
net              1740 net/netfilter/x_tables.c 	root_gid = make_kgid(net->user_ns, 0);
net              1744 net/netfilter/x_tables.c 	proc = proc_create_net_data(buf, 0440, net->proc_net, &xt_table_seq_ops,
net              1754 net/netfilter/x_tables.c 	proc = proc_create_seq_private(buf, 0440, net->proc_net,
net              1764 net/netfilter/x_tables.c 	proc = proc_create_seq_private(buf, 0440, net->proc_net,
net              1779 net/netfilter/x_tables.c 	remove_proc_entry(buf, net->proc_net);
net              1784 net/netfilter/x_tables.c 	remove_proc_entry(buf, net->proc_net);
net              1791 net/netfilter/x_tables.c void xt_proto_fini(struct net *net, u_int8_t af)
net              1798 net/netfilter/x_tables.c 	remove_proc_entry(buf, net->proc_net);
net              1802 net/netfilter/x_tables.c 	remove_proc_entry(buf, net->proc_net);
net              1806 net/netfilter/x_tables.c 	remove_proc_entry(buf, net->proc_net);
net              1866 net/netfilter/x_tables.c static int __net_init xt_net_init(struct net *net)
net              1871 net/netfilter/x_tables.c 		INIT_LIST_HEAD(&net->xt.tables[i]);
net              1875 net/netfilter/x_tables.c static void __net_exit xt_net_exit(struct net *net)
net              1880 net/netfilter/x_tables.c 		WARN_ON_ONCE(!list_empty(&net->xt.tables[i]));
net               105 net/netfilter/xt_CONNSECMARK.c 	ret = nf_ct_netns_get(par->net, par->family);
net               114 net/netfilter/xt_CONNSECMARK.c 	nf_ct_netns_put(par->net, par->family);
net               118 net/netfilter/xt_CT.c 	return nf_ct_set_timeout(par->net, ct, par->family, l4proto->l4proto,
net               159 net/netfilter/xt_CT.c 	ret = nf_ct_netns_get(par->net, par->family);
net               169 net/netfilter/xt_CT.c 	ct = nf_ct_tmpl_alloc(par->net, &zone, GFP_KERNEL);
net               217 net/netfilter/xt_CT.c 	nf_ct_netns_put(par->net, par->family);
net               278 net/netfilter/xt_CT.c 		nf_ct_netns_put(par->net, par->family);
net               357 net/netfilter/xt_CT.c 	if (!par->net->xt.notrack_deprecated_warning) {
net               360 net/netfilter/xt_CT.c 		par->net->xt.notrack_deprecated_warning = true;
net                32 net/netfilter/xt_LOG.c 	struct net *net = xt_net(par);
net                39 net/netfilter/xt_LOG.c 	nf_log_packet(net, xt_family(par), xt_hooknum(par), skb, xt_in(par),
net                31 net/netfilter/xt_MASQUERADE.c 	return nf_ct_netns_get(par->net, par->family);
net                51 net/netfilter/xt_MASQUERADE.c 	nf_ct_netns_put(par->net, par->family);
net                68 net/netfilter/xt_MASQUERADE.c 	return nf_ct_netns_get(par->net, par->family);
net                60 net/netfilter/xt_NETMAP.c 	return nf_ct_netns_get(par->net, par->family);
net                65 net/netfilter/xt_NETMAP.c 	nf_ct_netns_put(par->net, par->family);
net               116 net/netfilter/xt_NETMAP.c 	return nf_ct_netns_get(par->net, par->family);
net                24 net/netfilter/xt_NFLOG.c 	struct net *net = xt_net(par);
net                36 net/netfilter/xt_NFLOG.c 	nf_log_packet(net, xt_family(par), xt_hooknum(par), skb, xt_in(par),
net                63 net/netfilter/xt_RATEEST.c struct xt_rateest *xt_rateest_lookup(struct net *net, const char *name)
net                65 net/netfilter/xt_RATEEST.c 	struct xt_rateest_net *xn = net_generic(net, xt_rateest_id);
net                75 net/netfilter/xt_RATEEST.c void xt_rateest_put(struct net *net, struct xt_rateest *est)
net                77 net/netfilter/xt_RATEEST.c 	struct xt_rateest_net *xn = net_generic(net, xt_rateest_id);
net               109 net/netfilter/xt_RATEEST.c 	struct xt_rateest_net *xn = net_generic(par->net, xt_rateest_id);
net               131 net/netfilter/xt_RATEEST.c 			xt_rateest_put(par->net, est);
net               175 net/netfilter/xt_RATEEST.c 	xt_rateest_put(par->net, info->est);
net               190 net/netfilter/xt_RATEEST.c static __net_init int xt_rateest_net_init(struct net *net)
net               192 net/netfilter/xt_RATEEST.c 	struct xt_rateest_net *xn = net_generic(net, xt_rateest_id);
net                41 net/netfilter/xt_REDIRECT.c 	return nf_ct_netns_get(par->net, par->family);
net                46 net/netfilter/xt_REDIRECT.c 	nf_ct_netns_put(par->net, par->family);
net                62 net/netfilter/xt_REDIRECT.c 	return nf_ct_netns_get(par->net, par->family);
net                43 net/netfilter/xt_TCPMSS.c static u_int32_t tcpmss_reverse_mtu(struct net *net,
net                62 net/netfilter/xt_TCPMSS.c 	nf_route(net, (struct dst_entry **)&rt, &fl, false, family);
net               103 net/netfilter/xt_TCPMSS.c 		struct net *net = xt_net(par);
net               104 net/netfilter/xt_TCPMSS.c 		unsigned int in_mtu = tcpmss_reverse_mtu(net, skb, family);
net                64 net/netfilter/xt_TEE.c 	struct net *net = dev_net(dev);
net                65 net/netfilter/xt_TEE.c 	struct tee_net *tn = net_generic(net, tee_net_id);
net                94 net/netfilter/xt_TEE.c 	struct tee_net *tn = net_generic(par->net, tee_net_id);
net               117 net/netfilter/xt_TEE.c 		dev = dev_get_by_name(par->net, info->oif);
net               134 net/netfilter/xt_TEE.c 	struct tee_net *tn = net_generic(par->net, tee_net_id);
net               173 net/netfilter/xt_TEE.c static int __net_init tee_net_init(struct net *net)
net               175 net/netfilter/xt_TEE.c 	struct tee_net *tn = net_generic(net, tee_net_id);
net                36 net/netfilter/xt_TPROXY.c tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport,
net                51 net/netfilter/xt_TPROXY.c 	sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
net                63 net/netfilter/xt_TPROXY.c 		sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk);
net                67 net/netfilter/xt_TPROXY.c 		sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
net               192 net/netfilter/xt_TPROXY.c 	err = nf_defrag_ipv6_enable(par->net);
net               210 net/netfilter/xt_TPROXY.c 	err = nf_defrag_ipv4_enable(par->net);
net                33 net/netfilter/xt_addrtype.c static u32 match_lookup_rt6(struct net *net, const struct net_device *dev,
net                47 net/netfilter/xt_addrtype.c 		if (nf_ipv6_chk_addr(net, addr, dev, true))
net                51 net/netfilter/xt_addrtype.c 	route_err = nf_ip6_route(net, (struct dst_entry **)&rt,
net                68 net/netfilter/xt_addrtype.c static bool match_type6(struct net *net, const struct net_device *dev,
net                83 net/netfilter/xt_addrtype.c 		return !!(mask & match_lookup_rt6(net, dev, addr, mask));
net                88 net/netfilter/xt_addrtype.c addrtype_mt6(struct net *net, const struct net_device *dev,
net                95 net/netfilter/xt_addrtype.c 		ret &= match_type6(net, dev, &iph->saddr, info->source) ^
net                98 net/netfilter/xt_addrtype.c 		ret &= match_type6(net, dev, &iph->daddr, info->dest) ^
net               104 net/netfilter/xt_addrtype.c static inline bool match_type(struct net *net, const struct net_device *dev,
net               107 net/netfilter/xt_addrtype.c 	return !!(mask & (1 << inet_dev_addr_type(net, dev, addr)));
net               113 net/netfilter/xt_addrtype.c 	struct net *net = xt_net(par);
net               119 net/netfilter/xt_addrtype.c 		ret &= match_type(net, NULL, iph->saddr, info->source) ^
net               122 net/netfilter/xt_addrtype.c 		ret &= match_type(net, NULL, iph->daddr, info->dest) ^
net               131 net/netfilter/xt_addrtype.c 	struct net *net = xt_net(par);
net               144 net/netfilter/xt_addrtype.c 		return addrtype_mt6(net, dev, skb, info);
net               148 net/netfilter/xt_addrtype.c 		ret &= match_type(net, dev, iph->saddr, info->source) ^
net               151 net/netfilter/xt_addrtype.c 		ret &= match_type(net, dev, iph->daddr, info->dest) ^
net               137 net/netfilter/xt_cluster.c 	ret = nf_ct_netns_get(par->net, par->family);
net               146 net/netfilter/xt_cluster.c 	nf_ct_netns_put(par->net, par->family);
net               113 net/netfilter/xt_connbytes.c 	ret = nf_ct_netns_get(par->net, par->family);
net               122 net/netfilter/xt_connbytes.c 	if (!nf_ct_acct_enabled(par->net)) {
net               124 net/netfilter/xt_connbytes.c 		nf_ct_set_acct(par->net, true);
net               132 net/netfilter/xt_connbytes.c 	nf_ct_netns_put(par->net, par->family);
net                62 net/netfilter/xt_connlabel.c 	ret = nf_ct_netns_get(par->net, par->family);
net                69 net/netfilter/xt_connlabel.c 	ret = nf_connlabels_get(par->net, info->bit);
net                71 net/netfilter/xt_connlabel.c 		nf_ct_netns_put(par->net, par->family);
net                77 net/netfilter/xt_connlabel.c 	nf_connlabels_put(par->net);
net                78 net/netfilter/xt_connlabel.c 	nf_ct_netns_put(par->net, par->family);
net                32 net/netfilter/xt_connlimit.c 	struct net *net = xt_net(par);
net                47 net/netfilter/xt_connlimit.c 				      xt_family(par), net, &tuple)) {
net                72 net/netfilter/xt_connlimit.c 	connections = nf_conncount_count(net, info->data, key, tuple_ptr,
net                97 net/netfilter/xt_connlimit.c 	info->data = nf_conncount_init(par->net, par->family, keylen);
net               106 net/netfilter/xt_connlimit.c 	nf_conncount_destroy(par->net, par->family, info->data);
net               106 net/netfilter/xt_connmark.c 	ret = nf_ct_netns_get(par->net, par->family);
net               115 net/netfilter/xt_connmark.c 	nf_ct_netns_put(par->net, par->family);
net               136 net/netfilter/xt_connmark.c 	ret = nf_ct_netns_get(par->net, par->family);
net               145 net/netfilter/xt_connmark.c 	nf_ct_netns_put(par->net, par->family);
net               270 net/netfilter/xt_conntrack.c 	ret = nf_ct_netns_get(par->net, par->family);
net               279 net/netfilter/xt_conntrack.c 	nf_ct_netns_put(par->net, par->family);
net                61 net/netfilter/xt_hashlimit.c static inline struct hashlimit_net *hashlimit_pernet(struct net *net)
net                63 net/netfilter/xt_hashlimit.c 	return net_generic(net, hashlimit_net_id);
net               133 net/netfilter/xt_hashlimit.c 	struct net *net;
net               275 net/netfilter/xt_hashlimit.c static int htable_create(struct net *net, struct hashlimit_cfg3 *cfg,
net               280 net/netfilter/xt_hashlimit.c 	struct hashlimit_net *hashlimit_net = hashlimit_pernet(net);
net               350 net/netfilter/xt_hashlimit.c 	hinfo->net = net;
net               393 net/netfilter/xt_hashlimit.c 	struct hashlimit_net *hashlimit_net = hashlimit_pernet(hinfo->net);
net               405 net/netfilter/xt_hashlimit.c static struct xt_hashlimit_htable *htable_find_get(struct net *net,
net               409 net/netfilter/xt_hashlimit.c 	struct hashlimit_net *hashlimit_net = hashlimit_pernet(net);
net               843 net/netfilter/xt_hashlimit.c 	struct net *net = par->net;
net               896 net/netfilter/xt_hashlimit.c 	*hinfo = htable_find_get(net, name, par->family);
net               898 net/netfilter/xt_hashlimit.c 		ret = htable_create(net, cfg, name, par->family,
net              1233 net/netfilter/xt_hashlimit.c static int __net_init hashlimit_proc_net_init(struct net *net)
net              1235 net/netfilter/xt_hashlimit.c 	struct hashlimit_net *hashlimit_net = hashlimit_pernet(net);
net              1237 net/netfilter/xt_hashlimit.c 	hashlimit_net->ipt_hashlimit = proc_mkdir("ipt_hashlimit", net->proc_net);
net              1241 net/netfilter/xt_hashlimit.c 	hashlimit_net->ip6t_hashlimit = proc_mkdir("ip6t_hashlimit", net->proc_net);
net              1243 net/netfilter/xt_hashlimit.c 		remove_proc_entry("ipt_hashlimit", net->proc_net);
net              1250 net/netfilter/xt_hashlimit.c static void __net_exit hashlimit_proc_net_exit(struct net *net)
net              1253 net/netfilter/xt_hashlimit.c 	struct hashlimit_net *hashlimit_net = hashlimit_pernet(net);
net              1266 net/netfilter/xt_hashlimit.c 	remove_proc_entry("ipt_hashlimit", net->proc_net);
net              1268 net/netfilter/xt_hashlimit.c 	remove_proc_entry("ip6t_hashlimit", net->proc_net);
net              1272 net/netfilter/xt_hashlimit.c static int __net_init hashlimit_net_init(struct net *net)
net              1274 net/netfilter/xt_hashlimit.c 	struct hashlimit_net *hashlimit_net = hashlimit_pernet(net);
net              1277 net/netfilter/xt_hashlimit.c 	return hashlimit_proc_net_init(net);
net              1280 net/netfilter/xt_hashlimit.c static void __net_exit hashlimit_net_exit(struct net *net)
net              1282 net/netfilter/xt_hashlimit.c 	hashlimit_proc_net_exit(net);
net                59 net/netfilter/xt_helper.c 	ret = nf_ct_netns_get(par->net, par->family);
net                71 net/netfilter/xt_helper.c 	nf_ct_netns_put(par->net, par->family);
net                24 net/netfilter/xt_nat.c 	return nf_ct_netns_get(par->net, par->family);
net                29 net/netfilter/xt_nat.c 	return nf_ct_netns_get(par->net, par->family);
net                34 net/netfilter/xt_nat.c 	nf_ct_netns_put(par->net, par->family);
net                39 net/netfilter/xt_nfacct.c 	nfacct = nfnl_acct_find_get(par->net, info->name);
net                23 net/netfilter/xt_owner.c 	struct net *net = par->net;
net                32 net/netfilter/xt_owner.c 	    (current_user_ns() != net->user_ns))
net                37 net/netfilter/xt_owner.c 		kuid_t uid_min = make_kuid(net->user_ns, info->uid_min);
net                38 net/netfilter/xt_owner.c 		kuid_t uid_max = make_kuid(net->user_ns, info->uid_max);
net                49 net/netfilter/xt_owner.c 		kgid_t gid_min = make_kgid(net->user_ns, info->gid_min);
net                50 net/netfilter/xt_owner.c 		kgid_t gid_max = make_kgid(net->user_ns, info->gid_max);
net                68 net/netfilter/xt_owner.c 	struct net *net = xt_net(par);
net                70 net/netfilter/xt_owner.c 	if (!sk || !sk->sk_socket || !net_eq(net, sock_net(sk)))
net                85 net/netfilter/xt_owner.c 		kuid_t uid_min = make_kuid(net->user_ns, info->uid_min);
net                86 net/netfilter/xt_owner.c 		kuid_t uid_max = make_kuid(net->user_ns, info->uid_max);
net                95 net/netfilter/xt_owner.c 		kgid_t gid_min = make_kgid(net->user_ns, info->gid_min);
net                96 net/netfilter/xt_owner.c 		kgid_t gid_max = make_kgid(net->user_ns, info->gid_max);
net                95 net/netfilter/xt_rateest.c 	est1 = xt_rateest_lookup(par->net, info->name1);
net               101 net/netfilter/xt_rateest.c 		est2 = xt_rateest_lookup(par->net, info->name2);
net               111 net/netfilter/xt_rateest.c 	xt_rateest_put(par->net, est1);
net               120 net/netfilter/xt_rateest.c 	xt_rateest_put(par->net, info->est1);
net               122 net/netfilter/xt_rateest.c 		xt_rateest_put(par->net, info->est2);
net                97 net/netfilter/xt_recent.c static inline struct recent_net *recent_pernet(struct net *net)
net                99 net/netfilter/xt_recent.c 	return net_generic(net, recent_net_id);
net               235 net/netfilter/xt_recent.c 	struct net *net = xt_net(par);
net               236 net/netfilter/xt_recent.c 	struct recent_net *recent_net = recent_pernet(net);
net               266 net/netfilter/xt_recent.c 	    (!skb->sk || !net_eq(net, sock_net(skb->sk))))
net               327 net/netfilter/xt_recent.c 	struct recent_net *recent_net = recent_pernet(par->net);
net               445 net/netfilter/xt_recent.c 	struct recent_net *recent_net = recent_pernet(par->net);
net               628 net/netfilter/xt_recent.c static int __net_init recent_proc_net_init(struct net *net)
net               630 net/netfilter/xt_recent.c 	struct recent_net *recent_net = recent_pernet(net);
net               632 net/netfilter/xt_recent.c 	recent_net->xt_recent = proc_mkdir("xt_recent", net->proc_net);
net               638 net/netfilter/xt_recent.c static void __net_exit recent_proc_net_exit(struct net *net)
net               640 net/netfilter/xt_recent.c 	struct recent_net *recent_net = recent_pernet(net);
net               654 net/netfilter/xt_recent.c 	remove_proc_entry("xt_recent", net->proc_net);
net               657 net/netfilter/xt_recent.c static inline int recent_proc_net_init(struct net *net)
net               662 net/netfilter/xt_recent.c static inline void recent_proc_net_exit(struct net *net)
net               667 net/netfilter/xt_recent.c static int __net_init recent_net_init(struct net *net)
net               669 net/netfilter/xt_recent.c 	struct recent_net *recent_net = recent_pernet(net);
net               672 net/netfilter/xt_recent.c 	return recent_proc_net_init(net);
net               675 net/netfilter/xt_recent.c static void __net_exit recent_net_exit(struct net *net)
net               677 net/netfilter/xt_recent.c 	recent_proc_net_exit(net);
net                88 net/netfilter/xt_set.c 	index = ip_set_nfnl_get_byindex(par->net, info->match_set.index);
net                97 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->match_set.index);
net               112 net/netfilter/xt_set.c 	ip_set_nfnl_put(par->net, info->match_set.index);
net               139 net/netfilter/xt_set.c 	index = ip_set_nfnl_get_byindex(par->net, info->match_set.index);
net               148 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->match_set.index);
net               160 net/netfilter/xt_set.c 	ip_set_nfnl_put(par->net, info->match_set.index);
net               238 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net, info->add_set.index);
net               247 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net, info->del_set.index);
net               252 net/netfilter/xt_set.c 				ip_set_nfnl_put(par->net, info->add_set.index);
net               260 net/netfilter/xt_set.c 			ip_set_nfnl_put(par->net, info->add_set.index);
net               262 net/netfilter/xt_set.c 			ip_set_nfnl_put(par->net, info->del_set.index);
net               279 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->add_set.index);
net               281 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->del_set.index);
net               313 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net, info->add_set.index);
net               322 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net, info->del_set.index);
net               327 net/netfilter/xt_set.c 				ip_set_nfnl_put(par->net, info->add_set.index);
net               335 net/netfilter/xt_set.c 			ip_set_nfnl_put(par->net, info->add_set.index);
net               337 net/netfilter/xt_set.c 			ip_set_nfnl_put(par->net, info->del_set.index);
net               350 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->add_set.index);
net               352 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->del_set.index);
net               441 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net,
net               451 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net,
net               476 net/netfilter/xt_set.c 		index = ip_set_nfnl_get_byindex(par->net,
net               497 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->map_set.index);
net               500 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->del_set.index);
net               503 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->add_set.index);
net               513 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->add_set.index);
net               515 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->del_set.index);
net               517 net/netfilter/xt_set.c 		ip_set_nfnl_put(par->net, info->map_set.index);
net               154 net/netfilter/xt_socket.c static int socket_mt_enable_defrag(struct net *net, int family)
net               158 net/netfilter/xt_socket.c 		return nf_defrag_ipv4_enable(net);
net               161 net/netfilter/xt_socket.c 		return nf_defrag_ipv6_enable(net);
net               173 net/netfilter/xt_socket.c 	err = socket_mt_enable_defrag(par->net, par->family);
net               190 net/netfilter/xt_socket.c 	err = socket_mt_enable_defrag(par->net, par->family);
net               208 net/netfilter/xt_socket.c 	err = socket_mt_enable_defrag(par->net, par->family);
net                42 net/netfilter/xt_state.c 	ret = nf_ct_netns_get(par->net, par->family);
net                51 net/netfilter/xt_state.c 	nf_ct_netns_put(par->net, par->family);
net               208 net/netlabel/netlabel_kapi.c int netlbl_cfg_unlbl_static_add(struct net *net,
net               231 net/netlabel/netlabel_kapi.c 	return netlbl_unlhsh_add(net,
net               251 net/netlabel/netlabel_kapi.c int netlbl_cfg_unlbl_static_del(struct net *net,
net               273 net/netlabel/netlabel_kapi.c 	return netlbl_unlhsh_remove(net,
net               363 net/netlabel/netlabel_unlabeled.c int netlbl_unlhsh_add(struct net *net,
net               385 net/netlabel/netlabel_unlabeled.c 		dev = dev_get_by_name_rcu(net, dev_name);
net               465 net/netlabel/netlabel_unlabeled.c static int netlbl_unlhsh_remove_addr4(struct net *net,
net               490 net/netlabel/netlabel_unlabeled.c 		dev = dev_get_by_index(net, iface->ifindex);
net               527 net/netlabel/netlabel_unlabeled.c static int netlbl_unlhsh_remove_addr6(struct net *net,
net               551 net/netlabel/netlabel_unlabeled.c 		dev = dev_get_by_index(net, iface->ifindex);
net               627 net/netlabel/netlabel_unlabeled.c int netlbl_unlhsh_remove(struct net *net,
net               644 net/netlabel/netlabel_unlabeled.c 		dev = dev_get_by_name_rcu(net, dev_name);
net               658 net/netlabel/netlabel_unlabeled.c 		ret_val = netlbl_unlhsh_remove_addr4(net,
net               664 net/netlabel/netlabel_unlabeled.c 		ret_val = netlbl_unlhsh_remove_addr6(net,
net               209 net/netlabel/netlabel_unlabeled.h int netlbl_unlhsh_add(struct net *net,
net               216 net/netlabel/netlabel_unlabeled.h int netlbl_unlhsh_remove(struct net *net,
net               181 net/netlink/af_netlink.c 	struct net *net = dev_net(nt->dev);
net               182 net/netlink/af_netlink.c 	struct netlink_tap_net *nn = net_generic(net, netlink_tap_net_id);
net               199 net/netlink/af_netlink.c 	struct net *net = dev_net(nt->dev);
net               200 net/netlink/af_netlink.c 	struct netlink_tap_net *nn = net_generic(net, netlink_tap_net_id);
net               235 net/netlink/af_netlink.c static __net_init int netlink_tap_init_net(struct net *net)
net               237 net/netlink/af_netlink.c 	struct netlink_tap_net *nn = net_generic(net, netlink_tap_net_id);
net               318 net/netlink/af_netlink.c static void netlink_deliver_tap(struct net *net, struct sk_buff *skb)
net               320 net/netlink/af_netlink.c 	struct netlink_tap_net *nn = net_generic(net, netlink_tap_net_id);
net               490 net/netlink/af_netlink.c 				     struct net *net, u32 portid)
net               493 net/netlink/af_netlink.c 	write_pnet(&arg->pnet, net);
net               498 net/netlink/af_netlink.c 				     struct net *net)
net               502 net/netlink/af_netlink.c 	netlink_compare_arg_init(&arg, net, portid);
net               517 net/netlink/af_netlink.c static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid)
net               523 net/netlink/af_netlink.c 	sk = __netlink_lookup(table, portid, net);
net               620 net/netlink/af_netlink.c static int __netlink_create(struct net *net, struct socket *sock,
net               629 net/netlink/af_netlink.c 	sk = sk_alloc(net, PF_NETLINK, GFP_KERNEL, &netlink_proto, kern);
net               652 net/netlink/af_netlink.c static int netlink_create(struct net *net, struct socket *sock, int protocol,
net               658 net/netlink/af_netlink.c 	int (*bind)(struct net *net, int group);
net               659 net/netlink/af_netlink.c 	void (*unbind)(struct net *net, int group);
net               692 net/netlink/af_netlink.c 	err = __netlink_create(net, sock, cb_mutex, protocol, kern);
net               697 net/netlink/af_netlink.c 	sock_prot_inuse_add(net, &netlink_proto, 1);
net               770 net/netlink/af_netlink.c 						.net = sock_net(sk),
net               808 net/netlink/af_netlink.c 	struct net *net = sock_net(sk);
net               818 net/netlink/af_netlink.c 	ok = !__netlink_lookup(table, portid, net);
net               978 net/netlink/af_netlink.c 	struct net *net = sock_net(sk);
net              1021 net/netlink/af_netlink.c 			err = nlk->netlink_bind(net, group + 1);
net              1390 net/netlink/af_netlink.c 	struct net *net;
net              1416 net/netlink/af_netlink.c 	if (!net_eq(sock_net(sk), p->net)) {
net              1420 net/netlink/af_netlink.c 		if (!peernet_has_id(sock_net(sk), p->net))
net              1423 net/netlink/af_netlink.c 		if (!file_ns_capable(sk->sk_socket->file, p->net->user_ns,
net              1464 net/netlink/af_netlink.c 	NETLINK_CB(p->skb2).nsid = peernet2id(sock_net(sk), p->net);
net              1486 net/netlink/af_netlink.c 	struct net *net = sock_net(ssk);
net              1493 net/netlink/af_netlink.c 	info.net = net;
net              2026 net/netlink/af_netlink.c __netlink_kernel_create(struct net *net, int unit, struct module *module,
net              2044 net/netlink/af_netlink.c 	if (__netlink_create(net, sock, cb_mutex, unit, 1) < 0)
net              2692 net/netlink/af_netlink.c static int __net_init netlink_net_init(struct net *net)
net              2695 net/netlink/af_netlink.c 	if (!proc_create_net("netlink", 0, net->proc_net, &netlink_seq_ops,
net              2702 net/netlink/af_netlink.c static void __net_exit netlink_net_exit(struct net *net)
net              2705 net/netlink/af_netlink.c 	remove_proc_entry("netlink", net->proc_net);
net                43 net/netlink/af_netlink.h 	int			(*netlink_bind)(struct net *net, int group);
net                44 net/netlink/af_netlink.h 	void			(*netlink_unbind)(struct net *net, int group);
net                65 net/netlink/af_netlink.h 	int			(*bind)(struct net *net, int group);
net                66 net/netlink/af_netlink.h 	void			(*unbind)(struct net *net, int group);
net                67 net/netlink/af_netlink.h 	bool			(*compare)(struct net *net, struct sock *sock);
net                94 net/netlink/diag.c 	struct net *net = sock_net(skb->sk);
net               133 net/netlink/diag.c 		if (!net_eq(sock_net(sk), net))
net               159 net/netlink/diag.c 		if (!net_eq(sock_net(sk), net))
net               227 net/netlink/diag.c 	struct net *net = sock_net(skb->sk);
net               237 net/netlink/diag.c 		return netlink_dump_start(net->diag_nlsk, skb, h, &c);
net               230 net/netlink/genetlink.c 		struct net *net;
net               234 net/netlink/genetlink.c 		for_each_net_rcu(net) {
net               235 net/netlink/genetlink.c 			err = __netlink_change_ngroups(net->genl_sock,
net               264 net/netlink/genetlink.c 	struct net *net;
net               269 net/netlink/genetlink.c 	for_each_net_rcu(net) {
net               272 net/netlink/genetlink.c 				net->genl_sock, family->mcgrp_offset + i);
net               507 net/netlink/genetlink.c 	struct net *net = sock_net(skb->sk);
net               514 net/netlink/genetlink.c 	if (!family->netnsok && !net_eq(net, &init_net))
net               530 net/netlink/genetlink.c 	    !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net               572 net/netlink/genetlink.c 			rc = __netlink_dump_start(net->genl_sock, skb, nlh, &c);
net               583 net/netlink/genetlink.c 			rc = __netlink_dump_start(net->genl_sock, skb, nlh, &c);
net               620 net/netlink/genetlink.c 	genl_info_net_set(&info, net);
net               807 net/netlink/genetlink.c 	struct net *net = sock_net(skb->sk);
net               812 net/netlink/genetlink.c 		if (!rt->netnsok && !net_eq(net, &init_net))
net               992 net/netlink/genetlink.c static int genl_bind(struct net *net, int group)
net              1005 net/netlink/genetlink.c 			if (!f->netnsok && net != &init_net)
net              1008 net/netlink/genetlink.c 				err = f->mcast_bind(net, fam_grp);
net              1019 net/netlink/genetlink.c static void genl_unbind(struct net *net, int group)
net              1032 net/netlink/genetlink.c 				f->mcast_unbind(net, fam_grp);
net              1039 net/netlink/genetlink.c static int __net_init genl_pernet_init(struct net *net)
net              1049 net/netlink/genetlink.c 	net->genl_sock = netlink_kernel_create(net, NETLINK_GENERIC, &cfg);
net              1051 net/netlink/genetlink.c 	if (!net->genl_sock && net_eq(net, &init_net))
net              1054 net/netlink/genetlink.c 	if (!net->genl_sock)
net              1060 net/netlink/genetlink.c static void __net_exit genl_pernet_exit(struct net *net)
net              1062 net/netlink/genetlink.c 	netlink_kernel_release(net->genl_sock);
net              1063 net/netlink/genetlink.c 	net->genl_sock = NULL;
net              1114 net/netlink/genetlink.c 	struct net *net, *prev = NULL;
net              1118 net/netlink/genetlink.c 	for_each_net_rcu(net) {
net              1133 net/netlink/genetlink.c 		prev = net;
net              1161 net/netlink/genetlink.c 	struct net *net = genl_info_net(info);
net              1162 net/netlink/genetlink.c 	struct sock *sk = net->genl_sock;
net               399 net/netrom/af_netrom.c static int nr_create(struct net *net, struct socket *sock, int protocol,
net               405 net/netrom/af_netrom.c 	if (!net_eq(net, &init_net))
net               411 net/netrom/af_netrom.c 	sk = sk_alloc(net, PF_NETROM, GFP_ATOMIC, &nr_proto, kern);
net                18 net/nfc/af_nfc.c static int nfc_sock_create(struct net *net, struct socket *sock, int proto,
net                23 net/nfc/af_nfc.c 	if (net != &init_net)
net                31 net/nfc/af_nfc.c 		rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern);
net              1000 net/nfc/llcp_sock.c static int llcp_sock_create(struct net *net, struct socket *sock,
net                23 net/nfc/nfc.h  	int (*create)(struct net *net, struct socket *sock,
net               325 net/nfc/rawsock.c static int rawsock_create(struct net *net, struct socket *sock,
net               340 net/nfc/rawsock.c 	sk = sk_alloc(net, PF_NFC, GFP_ATOMIC, nfc_proto->proto, kern);
net               741 net/openvswitch/actions.c static int ovs_vport_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net               814 net/openvswitch/actions.c static void ovs_fragment(struct net *net, struct vport *vport,
net               844 net/openvswitch/actions.c 		ip_do_fragment(net, skb->sk, skb, ovs_vport_output);
net               865 net/openvswitch/actions.c 		v6ops->fragment(net, skb->sk, skb, ovs_vport_output);
net               899 net/openvswitch/actions.c 			struct net *net = read_pnet(&dp->net);
net               901 net/openvswitch/actions.c 			ovs_fragment(net, vport, skb, mru, key);
net               493 net/openvswitch/conntrack.c static int handle_fragments(struct net *net, struct sw_flow_key *key,
net               503 net/openvswitch/conntrack.c 		err = ip_defrag(net, skb, user);
net               513 net/openvswitch/conntrack.c 		err = nf_ct_frag6_gather(net, skb, user);
net               542 net/openvswitch/conntrack.c ovs_ct_expect_find(struct net *net, const struct nf_conntrack_zone *zone,
net               548 net/openvswitch/conntrack.c 	if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb), proto, net, &tuple))
net               551 net/openvswitch/conntrack.c 	exp = __nf_ct_expect_find(net, zone, &tuple);
net               568 net/openvswitch/conntrack.c 		h = nf_conntrack_find_get(net, zone, &tuple);
net               606 net/openvswitch/conntrack.c ovs_ct_find_existing(struct net *net, const struct nf_conntrack_zone *zone,
net               614 net/openvswitch/conntrack.c 			       net, &tuple)) {
net               631 net/openvswitch/conntrack.c 	h = nf_conntrack_find_get(net, zone, &tuple);
net               649 net/openvswitch/conntrack.c struct nf_conn *ovs_ct_executed(struct net *net,
net               668 net/openvswitch/conntrack.c 		ct = ovs_ct_find_existing(net, &info->zone, info->family, skb,
net               677 net/openvswitch/conntrack.c static bool skb_nfct_cached(struct net *net,
net               688 net/openvswitch/conntrack.c 		ct = ovs_ct_executed(net, key, info, skb, &ct_executed);
net               695 net/openvswitch/conntrack.c 	if (!net_eq(net, read_pnet(&ct->ct_net)))
net               866 net/openvswitch/conntrack.c static int ovs_ct_nat(struct net *net, struct sw_flow_key *key,
net               924 net/openvswitch/conntrack.c static int ovs_ct_nat(struct net *net, struct sw_flow_key *key,
net               939 net/openvswitch/conntrack.c static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key,
net               948 net/openvswitch/conntrack.c 	bool cached = skb_nfct_cached(net, key, info, skb);
net               956 net/openvswitch/conntrack.c 			.net = net,
net               997 net/openvswitch/conntrack.c 		    ovs_ct_nat(net, key, info, skb, ct, ctinfo) != NF_ACCEPT) {
net              1035 net/openvswitch/conntrack.c static int ovs_ct_lookup(struct net *net, struct sw_flow_key *key,
net              1048 net/openvswitch/conntrack.c 	exp = ovs_ct_expect_find(net, &info->zone, info->family, skb);
net              1061 net/openvswitch/conntrack.c 		err = __ovs_ct_lookup(net, key, info, skb);
net              1143 net/openvswitch/conntrack.c static int ovs_ct_check_limit(struct net *net,
net              1147 net/openvswitch/conntrack.c 	struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              1158 net/openvswitch/conntrack.c 	connections = nf_conncount_count(net, ct_limit_info->data,
net              1168 net/openvswitch/conntrack.c static int ovs_ct_commit(struct net *net, struct sw_flow_key *key,
net              1176 net/openvswitch/conntrack.c 	err = __ovs_ct_lookup(net, key, info, skb);
net              1188 net/openvswitch/conntrack.c 			err = ovs_ct_check_limit(net, info,
net              1278 net/openvswitch/conntrack.c int ovs_ct_execute(struct net *net, struct sk_buff *skb,
net              1294 net/openvswitch/conntrack.c 		err = handle_fragments(net, key, info->zone.id, skb);
net              1300 net/openvswitch/conntrack.c 		err = ovs_ct_commit(net, key, info, skb);
net              1302 net/openvswitch/conntrack.c 		err = ovs_ct_lookup(net, key, info, skb);
net              1628 net/openvswitch/conntrack.c bool ovs_ct_verify(struct net *net, enum ovs_key_attr attr)
net              1640 net/openvswitch/conntrack.c 		struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              1648 net/openvswitch/conntrack.c int ovs_ct_copy_action(struct net *net, const struct nlattr *attr,
net              1674 net/openvswitch/conntrack.c 	ct_info.ct = nf_ct_tmpl_alloc(net, &ct_info.zone, GFP_KERNEL);
net              1681 net/openvswitch/conntrack.c 		if (nf_ct_set_timeout(net, ct_info.ct, family, key->ip.proto,
net              1849 net/openvswitch/conntrack.c static int ovs_ct_limit_init(struct net *net, struct ovs_net *ovs_net)
net              1871 net/openvswitch/conntrack.c 		nf_conncount_init(net, NFPROTO_INET, sizeof(u32));
net              1883 net/openvswitch/conntrack.c static void ovs_ct_limit_exit(struct net *net, struct ovs_net *ovs_net)
net              1888 net/openvswitch/conntrack.c 	nf_conncount_destroy(net, NFPROTO_INET, info->data);
net              2028 net/openvswitch/conntrack.c static int __ovs_ct_limit_get_zone_limit(struct net *net,
net              2041 net/openvswitch/conntrack.c 	zone_limit.count = nf_conncount_count(net, data, &conncount_key, NULL,
net              2046 net/openvswitch/conntrack.c static int ovs_ct_limit_get_zone_limit(struct net *net,
net              2074 net/openvswitch/conntrack.c 				net, info->data, zone, limit, reply);
net              2089 net/openvswitch/conntrack.c static int ovs_ct_limit_get_all_zone_limit(struct net *net,
net              2105 net/openvswitch/conntrack.c 			err = __ovs_ct_limit_get_zone_limit(net, info->data,
net              2189 net/openvswitch/conntrack.c 	struct net *net = sock_net(skb->sk);
net              2190 net/openvswitch/conntrack.c 	struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              2207 net/openvswitch/conntrack.c 			net, a[OVS_CT_LIMIT_ATTR_ZONE_LIMIT], ct_limit_info,
net              2212 net/openvswitch/conntrack.c 		err = ovs_ct_limit_get_all_zone_limit(net, ct_limit_info,
net              2267 net/openvswitch/conntrack.c int ovs_ct_init(struct net *net)
net              2270 net/openvswitch/conntrack.c 	struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              2272 net/openvswitch/conntrack.c 	if (nf_connlabels_get(net, n_bits - 1)) {
net              2280 net/openvswitch/conntrack.c 	return ovs_ct_limit_init(net, ovs_net);
net              2286 net/openvswitch/conntrack.c void ovs_ct_exit(struct net *net)
net              2288 net/openvswitch/conntrack.c 	struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              2291 net/openvswitch/conntrack.c 	ovs_ct_limit_exit(net, ovs_net);
net              2295 net/openvswitch/conntrack.c 		nf_connlabels_put(net);
net                16 net/openvswitch/conntrack.h int ovs_ct_init(struct net *);
net                17 net/openvswitch/conntrack.h void ovs_ct_exit(struct net *);
net                18 net/openvswitch/conntrack.h bool ovs_ct_verify(struct net *, enum ovs_key_attr attr);
net                19 net/openvswitch/conntrack.h int ovs_ct_copy_action(struct net *, const struct nlattr *,
net                24 net/openvswitch/conntrack.h int ovs_ct_execute(struct net *, struct sk_buff *, struct sw_flow_key *,
net                40 net/openvswitch/conntrack.h static inline int ovs_ct_init(struct net *net) { return 0; }
net                42 net/openvswitch/conntrack.h static inline void ovs_ct_exit(struct net *net) { }
net                44 net/openvswitch/conntrack.h static inline bool ovs_ct_verify(struct net *net, int attr)
net                49 net/openvswitch/conntrack.h static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla,
net                62 net/openvswitch/conntrack.h static inline int ovs_ct_execute(struct net *net, struct sk_buff *skb,
net               536 net/openvswitch/datapath.c 	struct net *net = sock_net(skb->sk);
net               576 net/openvswitch/datapath.c 	err = ovs_flow_key_extract_userspace(net, a[OVS_PACKET_ATTR_KEY],
net               581 net/openvswitch/datapath.c 	err = ovs_nla_copy_actions(net, a[OVS_PACKET_ATTR_ACTIONS],
net               591 net/openvswitch/datapath.c 	dp = get_dp_rcu(net, ovs_header->dp_ifindex);
net               898 net/openvswitch/datapath.c 	struct net *net = sock_net(skb->sk);
net               933 net/openvswitch/datapath.c 	error = ovs_nla_get_match(net, &match, a[OVS_FLOW_ATTR_KEY],
net               951 net/openvswitch/datapath.c 	error = ovs_nla_copy_actions(net, a[OVS_FLOW_ATTR_ACTIONS],
net               966 net/openvswitch/datapath.c 	dp = get_dp(net, ovs_header->dp_ifindex);
net              1060 net/openvswitch/datapath.c static noinline_for_stack struct sw_flow_actions *get_flow_actions(struct net *net,
net              1071 net/openvswitch/datapath.c 	error = ovs_nla_copy_actions(net, a, &masked_key, &acts, log);
net              1095 net/openvswitch/datapath.c ovs_nla_init_match_and_action(struct net *net,
net              1107 net/openvswitch/datapath.c 		error = ovs_nla_get_match(net, match, a[OVS_FLOW_ATTR_KEY],
net              1121 net/openvswitch/datapath.c 		*acts = get_flow_actions(net, a[OVS_FLOW_ATTR_ACTIONS], key,
net              1137 net/openvswitch/datapath.c 	struct net *net = sock_net(skb->sk);
net              1159 net/openvswitch/datapath.c 	error = ovs_nla_init_match_and_action(net, &match, &key, a,
net              1175 net/openvswitch/datapath.c 	dp = get_dp(net, ovs_header->dp_ifindex);
net              1241 net/openvswitch/datapath.c 	struct net *net = sock_net(skb->sk);
net              1256 net/openvswitch/datapath.c 		err = ovs_nla_get_match(net, &match, a[OVS_FLOW_ATTR_KEY], NULL,
net              1300 net/openvswitch/datapath.c 	struct net *net = sock_net(skb->sk);
net              1315 net/openvswitch/datapath.c 		err = ovs_nla_get_match(net, &match, a[OVS_FLOW_ATTR_KEY],
net              1530 net/openvswitch/datapath.c static struct datapath *lookup_datapath(struct net *net,
net              1537 net/openvswitch/datapath.c 		dp = get_dp(net, ovs_header->dp_ifindex);
net              1541 net/openvswitch/datapath.c 		vport = ovs_vport_locate(net, nla_data(a[OVS_DP_ATTR_NAME]));
net              1894 net/openvswitch/datapath.c 				   struct net *net, u32 portid, u32 seq,
net              1915 net/openvswitch/datapath.c 	if (!net_eq(net, dev_net(vport->dev))) {
net              1916 net/openvswitch/datapath.c 		int id = peernet2id_alloc(net, dev_net(vport->dev), gfp);
net              1951 net/openvswitch/datapath.c struct sk_buff *ovs_vport_cmd_build_info(struct vport *vport, struct net *net,
net              1961 net/openvswitch/datapath.c 	retval = ovs_vport_cmd_fill_info(vport, skb, net, portid, seq, 0, cmd,
net              1969 net/openvswitch/datapath.c static struct vport *lookup_vport(struct net *net,
net              1979 net/openvswitch/datapath.c 		vport = ovs_vport_locate(net, nla_data(a[OVS_VPORT_ATTR_NAME]));
net              1992 net/openvswitch/datapath.c 		dp = get_dp(net, ovs_header->dp_ifindex);
net              2393 net/openvswitch/datapath.c static int __net_init ovs_init_net(struct net *net)
net              2395 net/openvswitch/datapath.c 	struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              2399 net/openvswitch/datapath.c 	return ovs_ct_init(net);
net              2402 net/openvswitch/datapath.c static void __net_exit list_vports_from_net(struct net *net, struct net *dnet,
net              2405 net/openvswitch/datapath.c 	struct ovs_net *ovs_net = net_generic(net, ovs_net_id);
net              2425 net/openvswitch/datapath.c static void __net_exit ovs_exit_net(struct net *dnet)
net              2430 net/openvswitch/datapath.c 	struct net *net;
net              2441 net/openvswitch/datapath.c 	for_each_net(net)
net              2442 net/openvswitch/datapath.c 		list_vports_from_net(net, dnet, &head);
net                78 net/openvswitch/datapath.h 	possible_net_t net;
net               158 net/openvswitch/datapath.h static inline struct net *ovs_dp_get_net(const struct datapath *dp)
net               160 net/openvswitch/datapath.h 	return read_pnet(&dp->net);
net               163 net/openvswitch/datapath.h static inline void ovs_dp_set_net(struct datapath *dp, struct net *net)
net               165 net/openvswitch/datapath.h 	write_pnet(&dp->net, net);
net               189 net/openvswitch/datapath.h static inline struct datapath *get_dp_rcu(struct net *net, int dp_ifindex)
net               191 net/openvswitch/datapath.h 	struct net_device *dev = dev_get_by_index_rcu(net, dp_ifindex);
net               206 net/openvswitch/datapath.h static inline struct datapath *get_dp(struct net *net, int dp_ifindex)
net               212 net/openvswitch/datapath.h 	dp = get_dp_rcu(net, dp_ifindex);
net               230 net/openvswitch/datapath.h struct sk_buff *ovs_vport_cmd_build_info(struct vport *vport, struct net *net,
net               898 net/openvswitch/flow.c int ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr,
net               911 net/openvswitch/flow.c 	err = ovs_nla_get_flow_metadata(net, a, attrs, key, log);
net               278 net/openvswitch/flow.h int ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr,
net              1142 net/openvswitch/flow_netlink.c static int metadata_from_nlattrs(struct net *net, struct sw_flow_match *match,
net              1199 net/openvswitch/flow_netlink.c 	    ovs_ct_verify(net, OVS_KEY_ATTR_CT_STATE)) {
net              1212 net/openvswitch/flow_netlink.c 	    ovs_ct_verify(net, OVS_KEY_ATTR_CT_ZONE)) {
net              1219 net/openvswitch/flow_netlink.c 	    ovs_ct_verify(net, OVS_KEY_ATTR_CT_MARK)) {
net              1226 net/openvswitch/flow_netlink.c 	    ovs_ct_verify(net, OVS_KEY_ATTR_CT_LABELS)) {
net              1495 net/openvswitch/flow_netlink.c static int ovs_key_from_nlattrs(struct net *net, struct sw_flow_match *match,
net              1501 net/openvswitch/flow_netlink.c 	err = metadata_from_nlattrs(net, match, &attrs, a, is_mask, log);
net              1758 net/openvswitch/flow_netlink.c int ovs_nla_get_match(struct net *net, struct sw_flow_match *match,
net              1777 net/openvswitch/flow_netlink.c 	err = ovs_key_from_nlattrs(net, match, key_attrs, a, false, log);
net              1823 net/openvswitch/flow_netlink.c 		err = ovs_key_from_nlattrs(net, match, mask_attrs, a, true,
net              1910 net/openvswitch/flow_netlink.c int ovs_nla_get_flow_metadata(struct net *net,
net              1928 net/openvswitch/flow_netlink.c 	return metadata_from_nlattrs(net, &match, &attrs, a, false, log);
net              2406 net/openvswitch/flow_netlink.c static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
net              2411 net/openvswitch/flow_netlink.c static int validate_and_copy_sample(struct net *net, const struct nlattr *attr,
net              2465 net/openvswitch/flow_netlink.c 	err = __ovs_nla_copy_actions(net, actions, key, sfa,
net              2476 net/openvswitch/flow_netlink.c static int validate_and_copy_clone(struct net *net,
net              2500 net/openvswitch/flow_netlink.c 	err = __ovs_nla_copy_actions(net, attr, key, sfa,
net              2862 net/openvswitch/flow_netlink.c static int validate_and_copy_check_pkt_len(struct net *net,
net              2914 net/openvswitch/flow_netlink.c 	err = __ovs_nla_copy_actions(net, acts_if_lesser_eq, key, sfa,
net              2927 net/openvswitch/flow_netlink.c 	err = __ovs_nla_copy_actions(net, acts_if_greater, key, sfa,
net              2952 net/openvswitch/flow_netlink.c static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
net              3107 net/openvswitch/flow_netlink.c 			err = validate_and_copy_sample(net, a, key, sfa,
net              3117 net/openvswitch/flow_netlink.c 			err = ovs_ct_copy_action(net, a, key, sfa, log);
net              3177 net/openvswitch/flow_netlink.c 			err = validate_and_copy_clone(net, a, key, sfa,
net              3189 net/openvswitch/flow_netlink.c 			err = validate_and_copy_check_pkt_len(net, a, key, sfa,
net              3217 net/openvswitch/flow_netlink.c int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
net              3228 net/openvswitch/flow_netlink.c 	err = __ovs_nla_copy_actions(net, attr, key, sfa, key->eth.type,
net                37 net/openvswitch/flow_netlink.h int ovs_nla_get_flow_metadata(struct net *net,
net                45 net/openvswitch/flow_netlink.h int ovs_nla_get_match(struct net *, struct sw_flow_match *,
net                57 net/openvswitch/flow_netlink.h int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
net                53 net/openvswitch/vport-geneve.c 	struct net *net = ovs_dp_get_net(parms->dp);
net                85 net/openvswitch/vport-geneve.c 	dev = geneve_dev_create_fb(net, parms->name, NET_NAME_USER, dst_port);
net                41 net/openvswitch/vport-gre.c 	struct net *net = ovs_dp_get_net(parms->dp);
net                51 net/openvswitch/vport-gre.c 	dev = gretap_fb_dev_create(net, parms->name, NET_NAME_USER);
net                73 net/openvswitch/vport-vxlan.c 	struct net *net = ovs_dp_get_net(parms->dp);
net               114 net/openvswitch/vport-vxlan.c 	dev = vxlan_dev_create(net, parms->name, NET_NAME_USER, &conf);
net                55 net/openvswitch/vport.c static struct hlist_head *hash_bucket(const struct net *net, const char *name)
net                57 net/openvswitch/vport.c 	unsigned int hash = jhash(name, strlen(name), (unsigned long) net);
net                94 net/openvswitch/vport.c struct vport *ovs_vport_locate(const struct net *net, const char *name)
net                96 net/openvswitch/vport.c 	struct hlist_head *bucket = hash_bucket(net, name);
net               101 net/openvswitch/vport.c 		    net_eq(ovs_dp_get_net(vport->dp), net))
net                31 net/openvswitch/vport.h struct vport *ovs_vport_locate(const struct net *net, const char *name);
net              1419 net/packet/af_packet.c 	struct net *net = read_pnet(&f->net);
net              1423 net/packet/af_packet.c 	if (!net_eq(dev_net(dev), net) || !num) {
net              1429 net/packet/af_packet.c 		skb = ip_check_defrag(net, skb, IP_DEFRAG_AF_PACKET);
net              1609 net/packet/af_packet.c 		    read_pnet(&f->net) == sock_net(sk)) {
net              1691 net/packet/af_packet.c 		    read_pnet(&f->net) == sock_net(sk)) {
net              1704 net/packet/af_packet.c 		write_pnet(&match->net, sock_net(sk));
net              3016 net/packet/af_packet.c 	struct net *net;
net              3022 net/packet/af_packet.c 	net = sock_net(sk);
net              3025 net/packet/af_packet.c 	mutex_lock(&net->packet.sklist_lock);
net              3027 net/packet/af_packet.c 	mutex_unlock(&net->packet.sklist_lock);
net              3030 net/packet/af_packet.c 	sock_prot_inuse_add(net, sk->sk_prot, -1);
net              3232 net/packet/af_packet.c static int packet_create(struct net *net, struct socket *sock, int protocol,
net              3240 net/packet/af_packet.c 	if (!ns_capable(net->user_ns, CAP_NET_RAW))
net              3249 net/packet/af_packet.c 	sk = sk_alloc(net, PF_PACKET, GFP_KERNEL, &packet_proto, kern);
net              3293 net/packet/af_packet.c 	mutex_lock(&net->packet.sklist_lock);
net              3294 net/packet/af_packet.c 	sk_add_node_tail_rcu(sk, &net->packet.sklist);
net              3295 net/packet/af_packet.c 	mutex_unlock(&net->packet.sklist_lock);
net              3298 net/packet/af_packet.c 	sock_prot_inuse_add(net, &packet_proto, 1);
net              4069 net/packet/af_packet.c 	struct net *net = dev_net(dev);
net              4072 net/packet/af_packet.c 	sk_for_each_rcu(sk, &net->packet.sklist) {
net              4575 net/packet/af_packet.c 	struct net *net = seq_file_net(seq);
net              4578 net/packet/af_packet.c 	return seq_hlist_start_head_rcu(&net->packet.sklist, *pos);
net              4583 net/packet/af_packet.c 	struct net *net = seq_file_net(seq);
net              4584 net/packet/af_packet.c 	return seq_hlist_next_rcu(v, &net->packet.sklist, pos);
net              4625 net/packet/af_packet.c static int __net_init packet_net_init(struct net *net)
net              4627 net/packet/af_packet.c 	mutex_init(&net->packet.sklist_lock);
net              4628 net/packet/af_packet.c 	INIT_HLIST_HEAD(&net->packet.sklist);
net              4630 net/packet/af_packet.c 	if (!proc_create_net("packet", 0, net->proc_net, &packet_seq_ops,
net              4637 net/packet/af_packet.c static void __net_exit packet_net_exit(struct net *net)
net              4639 net/packet/af_packet.c 	remove_proc_entry("packet", net->proc_net);
net              4640 net/packet/af_packet.c 	WARN_ON_ONCE(!hlist_empty(&net->packet.sklist));
net               192 net/packet/diag.c 	struct net *net;
net               196 net/packet/diag.c 	net = sock_net(skb->sk);
net               200 net/packet/diag.c 	mutex_lock(&net->packet.sklist_lock);
net               201 net/packet/diag.c 	sk_for_each(sk, &net->packet.sklist) {
net               202 net/packet/diag.c 		if (!net_eq(sock_net(sk), net))
net               218 net/packet/diag.c 	mutex_unlock(&net->packet.sklist_lock);
net               227 net/packet/diag.c 	struct net *net = sock_net(skb->sk);
net               242 net/packet/diag.c 		return netlink_dump_start(net->diag_nlsk, skb, h, &c);
net                83 net/packet/internal.h 	possible_net_t		net;
net                50 net/phonet/af_phonet.c static int pn_socket_create(struct net *net, struct socket *sock, int protocol,
net                87 net/phonet/af_phonet.c 	sk = sk_alloc(net, PF_PHONET, GFP_KERNEL, pnp->prot, kern);
net               227 net/phonet/af_phonet.c 	struct net *net = sock_net(sk);
net               246 net/phonet/af_phonet.c 		dev = dev_get_by_index(net, sk->sk_bound_dev_if);
net               247 net/phonet/af_phonet.c 	else if (phonet_address_lookup(net, daddr) == 0) {
net               248 net/phonet/af_phonet.c 		dev = phonet_device_get(net);
net               252 net/phonet/af_phonet.c 		struct sock *sk = pn_find_sock_by_res(net, res);
net               255 net/phonet/af_phonet.c 			dev = phonet_device_get(net);
net               258 net/phonet/af_phonet.c 			dev = phonet_route_output(net, daddr);
net               260 net/phonet/af_phonet.c 		dev = phonet_route_output(net, daddr);
net               362 net/phonet/af_phonet.c 	struct net *net = dev_net(dev);
net               389 net/phonet/af_phonet.c 		pn_deliver_sock_broadcast(net, skb);
net               395 net/phonet/af_phonet.c 		struct sock *sk = pn_find_sock_by_res(net, sa.spn_resource);
net               401 net/phonet/af_phonet.c 	if (phonet_address_lookup(net, pn_sockaddr_get_addr(&sa)) == 0) {
net               403 net/phonet/af_phonet.c 		struct sock *sk = pn_find_sock_by_sa(net, &sa);
net               418 net/phonet/af_phonet.c 		out_dev = phonet_route_output(net, pn_sockaddr_get_addr(&sa));
net                36 net/phonet/pn_dev.c static struct phonet_net *phonet_pernet(struct net *net)
net                38 net/phonet/pn_dev.c 	BUG_ON(!net);
net                40 net/phonet/pn_dev.c 	return net_generic(net, phonet_net_id);
net                43 net/phonet/pn_dev.c struct phonet_device_list *phonet_device_list(struct net *net)
net                45 net/phonet/pn_dev.c 	struct phonet_net *pnn = phonet_pernet(net);
net               111 net/phonet/pn_dev.c struct net_device *phonet_device_get(struct net *net)
net               113 net/phonet/pn_dev.c 	struct phonet_device_list *pndevs = phonet_device_list(net);
net               209 net/phonet/pn_dev.c int phonet_address_lookup(struct net *net, u8 addr)
net               211 net/phonet/pn_dev.c 	struct phonet_device_list *pndevs = phonet_device_list(net);
net               306 net/phonet/pn_dev.c static int __net_init phonet_init_net(struct net *net)
net               308 net/phonet/pn_dev.c 	struct phonet_net *pnn = phonet_pernet(net);
net               310 net/phonet/pn_dev.c 	if (!proc_create_net("phonet", 0, net->proc_net, &pn_sock_seq_ops,
net               320 net/phonet/pn_dev.c static void __net_exit phonet_exit_net(struct net *net)
net               322 net/phonet/pn_dev.c 	struct phonet_net *pnn = phonet_pernet(net);
net               324 net/phonet/pn_dev.c 	remove_proc_entry("phonet", net->proc_net);
net               396 net/phonet/pn_dev.c struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr)
net               398 net/phonet/pn_dev.c 	struct phonet_net *pnn = phonet_pernet(net);
net               407 net/phonet/pn_dev.c struct net_device *phonet_route_output(struct net *net, u8 daddr)
net               409 net/phonet/pn_dev.c 	struct phonet_net *pnn = phonet_pernet(net);
net               421 net/phonet/pn_dev.c 		dev = phonet_device_get(net); /* Default route */
net                54 net/phonet/pn_netlink.c 	struct net *net = sock_net(skb->sk);
net                82 net/phonet/pn_netlink.c 	dev = __dev_get_by_index(net, ifm->ifa_index);
net               221 net/phonet/pn_netlink.c 	struct net *net = sock_net(skb->sk);
net               250 net/phonet/pn_netlink.c 	dev = __dev_get_by_index(net, nla_get_u32(tb[RTA_OIF]));
net               265 net/phonet/pn_netlink.c 	struct net *net = sock_net(skb->sk);
net               270 net/phonet/pn_netlink.c 		struct net_device *dev = phonet_route_get_rcu(net, addr << 2);
net                66 net/phonet/socket.c struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn)
net                79 net/phonet/socket.c 		if (!net_eq(sock_net(sknode), net))
net               104 net/phonet/socket.c void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb)
net               116 net/phonet/socket.c 			if (!net_eq(sock_net(sknode), net))
net               484 net/phonet/socket.c 	struct net *net = sock_net(sk);
net               503 net/phonet/socket.c 			tmpsk = pn_find_sock_by_sa(net, &try_sa);
net               513 net/phonet/socket.c 		tmpsk = pn_find_sock_by_sa(net, &try_sa);
net               532 net/phonet/socket.c 	struct net *net = seq_file_net(seq);
net               539 net/phonet/socket.c 			if (!net_eq(net, sock_net(sknode)))
net               552 net/phonet/socket.c 	struct net *net = seq_file_net(seq);
net               556 net/phonet/socket.c 	while (sk && !net_eq(net, sock_net(sk)));
net               625 net/phonet/socket.c struct sock *pn_find_sock_by_res(struct net *net, u8 res)
net               629 net/phonet/socket.c 	if (!net_eq(net, &init_net))
net               707 net/phonet/socket.c 	struct net *net = seq_file_net(seq);
net               710 net/phonet/socket.c 	if (!net_eq(net, &init_net))
net               725 net/phonet/socket.c 	struct net *net = seq_file_net(seq);
net               728 net/phonet/socket.c 	BUG_ON(!net_eq(net, &init_net));
net                78 net/psample/psample.c 		if (!net_eq(group->net, sock_net(msg->sk)))
net               130 net/psample/psample.c 		genlmsg_multicast_netns(&psample_nl_family, group->net, msg, 0,
net               136 net/psample/psample.c static struct psample_group *psample_group_create(struct net *net,
net               145 net/psample/psample.c 	group->net = net;
net               161 net/psample/psample.c psample_group_lookup(struct net *net, u32 group_num)
net               166 net/psample/psample.c 		if ((group->group_num == group_num) && (group->net == net))
net               171 net/psample/psample.c struct psample_group *psample_group_get(struct net *net, u32 group_num)
net               177 net/psample/psample.c 	group = psample_group_lookup(net, group_num);
net               179 net/psample/psample.c 		group = psample_group_create(net, group_num);
net               282 net/psample/psample.c 	genlmsg_multicast_netns(&psample_nl_family, group->net, nl_skb, 0,
net              1044 net/qrtr/qrtr.c static int qrtr_create(struct net *net, struct socket *sock,
net              1053 net/qrtr/qrtr.c 	sk = sk_alloc(net, AF_QIPCRTR, GFP_KERNEL, &qrtr_proto, kern);
net               700 net/rds/af_rds.c static int rds_create(struct net *net, struct socket *sock, int protocol,
net               708 net/rds/af_rds.c 	sk = sk_alloc(net, AF_RDS, GFP_KERNEL, &rds_proto, kern);
net                82 net/rds/connection.c static struct rds_connection *rds_conn_lookup(struct net *net,
net                96 net/rds/connection.c 		    net == rds_conn_net(conn) &&
net               160 net/rds/connection.c static struct rds_connection *__rds_conn_create(struct net *net,
net               176 net/rds/connection.c 	conn = rds_conn_lookup(net, head, laddr, faddr, trans, tos, dev_if);
net               224 net/rds/connection.c 	rds_conn_net_set(conn, net);
net               239 net/rds/connection.c 	loop_trans = rds_trans_get_preferred(net, faddr, conn->c_dev_if);
net               302 net/rds/connection.c 		found = rds_conn_lookup(net, head, laddr, faddr, trans,
net               335 net/rds/connection.c struct rds_connection *rds_conn_create(struct net *net,
net               341 net/rds/connection.c 	return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 0, dev_if);
net               345 net/rds/connection.c struct rds_connection *rds_conn_create_outgoing(struct net *net,
net               351 net/rds/connection.c 	return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 1, dev_if);
net               402 net/rds/ib.c   static int rds_ib_laddr_check(struct net *net, const struct in6_addr *addr,
net               703 net/rds/ib_cm.c static u32 __rds_find_ifindex(struct net *net, const struct in6_addr *addr)
net               709 net/rds/ib_cm.c 	for_each_netdev_rcu(net, dev) {
net               710 net/rds/ib_cm.c 		if (ipv6_chk_addr(net, addr, dev, 1)) {
net               196 net/rds/loop.c static void rds_loop_kill_conns(struct net *net)
net               203 net/rds/loop.c 		struct net *c_net = read_pnet(&lc->conn->c_net);
net               205 net/rds/loop.c 		if (net != c_net)
net               217 net/rds/loop.c static void __net_exit rds_loop_exit_net(struct net *net)
net               219 net/rds/loop.c 	rds_loop_kill_conns(net);
net               175 net/rds/rds.h  struct net *rds_conn_net(struct rds_connection *conn)
net               181 net/rds/rds.h  void rds_conn_net_set(struct rds_connection *conn, struct net *net)
net               183 net/rds/rds.h  	write_pnet(&conn->c_net, net);
net               549 net/rds/rds.h  	int (*laddr_check)(struct net *net, const struct in6_addr *addr,
net               769 net/rds/rds.h  struct rds_connection *rds_conn_create(struct net *net,
net               775 net/rds/rds.h  struct rds_connection *rds_conn_create_outgoing(struct net *net,
net              1006 net/rds/rds.h  struct rds_transport *rds_trans_get_preferred(struct net *net,
net               326 net/rds/tcp.c  static int rds_tcp_laddr_check(struct net *net, const struct in6_addr *addr,
net               335 net/rds/tcp.c  		if (inet_addr_type(net, addr->s6_addr32[3]) == RTN_LOCAL)
net               345 net/rds/tcp.c  		dev = dev_get_by_index_rcu(net, scope_id);
net               354 net/rds/tcp.c  	ret = ipv6_chk_addr(net, addr, dev, 0);
net               503 net/rds/tcp.c  	struct net *net = sock_net(sk);
net               504 net/rds/tcp.c  	struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
net               531 net/rds/tcp.c  	struct net *net = sock_net(sk);
net               532 net/rds/tcp.c  	struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
net               537 net/rds/tcp.c  static __net_init int rds_tcp_init_net(struct net *net)
net               539 net/rds/tcp.c  	struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
net               548 net/rds/tcp.c  	if (net == &init_net) {
net               561 net/rds/tcp.c  	rtn->rds_tcp_sysctl = register_net_sysctl(net, "net/rds/tcp", tbl);
net               569 net/rds/tcp.c  	rtn->rds_tcp_listen_sock = rds_tcp_listen_init(net, true);
net               571 net/rds/tcp.c  	rtn->rds_tcp_listen_sock = rds_tcp_listen_init(net, false);
net               578 net/rds/tcp.c  		rtn->rds_tcp_listen_sock = rds_tcp_listen_init(net, false);
net               593 net/rds/tcp.c  	if (net != &init_net)
net               598 net/rds/tcp.c  static void rds_tcp_kill_sock(struct net *net)
net               602 net/rds/tcp.c  	struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
net               609 net/rds/tcp.c  		struct net *c_net = read_pnet(&tc->t_cpath->cp_conn->c_net);
net               611 net/rds/tcp.c  		if (net != c_net)
net               625 net/rds/tcp.c  static void __net_exit rds_tcp_exit_net(struct net *net)
net               627 net/rds/tcp.c  	struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
net               629 net/rds/tcp.c  	rds_tcp_kill_sock(net);
net               634 net/rds/tcp.c  	if (net != &init_net)
net               645 net/rds/tcp.c  void *rds_tcp_listen_sock_def_readable(struct net *net)
net               647 net/rds/tcp.c  	struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
net               661 net/rds/tcp.c  static void rds_tcp_sysctl_reset(struct net *net)
net               667 net/rds/tcp.c  		struct net *c_net = read_pnet(&tc->t_cpath->cp_conn->c_net);
net               669 net/rds/tcp.c  		if (net != c_net || !tc->t_sock)
net               682 net/rds/tcp.c  	struct net *net = current->nsproxy->net_ns;
net               692 net/rds/tcp.c  		rds_tcp_sysctl_reset(net);
net                70 net/rds/tcp.h  struct socket *rds_tcp_listen_init(struct net *net, bool isv6);
net                75 net/rds/tcp.h  void *rds_tcp_listen_sock_def_readable(struct net *net);
net               288 net/rds/tcp_listen.c struct socket *rds_tcp_listen_init(struct net *net, bool isv6)
net               297 net/rds/tcp_listen.c 	ret = sock_create_kern(net, isv6 ? PF_INET6 : PF_INET, SOCK_STREAM,
net                79 net/rds/transport.c struct rds_transport *rds_trans_get_preferred(struct net *net,
net                98 net/rds/transport.c 		if (trans && (trans->laddr_check(net, addr, scope_id) == 0) &&
net               488 net/rose/af_rose.c static int rose_create(struct net *net, struct socket *sock, int protocol,
net               494 net/rose/af_rose.c 	if (!net_eq(net, &init_net))
net               500 net/rose/af_rose.c 	sk = sk_alloc(net, PF_ROSE, GFP_ATOMIC, &rose_proto, kern);
net               731 net/rxrpc/af_rxrpc.c static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
net               751 net/rxrpc/af_rxrpc.c 	sk = sk_alloc(net, PF_RXRPC, GFP_KERNEL, &rxrpc_proto, kern);
net              1019 net/rxrpc/ar-internal.h struct rxrpc_local *rxrpc_lookup_local(struct net *, const struct sockaddr_rxrpc *);
net              1057 net/rxrpc/ar-internal.h static inline struct rxrpc_net *rxrpc_net(struct net *net)
net              1059 net/rxrpc/ar-internal.h 	return net_generic(net, rxrpc_net_id);
net               107 net/rxrpc/local_object.c static int rxrpc_open_socket(struct rxrpc_local *local, struct net *net)
net               116 net/rxrpc/local_object.c 	ret = sock_create_kern(net, local->srx.transport.family,
net               221 net/rxrpc/local_object.c struct rxrpc_local *rxrpc_lookup_local(struct net *net,
net               225 net/rxrpc/local_object.c 	struct rxrpc_net *rxnet = rxrpc_net(net);
net               272 net/rxrpc/local_object.c 	ret = rxrpc_open_socket(local, net);
net                43 net/rxrpc/net_ns.c static __net_init int rxrpc_init_net(struct net *net)
net                45 net/rxrpc/net_ns.c 	struct rxrpc_net *rxnet = rxrpc_net(net);
net                92 net/rxrpc/net_ns.c 	rxnet->proc_net = proc_net_mkdir(net, "rxrpc", net->proc_net);
net               114 net/rxrpc/net_ns.c static __net_exit void rxrpc_exit_net(struct net *net)
net               116 net/rxrpc/net_ns.c 	struct rxrpc_net *rxnet = rxrpc_net(net);
net               155 net/rxrpc/peer_object.c 	struct net *net = sock_net(&rx->sk);
net               170 net/rxrpc/peer_object.c 			net, fl4, NULL,
net               189 net/rxrpc/peer_object.c 		dst = ip6_route_output(net, NULL, fl6);
net               842 net/sched/act_api.c struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
net               916 net/sched/act_api.c 		err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, ovr, bind,
net               919 net/sched/act_api.c 		err = a_o->init(net, nla, est, &a, ovr, bind, rtnl_held,
net               955 net/sched/act_api.c int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
net               972 net/sched/act_api.c 		act = tcf_action_init_1(net, tp, tb[i], est, name, ovr, bind,
net              1073 net/sched/act_api.c tcf_get_notify(struct net *net, u32 portid, struct nlmsghdr *n,
net              1089 net/sched/act_api.c 	return rtnl_unicast(skb, net, portid);
net              1092 net/sched/act_api.c static struct tc_action *tcf_action_get_1(struct net *net, struct nlattr *nla,
net              1122 net/sched/act_api.c 	if (ops->lookup(net, &a, index) == 0) {
net              1136 net/sched/act_api.c static int tca_action_flush(struct net *net, struct nlattr *nla,
net              1187 net/sched/act_api.c 	err = ops->walk(net, skb, &dcb, RTM_DELACTION, ops, extack);
net              1198 net/sched/act_api.c 	err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1214 net/sched/act_api.c static int tcf_action_delete(struct net *net, struct tc_action *actions[])
net              1244 net/sched/act_api.c tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[],
net              1263 net/sched/act_api.c 	ret = tcf_action_delete(net, actions);
net              1270 net/sched/act_api.c 	ret = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1278 net/sched/act_api.c tca_action_gd(struct net *net, struct nlattr *nla, struct nlmsghdr *n,
net              1294 net/sched/act_api.c 			return tca_action_flush(net, tb[1], n, portid, extack);
net              1301 net/sched/act_api.c 		act = tcf_action_get_1(net, tb[i], n, portid, extack);
net              1313 net/sched/act_api.c 		ret = tcf_get_notify(net, portid, n, actions, event, extack);
net              1315 net/sched/act_api.c 		ret = tcf_del_notify(net, n, actions, portid, attr_size, extack);
net              1326 net/sched/act_api.c tcf_add_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[],
net              1344 net/sched/act_api.c 	err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1351 net/sched/act_api.c static int tcf_action_add(struct net *net, struct nlattr *nla,
net              1360 net/sched/act_api.c 		ret = tcf_action_init(net, NULL, nla, NULL, NULL, ovr, 0,
net              1368 net/sched/act_api.c 	ret = tcf_add_notify(net, n, actions, portid, attr_size, extack);
net              1385 net/sched/act_api.c 	struct net *net = sock_net(skb->sk);
net              1415 net/sched/act_api.c 		ret = tcf_action_add(net, tca[TCA_ACT_TAB], n, portid, ovr,
net              1419 net/sched/act_api.c 		ret = tca_action_gd(net, tca[TCA_ACT_TAB], n,
net              1423 net/sched/act_api.c 		ret = tca_action_gd(net, tca[TCA_ACT_TAB], n,
net              1457 net/sched/act_api.c 	struct net *net = sock_net(skb->sk);
net              1518 net/sched/act_api.c 	ret = a_o->walk(net, skb, cb, RTM_GETACTION, a_o, NULL);
net               275 net/sched/act_bpf.c static int tcf_bpf_init(struct net *net, struct nlattr *nla,
net               280 net/sched/act_bpf.c 	struct tc_action_net *tn = net_generic(net, bpf_net_id);
net               391 net/sched/act_bpf.c static int tcf_bpf_walker(struct net *net, struct sk_buff *skb,
net               396 net/sched/act_bpf.c 	struct tc_action_net *tn = net_generic(net, bpf_net_id);
net               401 net/sched/act_bpf.c static int tcf_bpf_search(struct net *net, struct tc_action **a, u32 index)
net               403 net/sched/act_bpf.c 	struct tc_action_net *tn = net_generic(net, bpf_net_id);
net               421 net/sched/act_bpf.c static __net_init int bpf_init_net(struct net *net)
net               423 net/sched/act_bpf.c 	struct tc_action_net *tn = net_generic(net, bpf_net_id);
net               425 net/sched/act_bpf.c 	return tc_action_net_init(net, tn, &act_bpf_ops);
net                69 net/sched/act_connmark.c 			       proto, ca->net, &tuple))
net                75 net/sched/act_connmark.c 	thash = nf_conntrack_find_get(ca->net, &zone, &tuple);
net                94 net/sched/act_connmark.c static int tcf_connmark_init(struct net *net, struct nlattr *nla,
net               100 net/sched/act_connmark.c 	struct tc_action_net *tn = net_generic(net, connmark_net_id);
net               136 net/sched/act_connmark.c 		ci->net = net;
net               201 net/sched/act_connmark.c static int tcf_connmark_walker(struct net *net, struct sk_buff *skb,
net               206 net/sched/act_connmark.c 	struct tc_action_net *tn = net_generic(net, connmark_net_id);
net               211 net/sched/act_connmark.c static int tcf_connmark_search(struct net *net, struct tc_action **a, u32 index)
net               213 net/sched/act_connmark.c 	struct tc_action_net *tn = net_generic(net, connmark_net_id);
net               230 net/sched/act_connmark.c static __net_init int connmark_init_net(struct net *net)
net               232 net/sched/act_connmark.c 	struct tc_action_net *tn = net_generic(net, connmark_net_id);
net               234 net/sched/act_connmark.c 	return tc_action_net_init(net, tn, &act_connmark_ops);
net                43 net/sched/act_csum.c static int tcf_csum_init(struct net *net, struct nlattr *nla,
net                48 net/sched/act_csum.c 	struct tc_action_net *tn = net_generic(net, csum_net_id);
net               677 net/sched/act_csum.c static int tcf_csum_walker(struct net *net, struct sk_buff *skb,
net               682 net/sched/act_csum.c 	struct tc_action_net *tn = net_generic(net, csum_net_id);
net               687 net/sched/act_csum.c static int tcf_csum_search(struct net *net, struct tc_action **a, u32 index)
net               689 net/sched/act_csum.c 	struct tc_action_net *tn = net_generic(net, csum_net_id);
net               713 net/sched/act_csum.c static __net_init int csum_init_net(struct net *net)
net               715 net/sched/act_csum.c 	struct tc_action_net *tn = net_generic(net, csum_net_id);
net               717 net/sched/act_csum.c 	return tc_action_net_init(net, tn, &act_csum_ops);
net                43 net/sched/act_ct.c static bool tcf_ct_skb_nfct_cached(struct net *net, struct sk_buff *skb,
net                52 net/sched/act_ct.c 	if (!net_eq(net, read_pnet(&ct->ct_net)))
net               151 net/sched/act_ct.c static int tcf_ct_handle_fragments(struct net *net, struct sk_buff *skb,
net               178 net/sched/act_ct.c 		err = ip_defrag(net, skb, user);
net               187 net/sched/act_ct.c 		err = nf_ct_frag6_gather(net, skb, user);
net               382 net/sched/act_ct.c 	struct net *net = dev_net(skb->dev);
net               420 net/sched/act_ct.c 	err = tcf_ct_handle_fragments(net, skb, family, p->zone);
net               437 net/sched/act_ct.c 	cached = tcf_ct_skb_nfct_cached(net, skb, p->zone, force);
net               449 net/sched/act_ct.c 		state.net = net;
net               587 net/sched/act_ct.c static int tcf_ct_fill_params(struct net *net,
net               593 net/sched/act_ct.c 	struct tc_ct_action_net *tn = net_generic(net, ct_net_id);
net               655 net/sched/act_ct.c 	tmpl = nf_ct_tmpl_alloc(net, &zone, GFP_KERNEL);
net               667 net/sched/act_ct.c static int tcf_ct_init(struct net *net, struct nlattr *nla,
net               673 net/sched/act_ct.c 	struct tc_action_net *tn = net_generic(net, ct_net_id);
net               730 net/sched/act_ct.c 	err = tcf_ct_fill_params(net, params, parm, tb, extack);
net               897 net/sched/act_ct.c static int tcf_ct_walker(struct net *net, struct sk_buff *skb,
net               902 net/sched/act_ct.c 	struct tc_action_net *tn = net_generic(net, ct_net_id);
net               907 net/sched/act_ct.c static int tcf_ct_search(struct net *net, struct tc_action **a, u32 index)
net               909 net/sched/act_ct.c 	struct tc_action_net *tn = net_generic(net, ct_net_id);
net               941 net/sched/act_ct.c static __net_init int ct_init_net(struct net *net)
net               944 net/sched/act_ct.c 	struct tc_ct_action_net *tn = net_generic(net, ct_net_id);
net               946 net/sched/act_ct.c 	if (nf_connlabels_get(net, n_bits - 1)) {
net               953 net/sched/act_ct.c 	return tc_action_net_init(net, &tn->tn, &act_ct_ops);
net               958 net/sched/act_ct.c 	struct net *net;
net               961 net/sched/act_ct.c 	list_for_each_entry(net, net_list, exit_list) {
net               962 net/sched/act_ct.c 		struct tc_ct_action_net *tn = net_generic(net, ct_net_id);
net               965 net/sched/act_ct.c 			nf_connlabels_put(net);
net               118 net/sched/act_ctinfo.c 				       proto, cp->net, &tuple))
net               123 net/sched/act_ctinfo.c 		thash = nf_conntrack_find_get(cp->net, &zone, &tuple);
net               153 net/sched/act_ctinfo.c static int tcf_ctinfo_init(struct net *net, struct nlattr *nla,
net               159 net/sched/act_ctinfo.c 	struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
net               242 net/sched/act_ctinfo.c 	cp_new->net = net;
net               346 net/sched/act_ctinfo.c static int tcf_ctinfo_walker(struct net *net, struct sk_buff *skb,
net               351 net/sched/act_ctinfo.c 	struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
net               356 net/sched/act_ctinfo.c static int tcf_ctinfo_search(struct net *net, struct tc_action **a, u32 index)
net               358 net/sched/act_ctinfo.c 	struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
net               386 net/sched/act_ctinfo.c static __net_init int ctinfo_init_net(struct net *net)
net               388 net/sched/act_ctinfo.c 	struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
net               390 net/sched/act_ctinfo.c 	return tc_action_net_init(net, tn, &act_ctinfo_ops);
net                53 net/sched/act_gact.c static int tcf_gact_init(struct net *net, struct nlattr *nla,
net                58 net/sched/act_gact.c 	struct tc_action_net *tn = net_generic(net, gact_net_id);
net               233 net/sched/act_gact.c static int tcf_gact_walker(struct net *net, struct sk_buff *skb,
net               238 net/sched/act_gact.c 	struct tc_action_net *tn = net_generic(net, gact_net_id);
net               243 net/sched/act_gact.c static int tcf_gact_search(struct net *net, struct tc_action **a, u32 index)
net               245 net/sched/act_gact.c 	struct tc_action_net *tn = net_generic(net, gact_net_id);
net               277 net/sched/act_gact.c static __net_init int gact_init_net(struct net *net)
net               279 net/sched/act_gact.c 	struct tc_action_net *tn = net_generic(net, gact_net_id);
net               281 net/sched/act_gact.c 	return tc_action_net_init(net, tn, &act_gact_ops);
net               465 net/sched/act_ife.c static int tcf_ife_init(struct net *net, struct nlattr *nla,
net               470 net/sched/act_ife.c 	struct tc_action_net *tn = net_generic(net, ife_net_id);
net               858 net/sched/act_ife.c static int tcf_ife_walker(struct net *net, struct sk_buff *skb,
net               863 net/sched/act_ife.c 	struct tc_action_net *tn = net_generic(net, ife_net_id);
net               868 net/sched/act_ife.c static int tcf_ife_search(struct net *net, struct tc_action **a, u32 index)
net               870 net/sched/act_ife.c 	struct tc_action_net *tn = net_generic(net, ife_net_id);
net               888 net/sched/act_ife.c static __net_init int ife_init_net(struct net *net)
net               890 net/sched/act_ife.c 	struct tc_action_net *tn = net_generic(net, ife_net_id);
net               892 net/sched/act_ife.c 	return tc_action_net_init(net, tn, &act_ife_ops);
net                33 net/sched/act_ipt.c static int ipt_init_target(struct net *net, struct xt_entry_target *t,
net                48 net/sched/act_ipt.c 	par.net       = net;
net                64 net/sched/act_ipt.c static void ipt_destroy_target(struct xt_entry_target *t, struct net *net)
net                70 net/sched/act_ipt.c 		.net      = net,
net                82 net/sched/act_ipt.c 		ipt_destroy_target(ipt->tcfi_t, a->idrinfo->net);
net                95 net/sched/act_ipt.c static int __tcf_ipt_init(struct net *net, unsigned int id, struct nlattr *nla,
net               100 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, id);
net               176 net/sched/act_ipt.c 	err = ipt_init_target(net, t, tname, hook);
net               184 net/sched/act_ipt.c 		ipt_destroy_target(ipt->tcfi_t, net);
net               205 net/sched/act_ipt.c static int tcf_ipt_init(struct net *net, struct nlattr *nla,
net               210 net/sched/act_ipt.c 	return __tcf_ipt_init(net, ipt_net_id, nla, est, a, &act_ipt_ops, ovr,
net               214 net/sched/act_ipt.c static int tcf_xt_init(struct net *net, struct nlattr *nla,
net               219 net/sched/act_ipt.c 	return __tcf_ipt_init(net, xt_net_id, nla, est, a, &act_xt_ops, ovr,
net               230 net/sched/act_ipt.c 		.net	= dev_net(skb->dev),
net               320 net/sched/act_ipt.c static int tcf_ipt_walker(struct net *net, struct sk_buff *skb,
net               325 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, ipt_net_id);
net               330 net/sched/act_ipt.c static int tcf_ipt_search(struct net *net, struct tc_action **a, u32 index)
net               332 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, ipt_net_id);
net               350 net/sched/act_ipt.c static __net_init int ipt_init_net(struct net *net)
net               352 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, ipt_net_id);
net               354 net/sched/act_ipt.c 	return tc_action_net_init(net, tn, &act_ipt_ops);
net               369 net/sched/act_ipt.c static int tcf_xt_walker(struct net *net, struct sk_buff *skb,
net               374 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, xt_net_id);
net               379 net/sched/act_ipt.c static int tcf_xt_search(struct net *net, struct tc_action **a, u32 index)
net               381 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, xt_net_id);
net               399 net/sched/act_ipt.c static __net_init int xt_init_net(struct net *net)
net               401 net/sched/act_ipt.c 	struct tc_action_net *tn = net_generic(net, xt_net_id);
net               403 net/sched/act_ipt.c 	return tc_action_net_init(net, tn, &act_xt_ops);
net                92 net/sched/act_mirred.c static int tcf_mirred_init(struct net *net, struct nlattr *nla,
net                98 net/sched/act_mirred.c 	struct tc_action_net *tn = net_generic(net, mirred_net_id);
net               174 net/sched/act_mirred.c 		dev = dev_get_by_index(net, parm->ifindex);
net               364 net/sched/act_mirred.c static int tcf_mirred_walker(struct net *net, struct sk_buff *skb,
net               369 net/sched/act_mirred.c 	struct tc_action_net *tn = net_generic(net, mirred_net_id);
net               374 net/sched/act_mirred.c static int tcf_mirred_search(struct net *net, struct tc_action **a, u32 index)
net               376 net/sched/act_mirred.c 	struct tc_action_net *tn = net_generic(net, mirred_net_id);
net               457 net/sched/act_mirred.c static __net_init int mirred_init_net(struct net *net)
net               459 net/sched/act_mirred.c 	struct tc_action_net *tn = net_generic(net, mirred_net_id);
net               461 net/sched/act_mirred.c 	return tc_action_net_init(net, tn, &act_mirred_ops);
net               134 net/sched/act_mpls.c static int tcf_mpls_init(struct net *net, struct nlattr *nla,
net               139 net/sched/act_mpls.c 	struct tc_action_net *tn = net_generic(net, mpls_net_id);
net               203 net/sched/act_mpls.c 			mpls_ttl = net->mpls.default_ttl ?
net               204 net/sched/act_mpls.c 				   net->mpls.default_ttl : ACT_MPLS_TTL_DEFAULT;
net               351 net/sched/act_mpls.c static int tcf_mpls_walker(struct net *net, struct sk_buff *skb,
net               356 net/sched/act_mpls.c 	struct tc_action_net *tn = net_generic(net, mpls_net_id);
net               361 net/sched/act_mpls.c static int tcf_mpls_search(struct net *net, struct tc_action **a, u32 index)
net               363 net/sched/act_mpls.c 	struct tc_action_net *tn = net_generic(net, mpls_net_id);
net               381 net/sched/act_mpls.c static __net_init int mpls_init_net(struct net *net)
net               383 net/sched/act_mpls.c 	struct tc_action_net *tn = net_generic(net, mpls_net_id);
net               385 net/sched/act_mpls.c 	return tc_action_net_init(net, tn, &act_mpls_ops);
net                36 net/sched/act_nat.c static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est,
net                41 net/sched/act_nat.c 	struct tc_action_net *tn = net_generic(net, nat_net_id);
net               297 net/sched/act_nat.c static int tcf_nat_walker(struct net *net, struct sk_buff *skb,
net               302 net/sched/act_nat.c 	struct tc_action_net *tn = net_generic(net, nat_net_id);
net               307 net/sched/act_nat.c static int tcf_nat_search(struct net *net, struct tc_action **a, u32 index)
net               309 net/sched/act_nat.c 	struct tc_action_net *tn = net_generic(net, nat_net_id);
net               326 net/sched/act_nat.c static __net_init int nat_init_net(struct net *net)
net               328 net/sched/act_nat.c 	struct tc_action_net *tn = net_generic(net, nat_net_id);
net               330 net/sched/act_nat.c 	return tc_action_net_init(net, tn, &act_nat_ops);
net               137 net/sched/act_pedit.c static int tcf_pedit_init(struct net *net, struct nlattr *nla,
net               142 net/sched/act_pedit.c 	struct tc_action_net *tn = net_generic(net, pedit_net_id);
net               465 net/sched/act_pedit.c static int tcf_pedit_walker(struct net *net, struct sk_buff *skb,
net               470 net/sched/act_pedit.c 	struct tc_action_net *tn = net_generic(net, pedit_net_id);
net               475 net/sched/act_pedit.c static int tcf_pedit_search(struct net *net, struct tc_action **a, u32 index)
net               477 net/sched/act_pedit.c 	struct tc_action_net *tn = net_generic(net, pedit_net_id);
net               495 net/sched/act_pedit.c static __net_init int pedit_init_net(struct net *net)
net               497 net/sched/act_pedit.c 	struct tc_action_net *tn = net_generic(net, pedit_net_id);
net               499 net/sched/act_pedit.c 	return tc_action_net_init(net, tn, &act_pedit_ops);
net                28 net/sched/act_police.c static int tcf_police_walker(struct net *net, struct sk_buff *skb,
net                33 net/sched/act_police.c 	struct tc_action_net *tn = net_generic(net, police_net_id);
net                47 net/sched/act_police.c static int tcf_police_init(struct net *net, struct nlattr *nla,
net                59 net/sched/act_police.c 	struct tc_action_net *tn = net_generic(net, police_net_id);
net               364 net/sched/act_police.c static int tcf_police_search(struct net *net, struct tc_action **a, u32 index)
net               366 net/sched/act_police.c 	struct tc_action_net *tn = net_generic(net, police_net_id);
net               389 net/sched/act_police.c static __net_init int police_init_net(struct net *net)
net               391 net/sched/act_police.c 	struct tc_action_net *tn = net_generic(net, police_net_id);
net               393 net/sched/act_police.c 	return tc_action_net_init(net, tn, &act_police_ops);
net                36 net/sched/act_sample.c static int tcf_sample_init(struct net *net, struct nlattr *nla,
net                41 net/sched/act_sample.c 	struct tc_action_net *tn = net_generic(net, sample_net_id);
net                93 net/sched/act_sample.c 	psample_group = psample_group_get(net, psample_group_num);
net               239 net/sched/act_sample.c static int tcf_sample_walker(struct net *net, struct sk_buff *skb,
net               244 net/sched/act_sample.c 	struct tc_action_net *tn = net_generic(net, sample_net_id);
net               249 net/sched/act_sample.c static int tcf_sample_search(struct net *net, struct tc_action **a, u32 index)
net               251 net/sched/act_sample.c 	struct tc_action_net *tn = net_generic(net, sample_net_id);
net               296 net/sched/act_sample.c static __net_init int sample_init_net(struct net *net)
net               298 net/sched/act_sample.c 	struct tc_action_net *tn = net_generic(net, sample_net_id);
net               300 net/sched/act_sample.c 	return tc_action_net_init(net, tn, &act_sample_ops);
net                86 net/sched/act_simple.c static int tcf_simp_init(struct net *net, struct nlattr *nla,
net                91 net/sched/act_simple.c 	struct tc_action_net *tn = net_generic(net, simp_net_id);
net               201 net/sched/act_simple.c static int tcf_simp_walker(struct net *net, struct sk_buff *skb,
net               206 net/sched/act_simple.c 	struct tc_action_net *tn = net_generic(net, simp_net_id);
net               211 net/sched/act_simple.c static int tcf_simp_search(struct net *net, struct tc_action **a, u32 index)
net               213 net/sched/act_simple.c 	struct tc_action_net *tn = net_generic(net, simp_net_id);
net               231 net/sched/act_simple.c static __net_init int simp_init_net(struct net *net)
net               233 net/sched/act_simple.c 	struct tc_action_net *tn = net_generic(net, simp_net_id);
net               235 net/sched/act_simple.c 	return tc_action_net_init(net, tn, &act_simp_ops);
net                86 net/sched/act_skbedit.c static int tcf_skbedit_init(struct net *net, struct nlattr *nla,
net                92 net/sched/act_skbedit.c 	struct tc_action_net *tn = net_generic(net, skbedit_net_id);
net               293 net/sched/act_skbedit.c static int tcf_skbedit_walker(struct net *net, struct sk_buff *skb,
net               298 net/sched/act_skbedit.c 	struct tc_action_net *tn = net_generic(net, skbedit_net_id);
net               303 net/sched/act_skbedit.c static int tcf_skbedit_search(struct net *net, struct tc_action **a, u32 index)
net               305 net/sched/act_skbedit.c 	struct tc_action_net *tn = net_generic(net, skbedit_net_id);
net               335 net/sched/act_skbedit.c static __net_init int skbedit_init_net(struct net *net)
net               337 net/sched/act_skbedit.c 	struct tc_action_net *tn = net_generic(net, skbedit_net_id);
net               339 net/sched/act_skbedit.c 	return tc_action_net_init(net, tn, &act_skbedit_ops);
net                79 net/sched/act_skbmod.c static int tcf_skbmod_init(struct net *net, struct nlattr *nla,
net                85 net/sched/act_skbmod.c 	struct tc_action_net *tn = net_generic(net, skbmod_net_id);
net               256 net/sched/act_skbmod.c static int tcf_skbmod_walker(struct net *net, struct sk_buff *skb,
net               261 net/sched/act_skbmod.c 	struct tc_action_net *tn = net_generic(net, skbmod_net_id);
net               266 net/sched/act_skbmod.c static int tcf_skbmod_search(struct net *net, struct tc_action **a, u32 index)
net               268 net/sched/act_skbmod.c 	struct tc_action_net *tn = net_generic(net, skbmod_net_id);
net               286 net/sched/act_skbmod.c static __net_init int skbmod_init_net(struct net *net)
net               288 net/sched/act_skbmod.c 	struct tc_action_net *tn = net_generic(net, skbmod_net_id);
net               290 net/sched/act_skbmod.c 	return tc_action_net_init(net, tn, &act_skbmod_ops);
net               212 net/sched/act_tunnel_key.c static int tunnel_key_init(struct net *net, struct nlattr *nla,
net               218 net/sched/act_tunnel_key.c 	struct tc_action_net *tn = net_generic(net, tunnel_key_net_id);
net               573 net/sched/act_tunnel_key.c static int tunnel_key_walker(struct net *net, struct sk_buff *skb,
net               578 net/sched/act_tunnel_key.c 	struct tc_action_net *tn = net_generic(net, tunnel_key_net_id);
net               583 net/sched/act_tunnel_key.c static int tunnel_key_search(struct net *net, struct tc_action **a, u32 index)
net               585 net/sched/act_tunnel_key.c 	struct tc_action_net *tn = net_generic(net, tunnel_key_net_id);
net               603 net/sched/act_tunnel_key.c static __net_init int tunnel_key_init_net(struct net *net)
net               605 net/sched/act_tunnel_key.c 	struct tc_action_net *tn = net_generic(net, tunnel_key_net_id);
net               607 net/sched/act_tunnel_key.c 	return tc_action_net_init(net, tn, &act_tunnel_key_ops);
net               102 net/sched/act_vlan.c static int tcf_vlan_init(struct net *net, struct nlattr *nla,
net               107 net/sched/act_vlan.c 	struct tc_action_net *tn = net_generic(net, vlan_net_id);
net               294 net/sched/act_vlan.c static int tcf_vlan_walker(struct net *net, struct sk_buff *skb,
net               299 net/sched/act_vlan.c 	struct tc_action_net *tn = net_generic(net, vlan_net_id);
net               317 net/sched/act_vlan.c static int tcf_vlan_search(struct net *net, struct tc_action **a, u32 index)
net               319 net/sched/act_vlan.c 	struct tc_action_net *tn = net_generic(net, vlan_net_id);
net               347 net/sched/act_vlan.c static __net_init int vlan_init_net(struct net *net)
net               349 net/sched/act_vlan.c 	struct tc_action_net *tn = net_generic(net, vlan_net_id);
net               351 net/sched/act_vlan.c 	return tc_action_net_init(net, tn, &act_vlan_ops);
net               617 net/sched/cls_api.c 		.net		= dev_net(dev),
net               689 net/sched/cls_api.c 		.net		= dev_net(dev),
net               714 net/sched/cls_api.c 	bo.net = dev_net(dev);
net               869 net/sched/cls_api.c static int tcf_block_insert(struct tcf_block *block, struct net *net,
net               872 net/sched/cls_api.c 	struct tcf_net *tn = net_generic(net, tcf_net_id);
net               885 net/sched/cls_api.c static void tcf_block_remove(struct tcf_block *block, struct net *net)
net               887 net/sched/cls_api.c 	struct tcf_net *tn = net_generic(net, tcf_net_id);
net               894 net/sched/cls_api.c static struct tcf_block *tcf_block_create(struct net *net, struct Qdisc *q,
net               914 net/sched/cls_api.c 	block->net = net;
net               923 net/sched/cls_api.c static struct tcf_block *tcf_block_lookup(struct net *net, u32 block_index)
net               925 net/sched/cls_api.c 	struct tcf_net *tn = net_generic(net, tcf_net_id);
net               930 net/sched/cls_api.c static struct tcf_block *tcf_block_refcnt_get(struct net *net, u32 block_index)
net               935 net/sched/cls_api.c 	block = tcf_block_lookup(net, block_index);
net              1060 net/sched/cls_api.c static int __tcf_qdisc_find(struct net *net, struct Qdisc **q,
net              1074 net/sched/cls_api.c 	dev = dev_get_by_index_rcu(net, ifindex);
net              1155 net/sched/cls_api.c static struct tcf_block *__tcf_block_find(struct net *net, struct Qdisc *q,
net              1163 net/sched/cls_api.c 		block = tcf_block_refcnt_get(net, block_index);
net              1206 net/sched/cls_api.c 			tcf_block_remove(block, block->net);
net              1229 net/sched/cls_api.c static struct tcf_block *tcf_block_find(struct net *net, struct Qdisc **q,
net              1239 net/sched/cls_api.c 	err = __tcf_qdisc_find(net, q, parent, ifindex, true, extack);
net              1247 net/sched/cls_api.c 	block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack);
net              1340 net/sched/cls_api.c 	struct net *net = qdisc_net(q);
net              1346 net/sched/cls_api.c 		block = tcf_block_refcnt_get(net, ei->block_index);
net              1349 net/sched/cls_api.c 		block = tcf_block_create(net, q, ei->block_index, extack);
net              1353 net/sched/cls_api.c 			err = tcf_block_insert(block, net, extack);
net              1781 net/sched/cls_api.c static int tcf_fill_node(struct net *net, struct sk_buff *skb,
net              1814 net/sched/cls_api.c 		    tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0)
net              1826 net/sched/cls_api.c static int tfilter_notify(struct net *net, struct sk_buff *oskb,
net              1840 net/sched/cls_api.c 	if (tcf_fill_node(net, skb, tp, block, q, parent, fh, portid,
net              1848 net/sched/cls_api.c 		err = netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT);
net              1850 net/sched/cls_api.c 		err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1858 net/sched/cls_api.c static int tfilter_del_notify(struct net *net, struct sk_buff *oskb,
net              1872 net/sched/cls_api.c 	if (tcf_fill_node(net, skb, tp, block, q, parent, fh, portid,
net              1887 net/sched/cls_api.c 		err = netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT);
net              1889 net/sched/cls_api.c 		err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1899 net/sched/cls_api.c static void tfilter_notify_chain(struct net *net, struct sk_buff *oskb,
net              1909 net/sched/cls_api.c 		tfilter_notify(net, oskb, n, tp, block,
net              1922 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              1942 net/sched/cls_api.c 	if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net              1977 net/sched/cls_api.c 	err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack);
net              2002 net/sched/cls_api.c 	block = __tcf_block_find(net, q, cl, t->tcm_ifindex, t->tcm_block_index,
net              2104 net/sched/cls_api.c 	err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh,
net              2108 net/sched/cls_api.c 		tfilter_notify(net, skb, n, tp, block, q, parent, fh,
net              2149 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              2167 net/sched/cls_api.c 	if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net              2187 net/sched/cls_api.c 	err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack);
net              2211 net/sched/cls_api.c 	block = __tcf_block_find(net, q, cl, t->tcm_ifindex, t->tcm_block_index,
net              2239 net/sched/cls_api.c 		tfilter_notify_chain(net, skb, block, q, parent, n,
net              2263 net/sched/cls_api.c 		tfilter_notify(net, skb, n, tp, block, q, parent, fh,
net              2278 net/sched/cls_api.c 		err = tfilter_del_notify(net, skb, n, tp, block,
net              2309 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              2344 net/sched/cls_api.c 	err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack);
net              2367 net/sched/cls_api.c 	block = __tcf_block_find(net, q, cl, t->tcm_ifindex, t->tcm_block_index,
net              2407 net/sched/cls_api.c 		err = tfilter_notify(net, skb, n, tp, block, q, parent,
net              2440 net/sched/cls_api.c 	struct net *net = sock_net(a->skb->sk);
net              2442 net/sched/cls_api.c 	return tcf_fill_node(net, a->skb, tp, a->block, a->q, a->parent,
net              2452 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              2476 net/sched/cls_api.c 			if (tcf_fill_node(net, skb, tp, block, q, parent, NULL,
net              2512 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              2531 net/sched/cls_api.c 		block = tcf_block_refcnt_get(net, tcm->tcm_block_index);
net              2546 net/sched/cls_api.c 		dev = __dev_get_by_index(net, tcm->tcm_ifindex);
net              2607 net/sched/cls_api.c 			      struct net *net, struct sk_buff *skb,
net              2642 net/sched/cls_api.c 		if (ops->tmplt_dump(skb, net, priv) < 0)
net              2660 net/sched/cls_api.c 	struct net *net = block->net;
net              2669 net/sched/cls_api.c 			       chain->index, net, skb, block, portid,
net              2676 net/sched/cls_api.c 		err = netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT);
net              2678 net/sched/cls_api.c 		err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              2692 net/sched/cls_api.c 	struct net *net = block->net;
net              2699 net/sched/cls_api.c 	if (tc_chain_fill_node(tmplt_ops, tmplt_priv, chain_index, net, skb,
net              2706 net/sched/cls_api.c 		return netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT);
net              2708 net/sched/cls_api.c 	return rtnetlink_send(skb, net, portid, RTNLGRP_TC, flags & NLM_F_ECHO);
net              2711 net/sched/cls_api.c static int tc_chain_tmplt_add(struct tcf_chain *chain, struct net *net,
net              2736 net/sched/cls_api.c 	tmplt_priv = ops->tmplt_create(net, chain, tca, extack);
net              2762 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              2774 net/sched/cls_api.c 	    !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net              2787 net/sched/cls_api.c 	block = tcf_block_find(net, &q, &parent, &cl,
net              2848 net/sched/cls_api.c 		err = tc_chain_tmplt_add(chain, net, tca, extack);
net              2858 net/sched/cls_api.c 		tfilter_notify_chain(net, skb, block, q, parent, n,
net              2896 net/sched/cls_api.c 	struct net *net = sock_net(skb->sk);
net              2916 net/sched/cls_api.c 		block = tcf_block_refcnt_get(net, tcm->tcm_block_index);
net              2931 net/sched/cls_api.c 		dev = __dev_get_by_index(net, tcm->tcm_ifindex);
net              2976 net/sched/cls_api.c 					 chain->index, net, skb, block,
net              3009 net/sched/cls_api.c int tcf_exts_validate(struct net *net, struct tcf_proto *tp, struct nlattr **tb,
net              3019 net/sched/cls_api.c 			act = tcf_action_init_1(net, tp, tb[exts->police],
net              3032 net/sched/cls_api.c 			err = tcf_action_init(net, tp, tb[exts->action],
net              3604 net/sched/cls_api.c static __net_init int tcf_net_init(struct net *net)
net              3606 net/sched/cls_api.c 	struct tcf_net *tn = net_generic(net, tcf_net_id);
net              3613 net/sched/cls_api.c static void __net_exit tcf_net_exit(struct net *net)
net              3615 net/sched/cls_api.c 	struct tcf_net *tn = net_generic(net, tcf_net_id);
net               145 net/sched/cls_basic.c static int basic_set_parms(struct net *net, struct tcf_proto *tp,
net               153 net/sched/cls_basic.c 	err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, true, extack);
net               170 net/sched/cls_basic.c static int basic_change(struct net *net, struct sk_buff *in_skb,
net               198 net/sched/cls_basic.c 	err = tcf_exts_init(&fnew->exts, net, TCA_BASIC_ACT, TCA_BASIC_POLICE);
net               219 net/sched/cls_basic.c 	err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], ovr,
net               279 net/sched/cls_basic.c static int basic_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               408 net/sched/cls_bpf.c static int cls_bpf_set_parms(struct net *net, struct tcf_proto *tp,
net               422 net/sched/cls_bpf.c 	ret = tcf_exts_validate(net, tp, tb, est, &prog->exts, ovr, true,
net               458 net/sched/cls_bpf.c static int cls_bpf_change(struct net *net, struct sk_buff *in_skb,
net               482 net/sched/cls_bpf.c 	ret = tcf_exts_init(&prog->exts, net, TCA_BPF_ACT, TCA_BPF_POLICE);
net               506 net/sched/cls_bpf.c 	ret = cls_bpf_set_parms(net, tp, prog, base, tb, tca[TCA_RATE], ovr,
net               581 net/sched/cls_bpf.c static int cls_bpf_dump(struct net *net, struct tcf_proto *tp, void *fh,
net                76 net/sched/cls_cgroup.c static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb,
net               100 net/sched/cls_cgroup.c 	err = tcf_exts_init(&new->exts, net, TCA_CGROUP_ACT, TCA_CGROUP_POLICE);
net               111 net/sched/cls_cgroup.c 	err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &new->exts, ovr,
net               170 net/sched/cls_cgroup.c static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               387 net/sched/cls_flow.c static int flow_change(struct net *net, struct sk_buff *in_skb,
net               441 net/sched/cls_flow.c 	err = tcf_exts_init(&fnew->exts, net, TCA_FLOW_ACT, TCA_FLOW_POLICE);
net               445 net/sched/cls_flow.c 	err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &fnew->exts, ovr,
net               618 net/sched/cls_flow.c static int flow_dump(struct net *net, struct tcf_proto *tp, void *fh,
net              1052 net/sched/cls_flower.c static int fl_set_key(struct net *net, struct nlattr **tb,
net              1060 net/sched/cls_flower.c 		int err = tcf_change_indev(net, tb[TCA_FLOWER_INDEV], extack);
net              1468 net/sched/cls_flower.c static int fl_set_parms(struct net *net, struct tcf_proto *tp,
net              1477 net/sched/cls_flower.c 	err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, rtnl_held,
net              1491 net/sched/cls_flower.c 	err = fl_set_key(net, tb, &f->key, &mask->key, extack);
net              1528 net/sched/cls_flower.c static int fl_change(struct net *net, struct sk_buff *in_skb,
net              1577 net/sched/cls_flower.c 	err = tcf_exts_init(&fnew->exts, net, TCA_FLOWER_ACT, 0);
net              1590 net/sched/cls_flower.c 	err = fl_set_parms(net, tp, fnew, mask, base, tb, tca[TCA_RATE], ovr,
net              1910 net/sched/cls_flower.c static void *fl_tmplt_create(struct net *net, struct tcf_chain *chain,
net              1935 net/sched/cls_flower.c 	err = fl_set_key(net, tb, &tmplt->dummy_key, &tmplt->mask, extack);
net              2231 net/sched/cls_flower.c static int fl_dump_key(struct sk_buff *skb, struct net *net,
net              2237 net/sched/cls_flower.c 		dev = __dev_get_by_index(net, key->meta.ingress_ifindex);
net              2433 net/sched/cls_flower.c static int fl_dump(struct net *net, struct tcf_proto *tp, void *fh,
net              2460 net/sched/cls_flower.c 	if (fl_dump_key(skb, net, key, mask))
net              2491 net/sched/cls_flower.c static int fl_tmplt_dump(struct sk_buff *skb, struct net *net, void *tmplt_priv)
net              2504 net/sched/cls_flower.c 	if (fl_dump_key(skb, net, key, mask))
net               199 net/sched/cls_fw.c static int fw_set_parms(struct net *net, struct tcf_proto *tp,
net               208 net/sched/cls_fw.c 	err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, ovr,
net               220 net/sched/cls_fw.c 		ret = tcf_change_indev(net, tb[TCA_FW_INDEV], extack);
net               237 net/sched/cls_fw.c static int fw_change(struct net *net, struct sk_buff *in_skb,
net               273 net/sched/cls_fw.c 		err = tcf_exts_init(&fnew->exts, net, TCA_FW_ACT,
net               280 net/sched/cls_fw.c 		err = fw_set_parms(net, tp, fnew, tb, tca, base, ovr, extack);
net               323 net/sched/cls_fw.c 	err = tcf_exts_init(&f->exts, net, TCA_FW_ACT, TCA_FW_POLICE);
net               329 net/sched/cls_fw.c 	err = fw_set_parms(net, tp, f, tb, tca, base, ovr, extack);
net               375 net/sched/cls_fw.c static int fw_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               399 net/sched/cls_fw.c 		dev = __dev_get_by_index(net, f->ifindex);
net               163 net/sched/cls_matchall.c static int mall_set_parms(struct net *net, struct tcf_proto *tp,
net               171 net/sched/cls_matchall.c 	err = tcf_exts_validate(net, tp, tb, est, &head->exts, ovr, true,
net               183 net/sched/cls_matchall.c static int mall_change(struct net *net, struct sk_buff *in_skb,
net               216 net/sched/cls_matchall.c 	err = tcf_exts_init(&new->exts, net, TCA_MATCHALL_ACT, 0);
net               230 net/sched/cls_matchall.c 	err = mall_set_parms(net, tp, new, base, tb, tca[TCA_RATE], ovr,
net               344 net/sched/cls_matchall.c static int mall_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               381 net/sched/cls_route.c static int route4_set_parms(struct net *net, struct tcf_proto *tp,
net               393 net/sched/cls_route.c 	err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, true, extack);
net               465 net/sched/cls_route.c static int route4_change(struct net *net, struct sk_buff *in_skb,
net               497 net/sched/cls_route.c 	err = tcf_exts_init(&f->exts, net, TCA_ROUTE4_ACT, TCA_ROUTE4_POLICE);
net               512 net/sched/cls_route.c 	err = route4_set_parms(net, tp, base, f, handle, head, tb,
net               595 net/sched/cls_route.c static int route4_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               471 net/sched/cls_rsvp.h static int rsvp_change(struct net *net, struct sk_buff *in_skb,
net               499 net/sched/cls_rsvp.h 	err = tcf_exts_init(&e, net, TCA_RSVP_ACT, TCA_RSVP_POLICE);
net               502 net/sched/cls_rsvp.h 	err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr, true,
net               521 net/sched/cls_rsvp.h 		err = tcf_exts_init(&n->exts, net, TCA_RSVP_ACT,
net               550 net/sched/cls_rsvp.h 	err = tcf_exts_init(&f->exts, net, TCA_RSVP_ACT, TCA_RSVP_POLICE);
net               690 net/sched/cls_rsvp.h static int rsvp_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               273 net/sched/cls_tcindex.c 				      struct net *net)
net               277 net/sched/cls_tcindex.c 	return tcf_exts_init(&r->exts, net, TCA_TCINDEX_ACT,
net               302 net/sched/cls_tcindex.c static int tcindex_alloc_perfect_hash(struct net *net, struct tcindex_data *cp)
net               312 net/sched/cls_tcindex.c 		err = tcf_exts_init(&cp->perfect[i].exts, net,
net               327 net/sched/cls_tcindex.c tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base,
net               339 net/sched/cls_tcindex.c 	err = tcf_exts_init(&e, net, TCA_TCINDEX_ACT, TCA_TCINDEX_POLICE);
net               342 net/sched/cls_tcindex.c 	err = tcf_exts_validate(net, tp, tb, est, &e, ovr, true, extack);
net               385 net/sched/cls_tcindex.c 		if (tcindex_alloc_perfect_hash(net, cp) < 0)
net               394 net/sched/cls_tcindex.c 	err = tcindex_filter_result_init(&new_filter_result, cp, net);
net               433 net/sched/cls_tcindex.c 			if (tcindex_alloc_perfect_hash(net, cp) < 0)
net               462 net/sched/cls_tcindex.c 		err = tcindex_filter_result_init(&f->result, cp, net);
net               475 net/sched/cls_tcindex.c 		err = tcindex_filter_result_init(old_r, cp, net);
net               523 net/sched/cls_tcindex.c tcindex_change(struct net *net, struct sk_buff *in_skb,
net               546 net/sched/cls_tcindex.c 	return tcindex_set_parms(net, tp, base, handle, p, r, tb,
net               630 net/sched/cls_tcindex.c static int tcindex_dump(struct net *net, struct tcf_proto *tp, void *fh,
net               709 net/sched/cls_u32.c static int u32_set_parms(struct net *net, struct tcf_proto *tp,
net               717 net/sched/cls_u32.c 	err = tcf_exts_validate(net, tp, tb, est, &n->exts, ovr, true, extack);
net               757 net/sched/cls_u32.c 		ret = tcf_change_indev(net, tb[TCA_U32_INDEV], extack);
net               792 net/sched/cls_u32.c static struct tc_u_knode *u32_init_knode(struct net *net, struct tcf_proto *tp,
net               835 net/sched/cls_u32.c 	if (tcf_exts_init(&new->exts, net, TCA_U32_ACT, TCA_U32_POLICE)) {
net               843 net/sched/cls_u32.c static int u32_change(struct net *net, struct sk_buff *in_skb,
net               898 net/sched/cls_u32.c 		new = u32_init_knode(net, tp, n);
net               902 net/sched/cls_u32.c 		err = u32_set_parms(net, tp, base, new, tb,
net              1048 net/sched/cls_u32.c 	err = tcf_exts_init(&n->exts, net, TCA_U32_ACT, TCA_U32_POLICE);
net              1068 net/sched/cls_u32.c 	err = u32_set_parms(net, tp, base, n, tb, tca[TCA_RATE], ovr,
net              1271 net/sched/cls_u32.c static int u32_dump(struct net *net, struct tcf_proto *tp, void *fh,
net              1345 net/sched/cls_u32.c 			dev = __dev_get_by_index(net, n->ifindex);
net               119 net/sched/em_canid.c static int em_canid_change(struct net *net, void *data, int len,
net                19 net/sched/em_ipset.c static int em_ipset_change(struct net *net, void *data, int data_len,
net                28 net/sched/em_ipset.c 	index = ip_set_nfnl_get_byindex(net, set->index);
net                37 net/sched/em_ipset.c 	ip_set_nfnl_put(net, index);
net                45 net/sched/em_ipset.c 		ip_set_nfnl_put(em->net, set->index);
net                58 net/sched/em_ipset.c 		.net	= em->net,
net                94 net/sched/em_ipset.c 		indev = dev_get_by_index_rcu(em->net, skb->skb_iif);
net                42 net/sched/em_ipt.c static int check_match(struct net *net, struct em_ipt_match *im, int mdata_len)
net                50 net/sched/em_ipt.c 	mtpar.net	= net;
net               126 net/sched/em_ipt.c static int em_ipt_change(struct net *net, void *data, int data_len,
net               171 net/sched/em_ipt.c 	ret = check_match(net, im, mdata_len);
net               194 net/sched/em_ipt.c 			.net = em->net,
net               235 net/sched/em_ipt.c 		indev = dev_get_by_index_rcu(em->net, skb->skb_iif);
net               238 net/sched/em_ipt.c 			   indev ?: skb->dev, skb->dev, NULL, em->net, NULL);
net               903 net/sched/em_meta.c static int em_meta_change(struct net *net, void *data, int len,
net                22 net/sched/em_nbyte.c static int em_nbyte_change(struct net *net, void *data, int data_len,
net                43 net/sched/em_text.c static int em_text_change(struct net *net, void *data, int len,
net               177 net/sched/ematch.c 	struct net *net = tp->chain->block->net;
net               244 net/sched/ematch.c 			err = em->ops->change(net, data, data_len, em);
net               275 net/sched/ematch.c 	em->net = net;
net               956 net/sched/sch_api.c static int qdisc_notify(struct net *net, struct sk_buff *oskb,
net               979 net/sched/sch_api.c 		return rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net               987 net/sched/sch_api.c static void notify_and_destroy(struct net *net, struct sk_buff *skb,
net               992 net/sched/sch_api.c 		qdisc_notify(net, skb, n, clid, old, new);
net              1026 net/sched/sch_api.c 	struct net *net = dev_net(dev);
net              1067 net/sched/sch_api.c 			notify_and_destroy(net, skb, n, classid,
net              1076 net/sched/sch_api.c 			notify_and_destroy(net, skb, n, classid, old, new);
net              1103 net/sched/sch_api.c 		notify_and_destroy(net, skb, n, classid, old, new);
net              1410 net/sched/sch_api.c 	struct net *net = sock_net(skb->sk);
net              1420 net/sched/sch_api.c 	    !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net              1428 net/sched/sch_api.c 	dev = __dev_get_by_index(net, tcm->tcm_ifindex);
net              1483 net/sched/sch_api.c 		qdisc_notify(net, skb, n, clid, NULL, q);
net              1495 net/sched/sch_api.c 	struct net *net = sock_net(skb->sk);
net              1503 net/sched/sch_api.c 	if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net              1517 net/sched/sch_api.c 	dev = __dev_get_by_index(net, tcm->tcm_ifindex);
net              1625 net/sched/sch_api.c 		qdisc_notify(net, skb, n, clid, NULL, q);
net              1729 net/sched/sch_api.c 	struct net *net = sock_net(skb->sk);
net              1748 net/sched/sch_api.c 	for_each_netdev(net, dev) {
net              1831 net/sched/sch_api.c static int tclass_notify(struct net *net, struct sk_buff *oskb,
net              1848 net/sched/sch_api.c 	err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1855 net/sched/sch_api.c static int tclass_del_notify(struct net *net,
net              1883 net/sched/sch_api.c 	err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
net              1978 net/sched/sch_api.c 	struct net *net = sock_net(skb->sk);
net              1992 net/sched/sch_api.c 	    !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
net              2000 net/sched/sch_api.c 	dev = __dev_get_by_index(net, tcm->tcm_ifindex);
net              2080 net/sched/sch_api.c 			err = tclass_del_notify(net, cops, skb, n, q, cl);
net              2085 net/sched/sch_api.c 			err = tclass_notify(net, skb, n, q, cl, RTM_NEWTCLASS);
net              2103 net/sched/sch_api.c 		tclass_notify(net, skb, n, q, new_cl, RTM_NEWTCLASS);
net              2191 net/sched/sch_api.c 	struct net *net = sock_net(skb->sk);
net              2198 net/sched/sch_api.c 	dev = dev_get_by_index(net, tcm->tcm_ifindex);
net              2232 net/sched/sch_api.c static int __net_init psched_net_init(struct net *net)
net              2236 net/sched/sch_api.c 	e = proc_create_single("psched", 0, net->proc_net, psched_show);
net              2243 net/sched/sch_api.c static void __net_exit psched_net_exit(struct net *net)
net              2245 net/sched/sch_api.c 	remove_proc_entry("psched", net->proc_net);
net              2248 net/sched/sch_api.c static int __net_init psched_net_init(struct net *net)
net              2253 net/sched/sch_api.c static void __net_exit psched_net_exit(struct net *net)
net                67 net/sctp/associola.c 	asoc->base.net = sock_net(sk);
net               582 net/sctp/associola.c 	struct net *net = sock_net(asoc->base.sk);
net               612 net/sctp/associola.c 	peer = sctp_transport_new(net, addr, gfp);
net               981 net/sctp/associola.c 	struct net *net = sock_net(asoc->base.sk);
net              1039 net/sctp/associola.c 			SCTP_INC_STATS(net, SCTP_MIB_INCTRLCHUNKS);
net              1049 net/sctp/associola.c 		error = sctp_do_sm(net, SCTP_EVENT_T_CHUNK, subtype,
net              1449 net/sctp/associola.c 	struct net *net = sock_net(asoc->base.sk);
net              1457 net/sctp/associola.c 			   (asoc->base.sk->sk_rcvbuf >> net->sctp.rwnd_upd_shift),
net                33 net/sctp/bind_addr.c static int sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest,
net                43 net/sctp/bind_addr.c int sctp_bind_addr_copy(struct net *net, struct sctp_bind_addr *dest,
net                56 net/sctp/bind_addr.c 		error = sctp_copy_one_addr(net, dest, &addr->a, scope,
net                68 net/sctp/bind_addr.c 			error = sctp_copy_one_addr(net, dest, &addr->a,
net               450 net/sctp/bind_addr.c static int sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest,
net               457 net/sctp/bind_addr.c 		error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags);
net               458 net/sctp/bind_addr.c 	} else if (sctp_in_scope(net, addr, scope)) {
net               495 net/sctp/bind_addr.c int sctp_in_scope(struct net *net, const union sctp_addr *addr,
net               514 net/sctp/bind_addr.c 	switch (net->sctp.scope_policy) {
net               256 net/sctp/diag.c 	struct net *net = sock_net(in_skb->sk);
net               287 net/sctp/diag.c 	err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
net               375 net/sctp/diag.c 	struct net *net = sock_net(skb->sk);
net               379 net/sctp/diag.c 	if (!net_eq(sock_net(sk), net))
net               435 net/sctp/diag.c 	struct net *net = sock_net(in_skb->sk);
net               465 net/sctp/diag.c 					     net, &laddr, &paddr, &commp);
net               472 net/sctp/diag.c 	struct net *net = sock_net(skb->sk);
net               510 net/sctp/diag.c 				net, &pos, &commp);
net                45 net/sctp/endpointola.c 	struct net *net = sock_net(sk);
net                52 net/sctp/endpointola.c 	ep->asconf_enable = net->sctp.addip_enable;
net                53 net/sctp/endpointola.c 	ep->auth_enable = net->sctp.auth_enable;
net                84 net/sctp/endpointola.c 	ep->sndbuf_policy = net->sctp.sndbuf_policy;
net                91 net/sctp/endpointola.c 	ep->rcvbuf_policy = net->sctp.rcvbuf_policy;
net               107 net/sctp/endpointola.c 	ep->prsctp_enable = net->sctp.prsctp_enable;
net               108 net/sctp/endpointola.c 	ep->reconf_enable = net->sctp.reconf_enable;
net               109 net/sctp/endpointola.c 	ep->ecn_enable = net->sctp.ecn_enable;
net               113 net/sctp/endpointola.c 	ep->base.net = sock_net(sk);
net               241 net/sctp/endpointola.c 					       struct net *net,
net               247 net/sctp/endpointola.c 	    net_eq(sock_net(ep->base.sk), net)) {
net               296 net/sctp/endpointola.c 	struct net *net = sock_net(ep->base.sk);
net               303 net/sctp/endpointola.c 		if (sctp_has_association(net, &addr->a, paddr))
net               320 net/sctp/endpointola.c 	struct net *net;
net               335 net/sctp/endpointola.c 	net = sock_net(sk);
net               395 net/sctp/endpointola.c 		error = sctp_do_sm(net, SCTP_EVENT_T_CHUNK, subtype, state,
net                49 net/sctp/input.c static struct sctp_association *__sctp_rcv_lookup(struct net *net,
net                55 net/sctp/input.c 					struct net *net, struct sk_buff *skb,
net                59 net/sctp/input.c 					struct net *net,
net                68 net/sctp/input.c static inline int sctp_rcv_checksum(struct net *net, struct sk_buff *skb)
net                76 net/sctp/input.c 		__SCTP_INC_STATS(net, SCTP_MIB_CHECKSUMERRORS);
net                97 net/sctp/input.c 	struct net *net = dev_net(skb->dev);
net               103 net/sctp/input.c 	__SCTP_INC_STATS(net, SCTP_MIB_INSCTPPACKS);
net               128 net/sctp/input.c 		 sctp_rcv_checksum(net, skb) < 0)
net               159 net/sctp/input.c 	asoc = __sctp_rcv_lookup(net, skb, &src, &dest, &transport);
net               162 net/sctp/input.c 		ep = __sctp_rcv_lookup_endpoint(net, skb, &dest, &src);
net               181 net/sctp/input.c 		sk = net->sctp.ctl_sock;
net               197 net/sctp/input.c 			__SCTP_INC_STATS(net, SCTP_MIB_OUTOFBLUES);
net               253 net/sctp/input.c 		__SCTP_INC_STATS(net, SCTP_MIB_IN_PKT_BACKLOG);
net               255 net/sctp/input.c 		__SCTP_INC_STATS(net, SCTP_MIB_IN_PKT_SOFTIRQ);
net               270 net/sctp/input.c 	__SCTP_INC_STATS(net, SCTP_MIB_IN_PKT_DISCARDS);
net               455 net/sctp/input.c 		struct net *net = sock_net(sk);
net               463 net/sctp/input.c 		sctp_do_sm(net, SCTP_EVENT_T_OTHER,
net               471 net/sctp/input.c struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *skb,
net               499 net/sctp/input.c 	asoc = __sctp_lookup_association(net, &saddr, &daddr, &transport);
net               538 net/sctp/input.c 		__NET_INC_STATS(net, LINUX_MIB_LOCKDROPPEDICMPS);
net               583 net/sctp/input.c 	struct net *net = dev_net(skb->dev);
net               590 net/sctp/input.c 	sk = sctp_err_lookup(net, AF_INET, skb, sctp_hdr(skb), &asoc, &transport);
net               595 net/sctp/input.c 		__ICMP_INC_STATS(net, ICMP_MIB_INERRORS);
net               721 net/sctp/input.c 	struct net *net = sock_net(sk);
net               726 net/sctp/input.c 	epb->hashent = sctp_ep_hashfn(net, epb->bind_addr.port);
net               741 net/sctp/input.c 			if (!net_eq(sock_net(sk2), net) || sk2 == sk ||
net               812 net/sctp/input.c static inline __u32 sctp_hashfn(const struct net *net, __be16 lport,
net               823 net/sctp/input.c 			     (__force __u32)lport, net_hash_mix(net), seed);
net               828 net/sctp/input.c 					struct net *net, struct sk_buff *skb,
net               840 net/sctp/input.c 	hash = sctp_ep_hashfn(net, ntohs(lport));
net               845 net/sctp/input.c 		if (sctp_endpoint_is_match(ep, net, laddr))
net               849 net/sctp/input.c 	ep = sctp_sk(net->sctp.ctl_sock)->ep;
net               854 net/sctp/input.c 		__u32 phash = sctp_hashfn(net, lport, paddr, 0);
net               869 net/sctp/input.c 	const struct net	*net;
net               885 net/sctp/input.c 	if (!net_eq(t->asoc->base.net, x->net))
net               900 net/sctp/input.c 	return sctp_hashfn(t->asoc->base.net,
net               909 net/sctp/input.c 	return sctp_hashfn(x->net, x->lport, x->paddr, seed);
net               940 net/sctp/input.c 	arg.net   = sock_net(t->asoc->base.sk);
net               974 net/sctp/input.c 				struct net *net,
net               982 net/sctp/input.c 		.net   = net,
net              1007 net/sctp/input.c 	struct net *net = sock_net(ep->base.sk);
net              1012 net/sctp/input.c 		.net   = net,
net              1028 net/sctp/input.c 					struct net *net,
net              1036 net/sctp/input.c 	t = sctp_addrs_lookup_transport(net, local, peer);
net              1049 net/sctp/input.c struct sctp_association *sctp_lookup_association(struct net *net,
net              1057 net/sctp/input.c 	asoc = __sctp_lookup_association(net, laddr, paddr, transportp);
net              1064 net/sctp/input.c bool sctp_has_association(struct net *net,
net              1070 net/sctp/input.c 	if (sctp_lookup_association(net, laddr, paddr, &transport)) {
net              1096 net/sctp/input.c static struct sctp_association *__sctp_rcv_init_lookup(struct net *net,
net              1136 net/sctp/input.c 		asoc = __sctp_lookup_association(net, laddr, paddr, transportp);
net              1159 net/sctp/input.c 					struct net *net,
net              1179 net/sctp/input.c 	return __sctp_lookup_association(net, laddr, &paddr, transportp);
net              1192 net/sctp/input.c static struct sctp_association *__sctp_rcv_walk_lookup(struct net *net,
net              1234 net/sctp/input.c 			if (have_auth || net->sctp.addip_noauth)
net              1236 net/sctp/input.c 						net, ch, laddr,
net              1259 net/sctp/input.c static struct sctp_association *__sctp_rcv_lookup_harder(struct net *net,
net              1286 net/sctp/input.c 		return __sctp_rcv_init_lookup(net, skb, laddr, transportp);
net              1288 net/sctp/input.c 	return __sctp_rcv_walk_lookup(net, skb, laddr, transportp);
net              1292 net/sctp/input.c static struct sctp_association *__sctp_rcv_lookup(struct net *net,
net              1300 net/sctp/input.c 	asoc = __sctp_lookup_association(net, laddr, paddr, transportp);
net              1308 net/sctp/input.c 	asoc = __sctp_rcv_lookup_harder(net, skb, laddr, transportp);
net                80 net/sctp/ipv6.c 	struct net *net = dev_net(ifa->idev->dev);
net                91 net/sctp/ipv6.c 			spin_lock_bh(&net->sctp.local_addr_lock);
net                92 net/sctp/ipv6.c 			list_add_tail_rcu(&addr->list, &net->sctp.local_addr_list);
net                93 net/sctp/ipv6.c 			sctp_addr_wq_mgmt(net, addr, SCTP_ADDR_NEW);
net                94 net/sctp/ipv6.c 			spin_unlock_bh(&net->sctp.local_addr_lock);
net                98 net/sctp/ipv6.c 		spin_lock_bh(&net->sctp.local_addr_lock);
net               100 net/sctp/ipv6.c 					&net->sctp.local_addr_list, list) {
net               104 net/sctp/ipv6.c 				sctp_addr_wq_mgmt(net, addr, SCTP_ADDR_DEL);
net               111 net/sctp/ipv6.c 		spin_unlock_bh(&net->sctp.local_addr_lock);
net               135 net/sctp/ipv6.c 	struct net *net = dev_net(skb->dev);
net               144 net/sctp/ipv6.c 	sk = sctp_err_lookup(net, AF_INET6, skb, sctp_hdr(skb), &asoc, &transport);
net               149 net/sctp/ipv6.c 		__ICMP6_INC_STATS(net, idev, ICMP6_MIB_INERRORS);
net               631 net/sctp/ipv6.c 	struct net *net = sock_net(&sp->inet.sk);
net               646 net/sctp/ipv6.c 	return sp->inet.freebind || net->ipv6.sysctl.ip_nonlocal_bind ||
net               647 net/sctp/ipv6.c 		ipv6_chk_addr(net, in6, NULL, 0);
net               930 net/sctp/ipv6.c 			struct net *net;
net               933 net/sctp/ipv6.c 			net = sock_net(&opt->inet.sk);
net               935 net/sctp/ipv6.c 			dev = dev_get_by_index_rcu(net, addr->v6.sin6_scope_id);
net               937 net/sctp/ipv6.c 				      net->ipv6.sysctl.ip_nonlocal_bind ||
net               938 net/sctp/ipv6.c 				      ipv6_chk_addr(net, &addr->v6.sin6_addr,
net                97 net/sctp/objcnt.c void sctp_dbg_objcnt_init(struct net *net)
net               102 net/sctp/objcnt.c 			  net->sctp.proc_net_sctp, &sctp_objcnt_seq_ops);
net               282 net/sctp/outqueue.c 	struct net *net = sock_net(q->asoc->base.sk);
net               303 net/sctp/outqueue.c 			SCTP_INC_STATS(net, SCTP_MIB_OUTUNORDERCHUNKS);
net               305 net/sctp/outqueue.c 			SCTP_INC_STATS(net, SCTP_MIB_OUTORDERCHUNKS);
net               308 net/sctp/outqueue.c 		SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net               536 net/sctp/outqueue.c 	struct net *net = sock_net(q->asoc->base.sk);
net               540 net/sctp/outqueue.c 		SCTP_INC_STATS(net, SCTP_MIB_T3_RETRANSMITS);
net               551 net/sctp/outqueue.c 		SCTP_INC_STATS(net, SCTP_MIB_FAST_RETRANSMITS);
net               556 net/sctp/outqueue.c 		SCTP_INC_STATS(net, SCTP_MIB_PMTUD_RETRANSMITS);
net               559 net/sctp/outqueue.c 		SCTP_INC_STATS(net, SCTP_MIB_T1_RETRANSMITS);
net                38 net/sctp/primitive.c int sctp_primitive_ ## name(struct net *net, struct sctp_association *asoc, \
net                50 net/sctp/primitive.c 	error = sctp_do_sm(net, event_type, subtype, state, ep, asoc,	\
net                62 net/sctp/proc.c 	struct net *net = seq->private;
net                68 net/sctp/proc.c 				 net->sctp.sctp_statistics);
net               370 net/sctp/proc.c int __net_init sctp_proc_init(struct net *net)
net               372 net/sctp/proc.c 	net->sctp.proc_net_sctp = proc_net_mkdir(net, "sctp", net->proc_net);
net               373 net/sctp/proc.c 	if (!net->sctp.proc_net_sctp)
net               375 net/sctp/proc.c 	if (!proc_create_net_single("snmp", 0444, net->sctp.proc_net_sctp,
net               378 net/sctp/proc.c 	if (!proc_create_net("eps", 0444, net->sctp.proc_net_sctp,
net               381 net/sctp/proc.c 	if (!proc_create_net("assocs", 0444, net->sctp.proc_net_sctp,
net               384 net/sctp/proc.c 	if (!proc_create_net("remaddr", 0444, net->sctp.proc_net_sctp,
net               390 net/sctp/proc.c 	remove_proc_subtree("sctp", net->proc_net);
net               391 net/sctp/proc.c 	net->sctp.proc_net_sctp = NULL;
net               102 net/sctp/protocol.c static void sctp_get_local_addr_list(struct net *net)
net               109 net/sctp/protocol.c 	for_each_netdev_rcu(net, dev) {
net               112 net/sctp/protocol.c 			af->copy_addrlist(&net->sctp.local_addr_list, dev);
net               119 net/sctp/protocol.c static void sctp_free_local_addr_list(struct net *net)
net               124 net/sctp/protocol.c 	list_for_each_safe(pos, temp, &net->sctp.local_addr_list) {
net               132 net/sctp/protocol.c int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp,
net               140 net/sctp/protocol.c 	list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) {
net               143 net/sctp/protocol.c 		if (!sctp_in_scope(net, &addr->a, scope))
net               348 net/sctp/protocol.c 	struct net *net = sock_net(&sp->inet.sk);
net               349 net/sctp/protocol.c 	int ret = inet_addr_type(net, addr->v4.sin_addr.s_addr);
net               355 net/sctp/protocol.c 	   !net->ipv4.sysctl_ip_nonlocal_bind)
net               620 net/sctp/protocol.c 	struct net *net = from_timer(net, t, sctp.addr_wq_timer);
net               624 net/sctp/protocol.c 	spin_lock_bh(&net->sctp.addr_wq_lock);
net               626 net/sctp/protocol.c 	list_for_each_entry_safe(addrw, temp, &net->sctp.addr_waitq, list) {
net               628 net/sctp/protocol.c 			 "entry:%p\n", __func__, &net->sctp.addr_waitq, &addrw->a.sa,
net               642 net/sctp/protocol.c 			if (ipv6_chk_addr(net, in6, NULL, 0) == 0 &&
net               652 net/sctp/protocol.c 				mod_timer(&net->sctp.addr_wq_timer, timeo_val);
net               657 net/sctp/protocol.c 		list_for_each_entry(sp, &net->sctp.auto_asconf_splist, auto_asconf_list) {
net               675 net/sctp/protocol.c 	spin_unlock_bh(&net->sctp.addr_wq_lock);
net               678 net/sctp/protocol.c static void sctp_free_addr_wq(struct net *net)
net               683 net/sctp/protocol.c 	spin_lock_bh(&net->sctp.addr_wq_lock);
net               684 net/sctp/protocol.c 	del_timer(&net->sctp.addr_wq_timer);
net               685 net/sctp/protocol.c 	list_for_each_entry_safe(addrw, temp, &net->sctp.addr_waitq, list) {
net               689 net/sctp/protocol.c 	spin_unlock_bh(&net->sctp.addr_wq_lock);
net               695 net/sctp/protocol.c static struct sctp_sockaddr_entry *sctp_addr_wq_lookup(struct net *net,
net               700 net/sctp/protocol.c 	list_for_each_entry(addrw, &net->sctp.addr_waitq, list) {
net               716 net/sctp/protocol.c void sctp_addr_wq_mgmt(struct net *net, struct sctp_sockaddr_entry *addr, int cmd)
net               727 net/sctp/protocol.c 	spin_lock_bh(&net->sctp.addr_wq_lock);
net               729 net/sctp/protocol.c 	addrw = sctp_addr_wq_lookup(net, addr);
net               734 net/sctp/protocol.c 				 &net->sctp.addr_waitq);
net               739 net/sctp/protocol.c 		spin_unlock_bh(&net->sctp.addr_wq_lock);
net               746 net/sctp/protocol.c 		spin_unlock_bh(&net->sctp.addr_wq_lock);
net               750 net/sctp/protocol.c 	list_add_tail(&addrw->list, &net->sctp.addr_waitq);
net               753 net/sctp/protocol.c 		 __func__, addrw->state, &addrw->a.sa, &net->sctp.addr_waitq);
net               755 net/sctp/protocol.c 	if (!timer_pending(&net->sctp.addr_wq_timer)) {
net               758 net/sctp/protocol.c 		mod_timer(&net->sctp.addr_wq_timer, timeo_val);
net               760 net/sctp/protocol.c 	spin_unlock_bh(&net->sctp.addr_wq_lock);
net               775 net/sctp/protocol.c 	struct net *net = dev_net(ifa->ifa_dev->dev);
net               785 net/sctp/protocol.c 			spin_lock_bh(&net->sctp.local_addr_lock);
net               786 net/sctp/protocol.c 			list_add_tail_rcu(&addr->list, &net->sctp.local_addr_list);
net               787 net/sctp/protocol.c 			sctp_addr_wq_mgmt(net, addr, SCTP_ADDR_NEW);
net               788 net/sctp/protocol.c 			spin_unlock_bh(&net->sctp.local_addr_lock);
net               792 net/sctp/protocol.c 		spin_lock_bh(&net->sctp.local_addr_lock);
net               794 net/sctp/protocol.c 					&net->sctp.local_addr_list, list) {
net               798 net/sctp/protocol.c 				sctp_addr_wq_mgmt(net, addr, SCTP_ADDR_DEL);
net               805 net/sctp/protocol.c 		spin_unlock_bh(&net->sctp.local_addr_lock);
net               818 net/sctp/protocol.c static int sctp_ctl_sock_init(struct net *net)
net               826 net/sctp/protocol.c 	err = inet_ctl_sock_create(&net->sctp.ctl_sock, family,
net               827 net/sctp/protocol.c 				   SOCK_SEQPACKET, IPPROTO_SCTP, net);
net               831 net/sctp/protocol.c 		err = inet_ctl_sock_create(&net->sctp.ctl_sock, AF_INET,
net               833 net/sctp/protocol.c 					   net);
net              1133 net/sctp/protocol.c static inline int init_sctp_mibs(struct net *net)
net              1135 net/sctp/protocol.c 	net->sctp.sctp_statistics = alloc_percpu(struct sctp_mib);
net              1136 net/sctp/protocol.c 	if (!net->sctp.sctp_statistics)
net              1141 net/sctp/protocol.c static inline void cleanup_sctp_mibs(struct net *net)
net              1143 net/sctp/protocol.c 	free_percpu(net->sctp.sctp_statistics);
net              1198 net/sctp/protocol.c static int __net_init sctp_defaults_init(struct net *net)
net              1207 net/sctp/protocol.c 	net->sctp.rto_initial			= SCTP_RTO_INITIAL;
net              1209 net/sctp/protocol.c 	net->sctp.rto_min	 		= SCTP_RTO_MIN;
net              1211 net/sctp/protocol.c 	net->sctp.rto_max 			= SCTP_RTO_MAX;
net              1213 net/sctp/protocol.c 	net->sctp.rto_alpha			= SCTP_RTO_ALPHA;
net              1215 net/sctp/protocol.c 	net->sctp.rto_beta			= SCTP_RTO_BETA;
net              1218 net/sctp/protocol.c 	net->sctp.valid_cookie_life		= SCTP_DEFAULT_COOKIE_LIFE;
net              1221 net/sctp/protocol.c 	net->sctp.cookie_preserve_enable 	= 1;
net              1225 net/sctp/protocol.c 	net->sctp.sctp_hmac_alg			= "md5";
net              1227 net/sctp/protocol.c 	net->sctp.sctp_hmac_alg			= "sha1";
net              1229 net/sctp/protocol.c 	net->sctp.sctp_hmac_alg			= NULL;
net              1233 net/sctp/protocol.c 	net->sctp.max_burst			= SCTP_DEFAULT_MAX_BURST;
net              1236 net/sctp/protocol.c 	net->sctp.pf_enable = 1;
net              1242 net/sctp/protocol.c 	net->sctp.max_retrans_association	= 10;
net              1243 net/sctp/protocol.c 	net->sctp.max_retrans_path		= 5;
net              1244 net/sctp/protocol.c 	net->sctp.max_retrans_init		= 8;
net              1247 net/sctp/protocol.c 	net->sctp.sndbuf_policy			= 0;
net              1250 net/sctp/protocol.c 	net->sctp.rcvbuf_policy			= 0;
net              1253 net/sctp/protocol.c 	net->sctp.hb_interval			= SCTP_DEFAULT_TIMEOUT_HEARTBEAT;
net              1256 net/sctp/protocol.c 	net->sctp.sack_timeout			= SCTP_DEFAULT_TIMEOUT_SACK;
net              1259 net/sctp/protocol.c 	net->sctp.addip_enable = 0;
net              1260 net/sctp/protocol.c 	net->sctp.addip_noauth = 0;
net              1261 net/sctp/protocol.c 	net->sctp.default_auto_asconf = 0;
net              1264 net/sctp/protocol.c 	net->sctp.prsctp_enable = 1;
net              1267 net/sctp/protocol.c 	net->sctp.reconf_enable = 0;
net              1270 net/sctp/protocol.c 	net->sctp.auth_enable = 0;
net              1273 net/sctp/protocol.c 	net->sctp.ecn_enable = 1;
net              1276 net/sctp/protocol.c 	net->sctp.scope_policy = SCTP_SCOPE_POLICY_ENABLE;
net              1279 net/sctp/protocol.c 	net->sctp.rwnd_upd_shift = SCTP_DEFAULT_RWND_SHIFT;
net              1282 net/sctp/protocol.c 	net->sctp.max_autoclose		= INT_MAX / HZ;
net              1284 net/sctp/protocol.c 	status = sctp_sysctl_net_register(net);
net              1289 net/sctp/protocol.c 	status = init_sctp_mibs(net);
net              1295 net/sctp/protocol.c 	status = sctp_proc_init(net);
net              1300 net/sctp/protocol.c 	sctp_dbg_objcnt_init(net);
net              1303 net/sctp/protocol.c 	INIT_LIST_HEAD(&net->sctp.local_addr_list);
net              1304 net/sctp/protocol.c 	spin_lock_init(&net->sctp.local_addr_lock);
net              1305 net/sctp/protocol.c 	sctp_get_local_addr_list(net);
net              1308 net/sctp/protocol.c 	INIT_LIST_HEAD(&net->sctp.addr_waitq);
net              1309 net/sctp/protocol.c 	INIT_LIST_HEAD(&net->sctp.auto_asconf_splist);
net              1310 net/sctp/protocol.c 	spin_lock_init(&net->sctp.addr_wq_lock);
net              1311 net/sctp/protocol.c 	net->sctp.addr_wq_timer.expires = 0;
net              1312 net/sctp/protocol.c 	timer_setup(&net->sctp.addr_wq_timer, sctp_addr_wq_timeout_handler, 0);
net              1318 net/sctp/protocol.c 	cleanup_sctp_mibs(net);
net              1321 net/sctp/protocol.c 	sctp_sysctl_net_unregister(net);
net              1326 net/sctp/protocol.c static void __net_exit sctp_defaults_exit(struct net *net)
net              1329 net/sctp/protocol.c 	sctp_free_addr_wq(net);
net              1330 net/sctp/protocol.c 	sctp_free_local_addr_list(net);
net              1333 net/sctp/protocol.c 	remove_proc_subtree("sctp", net->proc_net);
net              1334 net/sctp/protocol.c 	net->sctp.proc_net_sctp = NULL;
net              1336 net/sctp/protocol.c 	cleanup_sctp_mibs(net);
net              1337 net/sctp/protocol.c 	sctp_sysctl_net_unregister(net);
net              1345 net/sctp/protocol.c static int __net_init sctp_ctrlsock_init(struct net *net)
net              1350 net/sctp/protocol.c 	status = sctp_ctl_sock_init(net);
net              1357 net/sctp/protocol.c static void __net_exit sctp_ctrlsock_exit(struct net *net)
net              1360 net/sctp/protocol.c 	inet_ctl_sock_destroy(net->sctp.ctl_sock);
net              1973 net/sctp/sm_make_chunk.c static int sctp_verify_ext_param(struct net *net,
net              1999 net/sctp/sm_make_chunk.c 	if (net->sctp.addip_noauth)
net              2124 net/sctp/sm_make_chunk.c static enum sctp_ierror sctp_verify_param(struct net *net,
net              2155 net/sctp/sm_make_chunk.c 		if (!sctp_verify_ext_param(net, ep, param))
net              2245 net/sctp/sm_make_chunk.c int sctp_verify_init(struct net *net, const struct sctp_endpoint *ep,
net              2288 net/sctp/sm_make_chunk.c 		result = sctp_verify_param(net, ep, asoc, param, cid,
net              2314 net/sctp/sm_make_chunk.c 	struct net *net = sock_net(asoc->base.sk);
net              2370 net/sctp/sm_make_chunk.c 	if (!net->sctp.addip_noauth &&
net              2498 net/sctp/sm_make_chunk.c 	struct net *net = sock_net(asoc->base.sk);
net              2527 net/sctp/sm_make_chunk.c 		if (sctp_in_scope(net, &addr, scope))
net              2533 net/sctp/sm_make_chunk.c 		if (!net->sctp.cookie_preserve_enable)
net               237 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(sk);
net               253 net/sctp/sm_sideeffect.c 	error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT,
net               274 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(sk);
net               295 net/sctp/sm_sideeffect.c 	error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT,
net               367 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(sk);
net               391 net/sctp/sm_sideeffect.c 	error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT,
net               413 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(sk);
net               432 net/sctp/sm_sideeffect.c 	sctp_do_sm(net, SCTP_EVENT_T_OTHER,
net               448 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(sk);
net               461 net/sctp/sm_sideeffect.c 	error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT,
net               519 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(asoc->base.sk);
net               547 net/sctp/sm_sideeffect.c 	if (net->sctp.pf_enable &&
net               796 net/sctp/sm_sideeffect.c 		struct net *net = sock_net(asoc->base.sk);
net               799 net/sctp/sm_sideeffect.c 		err = sctp_do_sm(net, SCTP_EVENT_T_OTHER,
net               832 net/sctp/sm_sideeffect.c 	struct net *net = sock_net(asoc->base.sk);
net               846 net/sctp/sm_sideeffect.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net               847 net/sctp/sm_sideeffect.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              1129 net/sctp/sm_sideeffect.c int sctp_do_sm(struct net *net, enum sctp_event_type event_type,
net              1147 net/sctp/sm_sideeffect.c 	state_fn = sctp_sm_lookup_event(net, event_type, state, subtype);
net              1152 net/sctp/sm_sideeffect.c 	status = state_fn->fn(net, ep, asoc, subtype, event_arg, &commands);
net                51 net/sctp/sm_statefuns.c 					struct net *net,
net                60 net/sctp/sm_statefuns.c 					struct net *net,
net                63 net/sctp/sm_statefuns.c static void sctp_send_stale_cookie_err(struct net *net,
net                70 net/sctp/sm_statefuns.c 					struct net *net,
net                77 net/sctp/sm_statefuns.c 					struct net *net,
net                84 net/sctp/sm_statefuns.c 					struct net *net,
net                93 net/sctp/sm_statefuns.c 					struct net *net,
net               100 net/sctp/sm_statefuns.c 					struct net *net,
net               109 net/sctp/sm_statefuns.c 					struct net *net,
net               117 net/sctp/sm_statefuns.c 					struct net *net,
net               125 net/sctp/sm_statefuns.c 					struct net *net,
net               133 net/sctp/sm_statefuns.c 					struct net *net,
net               145 net/sctp/sm_statefuns.c 					struct net *net,
net               218 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_4_C(struct net *net,
net               228 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               236 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunk(net, ep, asoc, type, arg, commands);
net               240 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net               273 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_SHUTDOWNS);
net               274 net/sctp/sm_statefuns.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net               303 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_5_1B_init(struct net *net,
net               319 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               331 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               336 net/sctp/sm_statefuns.c 	if (ep == sctp_sk(net->sctp.ctl_sock)->ep) {
net               337 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_OUTOFBLUES);
net               338 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net               345 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net               353 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               362 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net               366 net/sctp/sm_statefuns.c 	if (!sctp_verify_init(net, ep, asoc, chunk->chunk_hdr->type,
net               373 net/sctp/sm_statefuns.c 			packet = sctp_abort_pkt_new(net, ep, asoc, arg,
net               384 net/sctp/sm_statefuns.c 				SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net               390 net/sctp/sm_statefuns.c 			return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg,
net               502 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_5_1C_ack(struct net *net,
net               515 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               522 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunk(net, ep, asoc, type, arg, commands);
net               526 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net               533 net/sctp/sm_statefuns.c 	if (!sctp_verify_init(net, ep, asoc, chunk->chunk_hdr->type,
net               545 net/sctp/sm_statefuns.c 			packet = sctp_abort_pkt_new(net, ep, asoc, arg,
net               556 net/sctp/sm_statefuns.c 				SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net               573 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               575 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net               576 net/sctp/sm_statefuns.c 		return sctp_stop_t1_and_abort(net, commands, error, ECONNREFUSED,
net               621 net/sctp/sm_statefuns.c static bool sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk,
net               637 net/sctp/sm_statefuns.c 	if (!net->sctp.auth_enable || !asoc->peer.auth_capable)
net               684 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_5_1D_ce(struct net *net,
net               703 net/sctp/sm_statefuns.c 	if (ep == sctp_sk(net->sctp.ctl_sock)->ep) {
net               704 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_OUTOFBLUES);
net               705 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net               714 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               723 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net               756 net/sctp/sm_statefuns.c 			sctp_send_stale_cookie_err(net, ep, asoc, chunk, commands,
net               758 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               762 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               790 net/sctp/sm_statefuns.c 	if (!sctp_auth_chunk_verify(net, chunk, new_asoc)) {
net               792 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               840 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_CURRESTAB);
net               841 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_PASSIVEESTABS);
net               898 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_5_1E_ca(struct net *net,
net               909 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net               915 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net               939 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_CURRESTAB);
net               940 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ACTIVEESTABS);
net              1015 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_sendbeat_8_3(struct net *net,
net              1030 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              1031 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              1063 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_send_reconf(struct net *net,
net              1078 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              1079 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              1115 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_beat_8_3(struct net *net,
net              1127 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              1132 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              1144 net/sctp/sm_statefuns.c 		return sctp_sf_violation_paramlen(net, ep, asoc, type, arg,
net              1189 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_backbeat_8_3(struct net *net,
net              1203 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              1208 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              1264 net/sctp/sm_statefuns.c static int sctp_sf_send_restart_abort(struct net *net, union sctp_addr *ssa,
net              1290 net/sctp/sm_statefuns.c 	ep = sctp_sk(net->sctp.ctl_sock)->ep;
net              1295 net/sctp/sm_statefuns.c 	pkt = sctp_abort_pkt_new(net, ep, NULL, init, errhdr, len);
net              1301 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              1333 net/sctp/sm_statefuns.c 	struct net *net = sock_net(new_asoc->base.sk);
net              1352 net/sctp/sm_statefuns.c 			sctp_sf_send_restart_abort(net, &new_addr->ipaddr, init,
net              1452 net/sctp/sm_statefuns.c 					struct net *net,
net              1469 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              1481 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              1487 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net              1494 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              1504 net/sctp/sm_statefuns.c 	if (!sctp_verify_init(net, ep, asoc, chunk->chunk_hdr->type,
net              1511 net/sctp/sm_statefuns.c 			packet = sctp_abort_pkt_new(net, ep, asoc, arg,
net              1520 net/sctp/sm_statefuns.c 				SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              1527 net/sctp/sm_statefuns.c 			return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg,
net              1670 net/sctp/sm_statefuns.c 					struct net *net,
net              1680 net/sctp/sm_statefuns.c 	return sctp_sf_do_unexpected_init(net, ep, asoc, type, arg, commands);
net              1725 net/sctp/sm_statefuns.c 					struct net *net,
net              1735 net/sctp/sm_statefuns.c 	return sctp_sf_do_unexpected_init(net, ep, asoc, type, arg, commands);
net              1749 net/sctp/sm_statefuns.c 					struct net *net,
net              1759 net/sctp/sm_statefuns.c 	if (ep == sctp_sk(net->sctp.ctl_sock)->ep)
net              1760 net/sctp/sm_statefuns.c 		return sctp_sf_ootb(net, ep, asoc, type, arg, commands);
net              1762 net/sctp/sm_statefuns.c 		return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands);
net              1771 net/sctp/sm_statefuns.c 					struct net *net,
net              1796 net/sctp/sm_statefuns.c 	if (!sctp_auth_chunk_verify(net, chunk, new_asoc))
net              1813 net/sctp/sm_statefuns.c 		disposition = sctp_sf_do_9_2_reshutack(net, ep, asoc,
net              1868 net/sctp/sm_statefuns.c 		return sctp_sf_do_9_2_start_shutdown(net, ep, asoc,
net              1893 net/sctp/sm_statefuns.c 					struct net *net,
net              1914 net/sctp/sm_statefuns.c 	if (!sctp_auth_chunk_verify(net, chunk, new_asoc))
net              1921 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_CURRESTAB);
net              1974 net/sctp/sm_statefuns.c 					struct net *net,
net              1997 net/sctp/sm_statefuns.c 					struct net *net,
net              2014 net/sctp/sm_statefuns.c 	if (!sctp_auth_chunk_verify(net, chunk, asoc))
net              2023 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_CURRESTAB);
net              2109 net/sctp/sm_statefuns.c 					struct net *net,
net              2129 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              2163 net/sctp/sm_statefuns.c 			sctp_send_stale_cookie_err(net, ep, asoc, chunk, commands,
net              2165 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2168 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2176 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2189 net/sctp/sm_statefuns.c 		retval = sctp_sf_do_dupcook_a(net, ep, asoc, chunk, commands,
net              2194 net/sctp/sm_statefuns.c 		retval = sctp_sf_do_dupcook_b(net, ep, asoc, chunk, commands,
net              2199 net/sctp/sm_statefuns.c 		retval = sctp_sf_do_dupcook_c(net, ep, asoc, chunk, commands,
net              2204 net/sctp/sm_statefuns.c 		retval = sctp_sf_do_dupcook_d(net, ep, asoc, chunk, commands,
net              2209 net/sctp/sm_statefuns.c 		retval = sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2235 net/sctp/sm_statefuns.c 					struct net *net,
net              2245 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2258 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2267 net/sctp/sm_statefuns.c 		return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands);
net              2270 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2272 net/sctp/sm_statefuns.c 	return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands);
net              2281 net/sctp/sm_statefuns.c 					struct net *net,
net              2291 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2304 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2313 net/sctp/sm_statefuns.c 		return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands);
net              2316 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2326 net/sctp/sm_statefuns.c 	return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands);
net              2335 net/sctp/sm_statefuns.c 					struct net *net,
net              2345 net/sctp/sm_statefuns.c 	return sctp_sf_shutdown_sent_abort(net, ep, asoc, type, arg, commands);
net              2363 net/sctp/sm_statefuns.c 					struct net *net,
net              2374 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2380 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              2390 net/sctp/sm_statefuns.c 			return sctp_sf_do_5_2_6_stale(net, ep, asoc, type,
net              2399 net/sctp/sm_statefuns.c 	return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2428 net/sctp/sm_statefuns.c 					struct net *net,
net              2551 net/sctp/sm_statefuns.c 					struct net *net,
net              2561 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2574 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2583 net/sctp/sm_statefuns.c 		return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands);
net              2586 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2588 net/sctp/sm_statefuns.c 	return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands);
net              2592 net/sctp/sm_statefuns.c 					struct net *net,
net              2611 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              2612 net/sctp/sm_statefuns.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              2623 net/sctp/sm_statefuns.c 					struct net *net,
net              2635 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2648 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2655 net/sctp/sm_statefuns.c 	return sctp_stop_t1_and_abort(net, commands, error, ECONNREFUSED, asoc,
net              2663 net/sctp/sm_statefuns.c 					struct net *net,
net              2670 net/sctp/sm_statefuns.c 	return sctp_stop_t1_and_abort(net, commands, SCTP_ERROR_NO_ERROR,
net              2679 net/sctp/sm_statefuns.c 					struct net *net,
net              2689 net/sctp/sm_statefuns.c 	return sctp_sf_cookie_wait_abort(net, ep, asoc, type, arg, commands);
net              2698 net/sctp/sm_statefuns.c 					struct net *net,
net              2708 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              2753 net/sctp/sm_statefuns.c 					struct net *net,
net              2767 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2771 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              2792 net/sctp/sm_statefuns.c 		return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands);
net              2816 net/sctp/sm_statefuns.c 		disposition = sctp_sf_do_9_2_shutdown_ack(net, ep, asoc, type,
net              2843 net/sctp/sm_statefuns.c 					struct net *net,
net              2855 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2859 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              2877 net/sctp/sm_statefuns.c 		return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands);
net              2897 net/sctp/sm_statefuns.c 					struct net *net,
net              2909 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              2961 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_ecn_cwr(struct net *net,
net              2973 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              2976 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3017 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_ecne(struct net *net,
net              3027 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3030 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3073 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_eat_data_6_2(struct net *net,
net              3087 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3091 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3100 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_IN_DATA_CHUNK_DISCARDS);
net              3104 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_IN_DATA_CHUNK_DISCARDS);
net              3109 net/sctp/sm_statefuns.c 		return sctp_sf_abort_violation(net, ep, asoc, chunk, commands,
net              3194 net/sctp/sm_statefuns.c 					struct net *net,
net              3207 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3211 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3225 net/sctp/sm_statefuns.c 		return sctp_sf_abort_violation(net, ep, asoc, chunk, commands,
net              3285 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_eat_sack_6_2(struct net *net,
net              3299 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3303 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3310 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3332 net/sctp/sm_statefuns.c 		return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands);
net              3362 net/sctp/sm_statefuns.c 					struct net *net,
net              3373 net/sctp/sm_statefuns.c 	packet = sctp_ootb_pkt_new(net, asoc, chunk);
net              3398 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              3400 net/sctp/sm_statefuns.c 	sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3412 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_operr_notify(struct net *net,
net              3423 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3427 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3431 net/sctp/sm_statefuns.c 		return sctp_sf_violation_paramlen(net, ep, asoc, type, arg,
net              3450 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_9_2_final(struct net *net,
net              3462 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3466 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3499 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_SHUTDOWNS);
net              3500 net/sctp/sm_statefuns.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              3533 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_ootb(struct net *net,
net              3547 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_OUTOFBLUES);
net              3553 net/sctp/sm_statefuns.c 			return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3559 net/sctp/sm_statefuns.c 			return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3574 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3597 net/sctp/sm_statefuns.c 		return sctp_sf_shut_8_4_5(net, ep, asoc, type, arg, commands);
net              3599 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3601 net/sctp/sm_statefuns.c 		return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands);
net              3626 net/sctp/sm_statefuns.c 					struct net *net,
net              3637 net/sctp/sm_statefuns.c 	packet = sctp_ootb_pkt_new(net, asoc, chunk);
net              3662 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              3668 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3674 net/sctp/sm_statefuns.c 	return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3688 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_8_5_1_E_sa(struct net *net,
net              3699 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3707 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_OUTOFBLUES);
net              3709 net/sctp/sm_statefuns.c 	return sctp_sf_shut_8_4_5(net, ep, NULL, type, arg, commands);
net              3713 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_asconf(struct net *net,
net              3729 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3739 net/sctp/sm_statefuns.c 	    (!net->sctp.addip_noauth && !chunk->auth))
net              3740 net/sctp/sm_statefuns.c 		return sctp_sf_discard_chunk(net, ep, asoc, type, arg,
net              3745 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3753 net/sctp/sm_statefuns.c 		return sctp_sf_violation_paramlen(net, ep, asoc, type, arg,
net              3828 net/sctp/sm_statefuns.c 					struct net *net,
net              3847 net/sctp/sm_statefuns.c 	return sctp_sf_do_prm_asconf(net, ep, asoc, type, asconf, commands);
net              3855 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_asconf_ack(struct net *net,
net              3872 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3882 net/sctp/sm_statefuns.c 	    (!net->sctp.addip_noauth && !asconf_ack->auth))
net              3883 net/sctp/sm_statefuns.c 		return sctp_sf_discard_chunk(net, ep, asoc, type, arg,
net              3889 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3897 net/sctp/sm_statefuns.c 		return sctp_sf_violation_paramlen(net, ep, asoc, type, arg,
net              3932 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              3933 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              3943 net/sctp/sm_statefuns.c 			return sctp_send_next_asconf(net, ep,
net              3962 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              3963 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              3971 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_reconf(struct net *net,
net              3986 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              3991 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              3995 net/sctp/sm_statefuns.c 		return sctp_sf_violation_paramlen(net, ep, asoc, type, arg,
net              4048 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_eat_fwd_tsn(struct net *net,
net              4063 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4067 net/sctp/sm_statefuns.c 		return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands);
net              4071 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4115 net/sctp/sm_statefuns.c 					struct net *net,
net              4130 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4134 net/sctp/sm_statefuns.c 		return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands);
net              4138 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4277 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_eat_auth(struct net *net,
net              4290 net/sctp/sm_statefuns.c 		return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands);
net              4295 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4300 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4321 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4324 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4373 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_unk_chunk(struct net *net,
net              4387 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4394 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4400 net/sctp/sm_statefuns.c 		return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4414 net/sctp/sm_statefuns.c 		sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
net              4453 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_discard_chunk(struct net *net,
net              4467 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4493 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_pdiscard(struct net *net,
net              4499 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_IN_PKT_DISCARDS);
net              4520 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_violation(struct net *net,
net              4531 net/sctp/sm_statefuns.c 		return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
net              4541 net/sctp/sm_statefuns.c 					struct net *net,
net              4591 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              4605 net/sctp/sm_statefuns.c 			SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              4608 net/sctp/sm_statefuns.c 		packet = sctp_ootb_pkt_new(net, asoc, chunk);
net              4623 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              4626 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              4629 net/sctp/sm_statefuns.c 	sctp_sf_pdiscard(net, ep, asoc, SCTP_ST_CHUNK(0), arg, commands);
net              4658 net/sctp/sm_statefuns.c 					struct net *net,
net              4667 net/sctp/sm_statefuns.c 	return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str,
net              4678 net/sctp/sm_statefuns.c 					struct net *net,
net              4698 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              4704 net/sctp/sm_statefuns.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              4705 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              4708 net/sctp/sm_statefuns.c 	sctp_sf_pdiscard(net, ep, asoc, SCTP_ST_CHUNK(0), arg, commands);
net              4721 net/sctp/sm_statefuns.c 					struct net *net,
net              4730 net/sctp/sm_statefuns.c 	return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str,
net              4741 net/sctp/sm_statefuns.c 					struct net *net,
net              4751 net/sctp/sm_statefuns.c 		return sctp_sf_violation(net, ep, asoc, type, arg, commands);
net              4753 net/sctp/sm_statefuns.c 	return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str,
net              4816 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_prm_asoc(struct net *net,
net              4928 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_prm_send(struct net *net,
net              4968 net/sctp/sm_statefuns.c 					struct net *net,
net              4990 net/sctp/sm_statefuns.c 		disposition = sctp_sf_do_9_2_start_shutdown(net, ep, asoc, type,
net              5025 net/sctp/sm_statefuns.c 					struct net *net,
net              5055 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              5056 net/sctp/sm_statefuns.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              5062 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_error_closed(struct net *net,
net              5077 net/sctp/sm_statefuns.c 					struct net *net,
net              5104 net/sctp/sm_statefuns.c 					struct net *net,
net              5117 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_SHUTDOWNS);
net              5139 net/sctp/sm_statefuns.c 					struct net *net,
net              5149 net/sctp/sm_statefuns.c 	return sctp_sf_cookie_wait_prm_shutdown(net, ep, asoc, type, arg, commands);
net              5167 net/sctp/sm_statefuns.c 					struct net *net,
net              5186 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              5216 net/sctp/sm_statefuns.c 					struct net *net,
net              5226 net/sctp/sm_statefuns.c 	return sctp_sf_cookie_wait_prm_abort(net, ep, asoc, type, arg, commands);
net              5242 net/sctp/sm_statefuns.c 					struct net *net,
net              5253 net/sctp/sm_statefuns.c 	return sctp_sf_do_9_1_prm_abort(net, ep, asoc, type, arg, commands);
net              5269 net/sctp/sm_statefuns.c 					struct net *net,
net              5284 net/sctp/sm_statefuns.c 	return sctp_sf_do_9_1_prm_abort(net, ep, asoc, type, arg, commands);
net              5300 net/sctp/sm_statefuns.c 					struct net *net,
net              5310 net/sctp/sm_statefuns.c 	return sctp_sf_shutdown_sent_prm_abort(net, ep, asoc, type, arg, commands);
net              5336 net/sctp/sm_statefuns.c 					struct net *net,
net              5368 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_prm_asconf(struct net *net,
net              5385 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_prm_reconf(struct net *net,
net              5404 net/sctp/sm_statefuns.c 					struct net *net,
net              5428 net/sctp/sm_statefuns.c 					struct net *net,
net              5460 net/sctp/sm_statefuns.c 					struct net *net,
net              5530 net/sctp/sm_statefuns.c 					struct net *net,
net              5549 net/sctp/sm_statefuns.c 			return sctp_sf_pdiscard(net, ep, asoc, type, arg,
net              5555 net/sctp/sm_statefuns.c 			return sctp_sf_violation_chunklen(net, ep, asoc, type,
net              5603 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_ignore_other(struct net *net,
net              5631 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_6_3_3_rtx(struct net *net,
net              5640 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_T3_RTX_EXPIREDS);
net              5662 net/sctp/sm_statefuns.c 			SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              5663 net/sctp/sm_statefuns.c 			SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              5719 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_do_6_2_sack(struct net *net,
net              5726 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_DELAY_SACK_EXPIREDS);
net              5751 net/sctp/sm_statefuns.c 					struct net *net,
net              5764 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_T1_INIT_EXPIREDS);
net              5816 net/sctp/sm_statefuns.c 					struct net *net,
net              5828 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_T1_COOKIE_EXPIREDS);
net              5867 net/sctp/sm_statefuns.c 					struct net *net,
net              5878 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_T2_SHUTDOWN_EXPIREDS);
net              5888 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              5889 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              5938 net/sctp/sm_statefuns.c 					struct net *net,
net              5948 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_T4_RTO_EXPIREDS);
net              5973 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              5974 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              6010 net/sctp/sm_statefuns.c 					struct net *net,
net              6021 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_T5_SHUTDOWN_GUARD_EXPIREDS);
net              6033 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              6034 net/sctp/sm_statefuns.c 	SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              6047 net/sctp/sm_statefuns.c 					struct net *net,
net              6056 net/sctp/sm_statefuns.c 	SCTP_INC_STATS(net, SCTP_MIB_AUTOCLOSE_EXPIREDS);
net              6071 net/sctp/sm_statefuns.c 		disposition = sctp_sf_do_9_2_start_shutdown(net, ep, asoc, type,
net              6090 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_not_impl(struct net *net,
net              6107 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_bug(struct net *net,
net              6127 net/sctp/sm_statefuns.c enum sctp_disposition sctp_sf_timer_ignore(struct net *net,
net              6172 net/sctp/sm_statefuns.c 					struct net *net,
net              6181 net/sctp/sm_statefuns.c 	packet = sctp_ootb_pkt_new(net, asoc, chunk);
net              6214 net/sctp/sm_statefuns.c 					struct net *net,
net              6267 net/sctp/sm_statefuns.c 	transport = sctp_transport_new(net, sctp_source(chunk), GFP_ATOMIC);
net              6275 net/sctp/sm_statefuns.c 			     sctp_sk(net->sctp.ctl_sock));
net              6294 net/sctp/sm_statefuns.c static void sctp_send_stale_cookie_err(struct net *net,
net              6304 net/sctp/sm_statefuns.c 		packet = sctp_ootb_pkt_new(net, asoc, chunk);
net              6317 net/sctp/sm_statefuns.c 			SCTP_INC_STATS(net, SCTP_MIB_OUTCTRLCHUNKS);
net              6331 net/sctp/sm_statefuns.c 	struct net *net = sock_net(sk);
net              6468 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_ABORTEDS);
net              6469 net/sctp/sm_statefuns.c 		SCTP_DEC_STATS(net, SCTP_MIB_CURRESTAB);
net              6479 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_INUNORDERCHUNKS);
net              6483 net/sctp/sm_statefuns.c 		SCTP_INC_STATS(net, SCTP_MIB_INORDERCHUNKS);
net                41 net/sctp/sm_statetable.c 						struct net *net,
net                66 net/sctp/sm_statetable.c 					struct net *net,
net                73 net/sctp/sm_statetable.c 		return sctp_chunk_event_lookup(net, event_subtype.chunk, state);
net               966 net/sctp/sm_statetable.c 						struct net *net,
net               363 net/sctp/socket.c 	struct net *net = sock_net(sk);
net               402 net/sctp/socket.c 	if (snum && snum < inet_prot_sock(net) &&
net               403 net/sctp/socket.c 	    !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE))
net               454 net/sctp/socket.c 	struct net 	*net = sock_net(asoc->base.sk);
net               467 net/sctp/socket.c 	retval = sctp_primitive_ASCONF(net, asoc, chunk);
net              1068 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              1079 net/sctp/socket.c 		if (ep->base.bind_addr.port < inet_prot_sock(net) &&
net              1080 net/sctp/socket.c 		    !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE))
net              1487 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              1528 net/sctp/socket.c 			sctp_primitive_ABORT(net, asoc, chunk);
net              1530 net/sctp/socket.c 			sctp_primitive_SHUTDOWN(net, asoc, NULL);
net              1545 net/sctp/socket.c 	spin_lock_bh(&net->sctp.addr_wq_lock);
net              1555 net/sctp/socket.c 	spin_unlock_bh(&net->sctp.addr_wq_lock);
net              1759 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              1770 net/sctp/socket.c 		sctp_primitive_SHUTDOWN(net, asoc, NULL);
net              1783 net/sctp/socket.c 		sctp_primitive_ABORT(net, asoc, chunk);
net              1799 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              1842 net/sctp/socket.c 		err = sctp_primitive_ASSOCIATE(net, asoc, NULL);
net              1874 net/sctp/socket.c 	err = sctp_primitive_SEND(net, asoc, datamsg);
net              2281 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              2291 net/sctp/socket.c 	if (sp->autoclose > net->sctp.max_autoclose)
net              2292 net/sctp/socket.c 		sp->autoclose = net->sctp.max_autoclose;
net              2446 net/sctp/socket.c 		struct net *net = sock_net(trans->asoc->base.sk);
net              2448 net/sctp/socket.c 		error = sctp_primitive_REQUESTHEARTBEAT(net, trans->asoc, trans);
net              4988 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              5019 net/sctp/socket.c 	sp->max_burst = net->sctp.max_burst;
net              5021 net/sctp/socket.c 	sp->sctp_hmac_alg = net->sctp.sctp_hmac_alg;
net              5029 net/sctp/socket.c 	sp->initmsg.sinit_max_attempts   = net->sctp.max_retrans_init;
net              5030 net/sctp/socket.c 	sp->initmsg.sinit_max_init_timeo = net->sctp.rto_max;
net              5035 net/sctp/socket.c 	sp->rtoinfo.srto_initial = net->sctp.rto_initial;
net              5036 net/sctp/socket.c 	sp->rtoinfo.srto_max     = net->sctp.rto_max;
net              5037 net/sctp/socket.c 	sp->rtoinfo.srto_min     = net->sctp.rto_min;
net              5042 net/sctp/socket.c 	sp->assocparams.sasoc_asocmaxrxt = net->sctp.max_retrans_association;
net              5046 net/sctp/socket.c 	sp->assocparams.sasoc_cookie_life = net->sctp.valid_cookie_life;
net              5056 net/sctp/socket.c 	sp->hbinterval  = net->sctp.hb_interval;
net              5057 net/sctp/socket.c 	sp->pathmaxrxt  = net->sctp.max_retrans_path;
net              5058 net/sctp/socket.c 	sp->pf_retrans  = net->sctp.pf_retrans;
net              5060 net/sctp/socket.c 	sp->sackdelay   = net->sctp.sack_timeout;
net              5116 net/sctp/socket.c 	sock_prot_inuse_add(net, sk->sk_prot, 1);
net              5121 net/sctp/socket.c 	if (net->sctp.default_auto_asconf) {
net              5124 net/sctp/socket.c 		    &net->sctp.auto_asconf_splist);
net              5193 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              5206 net/sctp/socket.c 		sctp_primitive_SHUTDOWN(net, asoc, NULL);
net              5310 net/sctp/socket.c struct sctp_transport *sctp_transport_get_next(struct net *net,
net              5326 net/sctp/socket.c 		if (net_eq(sock_net(t->asoc->base.sk), net) &&
net              5336 net/sctp/socket.c struct sctp_transport *sctp_transport_get_idx(struct net *net,
net              5345 net/sctp/socket.c 	while ((t = sctp_transport_get_next(net, iter)) && !IS_ERR(t)) {
net              5377 net/sctp/socket.c 				  struct net *net,
net              5385 net/sctp/socket.c 	transport = sctp_addrs_lookup_transport(net, laddr, paddr);
net              5399 net/sctp/socket.c 			    struct net *net, int *pos, void *p) {
net              5408 net/sctp/socket.c 	tsp = sctp_transport_get_idx(net, &hti, *pos + 1);
net              5409 net/sctp/socket.c 	for (; !IS_ERR_OR_NULL(tsp); tsp = sctp_transport_get_next(net, &hti)) {
net              6220 net/sctp/socket.c 	struct net *net = sock_net(sk);
net              6223 net/sctp/socket.c 	list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) {
net              8163 net/sctp/socket.c 	struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
net              8185 net/sctp/socket.c 		struct net *net = sock_net(sk);
net              8187 net/sctp/socket.c 		inet_get_local_port_range(net, &low, &high);
net              8195 net/sctp/socket.c 			if (inet_is_local_reserved_port(net, rover))
net              8202 net/sctp/socket.c 				    net_eq(sock_net(sk), pp->net))
net              8229 net/sctp/socket.c 			if ((pp->port == snum) && net_eq(pp->net, sock_net(sk)))
net              8534 net/sctp/socket.c 	struct sctp_bind_hashbucket *head, struct net *net, unsigned short snum)
net              8544 net/sctp/socket.c 		pp->net = net;
net               225 net/sctp/stream.c 	struct net *net = sock_net(asoc->base.sk);
net               228 net/sctp/stream.c 	retval = sctp_primitive_RECONF(net, asoc, chunk);
net               329 net/sctp/sysctl.c 	struct net *net = current->nsproxy->net_ns;
net               342 net/sctp/sysctl.c 		tbl.data = net->sctp.sctp_hmac_alg ? : none;
net               350 net/sctp/sysctl.c 			net->sctp.sctp_hmac_alg = "md5";
net               356 net/sctp/sysctl.c 			net->sctp.sctp_hmac_alg = "sha1";
net               361 net/sctp/sysctl.c 			net->sctp.sctp_hmac_alg = NULL;
net               375 net/sctp/sysctl.c 	struct net *net = current->nsproxy->net_ns;
net               387 net/sctp/sysctl.c 		tbl.data = &net->sctp.rto_min;
net               394 net/sctp/sysctl.c 		net->sctp.rto_min = new_value;
net               404 net/sctp/sysctl.c 	struct net *net = current->nsproxy->net_ns;
net               416 net/sctp/sysctl.c 		tbl.data = &net->sctp.rto_max;
net               423 net/sctp/sysctl.c 		net->sctp.rto_max = new_value;
net               444 net/sctp/sysctl.c 	struct net *net = current->nsproxy->net_ns;
net               454 net/sctp/sysctl.c 		tbl.data = &net->sctp.auth_enable;
net               458 net/sctp/sysctl.c 		struct sock *sk = net->sctp.ctl_sock;
net               460 net/sctp/sysctl.c 		net->sctp.auth_enable = new_value;
net               470 net/sctp/sysctl.c int sctp_sysctl_net_register(struct net *net)
net               480 net/sctp/sysctl.c 		table[i].data += (char *)(&net->sctp) - (char *)&init_net.sctp;
net               482 net/sctp/sysctl.c 	net->sctp.sysctl_header = register_net_sysctl(net, "net/sctp", table);
net               483 net/sctp/sysctl.c 	if (net->sctp.sysctl_header == NULL) {
net               490 net/sctp/sysctl.c void sctp_sysctl_net_unregister(struct net *net)
net               494 net/sctp/sysctl.c 	table = net->sctp.sysctl_header->ctl_table_arg;
net               495 net/sctp/sysctl.c 	unregister_net_sysctl_table(net->sctp.sysctl_header);
net                40 net/sctp/transport.c static struct sctp_transport *sctp_transport_init(struct net *net,
net                58 net/sctp/transport.c 	peer->rto = msecs_to_jiffies(net->sctp.rto_initial);
net                68 net/sctp/transport.c 	peer->pathmaxrxt  = net->sctp.max_retrans_path;
net                69 net/sctp/transport.c 	peer->pf_retrans  = net->sctp.pf_retrans;
net                90 net/sctp/transport.c struct sctp_transport *sctp_transport_new(struct net *net,
net               100 net/sctp/transport.c 	if (!sctp_transport_init(net, transport, addr, gfp))
net               337 net/sctp/transport.c 		struct net *net = sock_net(tp->asoc->base.sk);
net               349 net/sctp/transport.c 		tp->rttvar = tp->rttvar - (tp->rttvar >> net->sctp.rto_beta)
net               350 net/sctp/transport.c 			+ (((__u32)abs((__s64)tp->srtt - (__s64)rtt)) >> net->sctp.rto_beta);
net               351 net/sctp/transport.c 		tp->srtt = tp->srtt - (tp->srtt >> net->sctp.rto_alpha)
net               352 net/sctp/transport.c 			+ (rtt >> net->sctp.rto_alpha);
net               318 net/sctp/ulpqueue.c struct sctp_ulpevent *sctp_make_reassembled_event(struct net *net,
net               390 net/sctp/ulpqueue.c 	SCTP_INC_STATS(net, SCTP_MIB_REASMUSRMSGS);
net               214 net/smc/af_smc.c static struct sock *smc_sock_alloc(struct net *net, struct socket *sock,
net               222 net/smc/af_smc.c 	sk = sk_alloc(net, PF_SMC, GFP_KERNEL, prot, 0);
net               361 net/smc/af_smc.c 	struct net *net = sock_net(smc->clcsock->sk);
net               415 net/smc/af_smc.c 	smc_llc_link_active(link, net->ipv4.sysctl_tcp_keepalive_time);
net               996 net/smc/af_smc.c 	struct net *net = sock_net(smc->clcsock->sk);
net              1045 net/smc/af_smc.c 	smc_llc_link_active(link, net->ipv4.sysctl_tcp_keepalive_time);
net              1966 net/smc/af_smc.c static int smc_create(struct net *net, struct socket *sock, int protocol,
net              1984 net/smc/af_smc.c 	sk = smc_sock_alloc(net, sock, protocol);
net              1992 net/smc/af_smc.c 	rc = sock_create_kern(net, family, SOCK_STREAM, IPPROTO_TCP,
net              2013 net/smc/af_smc.c static __net_init int smc_net_init(struct net *net)
net              2015 net/smc/af_smc.c 	return smc_pnet_net_init(net);
net              2018 net/smc/af_smc.c static void __net_exit smc_net_exit(struct net *net)
net              2020 net/smc/af_smc.c 	smc_pnet_net_exit(net);
net               235 net/smc/smc.h  static inline void hton24(u8 *net, u32 host)
net               240 net/smc/smc.h  	memcpy(net, ((u8 *)&t) + 1, 3);
net               244 net/smc/smc.h  static inline u32 ntoh24(u8 *net)
net               248 net/smc/smc.h  	memcpy(((u8 *)&t) + 1, net, 3);
net               244 net/smc/smc_cdc.h 	union smc_cdc_cursor net;
net               247 net/smc/smc_cdc.h 	smc_curs_copy_net(&net, peer, conn);
net               248 net/smc/smc_cdc.h 	temp.count = ntohl(net.count);
net               249 net/smc/smc_cdc.h 	temp.wrap = ntohs(net.wrap);
net               196 net/smc/smc_diag.c 	struct net *net = sock_net(skb->sk);
net               208 net/smc/smc_diag.c 		if (!net_eq(sock_net(sk), net))
net               232 net/smc/smc_diag.c 	struct net *net = sock_net(skb->sk);
net               241 net/smc/smc_diag.c 			return netlink_dump_start(net->diag_nlsk, skb, h, &c);
net                95 net/smc/smc_pnet.c static int smc_pnet_remove_by_pnetid(struct net *net, char *pnet_name)
net               106 net/smc/smc_pnet.c 	sn = net_generic(net, smc_net_id);
net               124 net/smc/smc_pnet.c 	if (net != &init_net)
net               164 net/smc/smc_pnet.c 	struct net *net = dev_net(ndev);
net               169 net/smc/smc_pnet.c 	sn = net_generic(net, smc_net_id);
net               329 net/smc/smc_pnet.c static int smc_pnet_fill_entry(struct net *net,
net               349 net/smc/smc_pnet.c 		pnetelem->ndev = dev_get_by_name(net, string);
net               355 net/smc/smc_pnet.c 	if (net != &init_net)
net               417 net/smc/smc_pnet.c 	struct net *net = genl_info_net(info);
net               424 net/smc/smc_pnet.c 	sn = net_generic(net, smc_net_id);
net               427 net/smc/smc_pnet.c 	rc = smc_pnet_fill_entry(net, &pnetelem, info->attrs);
net               437 net/smc/smc_pnet.c 	struct net *net = genl_info_net(info);
net               441 net/smc/smc_pnet.c 	return smc_pnet_remove_by_pnetid(net,
net               469 net/smc/smc_pnet.c static int _smc_pnet_dump(struct net *net, struct sk_buff *skb, u32 portid,
net               482 net/smc/smc_pnet.c 	sn = net_generic(net, smc_net_id);
net               505 net/smc/smc_pnet.c 	if (net != &init_net)
net               562 net/smc/smc_pnet.c 	struct net *net = sock_net(skb->sk);
net               565 net/smc/smc_pnet.c 	idx = _smc_pnet_dump(net, skb, NETLINK_CB(cb->skb).portid,
net               575 net/smc/smc_pnet.c 	struct net *net = genl_info_net(info);
net               586 net/smc/smc_pnet.c 	_smc_pnet_dump(net, msg, info->snd_portid, info->snd_seq,
net               603 net/smc/smc_pnet.c 	struct net *net = genl_info_net(info);
net               605 net/smc/smc_pnet.c 	smc_pnet_remove_by_pnetid(net, NULL);
net               672 net/smc/smc_pnet.c int smc_pnet_net_init(struct net *net)
net               674 net/smc/smc_pnet.c 	struct smc_net *sn = net_generic(net, smc_net_id);
net               697 net/smc/smc_pnet.c void smc_pnet_net_exit(struct net *net)
net               700 net/smc/smc_pnet.c 	smc_pnet_remove_by_pnetid(net, NULL);
net               736 net/smc/smc_pnet.c 	struct net *net = dev_net(ndev);
net               742 net/smc/smc_pnet.c 	sn = net_generic(net, smc_net_id);
net                44 net/smc/smc_pnet.h int smc_pnet_net_init(struct net *net);
net                46 net/smc/smc_pnet.h void smc_pnet_net_exit(struct net *net);
net              1000 net/socket.c   static int (*br_ioctl_hook) (struct net *, unsigned int cmd, void __user *arg);
net              1002 net/socket.c   void brioctl_set(int (*hook) (struct net *, unsigned int, void __user *))
net              1011 net/socket.c   static int (*vlan_ioctl_hook) (struct net *, void __user *arg);
net              1013 net/socket.c   void vlan_ioctl_set(int (*hook) (struct net *, void __user *))
net              1032 net/socket.c   static long sock_do_ioctl(struct net *net, struct socket *sock,
net              1052 net/socket.c   		err = dev_ifconf(net, &ifc, sizeof(struct ifreq));
net              1061 net/socket.c   		err = dev_ioctl(net, cmd, &ifr, &need_copyout);
net              1083 net/socket.c   	return &get_net(container_of(ns, struct net, ns))->ns;
net              1093 net/socket.c   	struct net *net;
net              1097 net/socket.c   	net = sock_net(sk);
net              1103 net/socket.c   		err = dev_ioctl(net, cmd, &ifr, &need_copyout);
net              1110 net/socket.c   		err = wext_handle_ioctl(net, cmd, argp);
net              1136 net/socket.c   				err = br_ioctl_hook(net, cmd, argp);
net              1147 net/socket.c   				err = vlan_ioctl_hook(net, argp);
net              1163 net/socket.c   			if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
net              1166 net/socket.c   			err = open_related_ns(&net->ns, get_net_ns);
net              1189 net/socket.c   			err = sock_do_ioctl(net, sock, cmd, arg);
net              1347 net/socket.c   int __sock_create(struct net *net, int family, int type, int protocol,
net              1418 net/socket.c   	err = pf->create(net, sock, protocol, kern);
net              1485 net/socket.c   int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
net              1487 net/socket.c   	return __sock_create(net, family, type, protocol, res, 1);
net              3065 net/socket.c   static int compat_dev_ifconf(struct net *net, struct compat_ifconf __user *uifc32)
net              3078 net/socket.c   	err = dev_ifconf(net, &ifc, sizeof(struct compat_ifreq));
net              3090 net/socket.c   static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
net              3173 net/socket.c   	ret = dev_ioctl(net, SIOCETHTOOL, &ifr, NULL);
net              3212 net/socket.c   static int compat_siocwandev(struct net *net, struct compat_ifreq __user *uifr32)
net              3228 net/socket.c   	err = dev_ioctl(net, SIOCWANDEV, &ifr, NULL);
net              3238 net/socket.c   static int compat_ifr_data_ioctl(struct net *net, unsigned int cmd,
net              3250 net/socket.c   	return dev_ioctl(net, cmd, &ifreq, NULL);
net              3253 net/socket.c   static int compat_ifreq_ioctl(struct net *net, struct socket *sock,
net              3274 net/socket.c   	err = sock_do_ioctl(net, sock, cmd, (unsigned long)uifr);
net              3301 net/socket.c   static int compat_sioc_ifmap(struct net *net, unsigned int cmd,
net              3319 net/socket.c   	err = dev_ioctl(net, cmd, &ifr, NULL);
net              3366 net/socket.c   static int routing_ioctl(struct net *net, struct socket *sock,
net              3416 net/socket.c   	ret = sock_do_ioctl(net, sock, cmd, (unsigned long) r);
net              3443 net/socket.c   	struct net *net = sock_net(sk);
net              3446 net/socket.c   		return compat_ifr_data_ioctl(net, cmd, argp);
net              3453 net/socket.c   		return compat_dev_ifconf(net, argp);
net              3455 net/socket.c   		return ethtool_ioctl(net, argp);
net              3457 net/socket.c   		return compat_siocwandev(net, argp);
net              3460 net/socket.c   		return compat_sioc_ifmap(net, cmd, argp);
net              3463 net/socket.c   		return routing_ioctl(net, sock, cmd, argp);
net              3475 net/socket.c   		return compat_ifr_data_ioctl(net, cmd, argp);
net              3530 net/socket.c   		return compat_ifreq_ioctl(net, sock, cmd, argp);
net              3537 net/socket.c   		return sock_do_ioctl(net, sock, cmd, arg);
net              3549 net/socket.c   	struct net *net;
net              3552 net/socket.c   	net = sock_net(sk);
net              3559 net/socket.c   		ret = compat_wext_handle_ioctl(net, cmd, arg);
net               161 net/sunrpc/addr.c static int rpc_parse_scope_id(struct net *net, const char *buf,
net               183 net/sunrpc/addr.c 		dev = dev_get_by_name(net, p);
net               203 net/sunrpc/addr.c static size_t rpc_pton6(struct net *net, const char *buf, const size_t buflen,
net               219 net/sunrpc/addr.c 	if (!rpc_parse_scope_id(net, buf, buflen, delim, sin6))
net               226 net/sunrpc/addr.c static size_t rpc_pton6(struct net *net, const char *buf, const size_t buflen,
net               248 net/sunrpc/addr.c size_t rpc_pton(struct net *net, const char *buf, const size_t buflen,
net               255 net/sunrpc/addr.c 			return rpc_pton6(net, buf, buflen, sap, salen);
net               314 net/sunrpc/addr.c size_t rpc_uaddr2sockaddr(struct net *net, const char *uaddr,
net               344 net/sunrpc/addr.c 	if (rpc_pton(net, buf, strlen(buf), sap, salen) == 0)
net                74 net/sunrpc/auth_gss/auth_gss.c 	struct net *net;
net               284 net/sunrpc/auth_gss/auth_gss.c static int get_pipe_version(struct net *net)
net               286 net/sunrpc/auth_gss/auth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               299 net/sunrpc/auth_gss/auth_gss.c static void put_pipe_version(struct net *net)
net               301 net/sunrpc/auth_gss/auth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               312 net/sunrpc/auth_gss/auth_gss.c 	struct net *net = gss_msg->auth->net;
net               315 net/sunrpc/auth_gss/auth_gss.c 	put_pipe_version(net);
net               544 net/sunrpc/auth_gss/auth_gss.c 	vers = get_pipe_version(gss_auth->net);
net               565 net/sunrpc/auth_gss/auth_gss.c 	put_pipe_version(gss_auth->net);
net               654 net/sunrpc/auth_gss/auth_gss.c 	struct net *net = gss_auth->net;
net               655 net/sunrpc/auth_gss/auth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               665 net/sunrpc/auth_gss/auth_gss.c 	if (!gssd_running(net)) {
net               808 net/sunrpc/auth_gss/auth_gss.c 	struct net *net = inode->i_sb->s_fs_info;
net               809 net/sunrpc/auth_gss/auth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               843 net/sunrpc/auth_gss/auth_gss.c 	struct net *net = inode->i_sb->s_fs_info;
net               862 net/sunrpc/auth_gss/auth_gss.c 	put_pipe_version(net);
net               974 net/sunrpc/auth_gss/auth_gss.c 	struct net *net = rpc_net_ns(clnt);
net               982 net/sunrpc/auth_gss/auth_gss.c 	pdo = rpc_find_or_alloc_pipe_dir_object(net,
net               995 net/sunrpc/auth_gss/auth_gss.c 	struct net *net = rpc_net_ns(clnt);
net               997 net/sunrpc/auth_gss/auth_gss.c 	rpc_remove_pipe_dir_object(net,
net              1042 net/sunrpc/auth_gss/auth_gss.c 	gss_auth->net = get_net(rpc_net_ns(clnt));
net              1050 net/sunrpc/auth_gss/auth_gss.c 	if (!gssd_running(gss_auth->net))
net              1097 net/sunrpc/auth_gss/auth_gss.c 	put_net(gss_auth->net);
net              1113 net/sunrpc/auth_gss/auth_gss.c 	put_net(gss_auth->net);
net              2207 net/sunrpc/auth_gss/auth_gss.c static __net_init int rpcsec_gss_init_net(struct net *net)
net              2209 net/sunrpc/auth_gss/auth_gss.c 	return gss_svc_init_net(net);
net              2212 net/sunrpc/auth_gss/auth_gss.c static __net_exit void rpcsec_gss_exit_net(struct net *net)
net              2214 net/sunrpc/auth_gss/auth_gss.c 	gss_svc_shutdown_net(net);
net                79 net/sunrpc/auth_gss/gss_rpc_upcall.c static int gssp_rpc_create(struct net *net, struct rpc_clnt **_clnt)
net                86 net/sunrpc/auth_gss/gss_rpc_upcall.c 		.net		= net,
net               129 net/sunrpc/auth_gss/gss_rpc_upcall.c int set_gssp_clnt(struct net *net)
net               131 net/sunrpc/auth_gss/gss_rpc_upcall.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               136 net/sunrpc/auth_gss/gss_rpc_upcall.c 	ret = gssp_rpc_create(net, &clnt);
net               168 net/sunrpc/auth_gss/gss_rpc_upcall.c static int gssp_call(struct net *net, struct rpc_message *msg)
net               170 net/sunrpc/auth_gss/gss_rpc_upcall.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               265 net/sunrpc/auth_gss/gss_rpc_upcall.c int gssp_accept_sec_context_upcall(struct net *net,
net               306 net/sunrpc/auth_gss/gss_rpc_upcall.c 	ret = gssp_call(net, &msg);
net                28 net/sunrpc/auth_gss/gss_rpc_upcall.h int gssp_accept_sec_context_upcall(struct net *net,
net                33 net/sunrpc/auth_gss/gss_rpc_upcall.h int set_gssp_clnt(struct net *);
net              1291 net/sunrpc/auth_gss/svcauth_gss.c 	struct net *net = SVC_NET(rqstp);
net              1292 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1303 net/sunrpc/auth_gss/svcauth_gss.c 	status = gssp_accept_sec_context_upcall(net, &ud);
net              1355 net/sunrpc/auth_gss/svcauth_gss.c static int set_gss_proxy(struct net *net, int type)
net              1357 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1367 net/sunrpc/auth_gss/svcauth_gss.c static bool use_gss_proxy(struct net *net)
net              1369 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1373 net/sunrpc/auth_gss/svcauth_gss.c 		set_gss_proxy(net, 0);
net              1382 net/sunrpc/auth_gss/svcauth_gss.c 	struct net *net = PDE_DATA(file_inode(file));
net              1398 net/sunrpc/auth_gss/svcauth_gss.c 	res = set_gssp_clnt(net);
net              1401 net/sunrpc/auth_gss/svcauth_gss.c 	res = set_gss_proxy(net, 1);
net              1410 net/sunrpc/auth_gss/svcauth_gss.c 	struct net *net = PDE_DATA(file_inode(file));
net              1411 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1435 net/sunrpc/auth_gss/svcauth_gss.c static int create_use_gss_proxy_proc_entry(struct net *net)
net              1437 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1443 net/sunrpc/auth_gss/svcauth_gss.c 			      &use_gss_proxy_ops, net);
net              1450 net/sunrpc/auth_gss/svcauth_gss.c static void destroy_use_gss_proxy_proc_entry(struct net *net)
net              1452 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1461 net/sunrpc/auth_gss/svcauth_gss.c static int create_use_gss_proxy_proc_entry(struct net *net)
net              1466 net/sunrpc/auth_gss/svcauth_gss.c static void destroy_use_gss_proxy_proc_entry(struct net *net) {}
net              1855 net/sunrpc/auth_gss/svcauth_gss.c static int rsi_cache_create_net(struct net *net)
net              1857 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1861 net/sunrpc/auth_gss/svcauth_gss.c 	cd = cache_create_net(&rsi_cache_template, net);
net              1864 net/sunrpc/auth_gss/svcauth_gss.c 	err = cache_register_net(cd, net);
net              1866 net/sunrpc/auth_gss/svcauth_gss.c 		cache_destroy_net(cd, net);
net              1873 net/sunrpc/auth_gss/svcauth_gss.c static void rsi_cache_destroy_net(struct net *net)
net              1875 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1880 net/sunrpc/auth_gss/svcauth_gss.c 	cache_unregister_net(cd, net);
net              1881 net/sunrpc/auth_gss/svcauth_gss.c 	cache_destroy_net(cd, net);
net              1884 net/sunrpc/auth_gss/svcauth_gss.c static int rsc_cache_create_net(struct net *net)
net              1886 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1890 net/sunrpc/auth_gss/svcauth_gss.c 	cd = cache_create_net(&rsc_cache_template, net);
net              1893 net/sunrpc/auth_gss/svcauth_gss.c 	err = cache_register_net(cd, net);
net              1895 net/sunrpc/auth_gss/svcauth_gss.c 		cache_destroy_net(cd, net);
net              1902 net/sunrpc/auth_gss/svcauth_gss.c static void rsc_cache_destroy_net(struct net *net)
net              1904 net/sunrpc/auth_gss/svcauth_gss.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1909 net/sunrpc/auth_gss/svcauth_gss.c 	cache_unregister_net(cd, net);
net              1910 net/sunrpc/auth_gss/svcauth_gss.c 	cache_destroy_net(cd, net);
net              1914 net/sunrpc/auth_gss/svcauth_gss.c gss_svc_init_net(struct net *net)
net              1918 net/sunrpc/auth_gss/svcauth_gss.c 	rv = rsc_cache_create_net(net);
net              1921 net/sunrpc/auth_gss/svcauth_gss.c 	rv = rsi_cache_create_net(net);
net              1924 net/sunrpc/auth_gss/svcauth_gss.c 	rv = create_use_gss_proxy_proc_entry(net);
net              1929 net/sunrpc/auth_gss/svcauth_gss.c 	destroy_use_gss_proxy_proc_entry(net);
net              1931 net/sunrpc/auth_gss/svcauth_gss.c 	rsc_cache_destroy_net(net);
net              1936 net/sunrpc/auth_gss/svcauth_gss.c gss_svc_shutdown_net(struct net *net)
net              1938 net/sunrpc/auth_gss/svcauth_gss.c 	destroy_use_gss_proxy_proc_entry(net);
net              1939 net/sunrpc/auth_gss/svcauth_gss.c 	rsi_cache_destroy_net(net);
net              1940 net/sunrpc/auth_gss/svcauth_gss.c 	rsc_cache_destroy_net(net);
net              1654 net/sunrpc/cache.c static int create_cache_proc_entries(struct cache_detail *cd, struct net *net)
net              1659 net/sunrpc/cache.c 	sn = net_generic(net, sunrpc_net_id);
net              1687 net/sunrpc/cache.c static int create_cache_proc_entries(struct cache_detail *cd, struct net *net)
net              1698 net/sunrpc/cache.c int cache_register_net(struct cache_detail *cd, struct net *net)
net              1703 net/sunrpc/cache.c 	ret = create_cache_proc_entries(cd, net);
net              1710 net/sunrpc/cache.c void cache_unregister_net(struct cache_detail *cd, struct net *net)
net              1717 net/sunrpc/cache.c struct cache_detail *cache_create_net(const struct cache_detail *tmpl, struct net *net)
net              1735 net/sunrpc/cache.c 	cd->net = net;
net              1740 net/sunrpc/cache.c void cache_destroy_net(struct cache_detail *cd, struct net *net)
net                86 net/sunrpc/clnt.c 	struct net *net = rpc_net_ns(clnt);
net                87 net/sunrpc/clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net                96 net/sunrpc/clnt.c 	struct net *net = rpc_net_ns(clnt);
net                97 net/sunrpc/clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               111 net/sunrpc/clnt.c 	struct net *net = rpc_net_ns(clnt);
net               114 net/sunrpc/clnt.c 	pipefs_sb = rpc_get_sb_net(net);
net               117 net/sunrpc/clnt.c 		rpc_put_sb_net(net);
net               221 net/sunrpc/clnt.c static struct rpc_clnt *rpc_get_client_for_event(struct net *net, int event)
net               223 net/sunrpc/clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               302 net/sunrpc/clnt.c 	struct net *net = rpc_net_ns(clnt);
net               308 net/sunrpc/clnt.c 	pipefs_sb = rpc_get_sb_net(net);
net               317 net/sunrpc/clnt.c 		rpc_put_sb_net(net);
net               328 net/sunrpc/clnt.c 	pipefs_sb = rpc_get_sb_net(net);
net               333 net/sunrpc/clnt.c 		rpc_put_sb_net(net);
net               522 net/sunrpc/clnt.c 		.net = args->net,
net              1331 net/sunrpc/clnt.c static int rpc_sockname(struct net *net, struct sockaddr *sap, size_t salen,
net              1337 net/sunrpc/clnt.c 	err = __sock_create(net, sap->sa_family,
net              1442 net/sunrpc/clnt.c 	struct net *net;
net              1450 net/sunrpc/clnt.c 	net = get_net(xprt->xprt_net);
net              1454 net/sunrpc/clnt.c 	err = rpc_sockname(net, sap, salen, buf);
net              1455 net/sunrpc/clnt.c 	put_net(net);
net              1481 net/sunrpc/clnt.c struct net *rpc_net_ns(struct rpc_clnt *clnt)
net              1483 net/sunrpc/clnt.c 	struct net *ret;
net              3043 net/sunrpc/clnt.c void rpc_show_tasks(struct net *net)
net              3048 net/sunrpc/clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net                40 net/sunrpc/netns.h int ip_map_cache_create(struct net *);
net                41 net/sunrpc/netns.h void ip_map_cache_destroy(struct net *);
net                41 net/sunrpc/rpc_pipe.c #define NET_NAME(net)	((net == &init_net) ? " (init_net)" : "")
net               887 net/sunrpc/rpc_pipe.c rpc_add_pipe_dir_object_locked(struct net *net,
net               901 net/sunrpc/rpc_pipe.c rpc_remove_pipe_dir_object_locked(struct net *net,
net               918 net/sunrpc/rpc_pipe.c rpc_add_pipe_dir_object(struct net *net,
net               925 net/sunrpc/rpc_pipe.c 		struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               928 net/sunrpc/rpc_pipe.c 		ret = rpc_add_pipe_dir_object_locked(net, pdh, pdo);
net               943 net/sunrpc/rpc_pipe.c rpc_remove_pipe_dir_object(struct net *net,
net               948 net/sunrpc/rpc_pipe.c 		struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               951 net/sunrpc/rpc_pipe.c 		rpc_remove_pipe_dir_object_locked(net, pdh, pdo);
net               967 net/sunrpc/rpc_pipe.c rpc_find_or_alloc_pipe_dir_object(struct net *net,
net               973 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               985 net/sunrpc/rpc_pipe.c 	rpc_add_pipe_dir_object_locked(net, pdh, pdo);
net              1197 net/sunrpc/rpc_pipe.c int rpc_pipefs_init_net(struct net *net)
net              1199 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1210 net/sunrpc/rpc_pipe.c void rpc_pipefs_exit_net(struct net *net)
net              1212 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1223 net/sunrpc/rpc_pipe.c struct super_block *rpc_get_sb_net(const struct net *net)
net              1225 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1235 net/sunrpc/rpc_pipe.c void rpc_put_sb_net(const struct net *net)
net              1237 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1360 net/sunrpc/rpc_pipe.c 	struct net *net = sb->s_fs_info;
net              1361 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1385 net/sunrpc/rpc_pipe.c 		net->ns.inum, NET_NAME(net));
net              1408 net/sunrpc/rpc_pipe.c gssd_running(struct net *net)
net              1410 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1443 net/sunrpc/rpc_pipe.c 	struct net *net = sb->s_fs_info;
net              1444 net/sunrpc/rpc_pipe.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net              1453 net/sunrpc/rpc_pipe.c 		net->ns.inum, NET_NAME(net));
net              1460 net/sunrpc/rpc_pipe.c 	put_net(net);
net               165 net/sunrpc/rpcb_clnt.c static int rpcb_get_local(struct net *net)
net               168 net/sunrpc/rpcb_clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               179 net/sunrpc/rpcb_clnt.c void rpcb_put_local(struct net *net)
net               181 net/sunrpc/rpcb_clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               207 net/sunrpc/rpcb_clnt.c static void rpcb_set_local(struct net *net, struct rpc_clnt *clnt,
net               211 net/sunrpc/rpcb_clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               222 net/sunrpc/rpcb_clnt.c 		net->ns.inum, (net == &init_net) ? " (init_net)" : "");
net               229 net/sunrpc/rpcb_clnt.c static int rpcb_create_local_unix(struct net *net)
net               236 net/sunrpc/rpcb_clnt.c 		.net		= net,
net               278 net/sunrpc/rpcb_clnt.c 	rpcb_set_local(net, clnt, clnt4, true);
net               288 net/sunrpc/rpcb_clnt.c static int rpcb_create_local_net(struct net *net)
net               296 net/sunrpc/rpcb_clnt.c 		.net		= net,
net               331 net/sunrpc/rpcb_clnt.c 	rpcb_set_local(net, clnt, clnt4, false);
net               341 net/sunrpc/rpcb_clnt.c int rpcb_create_local(struct net *net)
net               346 net/sunrpc/rpcb_clnt.c 	if (rpcb_get_local(net))
net               350 net/sunrpc/rpcb_clnt.c 	if (rpcb_get_local(net))
net               353 net/sunrpc/rpcb_clnt.c 	if (rpcb_create_local_unix(net) != 0)
net               354 net/sunrpc/rpcb_clnt.c 		result = rpcb_create_local_net(net);
net               361 net/sunrpc/rpcb_clnt.c static struct rpc_clnt *rpcb_create(struct net *net, const char *nodename,
net               368 net/sunrpc/rpcb_clnt.c 		.net		= net,
net               450 net/sunrpc/rpcb_clnt.c int rpcb_register(struct net *net, u32 prog, u32 vers, int prot, unsigned short port)
net               461 net/sunrpc/rpcb_clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               598 net/sunrpc/rpcb_clnt.c int rpcb_v4_register(struct net *net, const u32 program, const u32 version,
net               610 net/sunrpc/rpcb_clnt.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               283 net/sunrpc/stats.c do_register(struct net *net, const char *name, void *data,
net               289 net/sunrpc/stats.c 	sn = net_generic(net, sunrpc_net_id);
net               294 net/sunrpc/stats.c rpc_proc_register(struct net *net, struct rpc_stat *statp)
net               296 net/sunrpc/stats.c 	return do_register(net, statp->program->name, statp, &rpc_proc_fops);
net               301 net/sunrpc/stats.c rpc_proc_unregister(struct net *net, const char *name)
net               305 net/sunrpc/stats.c 	sn = net_generic(net, sunrpc_net_id);
net               311 net/sunrpc/stats.c svc_proc_register(struct net *net, struct svc_stat *statp, const struct file_operations *fops)
net               313 net/sunrpc/stats.c 	return do_register(net, statp->program->pg_name, statp, fops);
net               318 net/sunrpc/stats.c svc_proc_unregister(struct net *net, const char *name)
net               322 net/sunrpc/stats.c 	sn = net_generic(net, sunrpc_net_id);
net               327 net/sunrpc/stats.c int rpc_proc_init(struct net *net)
net               332 net/sunrpc/stats.c 	sn = net_generic(net, sunrpc_net_id);
net               333 net/sunrpc/stats.c 	sn->proc_net_rpc = proc_mkdir("rpc", net->proc_net);
net               340 net/sunrpc/stats.c void rpc_proc_exit(struct net *net)
net               343 net/sunrpc/stats.c 	remove_proc_entry("rpc", net->proc_net);
net                31 net/sunrpc/sunrpc_syms.c static __net_init int sunrpc_init_net(struct net *net)
net                34 net/sunrpc/sunrpc_syms.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net                36 net/sunrpc/sunrpc_syms.c 	err = rpc_proc_init(net);
net                40 net/sunrpc/sunrpc_syms.c 	err = ip_map_cache_create(net);
net                44 net/sunrpc/sunrpc_syms.c 	err = unix_gid_cache_create(net);
net                48 net/sunrpc/sunrpc_syms.c 	err = rpc_pipefs_init_net(net);
net                58 net/sunrpc/sunrpc_syms.c 	unix_gid_cache_destroy(net);
net                60 net/sunrpc/sunrpc_syms.c 	ip_map_cache_destroy(net);
net                62 net/sunrpc/sunrpc_syms.c 	rpc_proc_exit(net);
net                67 net/sunrpc/sunrpc_syms.c static __net_exit void sunrpc_exit_net(struct net *net)
net                69 net/sunrpc/sunrpc_syms.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net                71 net/sunrpc/sunrpc_syms.c 	rpc_pipefs_exit_net(net);
net                72 net/sunrpc/sunrpc_syms.c 	unix_gid_cache_destroy(net);
net                73 net/sunrpc/sunrpc_syms.c 	ip_map_cache_destroy(net);
net                74 net/sunrpc/sunrpc_syms.c 	rpc_proc_exit(net);
net                36 net/sunrpc/svc.c static void svc_unregister(const struct svc_serv *serv, struct net *net);
net               359 net/sunrpc/svc.c int svc_rpcb_setup(struct svc_serv *serv, struct net *net)
net               363 net/sunrpc/svc.c 	err = rpcb_create_local(net);
net               368 net/sunrpc/svc.c 	svc_unregister(serv, net);
net               373 net/sunrpc/svc.c void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net)
net               375 net/sunrpc/svc.c 	svc_unregister(serv, net);
net               376 net/sunrpc/svc.c 	rpcb_put_local(net);
net               397 net/sunrpc/svc.c int svc_bind(struct svc_serv *serv, struct net *net)
net               401 net/sunrpc/svc.c 	return svc_rpcb_setup(serv, net);
net               513 net/sunrpc/svc.c void svc_shutdown_net(struct svc_serv *serv, struct net *net)
net               515 net/sunrpc/svc.c 	svc_close_net(serv, net);
net               518 net/sunrpc/svc.c 		serv->sv_ops->svo_shutdown(serv, net);
net               882 net/sunrpc/svc.c static int __svc_rpcb_register4(struct net *net, const u32 program,
net               906 net/sunrpc/svc.c 	error = rpcb_v4_register(net, program, version,
net               914 net/sunrpc/svc.c 		error = rpcb_register(net, program, version, protocol, port);
net               930 net/sunrpc/svc.c static int __svc_rpcb_register6(struct net *net, const u32 program,
net               954 net/sunrpc/svc.c 	error = rpcb_v4_register(net, program, version,
net               974 net/sunrpc/svc.c static int __svc_register(struct net *net, const char *progname,
net               984 net/sunrpc/svc.c 		error = __svc_rpcb_register4(net, program, version,
net               989 net/sunrpc/svc.c 		error = __svc_rpcb_register6(net, program, version,
net               997 net/sunrpc/svc.c int svc_rpcbind_set_version(struct net *net,
net              1008 net/sunrpc/svc.c 	return __svc_register(net, progp->pg_name, progp->pg_prog,
net              1014 net/sunrpc/svc.c int svc_generic_rpcbind_set(struct net *net,
net              1042 net/sunrpc/svc.c 	error = svc_rpcbind_set_version(net, progp, version,
net              1059 net/sunrpc/svc.c int svc_register(const struct svc_serv *serv, struct net *net,
net              1074 net/sunrpc/svc.c 			error = progp->pg_rpcbind_set(net, progp, i,
net              1095 net/sunrpc/svc.c static void __svc_unregister(struct net *net, const u32 program, const u32 version,
net              1100 net/sunrpc/svc.c 	error = rpcb_v4_register(net, program, version, NULL, "");
net              1107 net/sunrpc/svc.c 		error = rpcb_register(net, program, version, 0, 0);
net              1121 net/sunrpc/svc.c static void svc_unregister(const struct svc_serv *serv, struct net *net)
net              1138 net/sunrpc/svc.c 			__svc_unregister(net, progp->pg_prog, i, progp->pg_name);
net               161 net/sunrpc/svc_xprt.c void svc_xprt_init(struct net *net, struct svc_xprt_class *xcl,
net               176 net/sunrpc/svc_xprt.c 	xprt->xpt_net = get_net(net);
net               183 net/sunrpc/svc_xprt.c 					 struct net *net,
net               218 net/sunrpc/svc_xprt.c 	return xcl->xcl_ops->xpo_create(serv, net, sap, len, flags);
net               256 net/sunrpc/svc_xprt.c 			    struct net *net, const int family,
net               274 net/sunrpc/svc_xprt.c 		newxprt = __svc_xpo_create(xcl, serv, net, family, port, flags);
net               292 net/sunrpc/svc_xprt.c 		    struct net *net, const int family,
net               299 net/sunrpc/svc_xprt.c 	err = _svc_create_xprt(serv, xprt_name, net, family, port, flags, cred);
net               302 net/sunrpc/svc_xprt.c 		err = _svc_create_xprt(serv, xprt_name, net, family, port, flags, cred);
net              1061 net/sunrpc/svc_xprt.c static int svc_close_list(struct svc_serv *serv, struct list_head *xprt_list, struct net *net)
net              1068 net/sunrpc/svc_xprt.c 		if (xprt->xpt_net != net)
net              1078 net/sunrpc/svc_xprt.c static struct svc_xprt *svc_dequeue_net(struct svc_serv *serv, struct net *net)
net              1090 net/sunrpc/svc_xprt.c 			if (xprt->xpt_net != net)
net              1101 net/sunrpc/svc_xprt.c static void svc_clean_up_xprts(struct svc_serv *serv, struct net *net)
net              1105 net/sunrpc/svc_xprt.c 	while ((xprt = svc_dequeue_net(serv, net))) {
net              1123 net/sunrpc/svc_xprt.c void svc_close_net(struct svc_serv *serv, struct net *net)
net              1127 net/sunrpc/svc_xprt.c 	while (svc_close_list(serv, &serv->sv_permsocks, net) +
net              1128 net/sunrpc/svc_xprt.c 	       svc_close_list(serv, &serv->sv_tempsocks, net)) {
net              1130 net/sunrpc/svc_xprt.c 		svc_clean_up_xprts(serv, net);
net              1274 net/sunrpc/svc_xprt.c 			       struct net *net, const sa_family_t af,
net              1286 net/sunrpc/svc_xprt.c 		if (xprt->xpt_net != net)
net               204 net/sunrpc/svcauth_unix.c 	if (rpc_pton(cd->net, buf, len, &address.sa, sizeof(address)) == 0)
net               301 net/sunrpc/svcauth_unix.c static inline struct ip_map *ip_map_lookup(struct net *net, char *class,
net               306 net/sunrpc/svcauth_unix.c 	sn = net_generic(net, sunrpc_net_id);
net               330 net/sunrpc/svcauth_unix.c static inline int ip_map_update(struct net *net, struct ip_map *ipm,
net               335 net/sunrpc/svcauth_unix.c 	sn = net_generic(net, sunrpc_net_id);
net               339 net/sunrpc/svcauth_unix.c void svcauth_unix_purge(struct net *net)
net               343 net/sunrpc/svcauth_unix.c 	sn = net_generic(net, sunrpc_net_id);
net               596 net/sunrpc/svcauth_unix.c int unix_gid_cache_create(struct net *net)
net               598 net/sunrpc/svcauth_unix.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               602 net/sunrpc/svcauth_unix.c 	cd = cache_create_net(&unix_gid_cache_template, net);
net               605 net/sunrpc/svcauth_unix.c 	err = cache_register_net(cd, net);
net               607 net/sunrpc/svcauth_unix.c 		cache_destroy_net(cd, net);
net               614 net/sunrpc/svcauth_unix.c void unix_gid_cache_destroy(struct net *net)
net               616 net/sunrpc/svcauth_unix.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               621 net/sunrpc/svcauth_unix.c 	cache_unregister_net(cd, net);
net               622 net/sunrpc/svcauth_unix.c 	cache_destroy_net(cd, net);
net               673 net/sunrpc/svcauth_unix.c 	struct net *net = xprt->xpt_net;
net               674 net/sunrpc/svcauth_unix.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               893 net/sunrpc/svcauth_unix.c int ip_map_cache_create(struct net *net)
net               895 net/sunrpc/svcauth_unix.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               899 net/sunrpc/svcauth_unix.c 	cd = cache_create_net(&ip_map_cache_template, net);
net               902 net/sunrpc/svcauth_unix.c 	err = cache_register_net(cd, net);
net               904 net/sunrpc/svcauth_unix.c 		cache_destroy_net(cd, net);
net               911 net/sunrpc/svcauth_unix.c void ip_map_cache_destroy(struct net *net)
net               913 net/sunrpc/svcauth_unix.c 	struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
net               918 net/sunrpc/svcauth_unix.c 	cache_unregister_net(cd, net);
net               919 net/sunrpc/svcauth_unix.c 	cache_destroy_net(cd, net);
net                72 net/sunrpc/svcsock.c 					  struct net *, struct sockaddr *,
net               647 net/sunrpc/svcsock.c 				       struct net *net,
net               651 net/sunrpc/svcsock.c 	return svc_create_socket(serv, IPPROTO_UDP, net, sa, salen, flags);
net              1167 net/sunrpc/svcsock.c 				       struct net *net,
net              1171 net/sunrpc/svcsock.c 	return svc_create_socket(serv, IPPROTO_TCP, net, sa, salen, flags);
net              1318 net/sunrpc/svcsock.c bool svc_alien_sock(struct net *net, int fd)
net              1326 net/sunrpc/svcsock.c 	if (sock_net(sock->sk) != net)
net              1394 net/sunrpc/svcsock.c 					  struct net *net,
net              1431 net/sunrpc/svcsock.c 	error = __sock_create(net, family, type, protocol, &sock, 1);
net                70 net/sunrpc/xprt.c static void	 xprt_init(struct rpc_xprt *xprt, struct net *net);
net              1647 net/sunrpc/xprt.c struct rpc_xprt *xprt_alloc(struct net *net, size_t size,
net              1659 net/sunrpc/xprt.c 	xprt_init(xprt, net);
net              1849 net/sunrpc/xprt.c static void xprt_init(struct rpc_xprt *xprt, struct net *net)
net              1877 net/sunrpc/xprt.c 	xprt->xprt_net = get_net(net);
net               293 net/sunrpc/xprtrdma/svc_rdma_backchannel.c 	xprt = xprt_alloc(args->net, sizeof(*new_xprt),
net                68 net/sunrpc/xprtrdma/svc_rdma_transport.c 						 struct net *net);
net                70 net/sunrpc/xprtrdma/svc_rdma_transport.c 					struct net *net,
net               129 net/sunrpc/xprtrdma/svc_rdma_transport.c 						 struct net *net)
net               137 net/sunrpc/xprtrdma/svc_rdma_transport.c 	svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv);
net               310 net/sunrpc/xprtrdma/svc_rdma_transport.c 					struct net *net,
net               323 net/sunrpc/xprtrdma/svc_rdma_transport.c 	cma_xprt = svc_rdma_create_xprt(serv, net);
net               329 net/sunrpc/xprtrdma/svc_rdma_transport.c 	listen_id = rdma_create_id(net, rdma_listen_handler, cma_xprt,
net               322 net/sunrpc/xprtrdma/transport.c 	xprt = xprt_alloc(args->net, sizeof(struct rpcrdma_xprt), 0, 0);
net              2865 net/sunrpc/xprtsock.c 	xprt = xprt_alloc(args->net, sizeof(*new), slot_table_size,
net                45 net/sysctl_net.c 	struct net *net = container_of(head->set, struct net, sysctls);
net                48 net/sysctl_net.c 	if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) {
net                60 net/sysctl_net.c 	struct net *net = container_of(head->set, struct net, sysctls);
net                64 net/sysctl_net.c 	ns_root_uid = make_kuid(net->user_ns, 0);
net                68 net/sysctl_net.c 	ns_root_gid = make_kgid(net->user_ns, 0);
net                79 net/sysctl_net.c static int __net_init sysctl_net_init(struct net *net)
net                81 net/sysctl_net.c 	setup_sysctl_set(&net->sysctls, &net_sysctl_root, is_seen);
net                85 net/sysctl_net.c static void __net_exit sysctl_net_exit(struct net *net)
net                87 net/sysctl_net.c 	retire_sysctl_set(&net->sysctls);
net               118 net/sysctl_net.c struct ctl_table_header *register_net_sysctl(struct net *net,
net               121 net/sysctl_net.c 	return __register_sysctl_table(&net->sysctls, path, table);
net                55 net/tipc/addr.c void tipc_set_node_id(struct net *net, u8 *id)
net                57 net/tipc/addr.c 	struct tipc_net *tn = tipc_net(net);
net                64 net/tipc/addr.c 		tipc_own_id_string(net), tn->net_id);
net                67 net/tipc/addr.c void tipc_set_node_addr(struct net *net, u32 addr)
net                69 net/tipc/addr.c 	struct tipc_net *tn = tipc_net(net);
net                73 net/tipc/addr.c 	if (!tipc_own_id(net)) {
net                75 net/tipc/addr.c 		tipc_set_node_id(net, node_id);
net                46 net/tipc/addr.h static inline u32 tipc_own_addr(struct net *net)
net                48 net/tipc/addr.h 	return tipc_net(net)->node_addr;
net                51 net/tipc/addr.h static inline u8 *tipc_own_id(struct net *net)
net                53 net/tipc/addr.h 	struct tipc_net *tn = tipc_net(net);
net                60 net/tipc/addr.h static inline char *tipc_own_id_string(struct net *net)
net                62 net/tipc/addr.h 	return tipc_net(net)->node_id_string;
net                75 net/tipc/addr.h static inline int tipc_scope2node(struct net *net, int sc)
net                77 net/tipc/addr.h 	return sc != TIPC_NODE_SCOPE ? 0 : tipc_own_addr(net);
net                80 net/tipc/addr.h static inline int in_own_node(struct net *net, u32 addr)
net                82 net/tipc/addr.h 	return addr == tipc_own_addr(net) || !addr;
net                86 net/tipc/addr.h void tipc_set_node_id(struct net *net, u8 *id);
net                87 net/tipc/addr.h void tipc_set_node_addr(struct net *net, u32 addr);
net                76 net/tipc/bcast.c static struct tipc_bc_base *tipc_bc_base(struct net *net)
net                78 net/tipc/bcast.c 	return tipc_net(net)->bcbase;
net                85 net/tipc/bcast.c int tipc_bcast_get_mtu(struct net *net)
net                87 net/tipc/bcast.c 	return tipc_link_mtu(tipc_bc_sndlink(net)) - INT_H_SIZE;
net                90 net/tipc/bcast.c void tipc_bcast_disable_rcast(struct net *net)
net                92 net/tipc/bcast.c 	tipc_bc_base(net)->rcast_support = false;
net                95 net/tipc/bcast.c static void tipc_bcbase_calc_bc_threshold(struct net *net)
net                97 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net                98 net/tipc/bcast.c 	int cluster_size = tipc_link_bc_peers(tipc_bc_sndlink(net));
net               106 net/tipc/bcast.c static void tipc_bcbase_select_primary(struct net *net)
net               108 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               122 net/tipc/bcast.c 		mtu = tipc_bearer_mtu(net, i);
net               125 net/tipc/bcast.c 		bb->bcast_support &= tipc_bearer_bcast_support(net, i);
net               132 net/tipc/bcast.c 		if ((i ^ tipc_own_addr(net)) & 1)
net               137 net/tipc/bcast.c 		bb->bcast_support = tipc_bearer_bcast_support(net, prim);
net               140 net/tipc/bcast.c void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id)
net               142 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               144 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               146 net/tipc/bcast.c 	tipc_bcbase_select_primary(net);
net               147 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               150 net/tipc/bcast.c void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id)
net               152 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               154 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               156 net/tipc/bcast.c 	tipc_bcbase_select_primary(net);
net               157 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               170 net/tipc/bcast.c static void tipc_bcbase_xmit(struct net *net, struct sk_buff_head *xmitq)
net               173 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               183 net/tipc/bcast.c 		tipc_bearer_bc_xmit(net, bearer_id, xmitq);
net               199 net/tipc/bcast.c 		tipc_bearer_bc_xmit(net, bearer_id, &_xmitq);
net               205 net/tipc/bcast.c static void tipc_bcast_select_xmit_method(struct net *net, int dests,
net               208 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               226 net/tipc/bcast.c 	if (!(tipc_net(net)->capabilities & TIPC_MCAST_RBCTL) &&
net               252 net/tipc/bcast.c static int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts,
net               255 net/tipc/bcast.c 	struct tipc_link *l = tipc_bc_sndlink(net);
net               260 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               263 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               264 net/tipc/bcast.c 	tipc_bcbase_xmit(net, &xmitq);
net               281 net/tipc/bcast.c static int tipc_rcast_xmit(struct net *net, struct sk_buff_head *pkts,
net               297 net/tipc/bcast.c 		if (tipc_node_xmit(net, &_pkts, dnode, selector) == -ELINKCONG)
net               310 net/tipc/bcast.c static int tipc_mcast_send_sync(struct net *net, struct sk_buff *skb,
net               321 net/tipc/bcast.c 	if (!(tipc_net(net)->capabilities & TIPC_MCAST_RBCTL))
net               351 net/tipc/bcast.c 		rc = tipc_bcast_xmit(net, &tmpq, &cong_link_cnt);
net               353 net/tipc/bcast.c 		rc = tipc_rcast_xmit(net, &tmpq, dests, &cong_link_cnt);
net               371 net/tipc/bcast.c int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts,
net               391 net/tipc/bcast.c 		tipc_bcast_select_xmit_method(net, dests->remote, method);
net               401 net/tipc/bcast.c 			rc = tipc_mcast_send_sync(net, skb, method, dests);
net               410 net/tipc/bcast.c 			rc = tipc_rcast_xmit(net, pkts, dests, cong_link_cnt);
net               412 net/tipc/bcast.c 			rc = tipc_bcast_xmit(net, pkts, cong_link_cnt);
net               416 net/tipc/bcast.c 		tipc_loopback_trace(net, &localq);
net               417 net/tipc/bcast.c 		tipc_sk_mcast_rcv(net, &localq, &inputq);
net               429 net/tipc/bcast.c int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb)
net               432 net/tipc/bcast.c 	struct sk_buff_head *inputq = &tipc_bc_base(net)->inputq;
net               438 net/tipc/bcast.c 	if (msg_mc_netid(hdr) != tipc_netid(net) || !tipc_link_is_up(l)) {
net               443 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               448 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               450 net/tipc/bcast.c 	tipc_bcbase_xmit(net, &xmitq);
net               454 net/tipc/bcast.c 		tipc_sk_rcv(net, inputq);
net               463 net/tipc/bcast.c void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l,
net               466 net/tipc/bcast.c 	struct sk_buff_head *inputq = &tipc_bc_base(net)->inputq;
net               476 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               478 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               480 net/tipc/bcast.c 	tipc_bcbase_xmit(net, &xmitq);
net               484 net/tipc/bcast.c 		tipc_sk_rcv(net, inputq);
net               491 net/tipc/bcast.c int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l,
net               494 net/tipc/bcast.c 	struct sk_buff_head *inputq = &tipc_bc_base(net)->inputq;
net               500 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               507 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               509 net/tipc/bcast.c 	tipc_bcbase_xmit(net, &xmitq);
net               513 net/tipc/bcast.c 		tipc_sk_rcv(net, inputq);
net               521 net/tipc/bcast.c void tipc_bcast_add_peer(struct net *net, struct tipc_link *uc_l,
net               524 net/tipc/bcast.c 	struct tipc_link *snd_l = tipc_bc_sndlink(net);
net               526 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               528 net/tipc/bcast.c 	tipc_bcbase_select_primary(net);
net               529 net/tipc/bcast.c 	tipc_bcbase_calc_bc_threshold(net);
net               530 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               537 net/tipc/bcast.c void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_l)
net               539 net/tipc/bcast.c 	struct tipc_link *snd_l = tipc_bc_sndlink(net);
net               540 net/tipc/bcast.c 	struct sk_buff_head *inputq = &tipc_bc_base(net)->inputq;
net               545 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               547 net/tipc/bcast.c 	tipc_bcbase_select_primary(net);
net               548 net/tipc/bcast.c 	tipc_bcbase_calc_bc_threshold(net);
net               549 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               551 net/tipc/bcast.c 	tipc_bcbase_xmit(net, &xmitq);
net               555 net/tipc/bcast.c 		tipc_sk_rcv(net, inputq);
net               558 net/tipc/bcast.c int tipc_bclink_reset_stats(struct net *net)
net               560 net/tipc/bcast.c 	struct tipc_link *l = tipc_bc_sndlink(net);
net               565 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               567 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               571 net/tipc/bcast.c static int tipc_bc_link_set_queue_limits(struct net *net, u32 limit)
net               573 net/tipc/bcast.c 	struct tipc_link *l = tipc_bc_sndlink(net);
net               581 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               583 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               587 net/tipc/bcast.c static int tipc_bc_link_set_broadcast_mode(struct net *net, u32 bc_mode)
net               589 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               620 net/tipc/bcast.c static int tipc_bc_link_set_broadcast_ratio(struct net *net, u32 bc_ratio)
net               622 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               631 net/tipc/bcast.c 	tipc_bcast_lock(net);
net               632 net/tipc/bcast.c 	tipc_bcbase_calc_bc_threshold(net);
net               633 net/tipc/bcast.c 	tipc_bcast_unlock(net);
net               638 net/tipc/bcast.c int tipc_nl_bc_link_set(struct net *net, struct nlattr *attrs[])
net               661 net/tipc/bcast.c 		err = tipc_bc_link_set_broadcast_mode(net, bc_mode);
net               666 net/tipc/bcast.c 		err = tipc_bc_link_set_broadcast_ratio(net, bc_ratio);
net               671 net/tipc/bcast.c 		err = tipc_bc_link_set_queue_limits(net, win);
net               677 net/tipc/bcast.c int tipc_bcast_init(struct net *net)
net               679 net/tipc/bcast.c 	struct tipc_net *tn = tipc_net(net);
net               687 net/tipc/bcast.c 	spin_lock_init(&tipc_net(net)->bclock);
net               689 net/tipc/bcast.c 	if (!tipc_link_bc_create(net, 0, 0,
net               709 net/tipc/bcast.c void tipc_bcast_stop(struct net *net)
net               711 net/tipc/bcast.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               748 net/tipc/bcast.c u32 tipc_bcast_get_broadcast_mode(struct net *net)
net               750 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               764 net/tipc/bcast.c u32 tipc_bcast_get_broadcast_ratio(struct net *net)
net               766 net/tipc/bcast.c 	struct tipc_bc_base *bb = tipc_bc_base(net);
net               771 net/tipc/bcast.c void tipc_mcast_filter_msg(struct net *net, struct sk_buff_head *defq,
net               789 net/tipc/bcast.c 	if (node == tipc_own_addr(net))
net                80 net/tipc/bcast.h int tipc_bcast_init(struct net *net);
net                81 net/tipc/bcast.h void tipc_bcast_stop(struct net *net);
net                82 net/tipc/bcast.h void tipc_bcast_add_peer(struct net *net, struct tipc_link *l,
net                84 net/tipc/bcast.h void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_bcl);
net                85 net/tipc/bcast.h void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id);
net                86 net/tipc/bcast.h void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id);
net                87 net/tipc/bcast.h int  tipc_bcast_get_mtu(struct net *net);
net                88 net/tipc/bcast.h void tipc_bcast_disable_rcast(struct net *net);
net                89 net/tipc/bcast.h int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts,
net                92 net/tipc/bcast.h int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb);
net                93 net/tipc/bcast.h void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l,
net                95 net/tipc/bcast.h int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l,
net                97 net/tipc/bcast.h int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg);
net                98 net/tipc/bcast.h int tipc_nl_bc_link_set(struct net *net, struct nlattr *attrs[]);
net                99 net/tipc/bcast.h int tipc_bclink_reset_stats(struct net *net);
net               101 net/tipc/bcast.h u32 tipc_bcast_get_broadcast_mode(struct net *net);
net               102 net/tipc/bcast.h u32 tipc_bcast_get_broadcast_ratio(struct net *net);
net               104 net/tipc/bcast.h void tipc_mcast_filter_msg(struct net *net, struct sk_buff_head *defq,
net               107 net/tipc/bcast.h static inline void tipc_bcast_lock(struct net *net)
net               109 net/tipc/bcast.h 	spin_lock_bh(&tipc_net(net)->bclock);
net               112 net/tipc/bcast.h static inline void tipc_bcast_unlock(struct net *net)
net               114 net/tipc/bcast.h 	spin_unlock_bh(&tipc_net(net)->bclock);
net               117 net/tipc/bcast.h static inline struct tipc_link *tipc_bc_sndlink(struct net *net)
net               119 net/tipc/bcast.h 	return tipc_net(net)->bcl;
net                61 net/tipc/bearer.c static struct tipc_bearer *bearer_get(struct net *net, int bearer_id)
net                63 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net                68 net/tipc/bearer.c static void bearer_disable(struct net *net, struct tipc_bearer *b);
net               172 net/tipc/bearer.c struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name)
net               174 net/tipc/bearer.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               191 net/tipc/bearer.c int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id)
net               193 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net               207 net/tipc/bearer.c void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest)
net               209 net/tipc/bearer.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               219 net/tipc/bearer.c void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest)
net               221 net/tipc/bearer.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               234 net/tipc/bearer.c static int tipc_enable_bearer(struct net *net, const char *name,
net               238 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net               304 net/tipc/bearer.c 	res = m->enable_media(net, b, attr);
net               319 net/tipc/bearer.c 	res = tipc_disc_create(net, b, &b->bcast_addr, &skb);
net               321 net/tipc/bearer.c 		bearer_disable(net, b);
net               328 net/tipc/bearer.c 		tipc_bearer_xmit_skb(net, bearer_id, skb, &b->bcast_addr);
net               330 net/tipc/bearer.c 	if (tipc_mon_create(net, bearer_id)) {
net               331 net/tipc/bearer.c 		bearer_disable(net, b);
net               346 net/tipc/bearer.c static int tipc_reset_bearer(struct net *net, struct tipc_bearer *b)
net               349 net/tipc/bearer.c 	tipc_node_delete_links(net, b->identity);
net               350 net/tipc/bearer.c 	tipc_disc_reset(net, b);
net               359 net/tipc/bearer.c static void bearer_disable(struct net *net, struct tipc_bearer *b)
net               361 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net               366 net/tipc/bearer.c 	tipc_node_delete_links(net, bearer_id);
net               373 net/tipc/bearer.c 	tipc_mon_delete(net, bearer_id);
net               376 net/tipc/bearer.c int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b,
net               385 net/tipc/bearer.c 	dev = dev_get_by_name(net, dev_name);
net               392 net/tipc/bearer.c 	if (dev == net->loopback_dev) {
net               399 net/tipc/bearer.c 	if (!tipc_own_id(net) && hwaddr_len <= NODE_ID_LEN) {
net               401 net/tipc/bearer.c 		tipc_net_init(net, node_id, 0);
net               403 net/tipc/bearer.c 	if (!tipc_own_id(net)) {
net               446 net/tipc/bearer.c int tipc_l2_send_msg(struct net *net, struct sk_buff *skb,
net               470 net/tipc/bearer.c bool tipc_bearer_bcast_support(struct net *net, u32 bearer_id)
net               476 net/tipc/bearer.c 	b = bearer_get(net, bearer_id);
net               483 net/tipc/bearer.c int tipc_bearer_mtu(struct net *net, u32 bearer_id)
net               489 net/tipc/bearer.c 	b = rcu_dereference(tipc_net(net)->bearer_list[bearer_id]);
net               498 net/tipc/bearer.c void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id,
net               506 net/tipc/bearer.c 	b = bearer_get(net, bearer_id);
net               508 net/tipc/bearer.c 		b->media->send_msg(net, skb, b, dest);
net               516 net/tipc/bearer.c void tipc_bearer_xmit(struct net *net, u32 bearer_id,
net               527 net/tipc/bearer.c 	b = bearer_get(net, bearer_id);
net               533 net/tipc/bearer.c 			b->media->send_msg(net, skb, b, dst);
net               542 net/tipc/bearer.c void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id,
net               545 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net               552 net/tipc/bearer.c 	b = bearer_get(net, bearer_id);
net               560 net/tipc/bearer.c 		b->media->send_msg(net, skb, b, &b->bcast_addr);
net               609 net/tipc/bearer.c 	struct net *net = dev_net(dev);
net               626 net/tipc/bearer.c 		tipc_reset_bearer(net, b);
net               633 net/tipc/bearer.c 			bearer_disable(net, b);
net               637 net/tipc/bearer.c 		tipc_reset_bearer(net, b);
net               642 net/tipc/bearer.c 		tipc_reset_bearer(net, b);
net               646 net/tipc/bearer.c 		bearer_disable(net, b);
net               667 net/tipc/bearer.c void tipc_bearer_stop(struct net *net)
net               669 net/tipc/bearer.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               676 net/tipc/bearer.c 			bearer_disable(net, b);
net               682 net/tipc/bearer.c void tipc_clone_to_loopback(struct net *net, struct sk_buff_head *pkts)
net               684 net/tipc/bearer.c 	struct net_device *dev = net->loopback_dev;
net               717 net/tipc/bearer.c int tipc_attach_loopback(struct net *net)
net               719 net/tipc/bearer.c 	struct net_device *dev = net->loopback_dev;
net               720 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net               733 net/tipc/bearer.c void tipc_detach_loopback(struct net *net)
net               735 net/tipc/bearer.c 	struct tipc_net *tn = tipc_net(net);
net               738 net/tipc/bearer.c 	dev_put(net->loopback_dev);
net               804 net/tipc/bearer.c 	struct net *net = sock_net(skb->sk);
net               805 net/tipc/bearer.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               838 net/tipc/bearer.c 	struct net *net = genl_info_net(info);
net               862 net/tipc/bearer.c 	bearer = tipc_bearer_find(net, name);
net               887 net/tipc/bearer.c 	struct net *net = sock_net(skb->sk);
net               903 net/tipc/bearer.c 	bearer = tipc_bearer_find(net, name);
net               907 net/tipc/bearer.c 	bearer_disable(net, bearer);
net               928 net/tipc/bearer.c 	struct net *net = sock_net(skb->sk);
net               963 net/tipc/bearer.c 	return tipc_enable_bearer(net, bearer, domain, prio, attrs);
net               983 net/tipc/bearer.c 	struct net *net = sock_net(skb->sk);
net               999 net/tipc/bearer.c 	b = tipc_bearer_find(net, name);
net              1024 net/tipc/bearer.c 	struct net *net = sock_net(skb->sk);
net              1041 net/tipc/bearer.c 	b = tipc_bearer_find(net, name);
net              1055 net/tipc/bearer.c 			tipc_node_apply_property(net, b, TIPC_NLA_PROP_TOL);
net              1069 net/tipc/bearer.c 			tipc_node_apply_property(net, b, TIPC_NLA_PROP_MTU);
net               104 net/tipc/bearer.h 	int (*send_msg)(struct net *net, struct sk_buff *buf,
net               107 net/tipc/bearer.h 	int (*enable_media)(struct net *net, struct tipc_bearer *b,
net               179 net/tipc/bearer.h void tipc_rcv(struct net *net, struct sk_buff *skb, struct tipc_bearer *b);
net               211 net/tipc/bearer.h int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b,
net               214 net/tipc/bearer.h int tipc_l2_send_msg(struct net *net, struct sk_buff *buf,
net               217 net/tipc/bearer.h void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest);
net               218 net/tipc/bearer.h void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest);
net               219 net/tipc/bearer.h struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name);
net               220 net/tipc/bearer.h int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id);
net               224 net/tipc/bearer.h void tipc_bearer_stop(struct net *net);
net               225 net/tipc/bearer.h int tipc_bearer_mtu(struct net *net, u32 bearer_id);
net               226 net/tipc/bearer.h bool tipc_bearer_bcast_support(struct net *net, u32 bearer_id);
net               227 net/tipc/bearer.h void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id,
net               230 net/tipc/bearer.h void tipc_bearer_xmit(struct net *net, u32 bearer_id,
net               233 net/tipc/bearer.h void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id,
net               235 net/tipc/bearer.h void tipc_clone_to_loopback(struct net *net, struct sk_buff_head *pkts);
net               236 net/tipc/bearer.h int tipc_attach_loopback(struct net *net);
net               237 net/tipc/bearer.h void tipc_detach_loopback(struct net *net);
net               239 net/tipc/bearer.h static inline void tipc_loopback_trace(struct net *net,
net               242 net/tipc/bearer.h 	if (unlikely(dev_nit_active(net->loopback_dev)))
net               243 net/tipc/bearer.h 		tipc_clone_to_loopback(net, pkts);
net                52 net/tipc/core.c static int __net_init tipc_init_net(struct net *net)
net                54 net/tipc/core.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net                69 net/tipc/core.c 	err = tipc_sk_rht_init(net);
net                73 net/tipc/core.c 	err = tipc_nametbl_init(net);
net                79 net/tipc/core.c 	err = tipc_bcast_init(net);
net                83 net/tipc/core.c 	err = tipc_attach_loopback(net);
net                90 net/tipc/core.c 	tipc_nametbl_stop(net);
net                92 net/tipc/core.c 	tipc_sk_rht_destroy(net);
net                97 net/tipc/core.c static void __net_exit tipc_exit_net(struct net *net)
net                99 net/tipc/core.c 	tipc_detach_loopback(net);
net               100 net/tipc/core.c 	tipc_net_stop(net);
net               101 net/tipc/core.c 	tipc_bcast_stop(net);
net               102 net/tipc/core.c 	tipc_nametbl_stop(net);
net               103 net/tipc/core.c 	tipc_sk_rht_destroy(net);
net               139 net/tipc/core.h static inline struct tipc_net *tipc_net(struct net *net)
net               141 net/tipc/core.h 	return net_generic(net, tipc_net_id);
net               144 net/tipc/core.h static inline int tipc_netid(struct net *net)
net               146 net/tipc/core.h 	return tipc_net(net)->net_id;
net               149 net/tipc/core.h static inline struct list_head *tipc_nodes(struct net *net)
net               151 net/tipc/core.h 	return &tipc_net(net)->node_list;
net               154 net/tipc/core.h static inline struct name_table *tipc_name_table(struct net *net)
net               156 net/tipc/core.h 	return tipc_net(net)->nametbl;
net               159 net/tipc/core.h static inline struct tipc_topsrv *tipc_topsrv(struct net *net)
net               161 net/tipc/core.h 	return tipc_net(net)->topsrv;
net                80 net/tipc/diag.c 	struct net *net = sock_net(skb->sk);
net                91 net/tipc/diag.c 		netlink_dump_start(net->diag_nlsk, skb, h, &c);
net                65 net/tipc/discover.c 	struct net *net;
net                80 net/tipc/discover.c static void tipc_disc_init_msg(struct net *net, struct sk_buff *skb,
net                83 net/tipc/discover.c 	struct tipc_net *tn = tipc_net(net);
net                97 net/tipc/discover.c 	msg_set_node_id(hdr, tipc_own_id(net));
net               100 net/tipc/discover.c static void tipc_disc_msg_xmit(struct net *net, u32 mtyp, u32 dst,
net               112 net/tipc/discover.c 	tipc_disc_init_msg(net, skb, mtyp, b);
net               115 net/tipc/discover.c 	tipc_bearer_xmit_skb(net, b->identity, skb, maddr);
net               147 net/tipc/discover.c 	struct net *net = d->net;
net               148 net/tipc/discover.c 	struct tipc_net *tn = tipc_net(net);
net               150 net/tipc/discover.c 	u32 self = tipc_own_addr(net);
net               169 net/tipc/discover.c 		tipc_sched_net_finalize(net, tn->trial_addr);
net               178 net/tipc/discover.c 	sugg_addr = tipc_node_try_addr(net, peer_id, src);
net               180 net/tipc/discover.c 		tipc_disc_msg_xmit(net, DSC_TRIAL_FAIL_MSG, src,
net               191 net/tipc/discover.c void tipc_disc_rcv(struct net *net, struct sk_buff *skb,
net               194 net/tipc/discover.c 	struct tipc_net *tn = tipc_net(net);
net               233 net/tipc/discover.c 	self = tipc_own_addr(net);
net               236 net/tipc/discover.c 	if (in_own_node(net, src)) {
net               244 net/tipc/discover.c 	tipc_node_check_dest(net, src, peer_id, b, caps, signature,
net               252 net/tipc/discover.c 	tipc_disc_msg_xmit(net, DSC_RESP_MSG, src, self, 0, &maddr, b);
net               290 net/tipc/discover.c 	struct tipc_net *tn = tipc_net(d->net);
net               293 net/tipc/discover.c 	struct net *net = d->net;
net               305 net/tipc/discover.c 	if (!time_before(jiffies, tn->addr_trial_end) && !tipc_own_addr(net)) {
net               308 net/tipc/discover.c 		tipc_sched_net_finalize(net, tn->trial_addr);
net               332 net/tipc/discover.c 		tipc_bearer_xmit_skb(net, bearer_id, skb, &maddr);
net               344 net/tipc/discover.c int tipc_disc_create(struct net *net, struct tipc_bearer *b,
net               347 net/tipc/discover.c 	struct tipc_net *tn = tipc_net(net);
net               358 net/tipc/discover.c 	tipc_disc_init_msg(net, d->skb, DSC_REQ_MSG, b);
net               361 net/tipc/discover.c 	if (!tipc_own_addr(net)) {
net               366 net/tipc/discover.c 	d->net = net;
net               396 net/tipc/discover.c void tipc_disc_reset(struct net *net, struct tipc_bearer *b)
net               403 net/tipc/discover.c 	tipc_disc_init_msg(net, d->skb, DSC_REQ_MSG, b);
net               404 net/tipc/discover.c 	d->net = net;
net               414 net/tipc/discover.c 		tipc_bearer_xmit_skb(net, b->identity, skb, &maddr);
net                42 net/tipc/discover.h int tipc_disc_create(struct net *net, struct tipc_bearer *b_ptr,
net                45 net/tipc/discover.h void tipc_disc_reset(struct net *net, struct tipc_bearer *b_ptr);
net                48 net/tipc/discover.h void tipc_disc_rcv(struct net *net, struct sk_buff *buf,
net                85 net/tipc/group.c 	struct net *net;
net               162 net/tipc/group.c struct tipc_group *tipc_group_create(struct net *net, u32 portid,
net               174 net/tipc/group.c 	tipc_nlist_init(&grp->dests, tipc_own_addr(net));
net               179 net/tipc/group.c 	grp->net = net;
net               189 net/tipc/group.c 	if (tipc_topsrv_kern_subscr(net, portid, type, 0, ~0,
net               196 net/tipc/group.c void tipc_group_join(struct net *net, struct tipc_group *grp, int *sk_rcvbuf)
net               207 net/tipc/group.c 	tipc_node_distr_xmit(net, &xmitq);
net               211 net/tipc/group.c void tipc_group_delete(struct net *net, struct tipc_group *grp)
net               225 net/tipc/group.c 	tipc_node_distr_xmit(net, &xmitq);
net               227 net/tipc/group.c 	tipc_topsrv_kern_unsubscr(net, grp->subid);
net               440 net/tipc/group.c 	tipc_node_distr_xmit(grp->net, &xmitq);
net               665 net/tipc/group.c {	u32 dnode = tipc_own_addr(grp->net);
net               704 net/tipc/group.c 			      m->node, tipc_own_addr(grp->net),
net               746 net/tipc/group.c 	if (grp->scope == TIPC_NODE_SCOPE && node != tipc_own_addr(grp->net))
net               861 net/tipc/group.c 	struct net *net;
net               867 net/tipc/group.c 	net = grp->net;
net               868 net/tipc/group.c 	self = tipc_own_addr(net);
net               909 net/tipc/group.c 		if (!tipc_node_is_up(net, node))
net                45 net/tipc/group.h struct tipc_group *tipc_group_create(struct net *net, u32 portid,
net                48 net/tipc/group.h void tipc_group_join(struct net *net, struct tipc_group *grp, int *sk_rcv_buf);
net                49 net/tipc/group.h void tipc_group_delete(struct net *net, struct tipc_group *grp);
net               126 net/tipc/link.c 	struct net *net;
net               442 net/tipc/link.c bool tipc_link_create(struct net *net, char *if_name, int bearer_id,
net               464 net/tipc/link.c 		tipc_nodeid2string(self_str, tipc_own_id(net));
net               478 net/tipc/link.c 	l->net = net;
net               515 net/tipc/link.c bool tipc_link_bc_create(struct net *net, u32 ownnode, u32 peer,
net               524 net/tipc/link.c 	if (!tipc_link_create(net, "", MAX_BEARERS, 0, 'Z', mtu, 0, window,
net               543 net/tipc/link.c 		tipc_bcast_disable_rcast(net);
net               785 net/tipc/link.c 		tipc_mon_get_state(l->net, l->addr, mstate, l->bearer_id);
net               829 net/tipc/link.c 	u32 dnode = tipc_own_addr(l->net);
net              1247 net/tipc/link.c 		tipc_bcast_lock(l->net);
net              1249 net/tipc/link.c 		tipc_bcast_unlock(l->net);
net              1470 net/tipc/link.c 		if (((l->rcv_nxt ^ tipc_own_addr(l->net)) & 0xf) != 0xf)
net              1517 net/tipc/link.c 		match2 = tipc_own_addr(l->net) & 0xf;
net              1627 net/tipc/link.c 			      l->addr, tipc_own_addr(l->net), 0, 0, 0);
net              1656 net/tipc/link.c 		tipc_mon_prep(l->net, data + glen, &dlen, mstate, l->bearer_id);
net              1684 net/tipc/link.c 	u32 onode = tipc_own_addr(l->net);
net              1736 net/tipc/link.c 			      BASIC_H_SIZE, 0, l->addr, tipc_own_addr(l->net),
net              1754 net/tipc/link.c 					 tipc_own_addr(l->net),
net              1772 net/tipc/link.c 	tipc_msg_init(tipc_own_addr(l->net), &tnlhdr, TUNNEL_PROTOCOL,
net              1963 net/tipc/link.c 	if (tipc_own_addr(l->net) > msg_prevnode(hdr))
net              2062 net/tipc/link.c 		tipc_mon_rcv(l->net, data + glen, dlen - glen, l->addr,
net              2100 net/tipc/link.c 			      0, l->addr, tipc_own_addr(l->net), 0, 0, 0);
net              2283 net/tipc/link.c 	if (dnode == tipc_own_addr(l->net)) {
net              2434 net/tipc/link.c int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg,
net              2437 net/tipc/link.c 	u32 self = tipc_own_addr(net);
net              2554 net/tipc/link.c int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg)
net              2560 net/tipc/link.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2561 net/tipc/link.c 	u32 bc_mode = tipc_bcast_get_broadcast_mode(net);
net              2562 net/tipc/link.c 	u32 bc_ratio = tipc_bcast_get_broadcast_ratio(net);
net              2568 net/tipc/link.c 	tipc_bcast_lock(net);
net              2573 net/tipc/link.c 		tipc_bcast_unlock(net);
net              2611 net/tipc/link.c 	tipc_bcast_unlock(net);
net              2622 net/tipc/link.c 	tipc_bcast_unlock(net);
net                74 net/tipc/link.h bool tipc_link_create(struct net *net, char *if_name, int bearer_id,
net                83 net/tipc/link.h bool tipc_link_bc_create(struct net *net, u32 ownnode, u32 peer,
net               128 net/tipc/link.h int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg,
net                95 net/tipc/monitor.c 	struct net *net;
net               100 net/tipc/monitor.c static struct tipc_monitor *tipc_monitor(struct net *net, int bearer_id)
net               102 net/tipc/monitor.c 	return tipc_net(net)->monitors[bearer_id];
net               165 net/tipc/monitor.c static struct tipc_peer *get_self(struct net *net, int bearer_id)
net               167 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               172 net/tipc/monitor.c static inline bool tipc_mon_is_active(struct net *net, struct tipc_monitor *mon)
net               174 net/tipc/monitor.c 	struct tipc_net *tn = tipc_net(net);
net               322 net/tipc/monitor.c void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id)
net               324 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               325 net/tipc/monitor.c 	struct tipc_peer *self = get_self(net, bearer_id);
net               344 net/tipc/monitor.c 	if (!tipc_mon_is_active(net, mon)) {
net               388 net/tipc/monitor.c void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id)
net               390 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               391 net/tipc/monitor.c 	struct tipc_peer *self = get_self(net, bearer_id);
net               407 net/tipc/monitor.c void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id)
net               409 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               410 net/tipc/monitor.c 	struct tipc_peer *self = get_self(net, bearer_id);
net               442 net/tipc/monitor.c void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr,
net               445 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               525 net/tipc/monitor.c void tipc_mon_prep(struct net *net, void *data, int *dlen,
net               528 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               534 net/tipc/monitor.c 	if (!tipc_mon_is_active(net, mon)) {
net               558 net/tipc/monitor.c void tipc_mon_get_state(struct net *net, u32 addr,
net               562 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               565 net/tipc/monitor.c 	if (!tipc_mon_is_active(net, mon)) {
net               606 net/tipc/monitor.c int tipc_mon_create(struct net *net, int bearer_id)
net               608 net/tipc/monitor.c 	struct tipc_net *tn = tipc_net(net);
net               627 net/tipc/monitor.c 	mon->net = net;
net               631 net/tipc/monitor.c 	self->addr = tipc_own_addr(net);
net               641 net/tipc/monitor.c void tipc_mon_delete(struct net *net, int bearer_id)
net               643 net/tipc/monitor.c 	struct tipc_net *tn = tipc_net(net);
net               644 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               651 net/tipc/monitor.c 	self = get_self(net, bearer_id);
net               668 net/tipc/monitor.c void tipc_mon_reinit_self(struct net *net)
net               674 net/tipc/monitor.c 		mon = tipc_monitor(net, bearer_id);
net               678 net/tipc/monitor.c 		mon->self->addr = tipc_own_addr(net);
net               683 net/tipc/monitor.c int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size)
net               685 net/tipc/monitor.c 	struct tipc_net *tn = tipc_net(net);
net               695 net/tipc/monitor.c int tipc_nl_monitor_get_threshold(struct net *net)
net               697 net/tipc/monitor.c 	struct tipc_net *tn = tipc_net(net);
net               756 net/tipc/monitor.c int tipc_nl_add_monitor_peer(struct net *net, struct tipc_nl_msg *msg,
net               759 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               785 net/tipc/monitor.c int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg,
net               788 net/tipc/monitor.c 	struct tipc_monitor *mon = tipc_monitor(net, bearer_id);
net               794 net/tipc/monitor.c 	ret = tipc_bearer_get_name(net, bearer_name, bearer_id);
net               810 net/tipc/monitor.c 	if (tipc_mon_is_active(net, mon))
net                60 net/tipc/monitor.h int tipc_mon_create(struct net *net, int bearer_id);
net                61 net/tipc/monitor.h void tipc_mon_delete(struct net *net, int bearer_id);
net                63 net/tipc/monitor.h void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id);
net                64 net/tipc/monitor.h void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id);
net                65 net/tipc/monitor.h void tipc_mon_prep(struct net *net, void *data, int *dlen,
net                67 net/tipc/monitor.h void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr,
net                69 net/tipc/monitor.h void tipc_mon_get_state(struct net *net, u32 addr,
net                72 net/tipc/monitor.h void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id);
net                74 net/tipc/monitor.h int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
net                75 net/tipc/monitor.h int tipc_nl_monitor_get_threshold(struct net *net);
net                76 net/tipc/monitor.h int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg,
net                78 net/tipc/monitor.h int tipc_nl_add_monitor_peer(struct net *net, struct tipc_nl_msg *msg,
net                80 net/tipc/monitor.h void tipc_mon_reinit_self(struct net *net);
net               638 net/tipc/msg.c bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err)
net               642 net/tipc/msg.c 	u32 onode = tipc_own_addr(net);
net               656 net/tipc/msg.c 	dnode = tipc_scope2node(net, msg_lookup_scope(msg));
net               657 net/tipc/msg.c 	dport = tipc_nametbl_translate(net, msg_nametype(msg),
net               786 net/tipc/msg.c void tipc_skb_reject(struct net *net, int err, struct sk_buff *skb,
net               789 net/tipc/msg.c 	if (tipc_msg_reverse(tipc_own_addr(net), &skb, err))
net              1052 net/tipc/msg.h void tipc_skb_reject(struct net *net, int err, struct sk_buff *skb,
net              1068 net/tipc/msg.h bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err);
net                68 net/tipc/name_distr.c static struct sk_buff *named_prepare_buf(struct net *net, u32 type, u32 size,
net                72 net/tipc/name_distr.c 	u32 self = tipc_own_addr(net);
net                87 net/tipc/name_distr.c struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ)
net                89 net/tipc/name_distr.c 	struct name_table *nt = tipc_name_table(net);
net               100 net/tipc/name_distr.c 	skb = named_prepare_buf(net, PUBLICATION, ITEM_SIZE, 0);
net               114 net/tipc/name_distr.c struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ)
net               116 net/tipc/name_distr.c 	struct name_table *nt = tipc_name_table(net);
net               126 net/tipc/name_distr.c 	buf = named_prepare_buf(net, WITHDRAWAL, ITEM_SIZE, 0);
net               143 net/tipc/name_distr.c static void named_distribute(struct net *net, struct sk_buff_head *list,
net               149 net/tipc/name_distr.c 	u32 msg_dsz = ((tipc_node_get_mtu(net, dnode, 0) - INT_H_SIZE) /
net               156 net/tipc/name_distr.c 			skb = named_prepare_buf(net, PUBLICATION, msg_rem,
net               188 net/tipc/name_distr.c void tipc_named_node_up(struct net *net, u32 dnode)
net               190 net/tipc/name_distr.c 	struct name_table *nt = tipc_name_table(net);
net               196 net/tipc/name_distr.c 	named_distribute(net, &head, dnode, &nt->cluster_scope);
net               197 net/tipc/name_distr.c 	tipc_node_xmit(net, &head, dnode, 0);
net               207 net/tipc/name_distr.c static void tipc_publ_purge(struct net *net, struct publication *publ, u32 addr)
net               209 net/tipc/name_distr.c 	struct tipc_net *tn = tipc_net(net);
net               213 net/tipc/name_distr.c 	p = tipc_nametbl_remove_publ(net, publ->type, publ->lower, publ->upper,
net               216 net/tipc/name_distr.c 		tipc_node_unsubscribe(net, &p->binding_node, addr);
net               233 net/tipc/name_distr.c static void tipc_dist_queue_purge(struct net *net, u32 addr)
net               235 net/tipc/name_distr.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               248 net/tipc/name_distr.c void tipc_publ_notify(struct net *net, struct list_head *nsub_list, u32 addr)
net               253 net/tipc/name_distr.c 		tipc_publ_purge(net, publ, addr);
net               254 net/tipc/name_distr.c 	tipc_dist_queue_purge(net, addr);
net               264 net/tipc/name_distr.c static bool tipc_update_nametbl(struct net *net, struct distr_item *i,
net               275 net/tipc/name_distr.c 		p = tipc_nametbl_insert_publ(net, type, lower, upper,
net               279 net/tipc/name_distr.c 			tipc_node_subscribe(net, &p->binding_node, node);
net               283 net/tipc/name_distr.c 		p = tipc_nametbl_remove_publ(net, type, lower,
net               286 net/tipc/name_distr.c 			tipc_node_unsubscribe(net, &p->binding_node, node);
net               301 net/tipc/name_distr.c void tipc_named_rcv(struct net *net, struct sk_buff_head *inputq)
net               303 net/tipc/name_distr.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               320 net/tipc/name_distr.c 			tipc_update_nametbl(net, item, node, mtype);
net               335 net/tipc/name_distr.c void tipc_named_reinit(struct net *net)
net               337 net/tipc/name_distr.c 	struct name_table *nt = tipc_name_table(net);
net               338 net/tipc/name_distr.c 	struct tipc_net *tn = tipc_net(net);
net               340 net/tipc/name_distr.c 	u32 self = tipc_own_addr(net);
net                70 net/tipc/name_distr.h struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ);
net                71 net/tipc/name_distr.h struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ);
net                72 net/tipc/name_distr.h void tipc_named_node_up(struct net *net, u32 dnode);
net                73 net/tipc/name_distr.h void tipc_named_rcv(struct net *net, struct sk_buff_head *msg_queue);
net                74 net/tipc/name_distr.h void tipc_named_reinit(struct net *net);
net                75 net/tipc/name_distr.h void tipc_publ_notify(struct net *net, struct list_head *nsub_list, u32 addr);
net               219 net/tipc/name_table.c static struct publication *tipc_service_insert_publ(struct net *net,
net               247 net/tipc/name_table.c 	if (in_own_node(net, node))
net               322 net/tipc/name_table.c static struct tipc_service *tipc_service_find(struct net *net, u32 type)
net               324 net/tipc/name_table.c 	struct name_table *nt = tipc_name_table(net);
net               336 net/tipc/name_table.c struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type,
net               341 net/tipc/name_table.c 	struct name_table *nt = tipc_name_table(net);
net               350 net/tipc/name_table.c 	sc = tipc_service_find(net, type);
net               357 net/tipc/name_table.c 	p = tipc_service_insert_publ(net, sc, type, lower, upper,
net               363 net/tipc/name_table.c struct publication *tipc_nametbl_remove_publ(struct net *net, u32 type,
net               367 net/tipc/name_table.c 	struct tipc_service *sc = tipc_service_find(net, type);
net               423 net/tipc/name_table.c u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *dnode)
net               425 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(net);
net               427 net/tipc/name_table.c 	u32 self = tipc_own_addr(net);
net               439 net/tipc/name_table.c 	sc = tipc_service_find(net, type);
net               474 net/tipc/name_table.c bool tipc_nametbl_lookup(struct net *net, u32 type, u32 instance, u32 scope,
net               478 net/tipc/name_table.c 	u32 self = tipc_own_addr(net);
net               485 net/tipc/name_table.c 	sc = tipc_service_find(net, type);
net               514 net/tipc/name_table.c void tipc_nametbl_mc_lookup(struct net *net, u32 type, u32 lower, u32 upper,
net               523 net/tipc/name_table.c 	sc = tipc_service_find(net, type);
net               549 net/tipc/name_table.c void tipc_nametbl_lookup_dst_nodes(struct net *net, u32 type, u32 lower,
net               558 net/tipc/name_table.c 	sc = tipc_service_find(net, type);
net               581 net/tipc/name_table.c void tipc_nametbl_build_group(struct net *net, struct tipc_group *grp,
net               590 net/tipc/name_table.c 	sc = tipc_service_find(net, type);
net               610 net/tipc/name_table.c struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower,
net               614 net/tipc/name_table.c 	struct name_table *nt = tipc_name_table(net);
net               615 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(net);
net               626 net/tipc/name_table.c 	p = tipc_nametbl_insert_publ(net, type, lower, upper, scope,
net               627 net/tipc/name_table.c 				     tipc_own_addr(net), port, key);
net               630 net/tipc/name_table.c 		skb = tipc_named_publish(net, p);
net               636 net/tipc/name_table.c 		tipc_node_broadcast(net, skb);
net               643 net/tipc/name_table.c int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower,
net               646 net/tipc/name_table.c 	struct name_table *nt = tipc_name_table(net);
net               647 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(net);
net               648 net/tipc/name_table.c 	u32 self = tipc_own_addr(net);
net               654 net/tipc/name_table.c 	p = tipc_nametbl_remove_publ(net, type, lower, upper, self, key);
net               657 net/tipc/name_table.c 		skb = tipc_named_withdraw(net, p);
net               667 net/tipc/name_table.c 		tipc_node_broadcast(net, skb);
net               678 net/tipc/name_table.c 	struct name_table *nt = tipc_name_table(sub->net);
net               679 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(sub->net);
net               686 net/tipc/name_table.c 	sc = tipc_service_find(sub->net, type);
net               708 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(sub->net);
net               714 net/tipc/name_table.c 	sc = tipc_service_find(sub->net, type);
net               732 net/tipc/name_table.c int tipc_nametbl_init(struct net *net)
net               734 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(net);
net               756 net/tipc/name_table.c static void tipc_service_delete(struct net *net, struct tipc_service *sc)
net               775 net/tipc/name_table.c void tipc_nametbl_stop(struct net *net)
net               777 net/tipc/name_table.c 	struct name_table *nt = tipc_name_table(net);
net               778 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(net);
net               792 net/tipc/name_table.c 			tipc_service_delete(net, service);
net               895 net/tipc/name_table.c static int tipc_nl_service_list(struct net *net, struct tipc_nl_msg *msg,
net               898 net/tipc/name_table.c 	struct tipc_net *tn = tipc_net(net);
net               914 net/tipc/name_table.c 			service = tipc_service_find(net, *last_type);
net               944 net/tipc/name_table.c 	struct net *net = sock_net(skb->sk);
net               960 net/tipc/name_table.c 	err = tipc_nl_service_list(net, &msg, &last_type,
net               109 net/tipc/name_table.h u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *node);
net               110 net/tipc/name_table.h void tipc_nametbl_mc_lookup(struct net *net, u32 type, u32 lower, u32 upper,
net               112 net/tipc/name_table.h void tipc_nametbl_build_group(struct net *net, struct tipc_group *grp,
net               114 net/tipc/name_table.h void tipc_nametbl_lookup_dst_nodes(struct net *net, u32 type, u32 lower,
net               116 net/tipc/name_table.h bool tipc_nametbl_lookup(struct net *net, u32 type, u32 instance, u32 domain,
net               119 net/tipc/name_table.h struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower,
net               122 net/tipc/name_table.h int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower, u32 upper,
net               124 net/tipc/name_table.h struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type,
net               127 net/tipc/name_table.h struct publication *tipc_nametbl_remove_publ(struct net *net, u32 type,
net               132 net/tipc/name_table.h int tipc_nametbl_init(struct net *net);
net               133 net/tipc/name_table.h void tipc_nametbl_stop(struct net *net);
net               110 net/tipc/net.c 	struct net *net;
net               114 net/tipc/net.c static void tipc_net_finalize(struct net *net, u32 addr);
net               116 net/tipc/net.c int tipc_net_init(struct net *net, u8 *node_id, u32 addr)
net               118 net/tipc/net.c 	if (tipc_own_id(net)) {
net               125 net/tipc/net.c 		tipc_set_node_id(net, node_id);
net               127 net/tipc/net.c 		tipc_net_finalize(net, addr);
net               131 net/tipc/net.c static void tipc_net_finalize(struct net *net, u32 addr)
net               133 net/tipc/net.c 	struct tipc_net *tn = tipc_net(net);
net               137 net/tipc/net.c 	tipc_set_node_addr(net, addr);
net               138 net/tipc/net.c 	tipc_named_reinit(net);
net               139 net/tipc/net.c 	tipc_sk_reinit(net);
net               140 net/tipc/net.c 	tipc_mon_reinit_self(net);
net               141 net/tipc/net.c 	tipc_nametbl_publish(net, TIPC_CFG_SRV, addr, addr,
net               150 net/tipc/net.c 	tipc_net_finalize(fwork->net, fwork->addr);
net               154 net/tipc/net.c void tipc_sched_net_finalize(struct net *net, u32 addr)
net               161 net/tipc/net.c 	fwork->net = net;
net               166 net/tipc/net.c void tipc_net_stop(struct net *net)
net               168 net/tipc/net.c 	if (!tipc_own_id(net))
net               172 net/tipc/net.c 	tipc_bearer_stop(net);
net               173 net/tipc/net.c 	tipc_node_stop(net);
net               179 net/tipc/net.c static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg)
net               181 net/tipc/net.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               217 net/tipc/net.c 	struct net *net = sock_net(skb->sk);
net               229 net/tipc/net.c 	err = __tipc_nl_add_net(net, &msg);
net               243 net/tipc/net.c 	struct net *net = sock_net(skb->sk);
net               244 net/tipc/net.c 	struct tipc_net *tn = tipc_net(net);
net               258 net/tipc/net.c 	if (tipc_own_addr(net))
net               278 net/tipc/net.c 		tipc_net_init(net, NULL, addr);
net               290 net/tipc/net.c 		tipc_net_init(net, node_id, 0);
net                44 net/tipc/net.h int tipc_net_init(struct net *net, u8 *node_id, u32 addr);
net                45 net/tipc/net.h void tipc_sched_net_finalize(struct net *net, u32 addr);
net                46 net/tipc/net.h void tipc_net_stop(struct net *net);
net                59 net/tipc/netlink_compat.c 	struct net *net;
net               199 net/tipc/netlink_compat.c 	if (__tipc_dump_start(&cb, msg->net)) {
net               798 net/tipc/netlink_compat.c 	bearer = tipc_bearer_find(msg->net, lc->name);
net              1109 net/tipc/netlink_compat.c 	struct nlattr *net;
net              1113 net/tipc/netlink_compat.c 	net = nla_nest_start_noflag(skb, TIPC_NLA_NET);
net              1114 net/tipc/netlink_compat.c 	if (!net)
net              1124 net/tipc/netlink_compat.c 	nla_nest_end(skb, net);
net              1133 net/tipc/netlink_compat.c 	struct nlattr *net[TIPC_NLA_NET_MAX + 1];
net              1139 net/tipc/netlink_compat.c 	err = nla_parse_nested_deprecated(net, TIPC_NLA_NET_MAX,
net              1144 net/tipc/netlink_compat.c 	id = htonl(nla_get_u32(net[TIPC_NLA_NET_ID]));
net              1275 net/tipc/netlink_compat.c 	msg.net = genl_info_net(info);
net              1305 net/tipc/netlink_compat.c 	genlmsg_unicast(msg.net, msg.rep, NETLINK_CB(skb).portid);
net               107 net/tipc/node.c 	struct net *net;
net               164 net/tipc/node.c static struct tipc_node *tipc_node_find(struct net *net, u32 addr);
net               165 net/tipc/node.c static struct tipc_node *tipc_node_find_by_id(struct net *net, u8 *id);
net               187 net/tipc/node.c int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel)
net               193 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               204 net/tipc/node.c bool tipc_node_get_id(struct net *net, u32 addr, u8 *id)
net               206 net/tipc/node.c 	u8 *own_id = tipc_own_id(net);
net               212 net/tipc/node.c 	if (addr == tipc_own_addr(net)) {
net               216 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               225 net/tipc/node.c u16 tipc_node_get_capabilities(struct net *net, u32 addr)
net               230 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               259 net/tipc/node.c static struct tipc_node *tipc_node_find(struct net *net, u32 addr)
net               261 net/tipc/node.c 	struct tipc_net *tn = tipc_net(net);
net               281 net/tipc/node.c static struct tipc_node *tipc_node_find_by_id(struct net *net, u8 *id)
net               283 net/tipc/node.c 	struct tipc_net *tn = tipc_net(net);
net               323 net/tipc/node.c 	struct net *net = n->net;
net               346 net/tipc/node.c 		tipc_publ_notify(net, publ_list, addr);
net               349 net/tipc/node.c 		tipc_named_node_up(net, addr);
net               352 net/tipc/node.c 		tipc_mon_peer_up(net, addr, bearer_id);
net               353 net/tipc/node.c 		tipc_nametbl_publish(net, TIPC_LINK_STATE, addr, addr,
net               357 net/tipc/node.c 		tipc_mon_peer_down(net, addr, bearer_id);
net               358 net/tipc/node.c 		tipc_nametbl_withdraw(net, TIPC_LINK_STATE, addr,
net               363 net/tipc/node.c static struct tipc_node *tipc_node_create(struct net *net, u32 addr,
net               366 net/tipc/node.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net               373 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               401 net/tipc/node.c 	n->net = net;
net               420 net/tipc/node.c 	if (!tipc_link_bc_create(net, tipc_own_addr(net),
net               422 net/tipc/node.c 				 tipc_link_window(tipc_bc_sndlink(net)),
net               426 net/tipc/node.c 				 tipc_bc_sndlink(net),
net               482 net/tipc/node.c void tipc_node_stop(struct net *net)
net               484 net/tipc/node.c 	struct tipc_net *tn = tipc_net(net);
net               493 net/tipc/node.c void tipc_node_subscribe(struct net *net, struct list_head *subscr, u32 addr)
net               497 net/tipc/node.c 	if (in_own_node(net, addr))
net               500 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               511 net/tipc/node.c void tipc_node_unsubscribe(struct net *net, struct list_head *subscr, u32 addr)
net               515 net/tipc/node.c 	if (in_own_node(net, addr))
net               518 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               529 net/tipc/node.c int tipc_node_add_conn(struct net *net, u32 dnode, u32 port, u32 peer_port)
net               535 net/tipc/node.c 	if (in_own_node(net, dnode))
net               538 net/tipc/node.c 	node = tipc_node_find(net, dnode);
net               560 net/tipc/node.c void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port)
net               565 net/tipc/node.c 	if (in_own_node(net, dnode))
net               568 net/tipc/node.c 	node = tipc_node_find(net, dnode);
net               604 net/tipc/node.c 	struct tipc_net *tn = tipc_net(peer->net);
net               668 net/tipc/node.c 		tipc_bearer_xmit(n->net, bearer_id, &xmitq, &le->maddr);
net               702 net/tipc/node.c 	tipc_bearer_add_dest(n->net, bearer_id, n->addr);
net               703 net/tipc/node.c 	tipc_bcast_inc_bearer_dst_cnt(n->net, bearer_id);
net               719 net/tipc/node.c 		tipc_bcast_add_peer(n->net, nl, xmitq);
net               754 net/tipc/node.c 	tipc_bearer_xmit(n->net, bearer_id, xmitq, maddr);
net               822 net/tipc/node.c 	tipc_bearer_remove_dest(n->net, *bearer_id, n->addr);
net               858 net/tipc/node.c 		tipc_bcast_dec_bearer_dst_cnt(n->net, *bearer_id);
net               861 net/tipc/node.c 	tipc_bcast_dec_bearer_dst_cnt(n->net, *bearer_id);
net               907 net/tipc/node.c 		tipc_mon_remove_peer(n->net, n->addr, old_bearer_id);
net               909 net/tipc/node.c 		tipc_bearer_xmit(n->net, bearer_id, &xmitq, maddr);
net               910 net/tipc/node.c 	tipc_sk_rcv(n->net, &le->inputq);
net               918 net/tipc/node.c bool tipc_node_is_up(struct net *net, u32 addr)
net               923 net/tipc/node.c 	if (in_own_node(net, addr))
net               926 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               934 net/tipc/node.c static u32 tipc_node_suggest_addr(struct net *net, u32 addr)
net               938 net/tipc/node.c 	addr ^= tipc_net(net)->random;
net               939 net/tipc/node.c 	while ((n = tipc_node_find(net, addr))) {
net               949 net/tipc/node.c u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr)
net               951 net/tipc/node.c 	struct tipc_net *tn = tipc_net(net);
net               955 net/tipc/node.c 	n = tipc_node_find(net, addr);
net               962 net/tipc/node.c 		return tipc_node_suggest_addr(net, addr);
net               966 net/tipc/node.c 	n = tipc_node_find_by_id(net, id);
net               975 net/tipc/node.c 		return tipc_node_suggest_addr(net, addr);
net               980 net/tipc/node.c void tipc_node_check_dest(struct net *net, u32 addr,
net              1001 net/tipc/node.c 	n = tipc_node_create(net, addr, peer_id, capabilities);
net              1084 net/tipc/node.c 		if (!tipc_link_create(net, if_name, b->identity, b->tolerance,
net              1087 net/tipc/node.c 				      tipc_own_addr(net), addr, peer_id,
net              1089 net/tipc/node.c 				      tipc_bc_sndlink(n->net), n->bc_entry.link,
net              1117 net/tipc/node.c void tipc_node_delete_links(struct net *net, int bearer_id)
net              1119 net/tipc/node.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              1334 net/tipc/node.c 	tipc_bcast_remove_peer(n->net, n->bc_entry.link);
net              1349 net/tipc/node.c 				      SHORT_H_SIZE, 0, tipc_own_addr(n->net),
net              1368 net/tipc/node.c int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 addr,
net              1373 net/tipc/node.c 	struct tipc_node *node = tipc_node_find(net, addr);
net              1436 net/tipc/node.c int tipc_node_xmit(struct net *net, struct sk_buff_head *list,
net              1445 net/tipc/node.c 	if (in_own_node(net, dnode)) {
net              1446 net/tipc/node.c 		tipc_loopback_trace(net, list);
net              1448 net/tipc/node.c 		tipc_sk_rcv(net, list);
net              1452 net/tipc/node.c 	n = tipc_node_find(net, dnode);
net              1477 net/tipc/node.c 		tipc_bearer_xmit(net, bearer_id, &xmitq, &le->maddr);
net              1490 net/tipc/node.c int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dnode,
net              1497 net/tipc/node.c 	tipc_node_xmit(net, &head, dnode, selector);
net              1504 net/tipc/node.c int tipc_node_distr_xmit(struct net *net, struct sk_buff_head *xmitq)
net              1512 net/tipc/node.c 		tipc_node_xmit_skb(net, skb, dnode, selector);
net              1517 net/tipc/node.c void tipc_node_broadcast(struct net *net, struct sk_buff *skb)
net              1524 net/tipc/node.c 	list_for_each_entry_rcu(n, tipc_nodes(net), list) {
net              1526 net/tipc/node.c 		if (in_own_node(net, dst))
net              1534 net/tipc/node.c 		tipc_node_xmit_skb(net, txskb, dst, 0);
net              1551 net/tipc/node.c 	tipc_sk_mcast_rcv(n->net, &be->arrvq, &be->inputq2);
net              1560 net/tipc/node.c 	rc = tipc_bcast_sync_rcv(n->net, n->bc_entry.link, hdr);
net              1590 net/tipc/node.c static void tipc_node_bc_rcv(struct net *net, struct sk_buff *skb, int bearer_id)
net              1604 net/tipc/node.c 	if ((usr == BCAST_PROTOCOL) && (dnode != tipc_own_addr(net)))
net              1605 net/tipc/node.c 		n = tipc_node_find(net, dnode);
net              1607 net/tipc/node.c 		n = tipc_node_find(net, msg_prevnode(hdr));
net              1615 net/tipc/node.c 	rc = tipc_bcast_rcv(net, be->link, skb);
net              1625 net/tipc/node.c 		tipc_bearer_xmit(net, bearer_id, &xmitq, &le->maddr);
net              1632 net/tipc/node.c 		tipc_named_rcv(net, &n->bc_entry.namedq);
net              1800 net/tipc/node.c void tipc_rcv(struct net *net, struct sk_buff *skb, struct tipc_bearer *b)
net              1807 net/tipc/node.c 	u32 self = tipc_own_addr(net);
net              1824 net/tipc/node.c 			return tipc_disc_rcv(net, skb, b);
net              1826 net/tipc/node.c 			return tipc_node_bc_rcv(net, skb, bearer_id);
net              1834 net/tipc/node.c 	n = tipc_node_find(net, msg_prevnode(hdr));
net              1843 net/tipc/node.c 		tipc_bcast_ack_rcv(net, n->bc_entry.link, hdr);
net              1878 net/tipc/node.c 		tipc_named_rcv(net, &n->bc_entry.namedq);
net              1884 net/tipc/node.c 		tipc_sk_rcv(net, &le->inputq);
net              1887 net/tipc/node.c 		tipc_bearer_xmit(net, bearer_id, &xmitq, &le->maddr);
net              1894 net/tipc/node.c void tipc_node_apply_property(struct net *net, struct tipc_bearer *b,
net              1897 net/tipc/node.c 	struct tipc_net *tn = tipc_net(net);
net              1918 net/tipc/node.c 		tipc_bearer_xmit(net, bearer_id, &xmitq, &e->maddr);
net              1926 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              1927 net/tipc/node.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              1948 net/tipc/node.c 	if (in_own_node(net, addr))
net              1952 net/tipc/node.c 	peer = tipc_node_find(net, addr);
net              1981 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              1982 net/tipc/node.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              1997 net/tipc/node.c 		node = tipc_node_find(net, last_addr);
net              2047 net/tipc/node.c static struct tipc_node *tipc_node_find_by_name(struct net *net,
net              2051 net/tipc/node.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2088 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2107 net/tipc/node.c 		return tipc_nl_bc_link_set(net, attrs);
net              2109 net/tipc/node.c 	node = tipc_node_find_by_name(net, name, &bearer_id);
net              2153 net/tipc/node.c 	tipc_bearer_xmit(net, bearer_id, &xmitq, &node->links[bearer_id].maddr);
net              2159 net/tipc/node.c 	struct net *net = genl_info_net(info);
net              2187 net/tipc/node.c 		err = tipc_nl_add_bc_link(net, &msg);
net              2195 net/tipc/node.c 		node = tipc_node_find_by_name(net, name, &bearer_id);
net              2209 net/tipc/node.c 		err = __tipc_nl_add_link(net, &msg, link, 0);
net              2230 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2248 net/tipc/node.c 		err = tipc_bclink_reset_stats(net);
net              2254 net/tipc/node.c 	node = tipc_node_find_by_name(net, link_name, &bearer_id);
net              2274 net/tipc/node.c static int __tipc_nl_add_node_links(struct net *net, struct tipc_nl_msg *msg,
net              2286 net/tipc/node.c 		err = __tipc_nl_add_link(net, msg,
net              2298 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2299 net/tipc/node.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2316 net/tipc/node.c 		node = tipc_node_find(net, prev_node);
net              2332 net/tipc/node.c 			err = __tipc_nl_add_node_links(net, &msg, node,
net              2341 net/tipc/node.c 		err = tipc_nl_add_bc_link(net, &msg);
net              2347 net/tipc/node.c 			err = __tipc_nl_add_node_links(net, &msg, node,
net              2370 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2387 net/tipc/node.c 		err = tipc_nl_monitor_set_threshold(net, val);
net              2395 net/tipc/node.c static int __tipc_nl_add_monitor_prop(struct net *net, struct tipc_nl_msg *msg)
net              2410 net/tipc/node.c 	val = tipc_nl_monitor_get_threshold(net);
net              2430 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2440 net/tipc/node.c 	err = __tipc_nl_add_monitor_prop(net, &msg);
net              2451 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2466 net/tipc/node.c 		err = __tipc_nl_add_monitor(net, &msg, bearer_id);
net              2479 net/tipc/node.c 	struct net *net = sock_net(skb->sk);
net              2521 net/tipc/node.c 	err = tipc_nl_add_monitor_peer(net, &msg, bearer_id, &prev_node);
net                72 net/tipc/node.h void tipc_node_stop(struct net *net);
net                73 net/tipc/node.h bool tipc_node_get_id(struct net *net, u32 addr, u8 *id);
net                75 net/tipc/node.h u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr);
net                76 net/tipc/node.h void tipc_node_check_dest(struct net *net, u32 onode, u8 *peer_id128,
net                81 net/tipc/node.h void tipc_node_delete_links(struct net *net, int bearer_id);
net                82 net/tipc/node.h void tipc_node_apply_property(struct net *net, struct tipc_bearer *b, int prop);
net                83 net/tipc/node.h int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node,
net                85 net/tipc/node.h int tipc_node_xmit(struct net *net, struct sk_buff_head *list, u32 dnode,
net                87 net/tipc/node.h int tipc_node_distr_xmit(struct net *net, struct sk_buff_head *list);
net                88 net/tipc/node.h int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dest,
net                90 net/tipc/node.h void tipc_node_subscribe(struct net *net, struct list_head *subscr, u32 addr);
net                91 net/tipc/node.h void tipc_node_unsubscribe(struct net *net, struct list_head *subscr, u32 addr);
net                92 net/tipc/node.h void tipc_node_broadcast(struct net *net, struct sk_buff *skb);
net                93 net/tipc/node.h int tipc_node_add_conn(struct net *net, u32 dnode, u32 port, u32 peer_port);
net                94 net/tipc/node.h void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port);
net                95 net/tipc/node.h int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel);
net                96 net/tipc/node.h bool tipc_node_is_up(struct net *net, u32 addr);
net                97 net/tipc/node.h u16 tipc_node_get_capabilities(struct net *net, u32 addr);
net               135 net/tipc/socket.c static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid);
net               415 net/tipc/socket.c static int tipc_sk_create(struct net *net, struct socket *sock,
net               443 net/tipc/socket.c 	sk = sk_alloc(net, AF_TIPC, GFP_KERNEL, &tipc_proto, kern);
net               465 net/tipc/socket.c 	tipc_msg_init(tipc_own_addr(net), msg, TIPC_LOW_IMPORTANCE,
net               506 net/tipc/socket.c 	struct net *net = sock_net(sk);
net               529 net/tipc/socket.c 			tipc_node_remove_conn(net, dnode, tsk->portid);
net               543 net/tipc/socket.c 			tipc_node_xmit_skb(net, skb, dnode, tsk->portid);
net               544 net/tipc/socket.c 		tipc_node_remove_conn(net, dnode, tsk->portid);
net               779 net/tipc/socket.c 	struct net *net = sock_net(sk);
net               780 net/tipc/socket.c 	int mtu = tipc_bcast_get_mtu(net);
net               795 net/tipc/socket.c 	tipc_nlist_init(&dsts, tipc_own_addr(net));
net               796 net/tipc/socket.c 	tipc_nametbl_lookup_dst_nodes(net, seq->type, seq->lower,
net               819 net/tipc/socket.c 		rc = tipc_mcast_xmit(net, &pkts, method, &dsts,
net               837 net/tipc/socket.c static int tipc_send_group_msg(struct net *net, struct tipc_sock *tsk,
net               857 net/tipc/socket.c 	mtu = tipc_node_get_mtu(net, dnode, tsk->portid);
net               863 net/tipc/socket.c 	rc = tipc_node_xmit(net, &pkts, dnode, tsk->portid);
net               895 net/tipc/socket.c 	struct net *net = sock_net(sk);
net               917 net/tipc/socket.c 	rc = tipc_send_group_msg(net, tsk, m, mb, node, port, dlen);
net               943 net/tipc/socket.c 	struct net *net = sock_net(sk);
net               964 net/tipc/socket.c 			if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts,
net              1002 net/tipc/socket.c 	rc = tipc_send_group_msg(net, tsk, m, mbr, node, port, dlen);
net              1022 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              1029 net/tipc/socket.c 	int mtu = tipc_bcast_get_mtu(net);
net              1067 net/tipc/socket.c 	rc = tipc_mcast_xmit(net, &pkts, method, dsts, &tsk->cong_link_cnt);
net              1099 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              1111 net/tipc/socket.c 	if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts,
net              1131 net/tipc/socket.c void tipc_sk_mcast_rcv(struct net *net, struct sk_buff_head *arrvq,
net              1134 net/tipc/socket.c 	u32 self = tipc_own_addr(net);
net              1185 net/tipc/socket.c 		tipc_nametbl_mc_lookup(net, type, lower, upper,
net              1208 net/tipc/socket.c 	tipc_sk_rcv(net, inputq);
net              1299 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              1363 net/tipc/socket.c 		dport = tipc_nametbl_translate(net, type, inst, &dnode);
net              1395 net/tipc/socket.c 	mtu = tipc_node_get_mtu(net, dnode, tsk->portid);
net              1405 net/tipc/socket.c 	rc = tipc_node_xmit(net, &pkts, dnode, tsk->portid);
net              1448 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              1463 net/tipc/socket.c 			tsk->peer_caps = tipc_node_get_capabilities(net, dnode);
net              1484 net/tipc/socket.c 		rc = tipc_node_xmit(net, &pkts, dnode, tsk->portid);
net              1522 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              1534 net/tipc/socket.c 	tipc_node_add_conn(net, peer_node, tsk->portid, peer_port);
net              1535 net/tipc/socket.c 	tsk->max_pkt = tipc_node_get_mtu(net, peer_node, tsk->portid);
net              1536 net/tipc/socket.c 	tsk->peer_caps = tipc_node_get_capabilities(net, peer_node);
net              1661 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              1683 net/tipc/socket.c 	tipc_node_xmit_skb(net, skb, dnode, msg_link_selector(msg));
net              2026 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              2077 net/tipc/socket.c 		    tipc_node_get_capabilities(net, onode) & TIPC_SYN_BIT)
net              2091 net/tipc/socket.c 		tipc_node_remove_conn(net, pnode, tsk->portid);
net              2157 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              2174 net/tipc/socket.c 		tipc_mcast_filter_msg(net, &tsk->mc_method.deferredq, &inputq);
net              2192 net/tipc/socket.c 			if (tipc_msg_reverse(tipc_own_addr(net), &skb, err)) {
net              2294 net/tipc/socket.c void tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq)
net              2306 net/tipc/socket.c 		tsk = tipc_sk_lookup(net, dport);
net              2326 net/tipc/socket.c 		if (tipc_msg_lookup_dest(net, skb, &err))
net              2330 net/tipc/socket.c 		if (!tipc_msg_reverse(tipc_own_addr(net), &skb, err))
net              2336 net/tipc/socket.c 		tipc_node_xmit_skb(net, skb, dnode, dport);
net              2716 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              2729 net/tipc/socket.c 	publ = tipc_nametbl_publish(net, seq->type, seq->lower, seq->upper,
net              2743 net/tipc/socket.c 	struct net *net = sock_net(&tsk->sk);
net              2761 net/tipc/socket.c 			tipc_nametbl_withdraw(net, publ->type, publ->lower,
net              2766 net/tipc/socket.c 		tipc_nametbl_withdraw(net, publ->type, publ->lower,
net              2778 net/tipc/socket.c void tipc_sk_reinit(struct net *net)
net              2780 net/tipc/socket.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2795 net/tipc/socket.c 			msg_set_prevnode(msg, tipc_own_addr(net));
net              2796 net/tipc/socket.c 			msg_set_orignode(msg, tipc_own_addr(net));
net              2808 net/tipc/socket.c static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid)
net              2810 net/tipc/socket.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2825 net/tipc/socket.c 	struct net *net = sock_net(sk);
net              2826 net/tipc/socket.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2866 net/tipc/socket.c int tipc_sk_rht_init(struct net *net)
net              2868 net/tipc/socket.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2873 net/tipc/socket.c void tipc_sk_rht_destroy(struct net *net)
net              2875 net/tipc/socket.c 	struct tipc_net *tn = net_generic(net, tipc_net_id);
net              2885 net/tipc/socket.c 	struct net *net = sock_net(&tsk->sk);
net              2897 net/tipc/socket.c 	grp = tipc_group_create(net, tsk->portid, mreq, &tsk->group_is_open);
net              2907 net/tipc/socket.c 	tipc_nametbl_build_group(net, grp, mreq->type, mreq->scope);
net              2910 net/tipc/socket.c 		tipc_group_delete(net, grp);
net              2917 net/tipc/socket.c 	tipc_group_join(net, grp, &tsk->sk.sk_rcvbuf);
net              2923 net/tipc/socket.c 	struct net *net = sock_net(&tsk->sk);
net              2931 net/tipc/socket.c 	tipc_group_delete(net, grp);
net              3108 net/tipc/socket.c 	struct net *net = sock_net(sock->sk);
net              3117 net/tipc/socket.c 		if (!tipc_node_get_linkname(net,
net              3128 net/tipc/socket.c 		if (!tipc_node_get_id(net, nr.peer, nr.node_id))
net              3312 net/tipc/socket.c 	struct net *net = sock_net(skb->sk);
net              3316 net/tipc/socket.c 	    nla_put_u32(skb, TIPC_NLA_SOCK_ADDR, tipc_own_addr(net)))
net              3406 net/tipc/socket.c int __tipc_dump_start(struct netlink_callback *cb, struct net *net)
net              3410 net/tipc/socket.c 	struct tipc_net *tn = tipc_net(net);
net              3594 net/tipc/socket.c 	struct net *net = sock_net(skb->sk);
net              3623 net/tipc/socket.c 	tsk = tipc_sk_lookup(net, tsk_portid);
net                56 net/tipc/socket.h void tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq);
net                57 net/tipc/socket.h void tipc_sk_mcast_rcv(struct net *net, struct sk_buff_head *arrvq,
net                59 net/tipc/socket.h void tipc_sk_reinit(struct net *net);
net                60 net/tipc/socket.h int tipc_sk_rht_init(struct net *net);
net                61 net/tipc/socket.h void tipc_sk_rht_destroy(struct net *net);
net                72 net/tipc/socket.h int __tipc_dump_start(struct netlink_callback *cb, struct net *net);
net                54 net/tipc/subscr.c 	tipc_topsrv_queue_evt(sub->net, sub->conid, event, evt);
net               130 net/tipc/subscr.c struct tipc_subscription *tipc_sub_subscribe(struct net *net,
net               150 net/tipc/subscr.c 	sub->net = net;
net                59 net/tipc/subscr.h 	struct net *net;
net                69 net/tipc/subscr.h struct tipc_subscription *tipc_sub_subscribe(struct net *net,
net                81 net/tipc/subscr.h int __net_init tipc_topsrv_init_net(struct net *net);
net                82 net/tipc/subscr.h void __net_exit tipc_topsrv_exit_net(struct net *net);
net                71 net/tipc/topsrv.c 	struct net *net;
net               116 net/tipc/topsrv.c static void tipc_topsrv_kern_evt(struct net *net, struct tipc_event *evt);
net               231 net/tipc/topsrv.c 	struct tipc_net *tn = tipc_net(con->server->net);
net               284 net/tipc/topsrv.c 			tipc_topsrv_kern_evt(srv->net, evt);
net               312 net/tipc/topsrv.c void tipc_topsrv_queue_evt(struct net *net, int conid,
net               315 net/tipc/topsrv.c 	struct tipc_topsrv *srv = tipc_topsrv(net);
net               363 net/tipc/topsrv.c 	struct tipc_net *tn = tipc_net(srv->net);
net               375 net/tipc/topsrv.c 	sub = tipc_sub_subscribe(srv->net, s, con->conid);
net               503 net/tipc/topsrv.c 	rc = sock_create_kern(srv->net, AF_TIPC, SOCK_SEQPACKET, 0, &lsock);
net               557 net/tipc/topsrv.c bool tipc_topsrv_kern_subscr(struct net *net, u32 port, u32 type, u32 lower,
net               571 net/tipc/topsrv.c 	con = tipc_conn_alloc(tipc_topsrv(net));
net               577 net/tipc/topsrv.c 	rc = tipc_conn_rcv_sub(tipc_topsrv(net), con, &sub);
net               584 net/tipc/topsrv.c void tipc_topsrv_kern_unsubscr(struct net *net, int conid)
net               588 net/tipc/topsrv.c 	con = tipc_conn_lookup(tipc_topsrv(net), conid);
net               598 net/tipc/topsrv.c static void tipc_topsrv_kern_evt(struct net *net, struct tipc_event *evt)
net               601 net/tipc/topsrv.c 	u32 self = tipc_own_addr(net);
net               613 net/tipc/topsrv.c 	tipc_loopback_trace(net, &evtq);
net               614 net/tipc/topsrv.c 	tipc_sk_rcv(net, &evtq);
net               641 net/tipc/topsrv.c static int tipc_topsrv_start(struct net *net)
net               643 net/tipc/topsrv.c 	struct tipc_net *tn = tipc_net(net);
net               652 net/tipc/topsrv.c 	srv->net = net;
net               674 net/tipc/topsrv.c static void tipc_topsrv_stop(struct net *net)
net               676 net/tipc/topsrv.c 	struct tipc_topsrv *srv = tipc_topsrv(net);
net               700 net/tipc/topsrv.c int __net_init tipc_topsrv_init_net(struct net *net)
net               702 net/tipc/topsrv.c 	return tipc_topsrv_start(net);
net               705 net/tipc/topsrv.c void __net_exit tipc_topsrv_exit_net(struct net *net)
net               707 net/tipc/topsrv.c 	tipc_topsrv_stop(net);
net                47 net/tipc/topsrv.h void tipc_topsrv_queue_evt(struct net *net, int conid,
net                50 net/tipc/topsrv.h bool tipc_topsrv_kern_subscr(struct net *net, u32 port, u32 type, u32 lower,
net                52 net/tipc/topsrv.h void tipc_topsrv_kern_unsubscr(struct net *net, int conid);
net               160 net/tipc/udp_media.c static int tipc_udp_xmit(struct net *net, struct sk_buff *skb,
net               179 net/tipc/udp_media.c 			rt = ip_route_output_key(net, &fl);
net               200 net/tipc/udp_media.c 			ndst = ipv6_stub->ipv6_dst_lookup_flow(net,
net               224 net/tipc/udp_media.c static int tipc_udp_send_msg(struct net *net, struct sk_buff *skb,
net               248 net/tipc/udp_media.c 		return tipc_udp_xmit(net, skb, ub, src, dst,
net               261 net/tipc/udp_media.c 		err = tipc_udp_xmit(net, _skb, ub, src, &rcast->addr,
net               458 net/tipc/udp_media.c 		struct net *net = sock_net(skb->sk);
net               482 net/tipc/udp_media.c 		b = tipc_bearer_find(net, bname);
net               489 net/tipc/udp_media.c 		struct net *net = sock_net(skb->sk);
net               490 net/tipc/udp_media.c 		struct tipc_net *tn = net_generic(net, tipc_net_id);
net               655 net/tipc/udp_media.c static int tipc_udp_enable(struct net *net, struct tipc_bearer *b,
net               704 net/tipc/udp_media.c 	if (!tipc_own_id(net)) {
net               706 net/tipc/udp_media.c 		tipc_net_init(net, node_id, 0);
net               708 net/tipc/udp_media.c 	if (!tipc_own_id(net)) {
net               722 net/tipc/udp_media.c 		dev = __ip_dev_find(net, local.ipv4.s_addr, false);
net               758 net/tipc/udp_media.c 	err = udp_sock_create(net, &udp_conf, &ub->ubsock);
net               765 net/tipc/udp_media.c 	setup_udp_tunnel_sock(net, ub->ubsock, &tuncfg);
net               273 net/unix/af_unix.c static struct sock *__unix_find_socket_byname(struct net *net,
net               282 net/unix/af_unix.c 		if (!net_eq(sock_net(s), net))
net               294 net/unix/af_unix.c static inline struct sock *unix_find_socket_byname(struct net *net,
net               302 net/unix/af_unix.c 	s = __unix_find_socket_byname(net, sunname, len, type, hash);
net               764 net/unix/af_unix.c static struct sock *unix_create1(struct net *net, struct socket *sock, int kern)
net               773 net/unix/af_unix.c 	sk = sk_alloc(net, PF_UNIX, GFP_KERNEL, &unix_proto, kern);
net               781 net/unix/af_unix.c 	sk->sk_max_ack_backlog	= net->unx.sysctl_max_dgram_qlen;
net               805 net/unix/af_unix.c static int unix_create(struct net *net, struct socket *sock, int protocol,
net               834 net/unix/af_unix.c 	return unix_create1(net, sock, kern) ? 0 : -ENOMEM;
net               853 net/unix/af_unix.c 	struct net *net = sock_net(sk);
net               883 net/unix/af_unix.c 	if (__unix_find_socket_byname(net, addr->name, addr->len, sock->type,
net               911 net/unix/af_unix.c static struct sock *unix_find_other(struct net *net,
net               948 net/unix/af_unix.c 		u = unix_find_socket_byname(net, sunname, len, type, hash);
net               998 net/unix/af_unix.c 	struct net *net = sock_net(sk);
net              1061 net/unix/af_unix.c 		if (__unix_find_socket_byname(net, sunaddr, addr_len,
net              1115 net/unix/af_unix.c 	struct net *net = sock_net(sk);
net              1136 net/unix/af_unix.c 		other = unix_find_other(net, sunaddr, alen, sock->type, hash, &err);
net              1217 net/unix/af_unix.c 	struct net *net = sock_net(sk);
net              1257 net/unix/af_unix.c 	other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err);
net              1585 net/unix/af_unix.c 	struct net *net = sock_net(sk);
net              1662 net/unix/af_unix.c 		other = unix_find_other(net, sunaddr, namelen, sk->sk_type,
net              2835 net/unix/af_unix.c static int __net_init unix_net_init(struct net *net)
net              2839 net/unix/af_unix.c 	net->unx.sysctl_max_dgram_qlen = 10;
net              2840 net/unix/af_unix.c 	if (unix_sysctl_register(net))
net              2844 net/unix/af_unix.c 	if (!proc_create_net("unix", 0, net->proc_net, &unix_seq_ops,
net              2846 net/unix/af_unix.c 		unix_sysctl_unregister(net);
net              2855 net/unix/af_unix.c static void __net_exit unix_net_exit(struct net *net)
net              2857 net/unix/af_unix.c 	unix_sysctl_unregister(net);
net              2858 net/unix/af_unix.c 	remove_proc_entry("unix", net->proc_net);
net               199 net/unix/diag.c 	struct net *net = sock_net(skb->sk);
net               214 net/unix/diag.c 			if (!net_eq(sock_net(sk), net))
net               265 net/unix/diag.c 	struct net *net = sock_net(in_skb->sk);
net               274 net/unix/diag.c 	if (!net_eq(sock_net(sk), net))
net               298 net/unix/diag.c 	err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
net               312 net/unix/diag.c 	struct net *net = sock_net(skb->sk);
net               321 net/unix/diag.c 		return netlink_dump_start(net->diag_nlsk, skb, h, &c);
net                25 net/unix/sysctl_net_unix.c int __net_init unix_sysctl_register(struct net *net)
net                34 net/unix/sysctl_net_unix.c 	if (net->user_ns != &init_user_ns)
net                37 net/unix/sysctl_net_unix.c 	table[0].data = &net->unx.sysctl_max_dgram_qlen;
net                38 net/unix/sysctl_net_unix.c 	net->unx.ctl = register_net_sysctl(net, "net/unix", table);
net                39 net/unix/sysctl_net_unix.c 	if (net->unx.ctl == NULL)
net                50 net/unix/sysctl_net_unix.c void unix_sysctl_unregister(struct net *net)
net                54 net/unix/sysctl_net_unix.c 	table = net->unx.ctl->ctl_table_arg;
net                55 net/unix/sysctl_net_unix.c 	unregister_net_sysctl_table(net->unx.ctl);
net               574 net/vmw_vsock/af_vsock.c struct sock *__vsock_create(struct net *net,
net               585 net/vmw_vsock/af_vsock.c 	sk = sk_alloc(net, AF_VSOCK, priority, &vsock_proto, kern);
net              1846 net/vmw_vsock/af_vsock.c static int vsock_create(struct net *net, struct socket *sock,
net              1868 net/vmw_vsock/af_vsock.c 	return __vsock_create(net, sock, NULL, GFP_KERNEL, 0, kern) ? 0 : -ENOMEM;
net                55 net/vmw_vsock/diag.c 	struct net *net;
net                59 net/vmw_vsock/diag.c 	net = sock_net(skb->sk);
net                79 net/vmw_vsock/diag.c 				if (!net_eq(sock_net(sk), net))
net               113 net/vmw_vsock/diag.c 			if (!net_eq(sock_net(sk), net))
net               144 net/vmw_vsock/diag.c 	struct net *net = sock_net(skb->sk);
net               153 net/vmw_vsock/diag.c 		return netlink_dump_start(net->diag_nlsk, skb, h, &c);
net               156 net/wireless/core.c 			  struct net *net)
net               168 net/wireless/core.c 		err = dev_change_net_namespace(wdev->netdev, net, "wlan%d");
net               176 net/wireless/core.c 		net = wiphy_net(&rdev->wiphy);
net               184 net/wireless/core.c 			err = dev_change_net_namespace(wdev->netdev, net,
net               200 net/wireless/core.c 	wiphy_net_set(&rdev->wiphy, net);
net              1430 net/wireless/core.c static void __net_exit cfg80211_pernet_exit(struct net *net)
net              1436 net/wireless/core.c 		if (net_eq(wiphy_net(&rdev->wiphy), net))
net               211 net/wireless/core.h 			  struct net *net);
net                66 net/wireless/nl80211.c __cfg80211_wdev_from_attrs(struct net *netns, struct nlattr **attrs)
net               119 net/wireless/nl80211.c __cfg80211_rdev_from_attrs(struct net *netns, struct nlattr **attrs)
net               199 net/wireless/nl80211.c cfg80211_get_dev_from_info(struct net *netns, struct genl_info *info)
net              10230 net/wireless/nl80211.c 	struct net *net;
net              10236 net/wireless/nl80211.c 		net = get_net_ns_by_pid(pid);
net              10240 net/wireless/nl80211.c 		net = get_net_ns_by_fd(fd);
net              10245 net/wireless/nl80211.c 	if (IS_ERR(net))
net              10246 net/wireless/nl80211.c 		return PTR_ERR(net);
net              10251 net/wireless/nl80211.c 	if (!net_eq(wiphy_net(&rdev->wiphy), net))
net              10252 net/wireless/nl80211.c 		err = cfg80211_switch_netns(rdev, net);
net              10254 net/wireless/nl80211.c 	put_net(net);
net              2097 net/wireless/scan.c cfg80211_get_dev_from_ifindex(struct net *net, int ifindex)
net              2104 net/wireless/scan.c 	dev = dev_get_by_index(net, ifindex);
net               348 net/wireless/wext-core.c 	struct net *net;
net               351 net/wireless/wext-core.c 	for_each_net(net) {
net               352 net/wireless/wext-core.c 		while ((skb = skb_dequeue(&net->wext_nlevents)))
net               353 net/wireless/wext-core.c 			rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL,
net               379 net/wireless/wext-core.c static int __net_init wext_pernet_init(struct net *net)
net               381 net/wireless/wext-core.c 	skb_queue_head_init(&net->wext_nlevents);
net               385 net/wireless/wext-core.c static void __net_exit wext_pernet_exit(struct net *net)
net               387 net/wireless/wext-core.c 	skb_queue_purge(&net->wext_nlevents);
net               916 net/wireless/wext-core.c static int wireless_process_ioctl(struct net *net, struct iwreq *iwr,
net               929 net/wireless/wext-core.c 	if ((dev = __dev_get_by_name(net, iwr->ifr_name)) == NULL)
net               975 net/wireless/wext-core.c static int wext_ioctl_dispatch(struct net *net, struct iwreq *iwr,
net               985 net/wireless/wext-core.c 	dev_load(net, iwr->ifr_name);
net               987 net/wireless/wext-core.c 	ret = wireless_process_ioctl(net, iwr, cmd, info, standard, private);
net              1037 net/wireless/wext-core.c int wext_handle_ioctl(struct net *net, unsigned int cmd, void __user *arg)
net              1048 net/wireless/wext-core.c 	ret = wext_ioctl_dispatch(net, &iwr, cmd, &info,
net              1090 net/wireless/wext-core.c int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
net              1110 net/wireless/wext-core.c 	ret = wext_ioctl_dispatch(net, &iwr, cmd, &info,
net                92 net/wireless/wext-proc.c 	struct net *net = seq_file_net(seq);
net               101 net/wireless/wext-proc.c 	for_each_netdev(net, dev)
net               109 net/wireless/wext-proc.c 	struct net *net = seq_file_net(seq);
net               114 net/wireless/wext-proc.c 		first_net_device(net) : next_net_device(v);
net               129 net/wireless/wext-proc.c int __net_init wext_proc_init(struct net *net)
net               132 net/wireless/wext-proc.c 	if (!proc_create_net("wireless", 0444, net->proc_net,
net               139 net/wireless/wext-proc.c void __net_exit wext_proc_exit(struct net *net)
net               141 net/wireless/wext-proc.c 	remove_proc_entry("wireless", net->proc_net);
net               512 net/x25/af_x25.c static struct sock *x25_alloc_socket(struct net *net, int kern)
net               515 net/x25/af_x25.c 	struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto, kern);
net               531 net/x25/af_x25.c static int x25_create(struct net *net, struct socket *sock, int protocol,
net               538 net/x25/af_x25.c 	if (!net_eq(net, &init_net))
net               550 net/x25/af_x25.c 	if ((sk = x25_alloc_socket(net, kern)) == NULL)
net               543 net/xdp/xsk.c  	struct net *net;
net               548 net/xdp/xsk.c  	net = sock_net(sk);
net               550 net/xdp/xsk.c  	mutex_lock(&net->xdp.lock);
net               552 net/xdp/xsk.c  	mutex_unlock(&net->xdp.lock);
net               555 net/xdp/xsk.c  	sock_prot_inuse_add(net, sk->sk_prot, -1);
net              1011 net/xdp/xsk.c  	struct net *net = dev_net(dev);
net              1016 net/xdp/xsk.c  		mutex_lock(&net->xdp.lock);
net              1017 net/xdp/xsk.c  		sk_for_each(sk, &net->xdp.list) {
net              1033 net/xdp/xsk.c  		mutex_unlock(&net->xdp.lock);
net              1078 net/xdp/xsk.c  static int xsk_create(struct net *net, struct socket *sock, int protocol,
net              1084 net/xdp/xsk.c  	if (!ns_capable(net->user_ns, CAP_NET_RAW))
net              1094 net/xdp/xsk.c  	sk = sk_alloc(net, PF_XDP, GFP_KERNEL, &xsk_proto, kern);
net              1118 net/xdp/xsk.c  	mutex_lock(&net->xdp.lock);
net              1119 net/xdp/xsk.c  	sk_add_node_rcu(sk, &net->xdp.list);
net              1120 net/xdp/xsk.c  	mutex_unlock(&net->xdp.lock);
net              1123 net/xdp/xsk.c  	sock_prot_inuse_add(net, &xsk_proto, 1);
net              1139 net/xdp/xsk.c  static int __net_init xsk_net_init(struct net *net)
net              1141 net/xdp/xsk.c  	mutex_init(&net->xdp.lock);
net              1142 net/xdp/xsk.c  	INIT_HLIST_HEAD(&net->xdp.list);
net              1146 net/xdp/xsk.c  static void __net_exit xsk_net_exit(struct net *net)
net              1148 net/xdp/xsk.c  	WARN_ON_ONCE(!hlist_empty(&net->xdp.list));
net               134 net/xdp/xsk_diag.c 	struct net *net = sock_net(nlskb->sk);
net               138 net/xdp/xsk_diag.c 	mutex_lock(&net->xdp.lock);
net               140 net/xdp/xsk_diag.c 	sk_for_each(sk, &net->xdp.list) {
net               141 net/xdp/xsk_diag.c 		if (!net_eq(sock_net(sk), net))
net               156 net/xdp/xsk_diag.c 	mutex_unlock(&net->xdp.lock);
net               165 net/xdp/xsk_diag.c 	struct net *net = sock_net(nlskb->sk);
net               173 net/xdp/xsk_diag.c 	return netlink_dump_start(net->diag_nlsk, nlskb, hdr, &c);
net               190 net/xfrm/xfrm_device.c int xfrm_dev_state_add(struct net *net, struct xfrm_state *x,
net               207 net/xfrm/xfrm_device.c 	dev = dev_get_by_index(net, xuo->ifindex);
net               217 net/xfrm/xfrm_device.c 		dst = __xfrm_dst_lookup(net, 0, 0, saddr, daddr,
net                38 net/xfrm/xfrm_input.c 	int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb);
net               458 net/xfrm/xfrm_input.c 	struct net *net = dev_net(skb->dev);
net               479 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMACQUIREERROR);
net               481 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net,
net               516 net/xfrm/xfrm_input.c 					XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEPROTOERROR);
net               521 net/xfrm/xfrm_input.c 					XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEPROTOERROR);
net               525 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINBUFFERERROR);
net               530 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINHDRERROR);
net               554 net/xfrm/xfrm_input.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINERROR);
net               561 net/xfrm/xfrm_input.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINHDRERROR);
net               572 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINBUFFERERROR);
net               576 net/xfrm/xfrm_input.c 		x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family);
net               579 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINNOSTATES);
net               590 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINERROR);
net               599 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMACQUIREERROR);
net               601 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net,
net               607 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMISMATCH);
net               612 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR);
net               617 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEEXPIRED);
net               624 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMODEERROR);
net               652 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEPROTOERROR);
net               660 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR);
net               678 net/xfrm/xfrm_input.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMODEERROR);
net               684 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMODEERROR);
net               702 net/xfrm/xfrm_input.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINHDRERROR);
net               773 net/xfrm/xfrm_input.c 		     int (*finish)(struct net *, struct sock *,
net                59 net/xfrm/xfrm_interface.c static struct xfrm_if *xfrmi_lookup(struct net *net, struct xfrm_state *x)
net                61 net/xfrm/xfrm_interface.c 	struct xfrmi_net *xfrmn = net_generic(net, xfrmi_net_id);
net               139 net/xfrm/xfrm_interface.c 	struct net *net = dev_net(dev);
net               140 net/xfrm/xfrm_interface.c 	struct xfrmi_net *xfrmn = net_generic(net, xfrmi_net_id);
net               157 net/xfrm/xfrm_interface.c static struct xfrm_if *xfrmi_locate(struct net *net, struct xfrm_if_parms *p)
net               161 net/xfrm/xfrm_interface.c 	struct xfrmi_net *xfrmn = net_generic(net, xfrmi_net_id);
net               175 net/xfrm/xfrm_interface.c 	struct xfrmi_net *xfrmn = net_generic(xi->net, xfrmi_net_id);
net               228 net/xfrm/xfrm_interface.c 	xnet = !net_eq(xi->net, dev_net(skb->dev));
net               272 net/xfrm/xfrm_interface.c 	dst = xfrm_lookup_with_ifid(xi->net, dst, fl, NULL, 0, xi->p.if_id);
net               313 net/xfrm/xfrm_interface.c 	xfrmi_scrub_packet(skb, !net_eq(xi->net, dev_net(dev)));
net               317 net/xfrm/xfrm_interface.c 	err = dst_output(xi->net, skb->sk, skb);
net               403 net/xfrm/xfrm_interface.c 	struct net *net = dev_net(skb->dev);
net               439 net/xfrm/xfrm_interface.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net               444 net/xfrm/xfrm_interface.c 	xi = xfrmi_lookup(net, x);
net               451 net/xfrm/xfrm_interface.c 		ipv4_update_pmtu(skb, net, info, 0, protocol);
net               453 net/xfrm/xfrm_interface.c 		ipv4_redirect(skb, net, 0, protocol);
net               463 net/xfrm/xfrm_interface.c 	struct net *net = dev_net(skb->dev);
net               493 net/xfrm/xfrm_interface.c 	x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
net               498 net/xfrm/xfrm_interface.c 	xi = xfrmi_lookup(net, x);
net               505 net/xfrm/xfrm_interface.c 		ip6_redirect(skb, net, skb->dev->ifindex, 0,
net               506 net/xfrm/xfrm_interface.c 			     sock_net_uid(net, NULL));
net               508 net/xfrm/xfrm_interface.c 		ip6_update_pmtu(skb, net, info, 0, 0, sock_net_uid(net, NULL));
net               526 net/xfrm/xfrm_interface.c 	struct net *net = xi->net;
net               527 net/xfrm/xfrm_interface.c 	struct xfrmi_net *xfrmn = net_generic(net, xfrmi_net_id);
net               601 net/xfrm/xfrm_interface.c 	struct net_device *phydev = __dev_get_by_index(xi->net, xi->p.link);
net               654 net/xfrm/xfrm_interface.c static int xfrmi_newlink(struct net *src_net, struct net_device *dev,
net               658 net/xfrm/xfrm_interface.c 	struct net *net = dev_net(dev);
net               664 net/xfrm/xfrm_interface.c 	xi = xfrmi_locate(net, &p);
net               670 net/xfrm/xfrm_interface.c 	xi->net = net;
net               687 net/xfrm/xfrm_interface.c 	struct net *net = xi->net;
net               691 net/xfrm/xfrm_interface.c 	xi = xfrmi_locate(net, &p);
net               726 net/xfrm/xfrm_interface.c static struct net *xfrmi_get_link_net(const struct net_device *dev)
net               730 net/xfrm/xfrm_interface.c 	return xi->net;
net               766 net/xfrm/xfrm_interface.c static void __net_exit xfrmi_exit_net(struct net *net)
net               768 net/xfrm/xfrm_interface.c 	struct xfrmi_net *xfrmn = net_generic(net, xfrmi_net_id);
net               777 net/xfrm/xfrm_interface.c 	struct net *net;
net               781 net/xfrm/xfrm_interface.c 	list_for_each_entry(net, net_exit_list, exit_list) {
net               782 net/xfrm/xfrm_interface.c 		struct xfrmi_net *xfrmn = net_generic(net, xfrmi_net_id);
net                21 net/xfrm/xfrm_output.c static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb);
net               411 net/xfrm/xfrm_output.c 	struct net *net = xs_net(x);
net               419 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
net               427 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEMODEERROR);
net               434 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEINVALID);
net               441 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEEXPIRED);
net               447 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATESEQERROR);
net               458 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
net               476 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEPROTOERROR);
net               482 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
net               502 net/xfrm/xfrm_output.c 	struct net *net = xs_net(skb_dst(skb)->xfrm);
net               507 net/xfrm/xfrm_output.c 		err = skb_dst(skb)->ops->local_out(net, skb->sk, skb);
net               512 net/xfrm/xfrm_output.c 			return dst_output(net, skb->sk, skb);
net               515 net/xfrm/xfrm_output.c 			      NF_INET_POST_ROUTING, net, skb->sk, skb,
net               529 net/xfrm/xfrm_output.c static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net               534 net/xfrm/xfrm_output.c static int xfrm_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb)
net               552 net/xfrm/xfrm_output.c 		err = xfrm_output2(net, sk, segs);
net               567 net/xfrm/xfrm_output.c 	struct net *net = dev_net(skb_dst(skb)->dev);
net               578 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
net               590 net/xfrm/xfrm_output.c 				return xfrm_output_gso(net, sk, skb);
net               600 net/xfrm/xfrm_output.c 			return xfrm_output_gso(net, sk, skb);
net               606 net/xfrm/xfrm_output.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
net               613 net/xfrm/xfrm_output.c 	return xfrm_output2(net, sk, skb);
net               110 net/xfrm/xfrm_policy.c 	possible_net_t net;
net               170 net/xfrm/xfrm_policy.c xfrm_policy_inexact_lookup(struct net *net, u8 type, u16 family, u8 dir,
net               174 net/xfrm/xfrm_policy.c xfrm_policy_inexact_lookup_rcu(struct net *net,
net               250 net/xfrm/xfrm_policy.c struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, int oif,
net               262 net/xfrm/xfrm_policy.c 	dst = afinfo->dst_lookup(net, tos, oif, saddr, daddr, mark);
net               276 net/xfrm/xfrm_policy.c 	struct net *net = xs_net(x);
net               290 net/xfrm/xfrm_policy.c 	dst = __xfrm_dst_lookup(net, tos, oif, saddr, daddr, family, mark);
net               384 net/xfrm/xfrm_policy.c struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp)
net               391 net/xfrm/xfrm_policy.c 		write_pnet(&policy->xp_net, net);
net               452 net/xfrm/xfrm_policy.c static inline unsigned int idx_hash(struct net *net, u32 index)
net               454 net/xfrm/xfrm_policy.c 	return __idx_hash(index, net->xfrm.policy_idx_hmask);
net               458 net/xfrm/xfrm_policy.c static void __get_hash_thresh(struct net *net,
net               464 net/xfrm/xfrm_policy.c 		*dbits = net->xfrm.policy_bydst[dir].dbits4;
net               465 net/xfrm/xfrm_policy.c 		*sbits = net->xfrm.policy_bydst[dir].sbits4;
net               469 net/xfrm/xfrm_policy.c 		*dbits = net->xfrm.policy_bydst[dir].dbits6;
net               470 net/xfrm/xfrm_policy.c 		*sbits = net->xfrm.policy_bydst[dir].sbits6;
net               479 net/xfrm/xfrm_policy.c static struct hlist_head *policy_hash_bysel(struct net *net,
net               483 net/xfrm/xfrm_policy.c 	unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
net               488 net/xfrm/xfrm_policy.c 	__get_hash_thresh(net, family, dir, &dbits, &sbits);
net               494 net/xfrm/xfrm_policy.c 	return rcu_dereference_check(net->xfrm.policy_bydst[dir].table,
net               495 net/xfrm/xfrm_policy.c 		     lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash;
net               498 net/xfrm/xfrm_policy.c static struct hlist_head *policy_hash_direct(struct net *net,
net               503 net/xfrm/xfrm_policy.c 	unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
net               508 net/xfrm/xfrm_policy.c 	__get_hash_thresh(net, family, dir, &dbits, &sbits);
net               511 net/xfrm/xfrm_policy.c 	return rcu_dereference_check(net->xfrm.policy_bydst[dir].table,
net               512 net/xfrm/xfrm_policy.c 		     lockdep_is_held(&net->xfrm.xfrm_policy_lock)) + hash;
net               515 net/xfrm/xfrm_policy.c static void xfrm_dst_hash_transfer(struct net *net,
net               531 net/xfrm/xfrm_policy.c 		__get_hash_thresh(net, pol->family, dir, &dbits, &sbits);
net               572 net/xfrm/xfrm_policy.c static void xfrm_bydst_resize(struct net *net, int dir)
net               574 net/xfrm/xfrm_policy.c 	unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
net               584 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net               587 net/xfrm/xfrm_policy.c 	odst = rcu_dereference_protected(net->xfrm.policy_bydst[dir].table,
net               588 net/xfrm/xfrm_policy.c 				lockdep_is_held(&net->xfrm.xfrm_policy_lock));
net               591 net/xfrm/xfrm_policy.c 		xfrm_dst_hash_transfer(net, odst + i, ndst, nhashmask, dir);
net               593 net/xfrm/xfrm_policy.c 	rcu_assign_pointer(net->xfrm.policy_bydst[dir].table, ndst);
net               594 net/xfrm/xfrm_policy.c 	net->xfrm.policy_bydst[dir].hmask = nhashmask;
net               597 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net               604 net/xfrm/xfrm_policy.c static void xfrm_byidx_resize(struct net *net, int total)
net               606 net/xfrm/xfrm_policy.c 	unsigned int hmask = net->xfrm.policy_idx_hmask;
net               609 net/xfrm/xfrm_policy.c 	struct hlist_head *oidx = net->xfrm.policy_byidx;
net               616 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net               621 net/xfrm/xfrm_policy.c 	net->xfrm.policy_byidx = nidx;
net               622 net/xfrm/xfrm_policy.c 	net->xfrm.policy_idx_hmask = nhashmask;
net               624 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net               629 net/xfrm/xfrm_policy.c static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total)
net               631 net/xfrm/xfrm_policy.c 	unsigned int cnt = net->xfrm.policy_count[dir];
net               632 net/xfrm/xfrm_policy.c 	unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
net               644 net/xfrm/xfrm_policy.c static inline int xfrm_byidx_should_resize(struct net *net, int total)
net               646 net/xfrm/xfrm_policy.c 	unsigned int hmask = net->xfrm.policy_idx_hmask;
net               655 net/xfrm/xfrm_policy.c void xfrm_spd_getinfo(struct net *net, struct xfrmk_spdinfo *si)
net               657 net/xfrm/xfrm_policy.c 	si->incnt = net->xfrm.policy_count[XFRM_POLICY_IN];
net               658 net/xfrm/xfrm_policy.c 	si->outcnt = net->xfrm.policy_count[XFRM_POLICY_OUT];
net               659 net/xfrm/xfrm_policy.c 	si->fwdcnt = net->xfrm.policy_count[XFRM_POLICY_FWD];
net               660 net/xfrm/xfrm_policy.c 	si->inscnt = net->xfrm.policy_count[XFRM_POLICY_IN+XFRM_POLICY_MAX];
net               661 net/xfrm/xfrm_policy.c 	si->outscnt = net->xfrm.policy_count[XFRM_POLICY_OUT+XFRM_POLICY_MAX];
net               662 net/xfrm/xfrm_policy.c 	si->fwdscnt = net->xfrm.policy_count[XFRM_POLICY_FWD+XFRM_POLICY_MAX];
net               663 net/xfrm/xfrm_policy.c 	si->spdhcnt = net->xfrm.policy_idx_hmask;
net               671 net/xfrm/xfrm_policy.c 	struct net *net = container_of(work, struct net, xfrm.policy_hash_work);
net               678 net/xfrm/xfrm_policy.c 		if (xfrm_bydst_should_resize(net, dir, &total))
net               679 net/xfrm/xfrm_policy.c 			xfrm_bydst_resize(net, dir);
net               681 net/xfrm/xfrm_policy.c 	if (xfrm_byidx_should_resize(net, total))
net               682 net/xfrm/xfrm_policy.c 		xfrm_byidx_resize(net, total);
net               701 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(pol);
net               703 net/xfrm/xfrm_policy.c 	lockdep_assert_held(&net->xfrm.xfrm_policy_lock);
net               705 net/xfrm/xfrm_policy.c 	write_pnet(&k.net, net);
net               725 net/xfrm/xfrm_policy.c 		list_add(&bin->inexact_bins, &net->xfrm.inexact_bins);
net               825 net/xfrm/xfrm_policy.c static void xfrm_policy_inexact_list_reinsert(struct net *net,
net               835 net/xfrm/xfrm_policy.c 	list_for_each_entry_reverse(policy, &net->xfrm.policy_all, walk.all) {
net               888 net/xfrm/xfrm_policy.c static void xfrm_policy_inexact_node_reinsert(struct net *net,
net               927 net/xfrm/xfrm_policy.c 			xfrm_policy_inexact_list_reinsert(net, node, family);
net               946 net/xfrm/xfrm_policy.c static void xfrm_policy_inexact_node_merge(struct net *net,
net               962 net/xfrm/xfrm_policy.c 		xfrm_policy_inexact_node_reinsert(net, node, &n->root,
net               971 net/xfrm/xfrm_policy.c 	xfrm_policy_inexact_list_reinsert(net, n, family);
net               975 net/xfrm/xfrm_policy.c xfrm_policy_inexact_insert_node(struct net *net,
net              1027 net/xfrm/xfrm_policy.c 				xfrm_policy_inexact_node_merge(net, node,
net              1094 net/xfrm/xfrm_policy.c 	struct net *net = read_pnet(&b->k.net);
net              1096 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1098 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1101 net/xfrm/xfrm_policy.c static void __xfrm_policy_inexact_flush(struct net *net)
net              1105 net/xfrm/xfrm_policy.c 	lockdep_assert_held(&net->xfrm.xfrm_policy_lock);
net              1107 net/xfrm/xfrm_policy.c 	list_for_each_entry_safe(bin, t, &net->xfrm.inexact_bins, inexact_bins)
net              1116 net/xfrm/xfrm_policy.c 	struct net *net;
net              1118 net/xfrm/xfrm_policy.c 	net = xp_net(policy);
net              1119 net/xfrm/xfrm_policy.c 	lockdep_assert_held(&net->xfrm.xfrm_policy_lock);
net              1128 net/xfrm/xfrm_policy.c 		n = xfrm_policy_inexact_insert_node(net,
net              1143 net/xfrm/xfrm_policy.c 	n = xfrm_policy_inexact_insert_node(net,
net              1159 net/xfrm/xfrm_policy.c 	n = xfrm_policy_inexact_insert_node(net,
net              1177 net/xfrm/xfrm_policy.c 	struct net *net;
net              1183 net/xfrm/xfrm_policy.c 	net = xp_net(policy);
net              1184 net/xfrm/xfrm_policy.c 	lockdep_assert_held(&net->xfrm.xfrm_policy_lock);
net              1198 net/xfrm/xfrm_policy.c 	chain = &net->xfrm.policy_inexact[dir];
net              1209 net/xfrm/xfrm_policy.c 	struct net *net = container_of(work, struct net,
net              1226 net/xfrm/xfrm_policy.c 		seq = read_seqbegin(&net->xfrm.policy_hthresh.lock);
net              1228 net/xfrm/xfrm_policy.c 		lbits4 = net->xfrm.policy_hthresh.lbits4;
net              1229 net/xfrm/xfrm_policy.c 		rbits4 = net->xfrm.policy_hthresh.rbits4;
net              1230 net/xfrm/xfrm_policy.c 		lbits6 = net->xfrm.policy_hthresh.lbits6;
net              1231 net/xfrm/xfrm_policy.c 		rbits6 = net->xfrm.policy_hthresh.rbits6;
net              1232 net/xfrm/xfrm_policy.c 	} while (read_seqretry(&net->xfrm.policy_hthresh.lock, seq));
net              1234 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1240 net/xfrm/xfrm_policy.c 	list_for_each_entry(policy, &net->xfrm.policy_all, walk.all) {
net              1283 net/xfrm/xfrm_policy.c 					  &net->xfrm.policy_inexact[dir],
net              1289 net/xfrm/xfrm_policy.c 		hmask = net->xfrm.policy_bydst[dir].hmask;
net              1290 net/xfrm/xfrm_policy.c 		odst = net->xfrm.policy_bydst[dir].table;
net              1297 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].dbits4 = rbits4;
net              1298 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].sbits4 = lbits4;
net              1299 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].dbits6 = rbits6;
net              1300 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].sbits6 = lbits6;
net              1303 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].dbits4 = lbits4;
net              1304 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].sbits4 = rbits4;
net              1305 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].dbits6 = lbits6;
net              1306 net/xfrm/xfrm_policy.c 			net->xfrm.policy_bydst[dir].sbits6 = rbits6;
net              1311 net/xfrm/xfrm_policy.c 	list_for_each_entry_reverse(policy, &net->xfrm.policy_all, walk.all) {
net              1320 net/xfrm/xfrm_policy.c 		chain = policy_hash_bysel(net, &policy->selector,
net              1343 net/xfrm/xfrm_policy.c 	__xfrm_policy_inexact_flush(net);
net              1345 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1350 net/xfrm/xfrm_policy.c void xfrm_policy_hash_rebuild(struct net *net)
net              1352 net/xfrm/xfrm_policy.c 	schedule_work(&net->xfrm.policy_hthresh.work);
net              1358 net/xfrm/xfrm_policy.c static u32 xfrm_gen_index(struct net *net, int dir, u32 index)
net              1378 net/xfrm/xfrm_policy.c 		list = net->xfrm.policy_byidx + idx_hash(net, idx);
net              1448 net/xfrm/xfrm_policy.c 	return jhash_3words(a, k->if_id, net_hash_mix(read_pnet(&k->net)),
net              1466 net/xfrm/xfrm_policy.c 	if (!net_eq(read_pnet(&b->k.net), read_pnet(&key->net)))
net              1564 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(policy);
net              1568 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1569 net/xfrm/xfrm_policy.c 	chain = policy_hash_bysel(net, &policy->selector, policy->family, dir);
net              1576 net/xfrm/xfrm_policy.c 		spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1584 net/xfrm/xfrm_policy.c 		rt_genid_bump_ipv4(net);
net              1586 net/xfrm/xfrm_policy.c 		rt_genid_bump_ipv6(net);
net              1592 net/xfrm/xfrm_policy.c 	policy->index = delpol ? delpol->index : xfrm_gen_index(net, dir, policy->index);
net              1593 net/xfrm/xfrm_policy.c 	hlist_add_head(&policy->byidx, net->xfrm.policy_byidx+idx_hash(net, policy->index));
net              1598 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1602 net/xfrm/xfrm_policy.c 	else if (xfrm_bydst_should_resize(net, dir, NULL))
net              1603 net/xfrm/xfrm_policy.c 		schedule_work(&net->xfrm.policy_hash_work);
net              1632 net/xfrm/xfrm_policy.c struct xfrm_policy *xfrm_policy_bysel_ctx(struct net *net, u32 mark, u32 if_id,
net              1643 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1644 net/xfrm/xfrm_policy.c 	chain = policy_hash_bysel(net, sel, sel->family, dir);
net              1649 net/xfrm/xfrm_policy.c 		bin = xfrm_policy_inexact_lookup(net, type,
net              1652 net/xfrm/xfrm_policy.c 			spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1659 net/xfrm/xfrm_policy.c 			spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1686 net/xfrm/xfrm_policy.c 				spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1693 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1703 net/xfrm/xfrm_policy.c struct xfrm_policy *xfrm_policy_byid(struct net *net, u32 mark, u32 if_id,
net              1715 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1716 net/xfrm/xfrm_policy.c 	chain = net->xfrm.policy_byidx + idx_hash(net, id);
net              1727 net/xfrm/xfrm_policy.c 					spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1736 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1746 net/xfrm/xfrm_policy.c xfrm_policy_flush_secctx_check(struct net *net, u8 type, bool task_valid)
net              1751 net/xfrm/xfrm_policy.c 	list_for_each_entry(pol, &net->xfrm.policy_all, walk.all) {
net              1767 net/xfrm/xfrm_policy.c xfrm_policy_flush_secctx_check(struct net *net, u8 type, bool task_valid)
net              1773 net/xfrm/xfrm_policy.c int xfrm_policy_flush(struct net *net, u8 type, bool task_valid)
net              1778 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1780 net/xfrm/xfrm_policy.c 	err = xfrm_policy_flush_secctx_check(net, type, task_valid);
net              1785 net/xfrm/xfrm_policy.c 	list_for_each_entry(pol, &net->xfrm.policy_all, walk.all) {
net              1793 net/xfrm/xfrm_policy.c 		spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1797 net/xfrm/xfrm_policy.c 		spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1801 net/xfrm/xfrm_policy.c 		__xfrm_policy_inexact_flush(net);
net              1805 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1810 net/xfrm/xfrm_policy.c int xfrm_policy_walk(struct net *net, struct xfrm_policy_walk *walk,
net              1825 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              1827 net/xfrm/xfrm_policy.c 		x = list_first_entry(&net->xfrm.policy_all, struct xfrm_policy_walk_entry, all);
net              1832 net/xfrm/xfrm_policy.c 	list_for_each_entry_from(x, &net->xfrm.policy_all, all) {
net              1853 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1867 net/xfrm/xfrm_policy.c void xfrm_policy_walk_done(struct xfrm_policy_walk *walk, struct net *net)
net              1872 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock); /*FIXME where is net? */
net              1874 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              1976 net/xfrm/xfrm_policy.c xfrm_policy_inexact_lookup_rcu(struct net *net, u8 type, u16 family,
net              1986 net/xfrm/xfrm_policy.c 	write_pnet(&k.net, net);
net              1993 net/xfrm/xfrm_policy.c xfrm_policy_inexact_lookup(struct net *net, u8 type, u16 family,
net              1998 net/xfrm/xfrm_policy.c 	lockdep_assert_held(&net->xfrm.xfrm_policy_lock);
net              2001 net/xfrm/xfrm_policy.c 	bin = xfrm_policy_inexact_lookup_rcu(net, type, family, dir, if_id);
net              2071 net/xfrm/xfrm_policy.c static struct xfrm_policy *xfrm_policy_lookup_bytype(struct net *net, u8 type,
net              2093 net/xfrm/xfrm_policy.c 		chain = policy_hash_direct(net, daddr, saddr, family, dir);
net              2111 net/xfrm/xfrm_policy.c 	bin = xfrm_policy_inexact_lookup_rcu(net, type, family, dir, if_id);
net              2136 net/xfrm/xfrm_policy.c static struct xfrm_policy *xfrm_policy_lookup(struct net *net,
net              2143 net/xfrm/xfrm_policy.c 	pol = xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_SUB, fl, family,
net              2148 net/xfrm/xfrm_policy.c 	return xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_MAIN, fl, family,
net              2198 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(pol);
net              2200 net/xfrm/xfrm_policy.c 	list_add(&pol->walk.all, &net->xfrm.policy_all);
net              2201 net/xfrm/xfrm_policy.c 	net->xfrm.policy_count[dir]++;
net              2208 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(pol);
net              2221 net/xfrm/xfrm_policy.c 	net->xfrm.policy_count[dir]--;
net              2238 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(pol);
net              2240 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              2242 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              2253 net/xfrm/xfrm_policy.c 	struct net *net = sock_net(sk);
net              2261 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              2263 net/xfrm/xfrm_policy.c 				lockdep_is_held(&net->xfrm.xfrm_policy_lock));
net              2266 net/xfrm/xfrm_policy.c 		pol->index = xfrm_gen_index(net, XFRM_POLICY_MAX+dir, 0);
net              2279 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              2290 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(old);
net              2311 net/xfrm/xfrm_policy.c 		spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              2313 net/xfrm/xfrm_policy.c 		spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              2342 net/xfrm/xfrm_policy.c xfrm_get_saddr(struct net *net, int oif, xfrm_address_t *local,
net              2350 net/xfrm/xfrm_policy.c 	err = afinfo->get_saddr(net, oif, local, remote, mark);
net              2361 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(policy);
net              2379 net/xfrm/xfrm_policy.c 				error = xfrm_get_saddr(net, fl->flowi_oif,
net              2462 net/xfrm/xfrm_policy.c static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family)
net              2473 net/xfrm/xfrm_policy.c 		dst_ops = &net->xfrm.xfrm4_dst_ops;
net              2477 net/xfrm/xfrm_policy.c 		dst_ops = &net->xfrm.xfrm6_dst_ops;
net              2538 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(policy);
net              2559 net/xfrm/xfrm_policy.c 		struct xfrm_dst *xdst = xfrm_alloc_dst(net, family);
net              2716 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(pols[0]);
net              2730 net/xfrm/xfrm_policy.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTPOLERROR);
net              2736 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTBUNDLEGENERROR);
net              2755 net/xfrm/xfrm_policy.c 	struct net *net = xp_net(pol);
net              2772 net/xfrm/xfrm_policy.c 	dst = xfrm_lookup(net, xfrm_dst_path(dst), &fl, sk, XFRM_LOOKUP_QUEUE);
net              2802 net/xfrm/xfrm_policy.c 		dst = xfrm_lookup(net, xfrm_dst_path(skb_dst(skb)), &fl, skb->sk, 0);
net              2812 net/xfrm/xfrm_policy.c 		dst_output(net, skb->sk, skb);
net              2825 net/xfrm/xfrm_policy.c static int xdst_queue_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net              2867 net/xfrm/xfrm_policy.c static struct xfrm_dst *xfrm_create_dummy_bundle(struct net *net,
net              2879 net/xfrm/xfrm_policy.c 	xdst = xfrm_alloc_dst(net, family);
net              2884 net/xfrm/xfrm_policy.c 	    net->xfrm.sysctl_larval_drop ||
net              2926 net/xfrm/xfrm_policy.c static struct xfrm_dst *xfrm_bundle_lookup(struct net *net,
net              2938 net/xfrm/xfrm_policy.c 	pols[0] = xfrm_policy_lookup(net, fl, family, dir, if_id);
net              2971 net/xfrm/xfrm_policy.c 	xdst = xfrm_create_dummy_bundle(net, xflo, fl, num_xfrms, family);
net              2983 net/xfrm/xfrm_policy.c 	XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTPOLERROR);
net              2989 net/xfrm/xfrm_policy.c static struct dst_entry *make_blackhole(struct net *net, u16 family,
net              2999 net/xfrm/xfrm_policy.c 		ret = afinfo->blackhole_route(net, dst_orig);
net              3014 net/xfrm/xfrm_policy.c struct dst_entry *xfrm_lookup_with_ifid(struct net *net,
net              3076 net/xfrm/xfrm_policy.c 		    !net->xfrm.policy_count[XFRM_POLICY_OUT])
net              3079 net/xfrm/xfrm_policy.c 		xdst = xfrm_bundle_lookup(net, fl, family, dir, &xflo, if_id);
net              3101 net/xfrm/xfrm_policy.c 		if (net->xfrm.sysctl_larval_drop) {
net              3102 net/xfrm/xfrm_policy.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTNOSTATES);
net              3109 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTNOSTATES);
net              3128 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTPOLBLOCK);
net              3167 net/xfrm/xfrm_policy.c struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
net              3171 net/xfrm/xfrm_policy.c 	return xfrm_lookup_with_ifid(net, dst_orig, fl, sk, flags, 0);
net              3178 net/xfrm/xfrm_policy.c struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig,
net              3182 net/xfrm/xfrm_policy.c 	struct dst_entry *dst = xfrm_lookup(net, dst_orig, fl, sk,
net              3187 net/xfrm/xfrm_policy.c 		return make_blackhole(net, dst_orig->ops->family, dst_orig);
net              3505 net/xfrm/xfrm_policy.c 	struct net *net = dev_net(skb->dev);
net              3526 net/xfrm/xfrm_policy.c 			net = xi->net;
net              3535 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINHDRERROR);
net              3549 net/xfrm/xfrm_policy.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMISMATCH);
net              3560 net/xfrm/xfrm_policy.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINPOLERROR);
net              3566 net/xfrm/xfrm_policy.c 		pol = xfrm_policy_lookup(net, &fl, family, dir, if_id);
net              3569 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMINPOLERROR);
net              3576 net/xfrm/xfrm_policy.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINNOPOLS);
net              3588 net/xfrm/xfrm_policy.c 		pols[1] = xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_MAIN,
net              3593 net/xfrm/xfrm_policy.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINPOLERROR);
net              3617 net/xfrm/xfrm_policy.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINPOLBLOCK);
net              3621 net/xfrm/xfrm_policy.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINBUFFERERROR);
net              3645 net/xfrm/xfrm_policy.c 				XFRM_INC_STATS(net, LINUX_MIB_XFRMINTMPLMISMATCH);
net              3651 net/xfrm/xfrm_policy.c 			XFRM_INC_STATS(net, LINUX_MIB_XFRMINTMPLMISMATCH);
net              3658 net/xfrm/xfrm_policy.c 	XFRM_INC_STATS(net, LINUX_MIB_XFRMINPOLBLOCK);
net              3670 net/xfrm/xfrm_policy.c 	struct net *net = dev_net(skb->dev);
net              3676 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMFWDHDRERROR);
net              3682 net/xfrm/xfrm_policy.c 		XFRM_INC_STATS(net, LINUX_MIB_XFRMFWDHDRERROR);
net              3686 net/xfrm/xfrm_policy.c 	dst = xfrm_lookup(net, skb_dst(skb), &fl, NULL, XFRM_LOOKUP_QUEUE);
net              3975 net/xfrm/xfrm_policy.c static int __net_init xfrm_statistics_init(struct net *net)
net              3978 net/xfrm/xfrm_policy.c 	net->mib.xfrm_statistics = alloc_percpu(struct linux_xfrm_mib);
net              3979 net/xfrm/xfrm_policy.c 	if (!net->mib.xfrm_statistics)
net              3981 net/xfrm/xfrm_policy.c 	rv = xfrm_proc_init(net);
net              3983 net/xfrm/xfrm_policy.c 		free_percpu(net->mib.xfrm_statistics);
net              3987 net/xfrm/xfrm_policy.c static void xfrm_statistics_fini(struct net *net)
net              3989 net/xfrm/xfrm_policy.c 	xfrm_proc_fini(net);
net              3990 net/xfrm/xfrm_policy.c 	free_percpu(net->mib.xfrm_statistics);
net              3993 net/xfrm/xfrm_policy.c static int __net_init xfrm_statistics_init(struct net *net)
net              3998 net/xfrm/xfrm_policy.c static void xfrm_statistics_fini(struct net *net)
net              4003 net/xfrm/xfrm_policy.c static int __net_init xfrm_policy_init(struct net *net)
net              4008 net/xfrm/xfrm_policy.c 	if (net_eq(net, &init_net)) {
net              4021 net/xfrm/xfrm_policy.c 	net->xfrm.policy_byidx = xfrm_hash_alloc(sz);
net              4022 net/xfrm/xfrm_policy.c 	if (!net->xfrm.policy_byidx)
net              4024 net/xfrm/xfrm_policy.c 	net->xfrm.policy_idx_hmask = hmask;
net              4029 net/xfrm/xfrm_policy.c 		net->xfrm.policy_count[dir] = 0;
net              4030 net/xfrm/xfrm_policy.c 		net->xfrm.policy_count[XFRM_POLICY_MAX + dir] = 0;
net              4031 net/xfrm/xfrm_policy.c 		INIT_HLIST_HEAD(&net->xfrm.policy_inexact[dir]);
net              4033 net/xfrm/xfrm_policy.c 		htab = &net->xfrm.policy_bydst[dir];
net              4043 net/xfrm/xfrm_policy.c 	net->xfrm.policy_hthresh.lbits4 = 32;
net              4044 net/xfrm/xfrm_policy.c 	net->xfrm.policy_hthresh.rbits4 = 32;
net              4045 net/xfrm/xfrm_policy.c 	net->xfrm.policy_hthresh.lbits6 = 128;
net              4046 net/xfrm/xfrm_policy.c 	net->xfrm.policy_hthresh.rbits6 = 128;
net              4048 net/xfrm/xfrm_policy.c 	seqlock_init(&net->xfrm.policy_hthresh.lock);
net              4050 net/xfrm/xfrm_policy.c 	INIT_LIST_HEAD(&net->xfrm.policy_all);
net              4051 net/xfrm/xfrm_policy.c 	INIT_LIST_HEAD(&net->xfrm.inexact_bins);
net              4052 net/xfrm/xfrm_policy.c 	INIT_WORK(&net->xfrm.policy_hash_work, xfrm_hash_resize);
net              4053 net/xfrm/xfrm_policy.c 	INIT_WORK(&net->xfrm.policy_hthresh.work, xfrm_hash_rebuild);
net              4060 net/xfrm/xfrm_policy.c 		htab = &net->xfrm.policy_bydst[dir];
net              4063 net/xfrm/xfrm_policy.c 	xfrm_hash_free(net->xfrm.policy_byidx, sz);
net              4068 net/xfrm/xfrm_policy.c static void xfrm_policy_fini(struct net *net)
net              4074 net/xfrm/xfrm_policy.c 	flush_work(&net->xfrm.policy_hash_work);
net              4076 net/xfrm/xfrm_policy.c 	xfrm_policy_flush(net, XFRM_POLICY_TYPE_SUB, false);
net              4078 net/xfrm/xfrm_policy.c 	xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, false);
net              4080 net/xfrm/xfrm_policy.c 	WARN_ON(!list_empty(&net->xfrm.policy_all));
net              4085 net/xfrm/xfrm_policy.c 		WARN_ON(!hlist_empty(&net->xfrm.policy_inexact[dir]));
net              4087 net/xfrm/xfrm_policy.c 		htab = &net->xfrm.policy_bydst[dir];
net              4093 net/xfrm/xfrm_policy.c 	sz = (net->xfrm.policy_idx_hmask + 1) * sizeof(struct hlist_head);
net              4094 net/xfrm/xfrm_policy.c 	WARN_ON(!hlist_empty(net->xfrm.policy_byidx));
net              4095 net/xfrm/xfrm_policy.c 	xfrm_hash_free(net->xfrm.policy_byidx, sz);
net              4097 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              4098 net/xfrm/xfrm_policy.c 	list_for_each_entry_safe(b, t, &net->xfrm.inexact_bins, inexact_bins)
net              4100 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              4103 net/xfrm/xfrm_policy.c static int __net_init xfrm_net_init(struct net *net)
net              4108 net/xfrm/xfrm_policy.c 	spin_lock_init(&net->xfrm.xfrm_state_lock);
net              4109 net/xfrm/xfrm_policy.c 	spin_lock_init(&net->xfrm.xfrm_policy_lock);
net              4110 net/xfrm/xfrm_policy.c 	mutex_init(&net->xfrm.xfrm_cfg_mutex);
net              4112 net/xfrm/xfrm_policy.c 	rv = xfrm_statistics_init(net);
net              4115 net/xfrm/xfrm_policy.c 	rv = xfrm_state_init(net);
net              4118 net/xfrm/xfrm_policy.c 	rv = xfrm_policy_init(net);
net              4121 net/xfrm/xfrm_policy.c 	rv = xfrm_sysctl_init(net);
net              4128 net/xfrm/xfrm_policy.c 	xfrm_policy_fini(net);
net              4130 net/xfrm/xfrm_policy.c 	xfrm_state_fini(net);
net              4132 net/xfrm/xfrm_policy.c 	xfrm_statistics_fini(net);
net              4137 net/xfrm/xfrm_policy.c static void __net_exit xfrm_net_exit(struct net *net)
net              4139 net/xfrm/xfrm_policy.c 	xfrm_sysctl_fini(net);
net              4140 net/xfrm/xfrm_policy.c 	xfrm_policy_fini(net);
net              4141 net/xfrm/xfrm_policy.c 	xfrm_state_fini(net);
net              4142 net/xfrm/xfrm_policy.c 	xfrm_statistics_fini(net);
net              4249 net/xfrm/xfrm_policy.c 						    u8 dir, u8 type, struct net *net)
net              4255 net/xfrm/xfrm_policy.c 	spin_lock_bh(&net->xfrm.xfrm_policy_lock);
net              4256 net/xfrm/xfrm_policy.c 	chain = policy_hash_direct(net, &sel->daddr, &sel->saddr, sel->family, dir);
net              4265 net/xfrm/xfrm_policy.c 	chain = &net->xfrm.policy_inexact[dir];
net              4279 net/xfrm/xfrm_policy.c 	spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
net              4385 net/xfrm/xfrm_policy.c 		 struct xfrm_kmaddress *k, struct net *net,
net              4405 net/xfrm/xfrm_policy.c 	if ((pol = xfrm_migrate_policy_find(sel, dir, type, net)) == NULL) {
net              4412 net/xfrm/xfrm_policy.c 		if ((x = xfrm_migrate_state_find(mp, net))) {
net                50 net/xfrm/xfrm_proc.c 	struct net *net = seq->private;
net                56 net/xfrm/xfrm_proc.c 				 net->mib.xfrm_statistics);
net                64 net/xfrm/xfrm_proc.c int __net_init xfrm_proc_init(struct net *net)
net                66 net/xfrm/xfrm_proc.c 	if (!proc_create_net_single("xfrm_stat", 0444, net->proc_net,
net                72 net/xfrm/xfrm_proc.c void xfrm_proc_fini(struct net *net)
net                74 net/xfrm/xfrm_proc.c 	remove_proc_entry("xfrm_stat", net->proc_net);
net                87 net/xfrm/xfrm_replay.c 	struct net *net = xs_net(x);
net                99 net/xfrm/xfrm_replay.c 		if (xfrm_aevent_is_on(net))
net               166 net/xfrm/xfrm_replay.c 	struct net *net = xs_net(x);
net               178 net/xfrm/xfrm_replay.c 		if (xfrm_aevent_is_on(net))
net               398 net/xfrm/xfrm_replay.c 	struct net *net = xs_net(x);
net               416 net/xfrm/xfrm_replay.c 		if (xfrm_aevent_is_on(net))
net               556 net/xfrm/xfrm_replay.c 	struct net *net = xs_net(x);
net               584 net/xfrm/xfrm_replay.c 		if (xfrm_aevent_is_on(net))
net               596 net/xfrm/xfrm_replay.c 	struct net *net = xs_net(x);
net               623 net/xfrm/xfrm_replay.c 		if (xfrm_aevent_is_on(net))
net               635 net/xfrm/xfrm_replay.c 	struct net *net = xs_net(x);
net               672 net/xfrm/xfrm_replay.c 		if (xfrm_aevent_is_on(net))
net                34 net/xfrm/xfrm_state.c #define xfrm_state_deref_prot(table, net) \
net                35 net/xfrm/xfrm_state.c 	rcu_dereference_protected((table), lockdep_is_held(&(net)->xfrm.xfrm_state_lock))
net                58 net/xfrm/xfrm_state.c static inline unsigned int xfrm_dst_hash(struct net *net,
net                64 net/xfrm/xfrm_state.c 	return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask);
net                67 net/xfrm/xfrm_state.c static inline unsigned int xfrm_src_hash(struct net *net,
net                72 net/xfrm/xfrm_state.c 	return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask);
net                76 net/xfrm/xfrm_state.c xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr,
net                79 net/xfrm/xfrm_state.c 	return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask);
net               120 net/xfrm/xfrm_state.c 	struct net *net = container_of(work, struct net, xfrm.state_hash_work);
net               126 net/xfrm/xfrm_state.c 	nsize = xfrm_hash_new_size(net->xfrm.state_hmask);
net               142 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net               146 net/xfrm/xfrm_state.c 	odst = xfrm_state_deref_prot(net->xfrm.state_bydst, net);
net               147 net/xfrm/xfrm_state.c 	for (i = net->xfrm.state_hmask; i >= 0; i--)
net               150 net/xfrm/xfrm_state.c 	osrc = xfrm_state_deref_prot(net->xfrm.state_bysrc, net);
net               151 net/xfrm/xfrm_state.c 	ospi = xfrm_state_deref_prot(net->xfrm.state_byspi, net);
net               152 net/xfrm/xfrm_state.c 	ohashmask = net->xfrm.state_hmask;
net               154 net/xfrm/xfrm_state.c 	rcu_assign_pointer(net->xfrm.state_bydst, ndst);
net               155 net/xfrm/xfrm_state.c 	rcu_assign_pointer(net->xfrm.state_bysrc, nsrc);
net               156 net/xfrm/xfrm_state.c 	rcu_assign_pointer(net->xfrm.state_byspi, nspi);
net               157 net/xfrm/xfrm_state.c 	net->xfrm.state_hmask = nhashmask;
net               160 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net               611 net/xfrm/xfrm_state.c struct xfrm_state *xfrm_state_alloc(struct net *net)
net               618 net/xfrm/xfrm_state.c 		write_pnet(&x->xs_net, net);
net               659 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net               664 net/xfrm/xfrm_state.c 		spin_lock(&net->xfrm.xfrm_state_lock);
net               670 net/xfrm/xfrm_state.c 		net->xfrm.state_num--;
net               671 net/xfrm/xfrm_state.c 		spin_unlock(&net->xfrm.xfrm_state_lock);
net               701 net/xfrm/xfrm_state.c xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid)
net               705 net/xfrm/xfrm_state.c 	for (i = 0; i <= net->xfrm.state_hmask; i++) {
net               708 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bydst+i, bydst) {
net               721 net/xfrm/xfrm_state.c xfrm_dev_state_flush_secctx_check(struct net *net, struct net_device *dev, bool task_valid)
net               725 net/xfrm/xfrm_state.c 	for (i = 0; i <= net->xfrm.state_hmask; i++) {
net               729 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bydst+i, bydst) {
net               744 net/xfrm/xfrm_state.c xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid)
net               750 net/xfrm/xfrm_state.c xfrm_dev_state_flush_secctx_check(struct net *net, struct net_device *dev, bool task_valid)
net               756 net/xfrm/xfrm_state.c int xfrm_state_flush(struct net *net, u8 proto, bool task_valid, bool sync)
net               760 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net               761 net/xfrm/xfrm_state.c 	err = xfrm_state_flush_secctx_check(net, proto, task_valid);
net               766 net/xfrm/xfrm_state.c 	for (i = 0; i <= net->xfrm.state_hmask; i++) {
net               769 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bydst+i, bydst) {
net               773 net/xfrm/xfrm_state.c 				spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net               785 net/xfrm/xfrm_state.c 				spin_lock_bh(&net->xfrm.xfrm_state_lock);
net               791 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net               799 net/xfrm/xfrm_state.c int xfrm_dev_state_flush(struct net *net, struct net_device *dev, bool task_valid)
net               803 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net               804 net/xfrm/xfrm_state.c 	err = xfrm_dev_state_flush_secctx_check(net, dev, task_valid);
net               809 net/xfrm/xfrm_state.c 	for (i = 0; i <= net->xfrm.state_hmask; i++) {
net               813 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bydst+i, bydst) {
net               818 net/xfrm/xfrm_state.c 				spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net               827 net/xfrm/xfrm_state.c 				spin_lock_bh(&net->xfrm.xfrm_state_lock);
net               836 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net               841 net/xfrm/xfrm_state.c void xfrm_sad_getinfo(struct net *net, struct xfrmk_sadinfo *si)
net               843 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net               844 net/xfrm/xfrm_state.c 	si->sadcnt = net->xfrm.state_num;
net               845 net/xfrm/xfrm_state.c 	si->sadhcnt = net->xfrm.state_hmask + 1;
net               847 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net               927 net/xfrm/xfrm_state.c static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark,
net               932 net/xfrm/xfrm_state.c 	unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family);
net               935 net/xfrm/xfrm_state.c 	hlist_for_each_entry_rcu(x, net->xfrm.state_byspi + h, byspi) {
net               952 net/xfrm/xfrm_state.c static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark,
net               957 net/xfrm/xfrm_state.c 	unsigned int h = xfrm_src_hash(net, daddr, saddr, family);
net               960 net/xfrm/xfrm_state.c 	hlist_for_each_entry_rcu(x, net->xfrm.state_bysrc + h, bysrc) {
net               980 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net               984 net/xfrm/xfrm_state.c 		return __xfrm_state_lookup(net, mark, &x->id.daddr,
net               987 net/xfrm/xfrm_state.c 		return __xfrm_state_lookup_byaddr(net, mark,
net               993 net/xfrm/xfrm_state.c static void xfrm_hash_grow_check(struct net *net, int have_hash_collision)
net               996 net/xfrm/xfrm_state.c 	    (net->xfrm.state_hmask + 1) < xfrm_state_hashmax &&
net               997 net/xfrm/xfrm_state.c 	    net->xfrm.state_num > net->xfrm.state_hmask)
net               998 net/xfrm/xfrm_state.c 		schedule_work(&net->xfrm.state_hash_work);
net              1045 net/xfrm/xfrm_state.c 	struct net *net = xp_net(pol);
net              1061 net/xfrm/xfrm_state.c 	h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family);
net              1062 net/xfrm/xfrm_state.c 	hlist_for_each_entry_rcu(x, net->xfrm.state_bydst + h, bydst) {
net              1078 net/xfrm/xfrm_state.c 	h_wildcard = xfrm_dst_hash(net, daddr, &saddr_wildcard, tmpl->reqid, encap_family);
net              1079 net/xfrm/xfrm_state.c 	hlist_for_each_entry_rcu(x, net->xfrm.state_bydst + h_wildcard, bydst) {
net              1097 net/xfrm/xfrm_state.c 		    (x0 = __xfrm_state_lookup(net, mark, daddr, tmpl->id.spi,
net              1104 net/xfrm/xfrm_state.c 		c.net = net;
net              1114 net/xfrm/xfrm_state.c 		x = xfrm_state_alloc(net);
net              1134 net/xfrm/xfrm_state.c 			spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1136 net/xfrm/xfrm_state.c 			list_add(&x->km.all, &net->xfrm.state_all);
net              1137 net/xfrm/xfrm_state.c 			hlist_add_head_rcu(&x->bydst, net->xfrm.state_bydst + h);
net              1138 net/xfrm/xfrm_state.c 			h = xfrm_src_hash(net, daddr, saddr, encap_family);
net              1139 net/xfrm/xfrm_state.c 			hlist_add_head_rcu(&x->bysrc, net->xfrm.state_bysrc + h);
net              1141 net/xfrm/xfrm_state.c 				h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family);
net              1142 net/xfrm/xfrm_state.c 				hlist_add_head_rcu(&x->byspi, net->xfrm.state_byspi + h);
net              1144 net/xfrm/xfrm_state.c 			x->lft.hard_add_expires_seconds = net->xfrm.sysctl_acq_expires;
net              1146 net/xfrm/xfrm_state.c 				      ktime_set(net->xfrm.sysctl_acq_expires, 0),
net              1148 net/xfrm/xfrm_state.c 			net->xfrm.state_num++;
net              1149 net/xfrm/xfrm_state.c 			xfrm_hash_grow_check(net, x->bydst.next != NULL);
net              1150 net/xfrm/xfrm_state.c 			spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1183 net/xfrm/xfrm_state.c xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id,
net              1190 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1191 net/xfrm/xfrm_state.c 	h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
net              1192 net/xfrm/xfrm_state.c 	hlist_for_each_entry(x, net->xfrm.state_bydst+h, bydst) {
net              1209 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1216 net/xfrm/xfrm_state.c struct xfrm_state *xfrm_state_lookup_byspi(struct net *net, __be32 spi,
net              1222 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1223 net/xfrm/xfrm_state.c 	list_for_each_entry(w, &net->xfrm.state_all, all) {
net              1230 net/xfrm/xfrm_state.c 		spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1233 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1240 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net              1243 net/xfrm/xfrm_state.c 	list_add(&x->km.all, &net->xfrm.state_all);
net              1245 net/xfrm/xfrm_state.c 	h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr,
net              1247 net/xfrm/xfrm_state.c 	hlist_add_head_rcu(&x->bydst, net->xfrm.state_bydst + h);
net              1249 net/xfrm/xfrm_state.c 	h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family);
net              1250 net/xfrm/xfrm_state.c 	hlist_add_head_rcu(&x->bysrc, net->xfrm.state_bysrc + h);
net              1253 net/xfrm/xfrm_state.c 		h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto,
net              1256 net/xfrm/xfrm_state.c 		hlist_add_head_rcu(&x->byspi, net->xfrm.state_byspi + h);
net              1263 net/xfrm/xfrm_state.c 	net->xfrm.state_num++;
net              1265 net/xfrm/xfrm_state.c 	xfrm_hash_grow_check(net, x->bydst.next != NULL);
net              1271 net/xfrm/xfrm_state.c 	struct net *net = xs_net(xnew);
net              1279 net/xfrm/xfrm_state.c 	h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family);
net              1280 net/xfrm/xfrm_state.c 	hlist_for_each_entry(x, net->xfrm.state_bydst+h, bydst) {
net              1293 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net              1295 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1298 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1303 net/xfrm/xfrm_state.c static struct xfrm_state *__find_acq_core(struct net *net,
net              1311 net/xfrm/xfrm_state.c 	unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
net              1315 net/xfrm/xfrm_state.c 	hlist_for_each_entry(x, net->xfrm.state_bydst+h, bydst) {
net              1334 net/xfrm/xfrm_state.c 	x = xfrm_state_alloc(net);
net              1364 net/xfrm/xfrm_state.c 		x->lft.hard_add_expires_seconds = net->xfrm.sysctl_acq_expires;
net              1367 net/xfrm/xfrm_state.c 			      ktime_set(net->xfrm.sysctl_acq_expires, 0),
net              1369 net/xfrm/xfrm_state.c 		list_add(&x->km.all, &net->xfrm.state_all);
net              1370 net/xfrm/xfrm_state.c 		hlist_add_head_rcu(&x->bydst, net->xfrm.state_bydst + h);
net              1371 net/xfrm/xfrm_state.c 		h = xfrm_src_hash(net, daddr, saddr, family);
net              1372 net/xfrm/xfrm_state.c 		hlist_add_head_rcu(&x->bysrc, net->xfrm.state_bysrc + h);
net              1374 net/xfrm/xfrm_state.c 		net->xfrm.state_num++;
net              1376 net/xfrm/xfrm_state.c 		xfrm_hash_grow_check(net, x->bydst.next != NULL);
net              1382 net/xfrm/xfrm_state.c static struct xfrm_state *__xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq);
net              1386 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net              1397 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1408 net/xfrm/xfrm_state.c 		x1 = __xfrm_find_acq_byseq(net, mark, x->km.seq);
net              1417 net/xfrm/xfrm_state.c 		x1 = __find_acq_core(net, &x->mark, family, x->props.mode,
net              1426 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1444 net/xfrm/xfrm_state.c 	struct net *net = xs_net(orig);
net              1445 net/xfrm/xfrm_state.c 	struct xfrm_state *x = xfrm_state_alloc(net);
net              1535 net/xfrm/xfrm_state.c struct xfrm_state *xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net)
net              1540 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1543 net/xfrm/xfrm_state.c 		h = xfrm_dst_hash(net, &m->old_daddr, &m->old_saddr,
net              1545 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bydst+h, bydst) {
net              1560 net/xfrm/xfrm_state.c 		h = xfrm_src_hash(net, &m->old_daddr, &m->old_saddr,
net              1562 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bysrc+h, bysrc) {
net              1576 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1618 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net              1622 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1642 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1679 net/xfrm/xfrm_state.c 			spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1688 net/xfrm/xfrm_state.c 			spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1728 net/xfrm/xfrm_state.c xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi,
net              1734 net/xfrm/xfrm_state.c 	x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family);
net              1741 net/xfrm/xfrm_state.c xfrm_state_lookup_byaddr(struct net *net, u32 mark,
net              1747 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1748 net/xfrm/xfrm_state.c 	x = __xfrm_state_lookup_byaddr(net, mark, daddr, saddr, proto, family);
net              1749 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1755 net/xfrm/xfrm_state.c xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid,
net              1761 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1762 net/xfrm/xfrm_state.c 	x = __find_acq_core(net, mark, family, mode, reqid, if_id, proto, daddr, saddr, create);
net              1763 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1897 net/xfrm/xfrm_state.c static struct xfrm_state *__xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq)
net              1901 net/xfrm/xfrm_state.c 	for (i = 0; i <= net->xfrm.state_hmask; i++) {
net              1904 net/xfrm/xfrm_state.c 		hlist_for_each_entry(x, net->xfrm.state_bydst+i, bydst) {
net              1916 net/xfrm/xfrm_state.c struct xfrm_state *xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq)
net              1920 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              1921 net/xfrm/xfrm_state.c 	x = __xfrm_find_acq_byseq(net, mark, seq);
net              1922 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              1966 net/xfrm/xfrm_state.c 	struct net *net = xs_net(x);
net              1985 net/xfrm/xfrm_state.c 		x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family);
net              1995 net/xfrm/xfrm_state.c 			x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family);
net              2004 net/xfrm/xfrm_state.c 		spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              2005 net/xfrm/xfrm_state.c 		h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family);
net              2006 net/xfrm/xfrm_state.c 		hlist_add_head_rcu(&x->byspi, net->xfrm.state_byspi + h);
net              2007 net/xfrm/xfrm_state.c 		spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              2036 net/xfrm/xfrm_state.c int xfrm_state_walk(struct net *net, struct xfrm_state_walk *walk,
net              2047 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              2049 net/xfrm/xfrm_state.c 		x = list_first_entry(&net->xfrm.state_all, struct xfrm_state_walk, all);
net              2052 net/xfrm/xfrm_state.c 	list_for_each_entry_from(x, &net->xfrm.state_all, all) {
net              2073 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              2089 net/xfrm/xfrm_state.c void xfrm_state_walk_done(struct xfrm_state_walk *walk, struct net *net)
net              2096 net/xfrm/xfrm_state.c 	spin_lock_bh(&net->xfrm.xfrm_state_lock);
net              2098 net/xfrm/xfrm_state.c 	spin_unlock_bh(&net->xfrm.xfrm_state_lock);
net              2228 net/xfrm/xfrm_state.c int km_report(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr)
net              2237 net/xfrm/xfrm_state.c 			ret = km->report(net, proto, sel, addr);
net              2531 net/xfrm/xfrm_state.c int __net_init xfrm_state_init(struct net *net)
net              2535 net/xfrm/xfrm_state.c 	if (net_eq(net, &init_net))
net              2539 net/xfrm/xfrm_state.c 	INIT_LIST_HEAD(&net->xfrm.state_all);
net              2543 net/xfrm/xfrm_state.c 	net->xfrm.state_bydst = xfrm_hash_alloc(sz);
net              2544 net/xfrm/xfrm_state.c 	if (!net->xfrm.state_bydst)
net              2546 net/xfrm/xfrm_state.c 	net->xfrm.state_bysrc = xfrm_hash_alloc(sz);
net              2547 net/xfrm/xfrm_state.c 	if (!net->xfrm.state_bysrc)
net              2549 net/xfrm/xfrm_state.c 	net->xfrm.state_byspi = xfrm_hash_alloc(sz);
net              2550 net/xfrm/xfrm_state.c 	if (!net->xfrm.state_byspi)
net              2552 net/xfrm/xfrm_state.c 	net->xfrm.state_hmask = ((sz / sizeof(struct hlist_head)) - 1);
net              2554 net/xfrm/xfrm_state.c 	net->xfrm.state_num = 0;
net              2555 net/xfrm/xfrm_state.c 	INIT_WORK(&net->xfrm.state_hash_work, xfrm_hash_resize);
net              2556 net/xfrm/xfrm_state.c 	spin_lock_init(&net->xfrm.xfrm_state_lock);
net              2560 net/xfrm/xfrm_state.c 	xfrm_hash_free(net->xfrm.state_bysrc, sz);
net              2562 net/xfrm/xfrm_state.c 	xfrm_hash_free(net->xfrm.state_bydst, sz);
net              2567 net/xfrm/xfrm_state.c void xfrm_state_fini(struct net *net)
net              2571 net/xfrm/xfrm_state.c 	flush_work(&net->xfrm.state_hash_work);
net              2573 net/xfrm/xfrm_state.c 	xfrm_state_flush(net, 0, false, true);
net              2575 net/xfrm/xfrm_state.c 	WARN_ON(!list_empty(&net->xfrm.state_all));
net              2577 net/xfrm/xfrm_state.c 	sz = (net->xfrm.state_hmask + 1) * sizeof(struct hlist_head);
net              2578 net/xfrm/xfrm_state.c 	WARN_ON(!hlist_empty(net->xfrm.state_byspi));
net              2579 net/xfrm/xfrm_state.c 	xfrm_hash_free(net->xfrm.state_byspi, sz);
net              2580 net/xfrm/xfrm_state.c 	WARN_ON(!hlist_empty(net->xfrm.state_bysrc));
net              2581 net/xfrm/xfrm_state.c 	xfrm_hash_free(net->xfrm.state_bysrc, sz);
net              2582 net/xfrm/xfrm_state.c 	WARN_ON(!hlist_empty(net->xfrm.state_bydst));
net              2583 net/xfrm/xfrm_state.c 	xfrm_hash_free(net->xfrm.state_bydst, sz);
net                 7 net/xfrm/xfrm_sysctl.c static void __net_init __xfrm_sysctl_init(struct net *net)
net                 9 net/xfrm/xfrm_sysctl.c 	net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME;
net                10 net/xfrm/xfrm_sysctl.c 	net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE;
net                11 net/xfrm/xfrm_sysctl.c 	net->xfrm.sysctl_larval_drop = 1;
net                12 net/xfrm/xfrm_sysctl.c 	net->xfrm.sysctl_acq_expires = 30;
net                44 net/xfrm/xfrm_sysctl.c int __net_init xfrm_sysctl_init(struct net *net)
net                48 net/xfrm/xfrm_sysctl.c 	__xfrm_sysctl_init(net);
net                53 net/xfrm/xfrm_sysctl.c 	table[0].data = &net->xfrm.sysctl_aevent_etime;
net                54 net/xfrm/xfrm_sysctl.c 	table[1].data = &net->xfrm.sysctl_aevent_rseqth;
net                55 net/xfrm/xfrm_sysctl.c 	table[2].data = &net->xfrm.sysctl_larval_drop;
net                56 net/xfrm/xfrm_sysctl.c 	table[3].data = &net->xfrm.sysctl_acq_expires;
net                59 net/xfrm/xfrm_sysctl.c 	if (net->user_ns != &init_user_ns)
net                62 net/xfrm/xfrm_sysctl.c 	net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table);
net                63 net/xfrm/xfrm_sysctl.c 	if (!net->xfrm.sysctl_hdr)
net                73 net/xfrm/xfrm_sysctl.c void __net_exit xfrm_sysctl_fini(struct net *net)
net                77 net/xfrm/xfrm_sysctl.c 	table = net->xfrm.sysctl_hdr->ctl_table_arg;
net                78 net/xfrm/xfrm_sysctl.c 	unregister_net_sysctl_table(net->xfrm.sysctl_hdr);
net                82 net/xfrm/xfrm_sysctl.c int __net_init xfrm_sysctl_init(struct net *net)
net                84 net/xfrm/xfrm_sysctl.c 	__xfrm_sysctl_init(net);
net               570 net/xfrm/xfrm_user.c static struct xfrm_state *xfrm_state_construct(struct net *net,
net               575 net/xfrm/xfrm_user.c 	struct xfrm_state *x = xfrm_state_alloc(net);
net               643 net/xfrm/xfrm_user.c 	x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth;
net               645 net/xfrm/xfrm_user.c 	x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M;
net               655 net/xfrm/xfrm_user.c 		err = xfrm_dev_state_add(net, x,
net               674 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net               684 net/xfrm/xfrm_user.c 	x = xfrm_state_construct(net, p, attrs, &err);
net               716 net/xfrm/xfrm_user.c static struct xfrm_state *xfrm_user_state_lookup(struct net *net,
net               728 net/xfrm/xfrm_user.c 		x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family);
net               739 net/xfrm/xfrm_user.c 		x = xfrm_state_lookup_byaddr(net, mark,
net               753 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net               759 net/xfrm/xfrm_user.c 	x = xfrm_user_state_lookup(net, p, attrs, &err);
net              1002 net/xfrm/xfrm_user.c 	struct net *net = sock_net(sk);
net              1005 net/xfrm/xfrm_user.c 		xfrm_state_walk_done(walk, net);
net              1012 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1049 net/xfrm/xfrm_user.c 	(void) xfrm_state_walk(net, walk, dump_one_state, &info);
net              1082 net/xfrm/xfrm_user.c static inline int xfrm_nlmsg_multicast(struct net *net, struct sk_buff *skb,
net              1085 net/xfrm/xfrm_user.c 	struct sock *nlsk = rcu_dereference(net->xfrm.nlsk);
net              1104 net/xfrm/xfrm_user.c static int build_spdinfo(struct sk_buff *skb, struct net *net,
net              1122 net/xfrm/xfrm_user.c 	xfrm_spd_getinfo(net, &si);
net              1133 net/xfrm/xfrm_user.c 		lseq = read_seqbegin(&net->xfrm.policy_hthresh.lock);
net              1135 net/xfrm/xfrm_user.c 		spt4.lbits = net->xfrm.policy_hthresh.lbits4;
net              1136 net/xfrm/xfrm_user.c 		spt4.rbits = net->xfrm.policy_hthresh.rbits4;
net              1137 net/xfrm/xfrm_user.c 		spt6.lbits = net->xfrm.policy_hthresh.lbits6;
net              1138 net/xfrm/xfrm_user.c 		spt6.rbits = net->xfrm.policy_hthresh.rbits6;
net              1139 net/xfrm/xfrm_user.c 	} while (read_seqretry(&net->xfrm.policy_hthresh.lock, lseq));
net              1160 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1185 net/xfrm/xfrm_user.c 		write_seqlock(&net->xfrm.policy_hthresh.lock);
net              1187 net/xfrm/xfrm_user.c 			net->xfrm.policy_hthresh.lbits4 = thresh4->lbits;
net              1188 net/xfrm/xfrm_user.c 			net->xfrm.policy_hthresh.rbits4 = thresh4->rbits;
net              1191 net/xfrm/xfrm_user.c 			net->xfrm.policy_hthresh.lbits6 = thresh6->lbits;
net              1192 net/xfrm/xfrm_user.c 			net->xfrm.policy_hthresh.rbits6 = thresh6->rbits;
net              1194 net/xfrm/xfrm_user.c 		write_sequnlock(&net->xfrm.policy_hthresh.lock);
net              1196 net/xfrm/xfrm_user.c 		xfrm_policy_hash_rebuild(net);
net              1205 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1216 net/xfrm/xfrm_user.c 	err = build_spdinfo(r_skb, net, sportid, seq, *flags);
net              1219 net/xfrm/xfrm_user.c 	return nlmsg_unicast(net->xfrm.nlsk, r_skb, sportid);
net              1229 net/xfrm/xfrm_user.c static int build_sadinfo(struct sk_buff *skb, struct net *net,
net              1244 net/xfrm/xfrm_user.c 	xfrm_sad_getinfo(net, &si);
net              1264 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1275 net/xfrm/xfrm_user.c 	err = build_sadinfo(r_skb, net, sportid, seq, *flags);
net              1278 net/xfrm/xfrm_user.c 	return nlmsg_unicast(net->xfrm.nlsk, r_skb, sportid);
net              1284 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1290 net/xfrm/xfrm_user.c 	x = xfrm_user_state_lookup(net, p, attrs, &err);
net              1298 net/xfrm/xfrm_user.c 		err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, NETLINK_CB(skb).portid);
net              1308 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1335 net/xfrm/xfrm_user.c 		x = xfrm_find_acq_byseq(net, mark, p->info.seq);
net              1343 net/xfrm/xfrm_user.c 		x = xfrm_find_acq(net, &m, p->info.mode, p->info.reqid,
net              1361 net/xfrm/xfrm_user.c 	err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, NETLINK_CB(skb).portid);
net              1611 net/xfrm/xfrm_user.c static struct xfrm_policy *xfrm_policy_construct(struct net *net, struct xfrm_userpolicy_info *p, struct nlattr **attrs, int *errp)
net              1613 net/xfrm/xfrm_user.c 	struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL);
net              1648 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1662 net/xfrm/xfrm_user.c 	xp = xfrm_policy_construct(net, p, attrs, &err);
net              1797 net/xfrm/xfrm_user.c 	struct net *net = sock_net(cb->skb->sk);
net              1799 net/xfrm/xfrm_user.c 	xfrm_policy_walk_done(walk, net);
net              1815 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1824 net/xfrm/xfrm_user.c 	(void) xfrm_policy_walk(net, walk, dump_one_policy, &info);
net              1858 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1884 net/xfrm/xfrm_user.c 		xp = xfrm_policy_byid(net, mark, if_id, type, p->dir, p->index, delete, &err);
net              1901 net/xfrm/xfrm_user.c 		xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir, &p->sel,
net              1915 net/xfrm/xfrm_user.c 			err = nlmsg_unicast(net->xfrm.nlsk, resp_skb,
net              1939 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              1944 net/xfrm/xfrm_user.c 	err = xfrm_state_flush(net, p->proto, true, false);
net              1954 net/xfrm/xfrm_user.c 	c.net = net;
net              2039 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2051 net/xfrm/xfrm_user.c 	x = xfrm_state_lookup(net, mark, &id->daddr, id->spi, id->proto, id->family);
net              2074 net/xfrm/xfrm_user.c 	err = nlmsg_unicast(net->xfrm.nlsk, r_skb, NETLINK_CB(skb).portid);
net              2083 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2105 net/xfrm/xfrm_user.c 	x = xfrm_state_lookup(net, mark, &p->sa_id.daddr, p->sa_id.spi, p->sa_id.proto, p->sa_id.family);
net              2134 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2143 net/xfrm/xfrm_user.c 	err = xfrm_policy_flush(net, type, true);
net              2154 net/xfrm/xfrm_user.c 	c.net = net;
net              2162 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2184 net/xfrm/xfrm_user.c 		xp = xfrm_policy_byid(net, mark, if_id, type, p->dir, p->index, 0, &err);
net              2201 net/xfrm/xfrm_user.c 		xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir,
net              2226 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2234 net/xfrm/xfrm_user.c 	x = xfrm_state_lookup(net, mark, &p->id.daddr, p->id.spi, p->id.proto, p->family);
net              2260 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2268 net/xfrm/xfrm_user.c 	struct xfrm_state *x = xfrm_state_alloc(net);
net              2284 net/xfrm/xfrm_user.c 	xp = xfrm_policy_construct(net, &ua->policy, attrs, &err);
net              2371 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2397 net/xfrm/xfrm_user.c 	err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap);
net              2505 net/xfrm/xfrm_user.c 	struct net *net = &init_net;
net              2518 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_MIGRATE);
net              2636 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2667 net/xfrm/xfrm_user.c 			return netlink_dump_start(net->xfrm.nlsk, skb, nlh, &c);
net              2685 net/xfrm/xfrm_user.c 	struct net *net = sock_net(skb->sk);
net              2687 net/xfrm/xfrm_user.c 	mutex_lock(&net->xfrm.xfrm_cfg_mutex);
net              2689 net/xfrm/xfrm_user.c 	mutex_unlock(&net->xfrm.xfrm_cfg_mutex);
net              2728 net/xfrm/xfrm_user.c 	struct net *net = xs_net(x);
net              2740 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_EXPIRE);
net              2745 net/xfrm/xfrm_user.c 	struct net *net = xs_net(x);
net              2756 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_AEVENTS);
net              2761 net/xfrm/xfrm_user.c 	struct net *net = c->net;
net              2782 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_SA);
net              2831 net/xfrm/xfrm_user.c 	struct net *net = xs_net(x);
net              2881 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_SA);
net              2965 net/xfrm/xfrm_user.c 	struct net *net = xs_net(x);
net              2976 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_ACQUIRE);
net              2985 net/xfrm/xfrm_user.c 	struct net *net = sock_net(sk);
net              3024 net/xfrm/xfrm_user.c 	xp = xfrm_policy_alloc(net, GFP_ATOMIC);
net              3083 net/xfrm/xfrm_user.c 	struct net *net = xp_net(xp);
net              3094 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_EXPIRE);
net              3100 net/xfrm/xfrm_user.c 	struct net *net = xp_net(xp);
net              3159 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_POLICY);
net              3168 net/xfrm/xfrm_user.c 	struct net *net = c->net;
net              3187 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_POLICY);
net              3245 net/xfrm/xfrm_user.c static int xfrm_send_report(struct net *net, u8 proto,
net              3258 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_REPORT);
net              3295 net/xfrm/xfrm_user.c 	struct net *net = xs_net(x);
net              3312 net/xfrm/xfrm_user.c 	return xfrm_nlmsg_multicast(net, skb, 0, XFRMNLGRP_MAPPING);
net              3317 net/xfrm/xfrm_user.c 	return (bool)xfrm_acquire_is_on(c->net);
net              3331 net/xfrm/xfrm_user.c static int __net_init xfrm_user_net_init(struct net *net)
net              3339 net/xfrm/xfrm_user.c 	nlsk = netlink_kernel_create(net, NETLINK_XFRM, &cfg);
net              3342 net/xfrm/xfrm_user.c 	net->xfrm.nlsk_stash = nlsk; /* Don't set to NULL */
net              3343 net/xfrm/xfrm_user.c 	rcu_assign_pointer(net->xfrm.nlsk, nlsk);
net              3349 net/xfrm/xfrm_user.c 	struct net *net;
net              3350 net/xfrm/xfrm_user.c 	list_for_each_entry(net, net_exit_list, exit_list)
net              3351 net/xfrm/xfrm_user.c 		RCU_INIT_POINTER(net->xfrm.nlsk, NULL);
net              3353 net/xfrm/xfrm_user.c 	list_for_each_entry(net, net_exit_list, exit_list)
net              3354 net/xfrm/xfrm_user.c 		netlink_kernel_release(net->xfrm.nlsk_stash);
net               138 security/apparmor/include/audit.h 				} net;
net                63 security/apparmor/include/net.h 	NAME.u.net = &(NAME ## _net);					  \
net                64 security/apparmor/include/net.h 	aad(&NAME)->net.type = (T);					  \
net                65 security/apparmor/include/net.h 	aad(&NAME)->net.protocol = (P)
net              1669 security/apparmor/lsm.c static int __net_init apparmor_nf_register(struct net *net)
net              1673 security/apparmor/lsm.c 	ret = nf_register_net_hooks(net, apparmor_nf_ops,
net              1678 security/apparmor/lsm.c static void __net_exit apparmor_nf_unregister(struct net *net)
net              1680 security/apparmor/lsm.c 	nf_unregister_net_hooks(net, apparmor_nf_ops,
net                76 security/apparmor/net.c 	if (address_family_names[sa->u.net->family])
net                77 security/apparmor/net.c 		audit_log_string(ab, address_family_names[sa->u.net->family]);
net                79 security/apparmor/net.c 		audit_log_format(ab, "\"unknown(%d)\"", sa->u.net->family);
net                81 security/apparmor/net.c 	if (sock_type_names[aad(sa)->net.type])
net                82 security/apparmor/net.c 		audit_log_string(ab, sock_type_names[aad(sa)->net.type]);
net                84 security/apparmor/net.c 		audit_log_format(ab, "\"unknown(%d)\"", aad(sa)->net.type);
net                85 security/apparmor/net.c 	audit_log_format(ab, " protocol=%d", aad(sa)->net.protocol);
net                49 security/lsm_audit.c 	ad->u.net->v4info.saddr = ih->saddr;
net                50 security/lsm_audit.c 	ad->u.net->v4info.daddr = ih->daddr;
net                64 security/lsm_audit.c 		ad->u.net->sport = th->source;
net                65 security/lsm_audit.c 		ad->u.net->dport = th->dest;
net                73 security/lsm_audit.c 		ad->u.net->sport = uh->source;
net                74 security/lsm_audit.c 		ad->u.net->dport = uh->dest;
net                82 security/lsm_audit.c 		ad->u.net->sport = dh->dccph_sport;
net                83 security/lsm_audit.c 		ad->u.net->dport = dh->dccph_dport;
net                90 security/lsm_audit.c 		ad->u.net->sport = sh->source;
net                91 security/lsm_audit.c 		ad->u.net->dport = sh->dest;
net               119 security/lsm_audit.c 	ad->u.net->v6info.saddr = ip6->saddr;
net               120 security/lsm_audit.c 	ad->u.net->v6info.daddr = ip6->daddr;
net               140 security/lsm_audit.c 		ad->u.net->sport = th->source;
net               141 security/lsm_audit.c 		ad->u.net->dport = th->dest;
net               151 security/lsm_audit.c 		ad->u.net->sport = uh->source;
net               152 security/lsm_audit.c 		ad->u.net->dport = uh->dest;
net               162 security/lsm_audit.c 		ad->u.net->sport = dh->dccph_sport;
net               163 security/lsm_audit.c 		ad->u.net->dport = dh->dccph_dport;
net               172 security/lsm_audit.c 		ad->u.net->sport = sh->source;
net               173 security/lsm_audit.c 		ad->u.net->dport = sh->dest;
net               318 security/lsm_audit.c 		if (a->u.net->sk) {
net               319 security/lsm_audit.c 			struct sock *sk = a->u.net->sk;
net               370 security/lsm_audit.c 		switch (a->u.net->family) {
net               372 security/lsm_audit.c 			print_ipv4_addr(ab, a->u.net->v4info.saddr,
net               373 security/lsm_audit.c 					a->u.net->sport,
net               375 security/lsm_audit.c 			print_ipv4_addr(ab, a->u.net->v4info.daddr,
net               376 security/lsm_audit.c 					a->u.net->dport,
net               380 security/lsm_audit.c 			print_ipv6_addr(ab, &a->u.net->v6info.saddr,
net               381 security/lsm_audit.c 					a->u.net->sport,
net               383 security/lsm_audit.c 			print_ipv6_addr(ab, &a->u.net->v6info.daddr,
net               384 security/lsm_audit.c 					a->u.net->dport,
net               388 security/lsm_audit.c 		if (a->u.net->netif > 0) {
net               392 security/lsm_audit.c 			dev = dev_get_by_index(&init_net, a->u.net->netif);
net              4190 security/selinux/hooks.c 	ad->u.net->v4info.saddr = ih->saddr;
net              4191 security/selinux/hooks.c 	ad->u.net->v4info.daddr = ih->daddr;
net              4209 security/selinux/hooks.c 		ad->u.net->sport = th->source;
net              4210 security/selinux/hooks.c 		ad->u.net->dport = th->dest;
net              4225 security/selinux/hooks.c 		ad->u.net->sport = uh->source;
net              4226 security/selinux/hooks.c 		ad->u.net->dport = uh->dest;
net              4241 security/selinux/hooks.c 		ad->u.net->sport = dh->dccph_sport;
net              4242 security/selinux/hooks.c 		ad->u.net->dport = dh->dccph_dport;
net              4258 security/selinux/hooks.c 		ad->u.net->sport = sh->source;
net              4259 security/selinux/hooks.c 		ad->u.net->dport = sh->dest;
net              4286 security/selinux/hooks.c 	ad->u.net->v6info.saddr = ip6->saddr;
net              4287 security/selinux/hooks.c 	ad->u.net->v6info.daddr = ip6->daddr;
net              4307 security/selinux/hooks.c 		ad->u.net->sport = th->source;
net              4308 security/selinux/hooks.c 		ad->u.net->dport = th->dest;
net              4319 security/selinux/hooks.c 		ad->u.net->sport = uh->source;
net              4320 security/selinux/hooks.c 		ad->u.net->dport = uh->dest;
net              4331 security/selinux/hooks.c 		ad->u.net->sport = dh->dccph_sport;
net              4332 security/selinux/hooks.c 		ad->u.net->dport = dh->dccph_dport;
net              4344 security/selinux/hooks.c 		ad->u.net->sport = sh->source;
net              4345 security/selinux/hooks.c 		ad->u.net->dport = sh->dest;
net              4365 security/selinux/hooks.c 	switch (ad->u.net->family) {
net              4370 security/selinux/hooks.c 		addrp = (char *)(src ? &ad->u.net->v4info.saddr :
net              4371 security/selinux/hooks.c 				       &ad->u.net->v4info.daddr);
net              4379 security/selinux/hooks.c 		addrp = (char *)(src ? &ad->u.net->v6info.saddr :
net              4380 security/selinux/hooks.c 				       &ad->u.net->v6info.daddr);
net              4484 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              4490 security/selinux/hooks.c 	ad.u.net = &net;
net              4491 security/selinux/hooks.c 	ad.u.net->sk = sk;
net              4584 security/selinux/hooks.c 		struct lsm_network_audit net = {0,};
net              4629 security/selinux/hooks.c 		ad.u.net = &net;
net              4630 security/selinux/hooks.c 		ad.u.net->sport = htons(snum);
net              4631 security/selinux/hooks.c 		ad.u.net->family = family_sa;
net              4680 security/selinux/hooks.c 			ad.u.net->v4info.saddr = addr4->sin_addr.s_addr;
net              4682 security/selinux/hooks.c 			ad.u.net->v6info.saddr = addr6->sin6_addr;
net              4729 security/selinux/hooks.c 		struct lsm_network_audit net = {0,};
net              4780 security/selinux/hooks.c 		ad.u.net = &net;
net              4781 security/selinux/hooks.c 		ad.u.net->dport = htons(snum);
net              4782 security/selinux/hooks.c 		ad.u.net->family = address->sa_family;
net              4889 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              4893 security/selinux/hooks.c 	ad.u.net = &net;
net              4894 security/selinux/hooks.c 	ad.u.net->sk = other;
net              4922 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              4925 security/selinux/hooks.c 	ad.u.net = &net;
net              4926 security/selinux/hooks.c 	ad.u.net->sk = other->sk;
net              4933 security/selinux/hooks.c static int selinux_inet_sys_rcv_skb(struct net *ns, int ifindex,
net              4965 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              4969 security/selinux/hooks.c 	ad.u.net = &net;
net              4970 security/selinux/hooks.c 	ad.u.net->netif = skb->skb_iif;
net              4971 security/selinux/hooks.c 	ad.u.net->family = family;
net              4999 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              5024 security/selinux/hooks.c 	ad.u.net = &net;
net              5025 security/selinux/hooks.c 	ad.u.net->netif = skb->skb_iif;
net              5026 security/selinux/hooks.c 	ad.u.net->family = family;
net              5197 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              5235 security/selinux/hooks.c 		ad.u.net = &net;
net              5236 security/selinux/hooks.c 		ad.u.net->sk = ep->base.sk;
net              5590 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              5608 security/selinux/hooks.c 	ad.u.net = &net;
net              5609 security/selinux/hooks.c 	ad.u.net->netif = indev->ifindex;
net              5610 security/selinux/hooks.c 	ad.u.net->family = family;
net              5721 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              5730 security/selinux/hooks.c 	ad.u.net = &net;
net              5731 security/selinux/hooks.c 	ad.u.net->netif = ifindex;
net              5732 security/selinux/hooks.c 	ad.u.net->family = family;
net              5757 security/selinux/hooks.c 	struct lsm_network_audit net = {0,};
net              5854 security/selinux/hooks.c 	ad.u.net = &net;
net              5855 security/selinux/hooks.c 	ad.u.net->netif = ifindex;
net              5856 security/selinux/hooks.c 	ad.u.net->family = family;
net              7177 security/selinux/hooks.c static int __net_init selinux_nf_register(struct net *net)
net              7179 security/selinux/hooks.c 	return nf_register_net_hooks(net, selinux_nf_ops,
net              7183 security/selinux/hooks.c static void __net_exit selinux_nf_unregister(struct net *net)
net              7185 security/selinux/hooks.c 	nf_unregister_net_hooks(net, selinux_nf_ops,
net                21 security/selinux/include/netif.h int sel_netif_sid(struct net *ns, int ifindex, u32 *sid);
net                85 security/selinux/include/objsec.h 	struct net *ns;			/* network namespace */
net                48 security/selinux/include/xfrm.h 	struct net *net;
net                51 security/selinux/include/xfrm.h 	for_each_net(net)
net                52 security/selinux/include/xfrm.h 		rt_genid_bump_all(net);
net                53 security/selinux/netif.c static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex)
net                68 security/selinux/netif.c static inline struct sel_netif *sel_netif_find(const struct net *ns,
net               133 security/selinux/netif.c static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid)
net               192 security/selinux/netif.c int sel_netif_sid(struct net *ns, int ifindex, u32 *sid)
net               218 security/selinux/netif.c static void sel_netif_kill(const struct net *ns, int ifindex)
net               455 security/smack/smack.h 				   char type, struct lsm_network_audit *net)
net               458 security/smack/smack.h 	memset(net, 0, sizeof(*net));
net               459 security/smack/smack.h 	a->a.u.net = net;
net               485 security/smack/smack.h 	a->a.u.net->sk = sk;
net              2460 security/smack/smack_lsm.c 		struct lsm_network_audit net;
net              2462 security/smack/smack_lsm.c 		smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              2463 security/smack/smack_lsm.c 		ad.a.u.net->family = sap->sin_family;
net              2464 security/smack/smack_lsm.c 		ad.a.u.net->dport = sap->sin_port;
net              2465 security/smack/smack_lsm.c 		ad.a.u.net->v4info.daddr = sap->sin_addr.s_addr;
net              2496 security/smack/smack_lsm.c 	struct lsm_network_audit net;
net              2502 security/smack/smack_lsm.c 	smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              2503 security/smack/smack_lsm.c 	ad.a.u.net->family = PF_INET6;
net              2504 security/smack/smack_lsm.c 	ad.a.u.net->dport = ntohs(address->sin6_port);
net              2506 security/smack/smack_lsm.c 		ad.a.u.net->v6info.saddr = address->sin6_addr;
net              2508 security/smack/smack_lsm.c 		ad.a.u.net->v6info.daddr = address->sin6_addr;
net              3583 security/smack/smack_lsm.c 	struct lsm_network_audit net;
net              3590 security/smack/smack_lsm.c 		smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              3631 security/smack/smack_lsm.c 	struct lsm_network_audit net;
net              3633 security/smack/smack_lsm.c 	smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              3842 security/smack/smack_lsm.c 	struct lsm_network_audit net;
net              3882 security/smack/smack_lsm.c 		smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              3883 security/smack/smack_lsm.c 		ad.a.u.net->family = family;
net              3884 security/smack/smack_lsm.c 		ad.a.u.net->netif = skb->skb_iif;
net              3917 security/smack/smack_lsm.c 		smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              3918 security/smack/smack_lsm.c 		ad.a.u.net->family = family;
net              3919 security/smack/smack_lsm.c 		ad.a.u.net->netif = skb->skb_iif;
net              4086 security/smack/smack_lsm.c 	struct lsm_network_audit net;
net              4128 security/smack/smack_lsm.c 	smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
net              4129 security/smack/smack_lsm.c 	ad.a.u.net->family = family;
net              4130 security/smack/smack_lsm.c 	ad.a.u.net->netif = skb->skb_iif;
net                75 security/smack/smack_netfilter.c static int __net_init smack_nf_register(struct net *net)
net                77 security/smack/smack_netfilter.c 	return nf_register_net_hooks(net, smack_nf_ops,
net                81 security/smack/smack_netfilter.c static void __net_exit smack_nf_unregister(struct net *net)
net                83 security/smack/smack_netfilter.c 	nf_unregister_net_hooks(net, smack_nf_ops, ARRAY_SIZE(smack_nf_ops));