ifq_var.h (f0a26983) ifq_var.h (3c4cd924)
1/*-
2 * Copyright (c) 2005 The DragonFly Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 343 unchanged lines hidden (view full) ---

352ifq_handoff(struct ifnet *_ifp, struct mbuf *_m, struct altq_pktattr *_pa)
353{
354 struct ifaltq_subque *_ifsq;
355 int _error;
356 int _qid = ALTQ_SUBQ_INDEX_DEFAULT; /* XXX default subqueue */
357
358 _ifsq = &_ifp->if_snd.altq_subq[_qid];
359
1/*-
2 * Copyright (c) 2005 The DragonFly Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 343 unchanged lines hidden (view full) ---

352ifq_handoff(struct ifnet *_ifp, struct mbuf *_m, struct altq_pktattr *_pa)
353{
354 struct ifaltq_subque *_ifsq;
355 int _error;
356 int _qid = ALTQ_SUBQ_INDEX_DEFAULT; /* XXX default subqueue */
357
358 _ifsq = &_ifp->if_snd.altq_subq[_qid];
359
360 ASSERT_IFNET_SERIALIZED_TX(_ifp);
360 ASSERT_IFNET_SERIALIZED_TX(_ifp, _ifsq);
361 _error = ifsq_enqueue(_ifsq, _m, _pa);
362 if (_error == 0) {
363 _ifp->if_obytes += _m->m_pkthdr.len;
364 if (_m->m_flags & M_MCAST)
365 _ifp->if_omcasts++;
366 if (!ifsq_is_oactive(_ifsq))
367 (*_ifp->if_start)(_ifp, _ifsq);
368 }

--- 174 unchanged lines hidden ---
361 _error = ifsq_enqueue(_ifsq, _m, _pa);
362 if (_error == 0) {
363 _ifp->if_obytes += _m->m_pkthdr.len;
364 if (_m->m_flags & M_MCAST)
365 _ifp->if_omcasts++;
366 if (!ifsq_is_oactive(_ifsq))
367 (*_ifp->if_start)(_ifp, _ifsq);
368 }

--- 174 unchanged lines hidden ---