ntb: Correct modinfo usage statement for ntb_perf
PATCH 1/1 ntb: Correct modinfo usage statement for ntb_perf
The order parameters are powers of 2; adjust the usage information to use correct mathematical representations.
Signed-off-by Gary R Hook <[email protected]>
--- drivers/ntb/test/ntb_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ntb/test/ntb_perf.c +2 -2
@@ -91,11 +91,11 @@static unsigned int seg_order =19 ;/* 512K */ module_param (seg_order, uint,0644 ); -MODULE_PARM_DESC (seg_order,"size order [n^2] of buffer segment for testing" ); +MODULE_PARM_DESC (seg_order,"size order [2^n] of buffer segment for testing" );static unsigned int run_order =32 ;/* 4G */ module_param (run_order, uint,0644 ); -MODULE_PARM_DESC (run_order,"size order [n^2] of total data to transfer" ); +MODULE_PARM_DESC (run_order,"size order [2^n] of total data to transfer" );static bool use_dma;/* default to 0 */ module_param (use_dma, bool,0644 );
Quoted 4 lines · Gary R Hook
The order parameters are powers of 2; adjust the usage information to use correct mathematical representations.
Signed-off-by Gary R Hook <[email protected]>
Acked-by Dave Jiang <[email protected]>
Quoted 23 lines
--- drivers/ntb/test/ntb_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/ntb/test/ntb_perf.c +2
-2@@ -91,11 +91,11 @@static unsigned int seg_order =19 ;/* 512K */ module_param (seg_order, uint,0644 ); -MODULE_PARM_DESC (seg_order,"size order [n^2] of buffer segment for testing" ); +MODULE_PARM_DESC (seg_order,"size order [2^n] of buffer segment for testing" );static unsigned int run_order =32 ;/* 4G */ module_param (run_order, uint,0644 ); -MODULE_PARM_DESC (run_order,"size order [n^2] of total data to transfer" ); +MODULE_PARM_DESC (run_order,"size order [2^n] of total data to transfer" );static bool use_dma;/* default to 0 */ module_param (use_dma, bool,0644 );
Jon Mason
maintainerQuoted 8 lines · Dave Jiang
Quoted 4 lines · Gary R Hook
The order parameters are powers of 2; adjust the usage information to use correct mathematical representations.
Signed-off-by Gary R Hook <[email protected]>Acked-by Dave Jiang <[email protected]>
Sorry, I think I missed this one. Adding to my ntb branch with the following line
Fixes 8a7b6a778a85 ("ntb: ntb perf tool")
This enables the stable kernels it is a bug fix and to pick it up.
Quoted 24 lines
Quoted 24 lines
--- drivers/ntb/test/ntb_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/ntb/test/ntb_perf.c +2
-2@@ -91,11 +91,11 @@static unsigned int seg_order =19 ;/* 512K */ module_param (seg_order, uint,0644 ); -MODULE_PARM_DESC (seg_order,"size order [n^2] of buffer segment for testing" ); +MODULE_PARM_DESC (seg_order,"size order [2^n] of buffer segment for testing" );static unsigned int run_order =32 ;/* 4G */ module_param (run_order, uint,0644 ); -MODULE_PARM_DESC (run_order,"size order [n^2] of total data to transfer" ); +MODULE_PARM_DESC (run_order,"size order [2^n] of total data to transfer" );static bool use_dma;/* default to 0 */ module_param (use_dma, bool,0644 );