kann mir irgendjemand sagen, wie ich die Patchdatei enet_patch auf den original Treiber enet.c anwende? Ich habe lediglich folgendes probiert:
Code: Alles auswählen
patch enet.c enet_patch
Any ideas?
Code: Alles auswählen
patch enet.c enet_patch
Code: Alles auswählen
patch -p0 enet.c < enet_patch
Code: Alles auswählen
head -n 25 enet_patch
Code: Alles auswählen
--- arch/ppc/8xx_io/enet.c Fri Nov 1 14:44:05 2002
+++ arch/ppc/8xx_io/new_enet.c Sat Jan 25 19:57:50 2003
@@ -34,7 +34,6 @@
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
-#include <linux/pci.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
@@ -86,6 +85,14 @@
* All functions are directly controlled using I/O pins. See <asm/commproc.h>.
*/
+/* Define COPY_SMALL_FRAMES if you want to save buffer memory for small packets
+ * at a small performance hit. Note performance testing needed */
+/* #define COPY_SMALL_FRAMES 1 */
+
+#ifdef COPY_SMALL_FRAMES
+ #define RX_COPYBREAK (256-16) /* dev_alloc_skb() adds 16 bytes for internal use */
+#endif
+
/* The transmitter timeout
*/
#define TX_TIMEOUT (2*HZ)
Moin,Blooddrinker hat geschrieben:probiers mal mitCode: Alles auswählen
patch -p0 enet.c < enet_patch
Code: Alles auswählen
patching file enet.c
patch: **** malformed patch at line 4: #include <linux/ioport.h>
Code: Alles auswählen
patch -p0 < enet_patch
Code: Alles auswählen
patch -p0 --dry-run < enet_patch