[dpdk-dev] [PATCH] net/tap: fix missing _SC_IOV_MAX
Stephen Hemminger
stephen at networkplumber.org
Sat Mar 9 04:02:46 CET 2019
On Fri, 8 Mar 2019 13:00:16 -0500
olegpoly123 <olegp123 at walla.co.il> 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);
> + iov_max = TAP_IOV_DEFAULT_MAX;
> + }
You haven't listened to my comment about mixing declaration and
code. Why?
More information about the dev
mailing list