summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb/cxgb_adapter.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-03-21 07:25:40 +0000
committerkmacy <kmacy@FreeBSD.org>2007-03-21 07:25:40 +0000
commit88ef185ca93980ec01148322040660887459f1e6 (patch)
treeec98a01745e131bca3e51a9a4b4b1407abc13ddb /sys/dev/cxgb/cxgb_adapter.h
parent4cb223184a79d34c2f19e794fe126be7560b97d9 (diff)
downloadFreeBSD-src-88ef185ca93980ec01148322040660887459f1e6.zip
FreeBSD-src-88ef185ca93980ec01148322040660887459f1e6.tar.gz
make MSI-X the default and allocate up to mp_ncpus queues per port
MFC after: 3 days
Diffstat (limited to 'sys/dev/cxgb/cxgb_adapter.h')
-rw-r--r--sys/dev/cxgb/cxgb_adapter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/cxgb/cxgb_adapter.h b/sys/dev/cxgb/cxgb_adapter.h
index 33a5e4a..6b32460 100644
--- a/sys/dev/cxgb/cxgb_adapter.h
+++ b/sys/dev/cxgb/cxgb_adapter.h
@@ -226,6 +226,7 @@ struct sge_qset {
unsigned long txq_stopped; /* which Tx queues are stopped */
uint64_t port_stats[SGE_PSTAT_MAX];
struct port_info *port;
+ int idx; /* qset # */
};
struct sge {
@@ -410,7 +411,7 @@ void t3_update_qset_coalesce(struct sge_qset *qs, const struct qset_params *p);
/*
* XXX figure out how we can return this to being private to sge
*/
-#define desc_reclaimable(q) ((q)->processed - (q)->cleaned - TX_MAX_DESC)
+#define desc_reclaimable(q) ((int)((q)->processed - (q)->cleaned - TX_MAX_DESC))
#define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field)))
OpenPOWER on IntegriCloud