altq_subr.c (194739) | altq_subr.c (195699) |
---|---|
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_subr.c 194739 2009-06-23 17:03:45Z bz $ */ | 1/* $FreeBSD: head/sys/contrib/altq/altq/altq_subr.c 195699 2009-07-14 22:48:30Z rwatson $ */ |
2/* $KAME: altq_subr.c,v 1.21 2003/11/06 06:32:53 kjc Exp $ */ 3 4/* 5 * Copyright (C) 1997-2003 6 * Sony Computer Science Laboratories Inc. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 454 unchanged lines hidden (view full) --- 464#else 465 s = splimp(); 466#endif 467#if defined(__FreeBSD__) && (__FreeBSD_version >= 500000) 468 IFNET_RLOCK(); 469 VNET_LIST_RLOCK(); 470 VNET_FOREACH(vnet_iter) { 471 CURVNET_SET(vnet_iter); | 2/* $KAME: altq_subr.c,v 1.21 2003/11/06 06:32:53 kjc Exp $ */ 3 4/* 5 * Copyright (C) 1997-2003 6 * Sony Computer Science Laboratories Inc. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 454 unchanged lines hidden (view full) --- 464#else 465 s = splimp(); 466#endif 467#if defined(__FreeBSD__) && (__FreeBSD_version >= 500000) 468 IFNET_RLOCK(); 469 VNET_LIST_RLOCK(); 470 VNET_FOREACH(vnet_iter) { 471 CURVNET_SET(vnet_iter); |
472 INIT_VNET_NET(vnet_iter); | |
473#endif 474 for (ifp = TAILQ_FIRST(&V_ifnet); ifp; 475 ifp = TAILQ_NEXT(ifp, if_list)) { 476 /* read from if_snd unlocked */ 477 if (!TBR_IS_ENABLED(&ifp->if_snd)) 478 continue; 479 active++; 480 if (!IFQ_IS_EMPTY(&ifp->if_snd) && --- 1554 unchanged lines hidden --- | 472#endif 473 for (ifp = TAILQ_FIRST(&V_ifnet); ifp; 474 ifp = TAILQ_NEXT(ifp, if_list)) { 475 /* read from if_snd unlocked */ 476 if (!TBR_IS_ENABLED(&ifp->if_snd)) 477 continue; 478 active++; 479 if (!IFQ_IS_EMPTY(&ifp->if_snd) && --- 1554 unchanged lines hidden --- |