On Mon, 18 Mar 2019 12:55:23 -0400
olegpoly123 wrote:
> long iov_max = sysconf(_SC_IOV_MAX);
> +
> + if (iov_max <= 0) {
> + TAP_LOG(WARNING,
> + "_SC_IOV_MAX is not defined. Using %d as default\n",
> + TAP_IOV_DEFAULT_MAX);
> +
If the value _SC_IOV_MAX is missing, sysconf returns -1.
In this case, iov_max is set to a default value of 1024.
Fixes: ec12df9504fe ("net/tap: fix support for large Rx queues")
Cc: sta...@dpdk.org
Signed-off-by: Oleg Polyakov
Acked-by: Keith Wiles
---
drivers/net/tap/rte_eth_tap.c | 9 ++
2 matches
Mail list logo