]> git.baikalelectronics.ru Git - kernel.git/commit
NTB: allocate number transport entries depending on size of ring size
authorDave Jiang <dave.jiang@intel.com>
Fri, 8 Apr 2016 17:49:06 +0000 (10:49 -0700)
committerJon Mason <jdmason@kudzu.us>
Fri, 5 Aug 2016 14:21:05 +0000 (10:21 -0400)
commitfd574327c0f6c59aa7a66e9604110d290f4f3fdf
tree606a8e0132113a30a10ca60364a5da217367fc09
parent9fa01e4d9665cdb38c97784d5032a3f0d1cc0a8f
NTB: allocate number transport entries depending on size of ring size

Currently we only allocate a fixed default number of descriptors for the tx
and rx side. We should dynamically resize it to the number of descriptors
resides in the transport rings. We should know the number of transmit
descriptors at initializaiton. We will allocate the default number of
descriptors for receive side and allocate additional ones when we know the
actual max entries for receive.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Acked-by: Allen Hubbe <allen.hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c