diff options
author | mux <mux@FreeBSD.org> | 2005-04-21 13:27:38 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2005-04-21 13:27:38 +0000 |
commit | 510a2f302a52427fe35f48836697a480c0caeef2 (patch) | |
tree | 7520d8e604237a25fc306eff0a3196d0cc18cd06 /sys/dev/fxp | |
parent | 436402e57404430bf8cfa3c8e366f55610a469cf (diff) | |
download | FreeBSD-src-510a2f302a52427fe35f48836697a480c0caeef2.zip FreeBSD-src-510a2f302a52427fe35f48836697a480c0caeef2.tar.gz |
Enable extended RFDs and TCBs, and thus checksum offloading, for
latest 82550 and 82551 chipsets (revision IDs 0x0e, 0x0f and 0x10).
We were only enabling it for revisions 0x0c and 0x0d, now it's
enabled for any 8255x NIC with a revision ID bigger than 0x0c. It
should be safe, and this is what Intel does in their open source
driver.
MFC after: 2 weeks
Tested by: Pavel Lobach lobach_pavel at mail dot ru
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index a6f9004..0085ca4 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -579,8 +579,7 @@ fxp_attach(device_t dev) * too, but that's already enabled by the code above. * Be careful to do this only on the right devices. */ - - if (sc->revision == FXP_REV_82550 || sc->revision == FXP_REV_82550_C) { + if (sc->revision >= FXP_REV_82550) { sc->rfa_size = sizeof (struct fxp_rfa); sc->tx_cmd = FXP_CB_COMMAND_IPCBXMIT; sc->flags |= FXP_FLAG_EXT_RFA; |