Lines Matching defs:npf
2 * NPF connection tests.
12 #include "npf.h"
68 npf_t *npf = npf_getkernctx();
72 npf->conn_db = cd;
97 npf_conndb_gc(npf, cd, false, false);
105 npf_conndb_gc(npf, cd, true, false);
107 npf->conn_db = NULL;
158 run_conndb_tests(npf_t *npf)
160 npf_conndb_t *orig_cd = npf->conn_db;
163 npf_config_enter(npf);
164 npf_conn_tracking(npf, true);
165 npf_config_exit(npf);
170 npf->conn_db = orig_cd;
176 worker_test_task(npf_t *npf)
178 bool *done = atomic_load_acquire(&npf->arg);
183 run_worker_tests(npf_t *npf)
201 * Initialize a dummy NPF instance and add a test task.
219 /* Enlist the NPF instance. */
246 npf_worker_enlist(npf);
247 npf_worker_signal(npf);
248 npf_worker_discharge(npf);
255 npf_t *npf = npf_getkernctx();
260 ok = run_conndb_tests(npf);
263 ok = run_worker_tests(npf);