Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fix brokenness I introduced while debugging.



details:   https://anonhg.NetBSD.org/src/rev/63ea332d2177
branches:  trunk
changeset: 567052:63ea332d2177
user:      toshii <toshii%NetBSD.org@localhost>
date:      Sun May 30 03:50:52 2004 +0000

description:
Fix brokenness I introduced while debugging.
  - initialize rxlenmask when 8139C+
  - remove meaningless memsets.

diffstat:

 sys/dev/pci/if_re.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 91bf09cfaa88 -r 63ea332d2177 sys/dev/pci/if_re.c
--- a/sys/dev/pci/if_re.c       Sun May 30 03:43:26 2004 +0000
+++ b/sys/dev/pci/if_re.c       Sun May 30 03:50:52 2004 +0000
@@ -848,6 +848,8 @@
 
                /* Set RX length mask */
 
+               sc->rtk_rxlenmask = RTK_RDESC_STAT_FRAGLEN;
+
                if (rtk_read_eeprom(sc, RTK_EE_ID, RTK_EEADDR_LEN1) == 0x8129)
                        addr_len = RTK_EEADDR_LEN1;
                else
@@ -863,10 +865,6 @@
                }
        }
 
-       memset((char *)&sc->rtk_ldata.rtk_rx_mbuf, 0,
-           (RTK_RX_DESC_CNT * sizeof(struct mbuf *)));
-       memset((char *)&sc->rtk_ldata.rtk_tx_mbuf, 0,
-           (RTK_TX_DESC_CNT * sizeof(struct mbuf *)));
        error = re_allocmem(sc);
 
        if (error)



Home | Main Index | Thread Index | Old Index