net/tap: fix support for large Rx queues
authorPascal Mazon <pascal.mazon@6wind.com>
Thu, 27 Apr 2017 13:51:42 +0000 (15:51 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 20:32:55 +0000 (22:32 +0200)
commitec12df9504fe416bcde30224c2b02251151d679c
treeffb08a7c373e552f029c04c15214c943d66cb3f4
parentb31eb105463fa1844c19fde382dd6bd294329831
net/tap: fix support for large Rx queues

Rx queues configured with more than 1023 descriptors cause readv() calls to
fail due to more iovec entries than permitted by the kernel. As a result,
no packets can be received.

Quietly limit internal Rx queue size to the maximum number of iovec entries
to fix this issue.

Fixes: 0781f5762cfe ("net/tap: support segmented mbufs")

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/rte_eth_tap.c