Skip to content

Instantly share code, notes, and snippets.

@zealic
zealic / openwrt_metarouter_1407-fix-rxbuf.patch
Created September 26, 2015 19:35 — forked from leleobhz/openwrt_metarouter_1407-fix-rxbuf.patch
Fix RXBUF_SIZE to avoid skb_put crash by exceding buffer - as described in https://www.fsl.cs.sunysb.edu/kernel-api/re511.html - the original patch crashed at 300bytes packet, so i found the 10300 bytes for a jumbo-frame buffer-compat.
diff -puNrb openwrt/target/linux/mr-mips/base-files/etc/hotplug2-init.rules openwrt-new/target/linux/mr-mips/base-files/etc/hotplug2-init.rules
--- openwrt/target/linux/mr-mips/base-files/etc/hotplug2-init.rules 1970-01-01 01:00:00.000000000 +0100
+++ openwrt-new/target/linux/mr-mips/base-files/etc/hotplug2-init.rules 2014-01-09 14:06:32.000000000 +0000
@@ -0,0 +1,8 @@
+$include /etc/hotplug2-common.rules
+
+DEVICENAME ~~ (hvc) {
+ nothrottle
+ makedev /dev/%DEVICENAME% 0666
+ next