aboutsummaryrefslogtreecommitdiff
path: root/misc/dahdi-kmod
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2014-02-09 06:05:30 +0000
committerMax Khon <fjoe@FreeBSD.org>2014-02-09 06:05:30 +0000
commit5a5b838f5731ccc7eba41174b274f809a32874df (patch)
tree362dea1763de6269b2c5588281057a920aad3e77 /misc/dahdi-kmod
parente8b880d3a232721fbd3d40ef3c7df5a696b89bea (diff)
downloadports-5a5b838f5731ccc7eba41174b274f809a32874df.tar.gz
ports-5a5b838f5731ccc7eba41174b274f809a32874df.zip
Notes
Diffstat (limited to 'misc/dahdi-kmod')
-rw-r--r--misc/dahdi-kmod/files/patch-mbuf49
1 files changed, 49 insertions, 0 deletions
diff --git a/misc/dahdi-kmod/files/patch-mbuf b/misc/dahdi-kmod/files/patch-mbuf
new file mode 100644
index 000000000000..a991b7b9577a
--- /dev/null
+++ b/misc/dahdi-kmod/files/patch-mbuf
@@ -0,0 +1,49 @@
+--- freebsd/drivers/dahdi/dahdi_dynamic_eth.c.orig 2014-02-09 12:58:15.000000000 +0700
++++ freebsd/drivers/dahdi/dahdi_dynamic_eth.c 2014-02-09 12:58:57.000000000 +0700
+@@ -27,6 +27,7 @@
+ #include <sys/param.h>
+ #include <sys/conf.h>
+ #include <sys/module.h>
++#include <sys/mbuf.h>
+
+ #include "ng_dahdi_netdev.h"
+ #else /* !__FreeBSD__ */
+@@ -204,10 +205,10 @@
+ dev = z->dev;
+ spin_unlock_irqrestore(&zlock, flags);
+ #if defined(__FreeBSD__)
+- MGETHDR(m, M_DONTWAIT, MT_DATA);
++ MGETHDR(m, M_NOWAIT, MT_DATA);
+ if (m != NULL) {
+ if (sizeof(eh) + sizeof(zh) + msglen >= MINCLSIZE) {
+- MCLGET(m, M_DONTWAIT);
++ MCLGET(m, M_NOWAIT);
+ }
+
+ /* copy ethernet header */
+--- freebsd/drivers/dahdi/dahdi_dynamic_ethmf.c.orig 2014-02-09 12:59:17.000000000 +0700
++++ freebsd/drivers/dahdi/dahdi_dynamic_ethmf.c 2014-02-09 12:59:47.000000000 +0700
+@@ -28,6 +28,7 @@
+ #include <sys/param.h>
+ #include <sys/conf.h>
+ #include <sys/module.h>
++#include <sys/mbuf.h>
+
+ #include "ng_dahdi_netdev.h"
+ #else /* !__FreeBSD__ */
+@@ -522,13 +523,13 @@
+ }
+
+ #if defined(__FreeBSD__)
+- MGETHDR(m, M_DONTWAIT, MT_DATA);
++ MGETHDR(m, M_NOWAIT, MT_DATA);
+ if (m == NULL) {
+ rcu_read_unlock();
+ ethmf_errors_inc();
+ return 0;
+ }
+- MCLGET(m, M_DONTWAIT);
++ MCLGET(m, M_NOWAIT);
+
+ /* copy ethernet header and reserve space for ztdeth header */
+ bcopy(dev->dev_addr, &eh.ether_shost, sizeof(eh.ether_shost));