summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-09-02 22:38:49 +0000
committerkmacy <kmacy@FreeBSD.org>2008-09-02 22:38:49 +0000
commit33d6b8cb7b358d8b42930627c74307dd17a8af38 (patch)
treef8cce2c053828a303ee732bf40ca5c213ff378ea /sys/dev/cxgb
parent19c440d7b3adc06d3f85d31a85e16e8a266b6802 (diff)
downloadFreeBSD-src-33d6b8cb7b358d8b42930627c74307dd17a8af38.zip
FreeBSD-src-33d6b8cb7b358d8b42930627c74307dd17a8af38.tar.gz
Indicate at probe time if device can do offload and which revision it is
MFC after: 3 days
Diffstat (limited to 'sys/dev/cxgb')
-rw-r--r--sys/dev/cxgb/cxgb_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c
index aaa497d..ad2467b 100644
--- a/sys/dev/cxgb/cxgb_main.c
+++ b/sys/dev/cxgb/cxgb_main.c
@@ -375,6 +375,7 @@ cxgb_controller_probe(device_t dev)
const struct adapter_info *ai;
char *ports, buf[80];
int nports;
+ struct adapter *sc = device_get_softc(dev);
ai = cxgb_get_adapter_info(dev);
if (ai == NULL)
@@ -386,7 +387,9 @@ cxgb_controller_probe(device_t dev)
else
ports = "ports";
- snprintf(buf, sizeof(buf), "%s RNIC, %d %s", ai->desc, nports, ports);
+ snprintf(buf, sizeof(buf), "%s %sNIC, rev: %d nports: %d %s",
+ ai->desc, is_offload(sc) ? "R" : "",
+ sc->params.rev, nports, ports);
device_set_desc_copy(dev, buf);
return (BUS_PROBE_DEFAULT);
}
OpenPOWER on IntegriCloud