]> 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)
commit8710fd6d570a27c82108bcee31162914d6c973df
treeda30ae330b830b59a6f819d0cc5a466fe07794e3
parentd422324a1fab4f8c6f155444b234c9d73308b1f4
net/smc: Allow SMC-D 1MB DMB allocations

Commit 415e3c0de696e ("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