PERFORCE change 36993 for review
Sam Leffler
sam at FreeBSD.org
Tue Aug 26 16:39:59 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=36993
Change 36993 by sam at sam_ebb on 2003/08/26 16:39:12
must lock the dummynet tables when scanning on ipfw rule delete
Affected files ...
.. //depot/projects/netperf/sys/netinet/ip_dummynet.c#5 edit
Differences ...
==== //depot/projects/netperf/sys/netinet/ip_dummynet.c#5 (text+ko) ====
@@ -1419,8 +1419,7 @@
struct dn_pkt *pkt ;
struct dn_flow_set *fs ;
- DUMMYNET_LOCK_ASSERT(MA_OWNED);
-
+ DUMMYNET_LOCK();
/*
* If the rule references a queue (dn_flow_set), then scan
* the flow set, otherwise scan pipes. Should do either, but doing
@@ -1435,6 +1434,7 @@
if (pkt->rule == r)
pkt->rule = ip_fw_default_rule ;
}
+ DUMMYNET_UNLOCK();
}
/*
More information about the p4-projects
mailing list