Lines Matching refs:net

48 static void ip6_rcv_finish_core(struct net *net, struct sock *sk,  in ip6_rcv_finish_core()  argument
51 if (READ_ONCE(net->ipv4.sysctl_ip_early_demux) && in ip6_rcv_finish_core()
55 if (READ_ONCE(net->ipv4.sysctl_tcp_early_demux)) in ip6_rcv_finish_core()
59 if (READ_ONCE(net->ipv4.sysctl_udp_early_demux)) in ip6_rcv_finish_core()
69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument
77 ip6_rcv_finish_core(net, sk, skb); in ip6_rcv_finish()
99 static struct sk_buff *ip6_extract_route_hint(const struct net *net, in ip6_extract_route_hint() argument
102 if (fib6_routes_require_src(net) || fib6_has_custom_rules(net) || in ip6_extract_route_hint()
109 static void ip6_list_rcv_finish(struct net *net, struct sock *sk, in ip6_list_rcv_finish() argument
131 ip6_rcv_finish_core(net, sk, skb); in ip6_list_rcv_finish()
134 hint = ip6_extract_route_hint(net, skb); in ip6_list_rcv_finish()
150 struct net *net) in ip6_rcv_core() argument
167 __IP6_UPD_PO_STATS(net, idev, IPSTATS_MIB_IN, skb->len); in ip6_rcv_core()
172 __IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS); in ip6_rcv_core()
203 __IP6_ADD_STATS(net, idev, in ip6_rcv_core()
269 __IP6_INC_STATS(net, in ip6_rcv_core()
281 __IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS); in ip6_rcv_core()
295 __IP6_INC_STATS(net, idev, IPSTATS_MIB_INHDRERRORS); in ip6_rcv_core()
305 struct net *net = dev_net(skb->dev); in ipv6_rcv() local
307 skb = ip6_rcv_core(skb, dev, net); in ipv6_rcv()
311 net, NULL, skb, dev, NULL, in ipv6_rcv()
316 struct net *net) in ip6_sublist_rcv() argument
318 NF_HOOK_LIST(NFPROTO_IPV6, NF_INET_PRE_ROUTING, net, NULL, in ip6_sublist_rcv()
320 ip6_list_rcv_finish(net, NULL, head); in ip6_sublist_rcv()
328 struct net *curr_net = NULL; in ipv6_list_rcv()
335 struct net *net = dev_net(dev); in ipv6_list_rcv() local
338 skb = ip6_rcv_core(skb, dev, net); in ipv6_list_rcv()
342 if (curr_dev != dev || curr_net != net) { in ipv6_list_rcv()
349 curr_net = net; in ipv6_list_rcv()
363 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr, in ip6_protocol_deliver_rcu() argument
415 dev = dev_get_by_index_rcu(net, sdif); in ip6_protocol_deliver_rcu()
453 __IP6_INC_STATS(net, idev, IPSTATS_MIB_INDELIVERS); in ip6_protocol_deliver_rcu()
458 __IP6_INC_STATS(net, idev, in ip6_protocol_deliver_rcu()
468 __IP6_INC_STATS(net, idev, IPSTATS_MIB_INDELIVERS); in ip6_protocol_deliver_rcu()
475 __IP6_INC_STATS(net, idev, IPSTATS_MIB_INDISCARDS); in ip6_protocol_deliver_rcu()
479 static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_input_finish() argument
483 ip6_protocol_deliver_rcu(net, skb, 0, false); in ip6_input_finish()