2 /* $KAME: altq_priq.c,v 1.11 2003/09/17 14:23:25 kjc Exp $ */
4 * Copyright (C) 2000-2003
5 * Sony Computer Science Laboratories Inc. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY SONY CSL AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL SONY CSL OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 #if defined(__FreeBSD__) || defined(__NetBSD__)
36 #include "opt_inet6.h"
38 #endif /* __FreeBSD__ || __NetBSD__ */
40 #ifdef ALTQ_PRIQ /* priq is enabled by ALTQ_PRIQ option in opt_altq.h */
42 #include <sys/param.h>
43 #include <sys/malloc.h>
45 #include <sys/socket.h>
46 #include <sys/sockio.h>
47 #include <sys/systm.h>
49 #include <sys/errno.h>
50 #include <sys/kernel.h>
51 #include <sys/queue.h>
54 #include <net/if_var.h>
55 #include <netinet/in.h>
57 #include <netpfil/pf/pf.h>
58 #include <netpfil/pf/pf_altq.h>
59 #include <netpfil/pf/pf_mtag.h>
60 #include <altq/altq.h>
62 #include <altq/altq_conf.h>
64 #include <altq/altq_priq.h>
70 static struct priq_if *priq_attach(struct ifaltq *, u_int);
71 static int priq_detach(struct priq_if *);
73 static int priq_clear_interface(struct priq_if *);
74 static int priq_request(struct ifaltq *, int, void *);
75 static void priq_purge(struct priq_if *);
76 static struct priq_class *priq_class_create(struct priq_if *, int, int, int,
78 static int priq_class_destroy(struct priq_class *);
79 static int priq_enqueue(struct ifaltq *, struct mbuf *, struct altq_pktattr *);
80 static struct mbuf *priq_dequeue(struct ifaltq *, int);
82 static int priq_addq(struct priq_class *, struct mbuf *);
83 static struct mbuf *priq_getq(struct priq_class *);
84 static struct mbuf *priq_pollq(struct priq_class *);
85 static void priq_purgeq(struct priq_class *);
88 static int priqcmd_if_attach(struct priq_interface *);
89 static int priqcmd_if_detach(struct priq_interface *);
90 static int priqcmd_add_class(struct priq_add_class *);
91 static int priqcmd_delete_class(struct priq_delete_class *);
92 static int priqcmd_modify_class(struct priq_modify_class *);
93 static int priqcmd_add_filter(struct priq_add_filter *);
94 static int priqcmd_delete_filter(struct priq_delete_filter *);
95 static int priqcmd_class_stats(struct priq_class_stats *);
96 #endif /* ALTQ3_COMPAT */
98 static void get_class_stats(struct priq_classstats *, struct priq_class *);
99 static struct priq_class *clh_to_clp(struct priq_if *, u_int32_t);
104 /* pif_list keeps all priq_if's allocated. */
105 static struct priq_if *pif_list = NULL;
106 #endif /* ALTQ3_COMPAT */
109 priq_pfattach(struct pf_altq *a)
114 if ((ifp = ifunit(a->ifname)) == NULL || a->altq_disc == NULL)
121 error = altq_attach(&ifp->if_snd, ALTQT_PRIQ, a->altq_disc,
122 priq_enqueue, priq_dequeue, priq_request, NULL, NULL);
128 priq_add_altq(struct pf_altq *a)
133 if ((ifp = ifunit(a->ifname)) == NULL)
135 if (!ALTQ_IS_READY(&ifp->if_snd))
138 pif = malloc(sizeof(struct priq_if), M_DEVBUF, M_NOWAIT | M_ZERO);
141 pif->pif_bandwidth = a->ifbandwidth;
142 pif->pif_maxpri = -1;
143 pif->pif_ifq = &ifp->if_snd;
145 /* keep the state in pf_altq */
152 priq_remove_altq(struct pf_altq *a)
156 if ((pif = a->altq_disc) == NULL)
160 (void)priq_clear_interface(pif);
167 priq_add_queue(struct pf_altq *a)
170 struct priq_class *cl;
172 if ((pif = a->altq_disc) == NULL)
175 /* check parameters */
176 if (a->priority >= PRIQ_MAXPRI)
180 if (pif->pif_classes[a->priority] != NULL)
182 if (clh_to_clp(pif, a->qid) != NULL)
185 cl = priq_class_create(pif, a->priority, a->qlimit,
186 a->pq_u.priq_opts.flags, a->qid);
194 priq_remove_queue(struct pf_altq *a)
197 struct priq_class *cl;
199 if ((pif = a->altq_disc) == NULL)
202 if ((cl = clh_to_clp(pif, a->qid)) == NULL)
205 return (priq_class_destroy(cl));
209 priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes)
212 struct priq_class *cl;
213 struct priq_classstats stats;
216 if ((pif = altq_lookup(a->ifname, ALTQT_PRIQ)) == NULL)
219 if ((cl = clh_to_clp(pif, a->qid)) == NULL)
222 if (*nbytes < sizeof(stats))
225 get_class_stats(&stats, cl);
227 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
229 *nbytes = sizeof(stats);
234 * bring the interface back to the initial state by discarding
235 * all the filters and classes.
238 priq_clear_interface(struct priq_if *pif)
240 struct priq_class *cl;
243 #ifdef ALTQ3_CLFIER_COMPAT
244 /* free the filters for this interface */
245 acc_discard_filters(&pif->pif_classifier, NULL, 1);
248 /* clear out the classes */
249 for (pri = 0; pri <= pif->pif_maxpri; pri++)
250 if ((cl = pif->pif_classes[pri]) != NULL)
251 priq_class_destroy(cl);
257 priq_request(struct ifaltq *ifq, int req, void *arg)
259 struct priq_if *pif = (struct priq_if *)ifq->altq_disc;
261 IFQ_LOCK_ASSERT(ifq);
271 /* discard all the queued packets on the interface */
273 priq_purge(struct priq_if *pif)
275 struct priq_class *cl;
278 for (pri = 0; pri <= pif->pif_maxpri; pri++) {
279 if ((cl = pif->pif_classes[pri]) != NULL && !qempty(cl->cl_q))
282 if (ALTQ_IS_ENABLED(pif->pif_ifq))
283 pif->pif_ifq->ifq_len = 0;
286 static struct priq_class *
287 priq_class_create(struct priq_if *pif, int pri, int qlimit, int flags, int qid)
289 struct priq_class *cl;
293 if (flags & PRCF_RED) {
295 printf("priq_class_create: RED not configured for PRIQ!\n");
301 if (flags & PRCF_CODEL) {
303 printf("priq_class_create: CODEL not configured for PRIQ!\n");
309 if ((cl = pif->pif_classes[pri]) != NULL) {
310 /* modify the class instead of creating a new one */
316 IFQ_LOCK(cl->cl_pif->pif_ifq);
317 if (!qempty(cl->cl_q))
319 IFQ_UNLOCK(cl->cl_pif->pif_ifq);
322 if (q_is_rio(cl->cl_q))
323 rio_destroy((rio_t *)cl->cl_red);
326 if (q_is_red(cl->cl_q))
327 red_destroy(cl->cl_red);
330 if (q_is_codel(cl->cl_q))
331 codel_destroy(cl->cl_codel);
334 cl = malloc(sizeof(struct priq_class), M_DEVBUF,
339 cl->cl_q = malloc(sizeof(class_queue_t), M_DEVBUF,
341 if (cl->cl_q == NULL)
345 pif->pif_classes[pri] = cl;
346 if (flags & PRCF_DEFAULTCLASS)
347 pif->pif_default = cl;
349 qlimit = 50; /* use default */
350 qlimit(cl->cl_q) = qlimit;
351 qtype(cl->cl_q) = Q_DROPTAIL;
354 cl->cl_flags = flags;
356 if (pri > pif->pif_maxpri)
357 pif->pif_maxpri = pri;
362 if (flags & (PRCF_RED|PRCF_RIO)) {
363 int red_flags, red_pkttime;
366 if (flags & PRCF_ECN)
367 red_flags |= REDF_ECN;
369 if (flags & PRCF_CLEARDSCP)
370 red_flags |= RIOF_CLEARDSCP;
372 if (pif->pif_bandwidth < 8)
373 red_pkttime = 1000 * 1000 * 1000; /* 1 sec */
375 red_pkttime = (int64_t)pif->pif_ifq->altq_ifp->if_mtu
376 * 1000 * 1000 * 1000 / (pif->pif_bandwidth / 8);
378 if (flags & PRCF_RIO) {
379 cl->cl_red = (red_t *)rio_alloc(0, NULL,
380 red_flags, red_pkttime);
381 if (cl->cl_red == NULL)
383 qtype(cl->cl_q) = Q_RIO;
386 if (flags & PRCF_RED) {
387 cl->cl_red = red_alloc(0, 0,
388 qlimit(cl->cl_q) * 10/100,
389 qlimit(cl->cl_q) * 30/100,
390 red_flags, red_pkttime);
391 if (cl->cl_red == NULL)
393 qtype(cl->cl_q) = Q_RED;
396 #endif /* ALTQ_RED */
398 if (flags & PRCF_CODEL) {
399 cl->cl_codel = codel_alloc(5, 100, 0);
400 if (cl->cl_codel != NULL)
401 qtype(cl->cl_q) = Q_CODEL;
408 if (cl->cl_red != NULL) {
410 if (q_is_rio(cl->cl_q))
411 rio_destroy((rio_t *)cl->cl_red);
414 if (q_is_red(cl->cl_q))
415 red_destroy(cl->cl_red);
418 if (q_is_codel(cl->cl_q))
419 codel_destroy(cl->cl_codel);
422 if (cl->cl_q != NULL)
423 free(cl->cl_q, M_DEVBUF);
429 priq_class_destroy(struct priq_class *cl)
439 IFQ_LOCK(cl->cl_pif->pif_ifq);
441 #ifdef ALTQ3_CLFIER_COMPAT
442 /* delete filters referencing to this class */
443 acc_discard_filters(&cl->cl_pif->pif_classifier, cl, 0);
446 if (!qempty(cl->cl_q))
450 pif->pif_classes[cl->cl_pri] = NULL;
451 if (pif->pif_maxpri == cl->cl_pri) {
452 for (pri = cl->cl_pri; pri >= 0; pri--)
453 if (pif->pif_classes[pri] != NULL) {
454 pif->pif_maxpri = pri;
458 pif->pif_maxpri = -1;
460 IFQ_UNLOCK(cl->cl_pif->pif_ifq);
463 if (cl->cl_red != NULL) {
465 if (q_is_rio(cl->cl_q))
466 rio_destroy((rio_t *)cl->cl_red);
469 if (q_is_red(cl->cl_q))
470 red_destroy(cl->cl_red);
473 if (q_is_codel(cl->cl_q))
474 codel_destroy(cl->cl_codel);
477 free(cl->cl_q, M_DEVBUF);
483 * priq_enqueue is an enqueue function to be registered to
484 * (*altq_enqueue) in struct ifaltq.
487 priq_enqueue(struct ifaltq *ifq, struct mbuf *m, struct altq_pktattr *pktattr)
489 struct priq_if *pif = (struct priq_if *)ifq->altq_disc;
490 struct priq_class *cl;
494 IFQ_LOCK_ASSERT(ifq);
496 /* grab class set by classifier */
497 if ((m->m_flags & M_PKTHDR) == 0) {
498 /* should not happen */
499 printf("altq: packet for %s does not have pkthdr\n",
500 ifq->altq_ifp->if_xname);
505 if ((t = pf_find_mtag(m)) != NULL)
506 cl = clh_to_clp(pif, t->qid);
508 else if ((ifq->altq_flags & ALTQF_CLASSIFY) && pktattr != NULL)
509 cl = pktattr->pattr_class;
512 cl = pif->pif_default;
520 cl->cl_pktattr = pktattr; /* save proto hdr used by ECN */
523 cl->cl_pktattr = NULL;
525 if (priq_addq(cl, m) != 0) {
526 /* drop occurred. mbuf was freed in priq_addq. */
527 PKTCNTR_ADD(&cl->cl_dropcnt, len);
532 /* successfully queued. */
537 * priq_dequeue is a dequeue function to be registered to
538 * (*altq_dequeue) in struct ifaltq.
540 * note: ALTDQ_POLL returns the next packet without removing the packet
541 * from the queue. ALTDQ_REMOVE is a normal dequeue operation.
542 * ALTDQ_REMOVE must return the same packet if called immediately
546 priq_dequeue(struct ifaltq *ifq, int op)
548 struct priq_if *pif = (struct priq_if *)ifq->altq_disc;
549 struct priq_class *cl;
553 IFQ_LOCK_ASSERT(ifq);
555 if (IFQ_IS_EMPTY(ifq))
556 /* no packet in the queue */
559 for (pri = pif->pif_maxpri; pri >= 0; pri--) {
560 if ((cl = pif->pif_classes[pri]) != NULL &&
562 if (op == ALTDQ_POLL)
563 return (priq_pollq(cl));
568 if (qempty(cl->cl_q))
570 PKTCNTR_ADD(&cl->cl_xmitcnt, m_pktlen(m));
579 priq_addq(struct priq_class *cl, struct mbuf *m)
583 if (q_is_rio(cl->cl_q))
584 return rio_addq((rio_t *)cl->cl_red, cl->cl_q, m,
588 if (q_is_red(cl->cl_q))
589 return red_addq(cl->cl_red, cl->cl_q, m, cl->cl_pktattr);
592 if (q_is_codel(cl->cl_q))
593 return codel_addq(cl->cl_codel, cl->cl_q, m);
595 if (qlen(cl->cl_q) >= qlimit(cl->cl_q)) {
600 if (cl->cl_flags & PRCF_CLEARDSCP)
601 write_dsfield(m, cl->cl_pktattr, 0);
609 priq_getq(struct priq_class *cl)
612 if (q_is_rio(cl->cl_q))
613 return rio_getq((rio_t *)cl->cl_red, cl->cl_q);
616 if (q_is_red(cl->cl_q))
617 return red_getq(cl->cl_red, cl->cl_q);
620 if (q_is_codel(cl->cl_q))
621 return codel_getq(cl->cl_codel, cl->cl_q);
623 return _getq(cl->cl_q);
628 struct priq_class *cl;
630 return qhead(cl->cl_q);
634 priq_purgeq(struct priq_class *cl)
638 if (qempty(cl->cl_q))
641 while ((m = _getq(cl->cl_q)) != NULL) {
642 PKTCNTR_ADD(&cl->cl_dropcnt, m_pktlen(m));
645 ASSERT(qlen(cl->cl_q) == 0);
649 get_class_stats(struct priq_classstats *sp, struct priq_class *cl)
651 sp->class_handle = cl->cl_handle;
652 sp->qlength = qlen(cl->cl_q);
653 sp->qlimit = qlimit(cl->cl_q);
654 sp->period = cl->cl_period;
655 sp->xmitcnt = cl->cl_xmitcnt;
656 sp->dropcnt = cl->cl_dropcnt;
658 sp->qtype = qtype(cl->cl_q);
660 if (q_is_red(cl->cl_q))
661 red_getstats(cl->cl_red, &sp->red[0]);
664 if (q_is_rio(cl->cl_q))
665 rio_getstats((rio_t *)cl->cl_red, &sp->red[0]);
668 if (q_is_codel(cl->cl_q))
669 codel_getstats(cl->cl_codel, &sp->codel);
673 /* convert a class handle to the corresponding class pointer */
674 static struct priq_class *
675 clh_to_clp(struct priq_if *pif, u_int32_t chandle)
677 struct priq_class *cl;
683 for (idx = pif->pif_maxpri; idx >= 0; idx--)
684 if ((cl = pif->pif_classes[idx]) != NULL &&
685 cl->cl_handle == chandle)
694 static struct priq_if *
695 priq_attach(ifq, bandwidth)
701 pif = malloc(sizeof(struct priq_if),
705 bzero(pif, sizeof(struct priq_if));
706 pif->pif_bandwidth = bandwidth;
707 pif->pif_maxpri = -1;
710 /* add this state to the priq list */
711 pif->pif_next = pif_list;
721 (void)priq_clear_interface(pif);
723 /* remove this interface from the pif list */
725 pif_list = pif->pif_next;
729 for (p = pif_list; p != NULL; p = p->pif_next)
730 if (p->pif_next == pif) {
731 p->pif_next = pif->pif_next;
742 * priq device interface
745 priqopen(dev, flag, fmt, p)
748 #if (__FreeBSD_version > 500000)
754 /* everything will be done when the queueing scheme is attached. */
759 priqclose(dev, flag, fmt, p)
762 #if (__FreeBSD_version > 500000)
771 while ((pif = pif_list) != NULL) {
773 if (ALTQ_IS_ENABLED(pif->pif_ifq))
774 altq_disable(pif->pif_ifq);
776 err = altq_detach(pif->pif_ifq);
778 err = priq_detach(pif);
779 if (err != 0 && error == 0)
787 priqioctl(dev, cmd, addr, flag, p)
792 #if (__FreeBSD_version > 500000)
799 struct priq_interface *ifacep;
802 /* check super-user privilege */
807 #if (__FreeBSD_version > 700000)
808 if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0)
810 #elsif (__FreeBSD_version > 400000)
811 if ((error = suser(p)) != 0)
814 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
823 error = priqcmd_if_attach((struct priq_interface *)addr);
827 error = priqcmd_if_detach((struct priq_interface *)addr);
833 ifacep = (struct priq_interface *)addr;
834 if ((pif = altq_lookup(ifacep->ifname,
835 ALTQT_PRIQ)) == NULL) {
842 if (pif->pif_default == NULL) {
844 printf("priq: no default class\n");
849 error = altq_enable(pif->pif_ifq);
853 error = altq_disable(pif->pif_ifq);
857 priq_clear_interface(pif);
863 error = priqcmd_add_class((struct priq_add_class *)addr);
867 error = priqcmd_delete_class((struct priq_delete_class *)addr);
871 error = priqcmd_modify_class((struct priq_modify_class *)addr);
874 case PRIQ_ADD_FILTER:
875 error = priqcmd_add_filter((struct priq_add_filter *)addr);
878 case PRIQ_DEL_FILTER:
879 error = priqcmd_delete_filter((struct priq_delete_filter *)addr);
883 error = priqcmd_class_stats((struct priq_class_stats *)addr);
894 priqcmd_if_attach(ap)
895 struct priq_interface *ap;
901 if ((ifp = ifunit(ap->ifname)) == NULL)
904 if ((pif = priq_attach(&ifp->if_snd, ap->arg)) == NULL)
908 * set PRIQ to this ifnet structure.
910 if ((error = altq_attach(&ifp->if_snd, ALTQT_PRIQ, pif,
911 priq_enqueue, priq_dequeue, priq_request,
912 &pif->pif_classifier, acc_classify)) != 0)
913 (void)priq_detach(pif);
919 priqcmd_if_detach(ap)
920 struct priq_interface *ap;
925 if ((pif = altq_lookup(ap->ifname, ALTQT_PRIQ)) == NULL)
928 if (ALTQ_IS_ENABLED(pif->pif_ifq))
929 altq_disable(pif->pif_ifq);
931 if ((error = altq_detach(pif->pif_ifq)))
934 return priq_detach(pif);
938 priqcmd_add_class(ap)
939 struct priq_add_class *ap;
942 struct priq_class *cl;
945 if ((pif = altq_lookup(ap->iface.ifname, ALTQT_PRIQ)) == NULL)
948 if (ap->pri < 0 || ap->pri >= PRIQ_MAXPRI)
950 if (pif->pif_classes[ap->pri] != NULL)
954 if ((cl = priq_class_create(pif, ap->pri,
955 ap->qlimit, ap->flags, qid)) == NULL)
958 /* return a class handle to the user */
959 ap->class_handle = cl->cl_handle;
965 priqcmd_delete_class(ap)
966 struct priq_delete_class *ap;
969 struct priq_class *cl;
971 if ((pif = altq_lookup(ap->iface.ifname, ALTQT_PRIQ)) == NULL)
974 if ((cl = clh_to_clp(pif, ap->class_handle)) == NULL)
977 return priq_class_destroy(cl);
981 priqcmd_modify_class(ap)
982 struct priq_modify_class *ap;
985 struct priq_class *cl;
987 if ((pif = altq_lookup(ap->iface.ifname, ALTQT_PRIQ)) == NULL)
990 if (ap->pri < 0 || ap->pri >= PRIQ_MAXPRI)
993 if ((cl = clh_to_clp(pif, ap->class_handle)) == NULL)
997 * if priority is changed, move the class to the new priority
999 if (pif->pif_classes[ap->pri] != cl) {
1000 if (pif->pif_classes[ap->pri] != NULL)
1002 pif->pif_classes[cl->cl_pri] = NULL;
1003 pif->pif_classes[ap->pri] = cl;
1004 cl->cl_pri = ap->pri;
1007 /* call priq_class_create to change class parameters */
1008 if ((cl = priq_class_create(pif, ap->pri,
1009 ap->qlimit, ap->flags, ap->class_handle)) == NULL)
1015 priqcmd_add_filter(ap)
1016 struct priq_add_filter *ap;
1018 struct priq_if *pif;
1019 struct priq_class *cl;
1021 if ((pif = altq_lookup(ap->iface.ifname, ALTQT_PRIQ)) == NULL)
1024 if ((cl = clh_to_clp(pif, ap->class_handle)) == NULL)
1027 return acc_add_filter(&pif->pif_classifier, &ap->filter,
1028 cl, &ap->filter_handle);
1032 priqcmd_delete_filter(ap)
1033 struct priq_delete_filter *ap;
1035 struct priq_if *pif;
1037 if ((pif = altq_lookup(ap->iface.ifname, ALTQT_PRIQ)) == NULL)
1040 return acc_delete_filter(&pif->pif_classifier,
1045 priqcmd_class_stats(ap)
1046 struct priq_class_stats *ap;
1048 struct priq_if *pif;
1049 struct priq_class *cl;
1050 struct priq_classstats stats, *usp;
1053 if ((pif = altq_lookup(ap->iface.ifname, ALTQT_PRIQ)) == NULL)
1056 ap->maxpri = pif->pif_maxpri;
1058 /* then, read the next N classes in the tree */
1060 for (pri = 0; pri <= pif->pif_maxpri; pri++) {
1061 cl = pif->pif_classes[pri];
1063 get_class_stats(&stats, cl);
1065 bzero(&stats, sizeof(stats));
1066 if ((error = copyout((caddr_t)&stats, (caddr_t)usp++,
1067 sizeof(stats))) != 0)
1075 static struct altqsw priq_sw =
1076 {"priq", priqopen, priqclose, priqioctl};
1078 ALTQ_MODULE(altq_priq, ALTQT_PRIQ, &priq_sw);
1079 MODULE_DEPEND(altq_priq, altq_red, 1, 1, 1);
1080 MODULE_DEPEND(altq_priq, altq_rio, 1, 1, 1);
1082 #endif /* KLD_MODULE */
1084 #endif /* ALTQ3_COMPAT */
1085 #endif /* ALTQ_PRIQ */