[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gre(4) INPUT_ENQUEUE
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: gre(4) INPUT_ENQUEUE
- From: Philipp Buehler <pb_(_at_)_openbsd_(_dot_)_de>
- Date: Sat, 26 Jun 2004 21:11:44 +0200
- Mail-followup-to: Philipp Buehler <pb_(_at_)_openbsd_(_dot_)_de>, tech_(_at_)_openbsd_(_dot_)_org
make use out of new macro including congestion detect
Index: ip_gre.c
===================================================================
RCS file: /cvs/src/sys/netinet/ip_gre.c,v
retrieving revision 1.24
diff -u -r1.24 ip_gre.c
--- ip_gre.c 10 Dec 2003 07:22:43 -0000 1.24
+++ ip_gre.c 26 Jun 2004 19:09:32 -0000
@@ -224,12 +224,7 @@
#endif
s = splimp(); /* possible */
- if (IF_QFULL(ifq)) {
- IF_DROP(ifq);
- m_freem(m);
- } else {
- IF_ENQUEUE(ifq, m);
- }
+ IF_INPUT_ENQUEUE(ifq, m);
splx(s);
return (1); /* packet is done, no further processing needed */
@@ -371,12 +366,7 @@
#endif
s = splimp(); /* possible */
- if (IF_QFULL(ifq)) {
- IF_DROP(ifq);
- m_freem(m);
- } else {
- IF_ENQUEUE(ifq, m);
- }
+ IF_INPUT_ENQUEUE(ifq, m);
splx(s);
}
Visit your host, monkey.org