]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: limit refill Rx threshold to 256 to avoid latency issues
authorArthur Kiyanovski <akiyano@amazon.com>
Thu, 11 Oct 2018 08:26:23 +0000 (11:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:13:51 +0000 (10:13 -0700)
commitcda3b757d5a41a8a85567b076f8788e5f590037c
tree90ca00914c5a65cb39a81bb496f9c22dee112ba7
parent157f20d314320a20c85b187446c6d32004473f27
net: ena: limit refill Rx threshold to 256 to avoid latency issues

Currently Rx refill is done when the number of required descriptors is
above 1/8 queue size. With a default of 1024 entries per queue the
threshold is 128 descriptors.
There is intention to increase the queue size to 8196 entries.
In this case threshold of 1024 descriptors is too large and can hurt
latency.
Add another limitation to Rx threshold to be at most 256 descriptors.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h