OSDN Git Service

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

Commit a3fe3d01bd0d7 ("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