diff options
author | Suman Anna <s-anna@ti.com> | 2014-09-16 22:33:07 +0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2014-11-26 19:24:36 +0300 |
commit | b1b9891441fa33fd0d49b5cb3aa7f04bca1cc1db (patch) | |
tree | 50101517ccd4202654ac1146e6d2d2d9e3c9668f /block/blk-mq-tag.h | |
parent | 5d01410fe4d92081f349b013a2e7a95429e4f2c9 (diff) | |
download | linux-b1b9891441fa33fd0d49b5cb3aa7f04bca1cc1db.tar.xz |
rpmsg: use less buffers when vrings are small
Adjust the number of rpmsg buffers to rely on the size of the
vring, instead of using the hard coded value of 512 (256 per
direction).
This is needed when small vrings are being used, where 256
buffers are too much to fit in a vring.
While considering the vring size, keep using the 512 hard coded
value as an upper limit to avoid wacky resource tables consuming
unreasonable amount of memory.
NOTE: The number of buffers is already assumed to be symmetrical
in each direction, and that logic is unchanged.
Signed-off-by: Suman Anna <s-anna@ti.com>
[edit commit message, small code and comment simplification]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'block/blk-mq-tag.h')
0 files changed, 0 insertions, 0 deletions