Lines Matching refs:log
106 __instance_lookup(const struct nfnl_log_net *log, u16 group_num) in __instance_lookup() argument
111 head = &log->instance_table[instance_hashfn(group_num)]; in __instance_lookup()
126 instance_lookup_get_rcu(const struct nfnl_log_net *log, u16 group_num) in instance_lookup_get_rcu() argument
130 inst = __instance_lookup(log, group_num); in instance_lookup_get_rcu()
138 instance_lookup_get(const struct nfnl_log_net *log, u16 group_num) in instance_lookup_get() argument
143 inst = instance_lookup_get_rcu(log, group_num); in instance_lookup_get()
173 struct nfnl_log_net *log = nfnl_log_pernet(net); in instance_create() local
176 spin_lock_bh(&log->instances_lock); in instance_create()
177 if (__instance_lookup(log, group_num)) { in instance_create()
213 &log->instance_table[instance_hashfn(group_num)]); in instance_create()
216 spin_unlock_bh(&log->instances_lock); in instance_create()
221 spin_unlock_bh(&log->instances_lock); in instance_create()
250 instance_destroy(struct nfnl_log_net *log, in instance_destroy() argument
253 spin_lock_bh(&log->instances_lock); in instance_destroy()
255 spin_unlock_bh(&log->instances_lock); in instance_destroy()
456 __build_packet_message(struct nfnl_log_net *log, in __build_packet_message() argument
637 htonl(atomic_inc_return(&log->global_seq)))) in __build_packet_message()
699 struct nfnl_log_net *log = nfnl_log_pernet(net); in nfulnl_log_packet() local
709 inst = instance_lookup_get_rcu(log, li->u.ulog.group); in nfulnl_log_packet()
805 __build_packet_message(log, inst, skb, data_len, pf, in nfulnl_log_packet()
834 struct nfnl_log_net *log = nfnl_log_pernet(n->net); in nfulnl_rcv_nl_event() local
840 spin_lock_bh(&log->instances_lock); in nfulnl_rcv_nl_event()
844 struct hlist_head *head = &log->instance_table[i]; in nfulnl_rcv_nl_event()
851 spin_unlock_bh(&log->instances_lock); in nfulnl_rcv_nl_event()
885 struct nfnl_log_net *log = nfnl_log_pernet(info->net); in nfulnl_recv_config() local
906 inst = instance_lookup_get(log, group_num); in nfulnl_recv_config()
956 instance_destroy(log, inst); in nfulnl_recv_config()
1031 struct nfnl_log_net *log; in get_first() local
1035 log = nfnl_log_pernet(net); in get_first()
1038 struct hlist_head *head = &log->instance_table[st->bucket]; in get_first()
1051 struct nfnl_log_net *log; in get_next() local
1057 log = nfnl_log_pernet(net); in get_next()
1058 head = &log->instance_table[st->bucket]; in get_next()
1119 struct nfnl_log_net *log = nfnl_log_pernet(net); in nfnl_log_net_init() local
1127 INIT_HLIST_HEAD(&log->instance_table[i]); in nfnl_log_net_init()
1128 spin_lock_init(&log->instances_lock); in nfnl_log_net_init()
1146 struct nfnl_log_net *log = nfnl_log_pernet(net); in nfnl_log_net_exit() local
1154 WARN_ON_ONCE(!hlist_empty(&log->instance_table[i])); in nfnl_log_net_exit()