diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-01-19 22:47:43 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-01-19 22:47:43 +0000 |
commit | ac46645d703ebb04602c0416c8f6f9b872d6dd61 (patch) | |
tree | 97b0e1fe703d0ea244da8683a5b214cf1181cacb /sys | |
parent | 2005bbb395bb7f0b8875c19bc5414a4cc62fbdac (diff) | |
download | FreeBSD-src-ac46645d703ebb04602c0416c8f6f9b872d6dd61.zip FreeBSD-src-ac46645d703ebb04602c0416c8f6f9b872d6dd61.tar.gz |
Re-enable pcpu caching by default make sysctl R/W
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/cxgb/cxgb_sge.c | 2 | ||||
-rw-r--r-- | sys/dev/cxgb/sys/cxgb_support.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cxgb/cxgb_sge.c b/sys/dev/cxgb/cxgb_sge.c index 66a111f..515967d 100644 --- a/sys/dev/cxgb/cxgb_sge.c +++ b/sys/dev/cxgb/cxgb_sge.c @@ -3203,7 +3203,7 @@ t3_add_attach_sysctls(adapter_t *sc) 0, "#times txq overrun"); SYSCTL_ADD_INT(ctx, children, OID_AUTO, "pcpu_cache_enable", - CTLFLAG_RD, &cxgb_pcpu_cache_enable, + CTLFLAG_RW, &cxgb_pcpu_cache_enable, 0, "#enable driver local pcpu caches"); SYSCTL_ADD_INT(ctx, children, OID_AUTO, "cache_alloc", diff --git a/sys/dev/cxgb/sys/cxgb_support.c b/sys/dev/cxgb/sys/cxgb_support.c index b96504b..87b7e0b 100644 --- a/sys/dev/cxgb/sys/cxgb_support.c +++ b/sys/dev/cxgb/sys/cxgb_support.c @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); #endif extern int cxgb_use_16k_clusters; -int cxgb_pcpu_cache_enable = 0; +int cxgb_pcpu_cache_enable = 1; struct buf_stack { caddr_t *bs_stack; |