Lines Matching refs:netisr_proto

105  * - The netisr_proto array, including all fields of struct netisr_proto.
200 * required for crashdump analysis, as it sizes netisr_proto[].
208 * The netisr_proto array describes all registered protocols, indexed by
211 static struct netisr_proto netisr_proto[NETISR_MAXPROT];
222 * With this we keep the one netisr_proto per protocol but add a
412 KASSERT(netisr_proto[proto].np_name == NULL,
414 KASSERT(netisr_proto[proto].np_handler == NULL,
417 netisr_proto[proto].np_name = name;
418 netisr_proto[proto].np_handler = nhp->nh_handler;
419 netisr_proto[proto].np_m2flow = nhp->nh_m2flow;
420 netisr_proto[proto].np_m2cpuid = nhp->nh_m2cpuid;
421 netisr_proto[proto].np_drainedcpu = nhp->nh_drainedcpu;
423 netisr_proto[proto].np_qlimit = netisr_defaultqlimit;
428 netisr_proto[proto].np_qlimit = netisr_maxqlimit;
430 netisr_proto[proto].np_qlimit = nhp->nh_qlimit;
431 netisr_proto[proto].np_policy = nhp->nh_policy;
432 netisr_proto[proto].np_dispatch = nhp->nh_dispatch;
436 npwp->nw_qlimit = netisr_proto[proto].np_qlimit;
477 KASSERT(netisr_proto[proto].np_handler != NULL,
510 KASSERT(netisr_proto[proto].np_handler != NULL,
541 KASSERT(netisr_proto[proto].np_handler != NULL,
544 *qlimitp = netisr_proto[proto].np_qlimit;
573 KASSERT(netisr_proto[proto].np_handler != NULL,
577 netisr_proto[proto].np_qlimit = qlimit;
633 KASSERT(netisr_proto[proto].np_handler != NULL,
647 netisr_proto[proto].np_name = NULL;
648 netisr_proto[proto].np_handler = NULL;
649 netisr_proto[proto].np_m2flow = NULL;
650 netisr_proto[proto].np_m2cpuid = NULL;
651 netisr_proto[proto].np_qlimit = 0;
652 netisr_proto[proto].np_policy = 0;
673 KASSERT(netisr_proto[proto].np_handler != NULL,
741 KASSERT(netisr_proto[proto].np_handler != NULL,
757 netisr_get_dispatch(struct netisr_proto *npp)
774 netisr_select_cpuid(struct netisr_proto *npp, u_int dispatch_policy,
899 netisr_proto[proto].np_handler(m);
904 if (netisr_proto[proto].np_drainedcpu)
905 netisr_proto[proto].np_drainedcpu(nwsp->nws_cpu);
1041 KASSERT(netisr_proto[proto].np_handler != NULL,
1051 m = netisr_select_cpuid(&netisr_proto[proto], NETISR_DISPATCH_DEFERRED,
1085 struct netisr_proto *npp;
1095 npp = &netisr_proto[proto];
1122 netisr_proto[proto].np_handler(m);
1136 m = netisr_select_cpuid(&netisr_proto[proto], NETISR_DISPATCH_HYBRID,
1173 netisr_proto[proto].np_handler(m);
1349 struct netisr_proto *npp;
1360 npp = &netisr_proto[proto];
1452 struct netisr_proto *npp;
1469 npp = &netisr_proto[proto];
1518 if (netisr_proto[proto].np_handler == NULL)
1528 netisr_proto[proto].np_name, nwp->nw_len,