]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Allow SMC-D 1MB DMB allocations
authorStefan Raspl <raspl@linux.ibm.com>
Mon, 9 Aug 2021 08:10:14 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Aug 2021 09:57:04 +0000 (10:57 +0100)
commite99ef67ba4291ae14322c3709f43ca345b62ca1b
treeda30ae330b830b59a6f819d0cc5a466fe07794e3
parent6f443b3956580932485e44152a9ab03152468176
net/smc: Allow SMC-D 1MB DMB allocations

Commit c387ae7859d66 ("net/smc: introduce sg-logic for RMBs") introduced
a restriction for RMB allocations as used by SMC-R. However, SMC-D does
not use scatter-gather lists to back its DMBs, yet it was limited by
this restriction, still.
This patch exempts SMC, but limits allocations to the maximum RMB/DMB
size respectively.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c