diff options
| author | David Christensen <davidch@FreeBSD.org> | 2009-05-08 22:20:45 +0000 |
|---|---|---|
| committer | David Christensen <davidch@FreeBSD.org> | 2009-05-08 22:20:45 +0000 |
| commit | 8ef3f835d2fd822eb6ad6226420ad5c2fb7e5687 (patch) | |
| tree | 0a29a85ed5669fe0a53b0b5f0392c136b2320892 /sys/dev/bce/if_bce.c | |
| parent | e5a34e5582087bd6245574db381b3f67deb2885c (diff) | |
Notes
Diffstat (limited to 'sys/dev/bce/if_bce.c')
| -rw-r--r-- | sys/dev/bce/if_bce.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c index d39af9bee7cd..bd267f73af4e 100644 --- a/sys/dev/bce/if_bce.c +++ b/sys/dev/bce/if_bce.c @@ -4204,8 +4204,7 @@ bce_init_ctx(struct bce_softc *sc) if ((BCE_CHIP_NUM(sc) == BCE_CHIP_NUM_5709) || (BCE_CHIP_NUM(sc) == BCE_CHIP_NUM_5716)) { - /* DRC: Replace this constant value with a #define. */ - int i, retry_cnt = 10; + int i, retry_cnt = CTX_INIT_RETRY_COUNT; u32 val; DBPRINT(sc, BCE_INFO_CTX, "Initializing 5709 context.\n"); @@ -5895,6 +5894,9 @@ bce_rx_intr(struct bce_softc *sc) /* Set the total packet length. */ m0->m_pkthdr.len = m0->m_len = pkt_len; } +#else + /* Set the total packet length. */ + m0->m_pkthdr.len = m0->m_len = pkt_len; #endif /* Remove the trailing Ethernet FCS. */ |
