Lines Matching refs:net

91 static inline bool fib6_routes_require_src(const struct net *net)  in fib6_routes_require_src()  argument
96 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
97 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
101 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
103 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src()
106 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
108 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc()
111 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
113 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec()
419 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
434 struct fib6_table *fib6_get_table(struct net *net, u32 id);
435 struct fib6_table *fib6_new_table(struct net *net, u32 id);
436 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
443 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
447 int fib6_table_lookup(struct net *net, struct fib6_table *table,
451 void fib6_select_path(const struct net *net, struct fib6_result *res,
463 void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
465 void fib6_clean_all_skip_notify(struct net *net,
489 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
495 int call_fib6_entry_notifiers(struct net *net,
499 int call_fib6_multipath_entry_notifiers(struct net *net,
504 int call_fib6_entry_notifiers_replace(struct net *net, struct fib6_info *rt);
505 void fib6_rt_update(struct net *net, struct fib6_info *rt,
512 void fib6_run_gc(unsigned long expires, struct net *net, bool force);
550 static inline void fib6_may_remove_gc_list(struct net *net, in fib6_may_remove_gc_list() argument
558 gc_args.timeout = READ_ONCE(net->ipv6.sysctl.ip6_rt_gc_interval); in fib6_may_remove_gc_list()
580 int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
583 int __net_init fib6_notifier_init(struct net *net);
584 void __net_exit fib6_notifier_exit(struct net *net);
586 unsigned int fib6_tables_seq_read(const struct net *net);
587 int fib6_tables_dump(struct net *net, struct notifier_block *nb,
590 void fib6_update_sernum(struct net *net, struct fib6_info *rt);
591 void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt);
592 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
599 void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,
609 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_output(struct net *net,
614 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_input(struct net *net,
619 INDIRECT_CALLABLE_DECLARE(struct rt6_info *__ip6_route_redirect(struct net *net,
624 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_lookup(struct net *net,
630 struct net *net, in pol_lookup_func() argument
641 net, table, fl6, skb, flags); in pol_lookup_func()
645 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() argument
647 return net->ipv6.fib6_has_custom_rules; in fib6_has_custom_rules()
653 int fib6_rules_dump(struct net *net, struct notifier_block *nb,
655 unsigned int fib6_rules_seq_read(const struct net *net);
657 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() argument
664 if (!net->ipv6.fib6_rules_require_fldissect) in fib6_rules_early_flow_dissect()
668 __skb_flow_dissect(net, skb, &flow_keys_dissector, in fib6_rules_early_flow_dissect()
678 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() argument
694 static inline int fib6_rules_dump(struct net *net, struct notifier_block *nb, in fib6_rules_dump() argument
699 static inline unsigned int fib6_rules_seq_read(const struct net *net) in fib6_rules_seq_read() argument
703 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() argument