ntb_transport: Limit memory windows based on available, scratchpads
authorShyam Sundar S K <ssundark@amd.com>
Wed, 7 Dec 2016 17:07:05 +0000 (22:37 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 23 Dec 2016 21:10:35 +0000 (16:10 -0500)
commitb17faba03fc72091f4d040b879def004316952ec
tree656172d04639633675a0b2b419083ecf9d675a14
parent872deb21038e90903a40ab6a29b9d0652a6ebc8d
ntb_transport: Limit memory windows based on available, scratchpads

When the underlying NTB H/W driver advertises more memory windows
than the number of scratchpads available to setup MW's, it is likely
that we may end up filling the remaining memory windows with garbage.
So to avoid that, lets limit the memory windows that transport driver
can setup based on the available scratchpads.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c