diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2012-06-17 09:42:56 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2012-06-17 09:42:56 +0000 |
| commit | d1690a70b571788587b3561cc50ac77fc457fc82 (patch) | |
| tree | 6d93ed5d192ee4df45b758ddb7313288ba63ee28 /sys/dev/sym/sym_conf.h | |
| parent | adb4f0d4c27c91371ccf79796b6c34d36850afbd (diff) | |
Notes
Diffstat (limited to 'sys/dev/sym/sym_conf.h')
| -rw-r--r-- | sys/dev/sym/sym_conf.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/sym/sym_conf.h b/sys/dev/sym/sym_conf.h index aa486d44a72c..b1b2102a9a31 100644 --- a/sys/dev/sym/sym_conf.h +++ b/sys/dev/sym/sym_conf.h @@ -90,11 +90,12 @@ #define SYM_CONF_DMA_BOUNDARY (1UL << 24) /* - * Max number of scatter/gather entries for en IO. + * Max number of scatter/gather entries for an I/O. * Each entry costs 8 bytes in the internal CCB data structure. - * For now 65 should suffice given the BSD O/Ses capabilities. + * We use at most 33 segments but also no more than required for handling + * MAXPHYS. */ -#define SYM_CONF_MAX_SG (33) +#define SYM_CONF_MAX_SG (MIN(33, (MAXPHYS / PAGE_SIZE) + 1)) /* * Max number of targets. |
