summaryrefslogtreecommitdiffstats
path: root/sys/contrib/altq/altq/altq_hfsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/altq/altq/altq_hfsc.c')
-rw-r--r--sys/contrib/altq/altq/altq_hfsc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/contrib/altq/altq/altq_hfsc.c b/sys/contrib/altq/altq/altq_hfsc.c
index 8fea4dd..bf7a4f0 100644
--- a/sys/contrib/altq/altq/altq_hfsc.c
+++ b/sys/contrib/altq/altq/altq_hfsc.c
@@ -693,7 +693,7 @@ hfsc_enqueue(struct ifaltq *ifq, struct mbuf *m, struct altq_pktattr *pktattr)
{
struct hfsc_if *hif = (struct hfsc_if *)ifq->altq_disc;
struct hfsc_class *cl;
- struct m_tag *t;
+ struct pf_mtag *t;
int len;
IFQ_LOCK_ASSERT(ifq);
@@ -713,8 +713,8 @@ hfsc_enqueue(struct ifaltq *ifq, struct mbuf *m, struct altq_pktattr *pktattr)
return (ENOBUFS);
}
cl = NULL;
- if ((t = m_tag_find(m, PACKET_TAG_PF_QID, NULL)) != NULL)
- cl = clh_to_clp(hif, ((struct altq_tag *)(t+1))->qid);
+ if ((t = pf_find_mtag(m)) != NULL)
+ cl = clh_to_clp(hif, t->qid);
#ifdef ALTQ3_COMPAT
else if ((ifq->altq_flags & ALTQF_CLASSIFY) && pktattr != NULL)
cl = pktattr->pattr_class;
OpenPOWER on IntegriCloud