Lines Matching defs:netisr_proto
106 * - The netisr_proto array, including all fields of struct netisr_proto.
203 * required for crashdump analysis, as it sizes netisr_proto[].
211 * The netisr_proto array describes all registered protocols, indexed by
214 static struct netisr_proto netisr_proto[NETISR_MAXPROT];
225 * With this we keep the one netisr_proto per protocol but add a
432 KASSERT(netisr_proto[proto].np_name == NULL,
434 KASSERT(netisr_proto[proto].np_handler == NULL,
437 netisr_proto[proto].np_name = name;
438 netisr_proto[proto].np_handler = nhp->nh_handler;
439 netisr_proto[proto].np_m2flow = nhp->nh_m2flow;
440 netisr_proto[proto].np_m2cpuid = nhp->nh_m2cpuid;
441 netisr_proto[proto].np_drainedcpu = nhp->nh_drainedcpu;
443 netisr_proto[proto].np_qlimit = netisr_defaultqlimit;
448 netisr_proto[proto].np_qlimit = netisr_maxqlimit;
450 netisr_proto[proto].np_qlimit = nhp->nh_qlimit;
451 netisr_proto[proto].np_policy = nhp->nh_policy;
452 netisr_proto[proto].np_dispatch = nhp->nh_dispatch;
456 npwp->nw_qlimit = netisr_proto[proto].np_qlimit;
494 KASSERT(netisr_proto[proto].np_handler != NULL,
527 KASSERT(netisr_proto[proto].np_handler != NULL,
558 KASSERT(netisr_proto[proto].np_handler != NULL,
561 *qlimitp = netisr_proto[proto].np_qlimit;
590 KASSERT(netisr_proto[proto].np_handler != NULL,
594 netisr_proto[proto].np_qlimit = qlimit;
650 KASSERT(netisr_proto[proto].np_handler != NULL,
664 netisr_proto[proto].np_name = NULL;
665 netisr_proto[proto].np_handler = NULL;
666 netisr_proto[proto].np_m2flow = NULL;
667 netisr_proto[proto].np_m2cpuid = NULL;
668 netisr_proto[proto].np_qlimit = 0;
669 netisr_proto[proto].np_policy = 0;
690 KASSERT(netisr_proto[proto].np_handler != NULL,
765 KASSERT(netisr_proto[proto].np_handler != NULL,
781 netisr_get_dispatch(struct netisr_proto *npp)
798 netisr_select_cpuid(struct netisr_proto *npp, u_int dispatch_policy,
926 netisr_proto[proto].np_handler(m);
931 if (netisr_proto[proto].np_drainedcpu)
932 netisr_proto[proto].np_drainedcpu(nwsp->nws_cpu);
1069 KASSERT(netisr_proto[proto].np_handler != NULL,
1079 m = netisr_select_cpuid(&netisr_proto[proto], NETISR_DISPATCH_DEFERRED,
1113 struct netisr_proto *npp;
1124 npp = &netisr_proto[proto];
1151 netisr_proto[proto].np_handler(m);
1165 m = netisr_select_cpuid(&netisr_proto[proto], NETISR_DISPATCH_HYBRID,
1202 netisr_proto[proto].np_handler(m);
1376 struct netisr_proto *npp;
1387 npp = &netisr_proto[proto];
1479 struct netisr_proto *npp;
1496 npp = &netisr_proto[proto];
1545 if (netisr_proto[proto].np_handler == NULL)
1555 netisr_proto[proto].np_name, nwp->nw_len,