]> git.pld-linux.org Git - packages/bcm5700.git/blob - bcm5700-vlan-mtu.patch
- release 2; rebuild with 2.2.25
[packages/bcm5700.git] / bcm5700-vlan-mtu.patch
1 diff -uNr bcm5700-2.2.19.orig/src/b57um.c bcm5700-2.2.19/src/b57um.c
2 --- bcm5700-2.2.19.orig/src/b57um.c     Mon Apr  8 16:03:15 2002
3 +++ bcm5700-2.2.19/src/b57um.c  Mon Mar  3 21:51:00 2003
4 @@ -2470,7 +2470,7 @@
5         }
6  
7         if (pUmDevice->dev->mtu > 1500) {
8 -               pDevice->RxMtu = pUmDevice->dev->mtu + 14;
9 +               pDevice->RxMtu = pUmDevice->dev->mtu + 18;
10         }
11  
12         if (T3_ASIC_REV(pDevice->ChipRevId) != T3_ASIC_REV_5700) {
13 @@ -2502,7 +2502,7 @@
14         }
15         pDevice->RxStdDescCnt = rx_std_desc_cnt[index];
16  
17 -       if (mtu[index] <= 1514) {
18 +       if (mtu[index] <= 1518) {
19                 rx_jumbo_desc_cnt[index] = 0;
20         }
21         else if ((rx_jumbo_desc_cnt[index] == 0) ||
22 diff -uNr bcm5700-2.2.19.orig/src/lm.h bcm5700-2.2.19/src/lm.h
23 --- bcm5700-2.2.19.orig/src/lm.h        Mon Apr  8 16:03:15 2002
24 +++ bcm5700-2.2.19/src/lm.h     Mon Mar  3 21:48:40 2003
25 @@ -121,10 +121,10 @@
26  #define ETHERNET_ADDRESS_SIZE           6
27  #define ETHERNET_PACKET_HEADER_SIZE     14
28  #define MIN_ETHERNET_PACKET_SIZE        64      /* with 4 byte crc. */
29 -#define MAX_ETHERNET_PACKET_SIZE        1518    /* with 4 byte crc. */
30 +#define MAX_ETHERNET_PACKET_SIZE        1522    /* with 4 byte crc. and 4 byte vlan */
31  #define MIN_ETHERNET_PACKET_SIZE_NO_CRC 60
32 -#define MAX_ETHERNET_PACKET_SIZE_NO_CRC 1514
33 -#define MAX_ETHERNET_PACKET_BUFFER_SIZE 1536    /* A nice even number. */
34 +#define MAX_ETHERNET_PACKET_SIZE_NO_CRC 1518
35 +#define MAX_ETHERNET_PACKET_BUFFER_SIZE 1540    /* A nice even number. */
36  
37  #ifndef LM_MAX_MC_TABLE_SIZE
38  #define LM_MAX_MC_TABLE_SIZE            32
39 diff -uNr bcm5700-2.2.19.orig/src/tigon3.h bcm5700-2.2.19/src/tigon3.h
40 --- bcm5700-2.2.19.orig/src/tigon3.h    Mon Apr  8 16:03:15 2002
41 +++ bcm5700-2.2.19/src/tigon3.h Mon Mar  3 21:49:38 2003
42 @@ -148,12 +148,12 @@
43  #endif /* T3_JUMBO_RCV_RCB_ENTRY_COUNT */
44  #define T3_JUMBO_RCV_RCB_ENTRY_COUNT_MASK   (T3_JUMBO_RCV_RCB_ENTRY_COUNT-1)
45  
46 -#define MAX_JUMBO_RCV_BUFFER_SIZE           (10 * 1024) /* > 1514 */
47 -#define DEFAULT_JUMBO_RCV_BUFFER_SIZE       (4 * 1024) /* > 1514 */
48 +#define MAX_JUMBO_RCV_BUFFER_SIZE           (10 * 1024) /* > 1518 */
49 +#define DEFAULT_JUMBO_RCV_BUFFER_SIZE       (4 * 1024) /* > 1518 */
50  #define DEFAULT_JUMBO_RCV_DESC_COUNT        128     /* Must be < 256. */
51  
52 -#define MAX_JUMBO_TX_BUFFER_SIZE            (8 * 1024) /* > 1514 */
53 -#define DEFAULT_JUMBO_TX_BUFFER_SIZE        (4 * 1024) /* > 1514 */
54 +#define MAX_JUMBO_TX_BUFFER_SIZE            (8 * 1024) /* > 1518 */
55 +#define DEFAULT_JUMBO_TX_BUFFER_SIZE        (4 * 1024) /* > 1518 */
56  
57  /* Number of receive return RCBs.  Maybe 1-16 but for now, only support one. */
58  #define T3_MAX_RCV_RETURN_RCB_COUNT         16
This page took 0.145408 seconds and 3 git commands to generate.