diff options
author | kmacy <kmacy@FreeBSD.org> | 2007-08-17 05:57:04 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2007-08-17 05:57:04 +0000 |
commit | c09acdcd0015e886fad167519a7eb1047e75d1e2 (patch) | |
tree | 925583de5d0e47ffdc6bd78f88de3f1e1ae83dc2 /sys/dev/cxgb/cxgb_main.c | |
parent | b906b986a3da7a75d75997cccfb16700c9688488 (diff) | |
download | FreeBSD-src-c09acdcd0015e886fad167519a7eb1047e75d1e2.zip FreeBSD-src-c09acdcd0015e886fad167519a7eb1047e75d1e2.tar.gz |
forward port signedness fixes from RELENG_6
fix compile error for case where MSI_SUPPORTED not defined
Approved by: re (blanket)
Diffstat (limited to 'sys/dev/cxgb/cxgb_main.c')
-rw-r--r-- | sys/dev/cxgb/cxgb_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c index f8cee4b..ef10aab 100644 --- a/sys/dev/cxgb/cxgb_main.c +++ b/sys/dev/cxgb/cxgb_main.c @@ -384,10 +384,12 @@ cxgb_controller_attach(device_t dev) device_t child; const struct adapter_info *ai; struct adapter *sc; - int i, reg, msi_needed, error = 0; + int i, reg, error = 0; uint32_t vers; int port_qsets = 1; - +#ifdef MSI_SUPPORTED + int msi_needed; +#endif sc = device_get_softc(dev); sc->dev = dev; sc->msi_count = 0; @@ -935,6 +937,7 @@ cxgb_makedev(struct port_info *pi) /* Don't enable TSO6 yet */ #define CXGB_CAP_ENABLE (IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_JUMBO_MTU) #define IFCAP_TSO4 0x0 +#define IFCAP_TSO6 0x0 #define CSUM_TSO 0x0 #endif @@ -1038,7 +1041,7 @@ cxgb_port_attach(device_t dev) taskqueue_thread_enqueue, &p->tq); #else /* Create a port for handling TX without starvation */ - p->tq = taskqueue_create_fast(buf, M_NOWAIT, + p->tq = taskqueue_create_fast(p->taskqbuf, M_NOWAIT, taskqueue_thread_enqueue, &p->tq); #endif |