diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2011-01-20 17:41:24 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2011-01-20 17:41:24 +0000 |
| commit | 9eabd3a03a1006fa57018dbffefb6440a0aadb6d (patch) | |
| tree | ba4cf5ce5a0ab589ea05a3e8bfb4857e839a4973 | |
| parent | fcd31ae7a333974dc62208d1ba5ee8bce54502c6 (diff) | |
Notes
| -rw-r--r-- | sys/dev/re/if_re.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 4df624b1cceb..0b816432975d 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -2779,8 +2779,13 @@ re_init_locked(struct rl_softc *sc) * For 8169 gigE NICs, set the max allowed RX packet * size so we can receive jumbo frames. */ - if (sc->rl_type == RL_8169) - CSR_WRITE_2(sc, RL_MAXRXPKTLEN, 16383); + if (sc->rl_type == RL_8169) { + if ((sc->rl_flags & (RL_FLAG_PCIE | RL_FLAG_NOJUMBO)) == + (RL_FLAG_PCIE | RL_FLAG_NOJUMBO)) + CSR_WRITE_2(sc, RL_MAXRXPKTLEN, RE_RX_DESC_BUFLEN); + else + CSR_WRITE_2(sc, RL_MAXRXPKTLEN, 16383); + } if (sc->rl_testmode) return; |
