]> git.pld-linux.org Git - packages/kernel.git/blob - linux-tulip-vlan.patch
- added description of djurban's branch
[packages/kernel.git] / linux-tulip-vlan.patch
1 diff -durN linux-2.4.17/drivers/net/tulip.orig/interrupt.c linux-2.4.17/drivers/net/tulip/interrupt.c
2 --- linux-2.4.17/drivers/net/tulip.orig/interrupt.c     Fri Nov  9 22:45:35 2001
3 +++ linux-2.4.17/drivers/net/tulip/interrupt.c  Thu Feb 21 18:34:15 2002
4 @@ -128,8 +128,8 @@
5                                    dev->name, entry, status);
6                 if (--rx_work_limit < 0)
7                         break;
8 -               if ((status & 0x38008300) != 0x0300) {
9 -                       if ((status & 0x38000300) != 0x0300) {
10 +               if ((status & (0x38000000|RxDescFatalErr|RxWholePkt)) != RxWholePkt) {
11 +                       if ((status & (0x38000000|RxWholePkt)) != RxWholePkt) {
12                                 /* Ingore earlier buffers. */
13                                 if ((status & 0xffff) != 0x7fff) {
14                                         if (tulip_debug > 1)
15 @@ -155,10 +155,10 @@
16                         struct sk_buff *skb;
17  
18  #ifndef final_version
19 -                       if (pkt_len > 1518) {
20 +                       if (pkt_len > 1522) {
21                                 printk(KERN_WARNING "%s: Bogus packet size of %d (%#x).\n",
22                                            dev->name, pkt_len, pkt_len);
23 -                               pkt_len = 1518;
24 +                               pkt_len = 1522;
25                                 tp->stats.rx_length_errors++;
26                         }
27  #endif
28 diff -durN linux-2.4.17/drivers/net/tulip.orig/tulip.h linux-2.4.17/drivers/net/tulip/tulip.h
29 --- linux-2.4.17/drivers/net/tulip.orig/tulip.h Fri Feb 15 19:48:16 2002
30 +++ linux-2.4.17/drivers/net/tulip/tulip.h      Thu Feb 21 18:30:48 2002
31 @@ -186,7 +186,7 @@
32  
33  enum desc_status_bits {
34         DescOwned = 0x80000000,
35 -       RxDescFatalErr = 0x8000,
36 +       RxDescFatalErr = 0x4842,
37         RxWholePkt = 0x0300,
38  };
39  
40 @@ -264,7 +264,7 @@
41  
42  #define MEDIA_MASK     31
43  
44 -#define PKT_BUF_SZ             1536    /* Size of each temporary Rx buffer. */
45 +#define PKT_BUF_SZ             1540    /* Size of each temporary Rx buffer. */
46  
47  #define TULIP_MIN_CACHE_LINE   8       /* in units of 32-bit words */
48  
49 diff -durN linux-2.4.17/drivers/net/tulip.orig/tulip_core.c linux-2.4.17/drivers/net/tulip/tulip_core.c
50 --- linux-2.4.17/drivers/net/tulip.orig/tulip_core.c    Fri Feb 15 17:55:12 2002
51 +++ linux-2.4.17/drivers/net/tulip/tulip_core.c Thu Feb 21 18:31:40 2002
52 @@ -63,7 +63,7 @@
53  #if defined(__alpha__) || defined(__arm__) || defined(__hppa__) \
54         || defined(__sparc_) || defined(__ia64__) \
55         || defined(__sh__) || defined(__mips__)
56 -static int rx_copybreak = 1518;
57 +static int rx_copybreak = 1522;
58  #else
59  static int rx_copybreak = 100;
60  #endif
This page took 0.192257 seconds and 3 git commands to generate.