net/smc: fix valid DMBE buffer sizes
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 14 Oct 2020 17:43:28 +0000 (19:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 Oct 2020 16:54:43 +0000 (09:54 -0700)
commitef12ad45880b696eb993d86c481ca891836ab593
treef4d46f5420b536e7db6941834e87adbaf887c9e7
parentd535ca1367787ddc8bff22d679a11f864c8228bc
net/smc: fix valid DMBE buffer sizes

The SMCD_DMBE_SIZES should include all valid DMBE buffer sizes, so the
correct value is 6 which means 1MB. With 7 the registration of an ISM
buffer would always fail because of the invalid size requested.
Fix that and set the value to 6.

Fixes: c6ba7c9ba43d ("net/smc: add base infrastructure for SMC-D and ISM")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/smc_core.c