mirror of
https://passt.top/passt
synced 2024-09-28 18:15:49 +00:00
passt: Don't warn on failed madvise()
A kernel might not be configured with CONFIG_TRANSPARENT_HUGEPAGE, especially on embedded systems. Ignore the error, it doesn't affect functionality. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
6dc1ec3c7a
commit
a095fbc457
3
passt.c
3
passt.c
@ -339,8 +339,7 @@ int main(int argc, char **argv)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE))
|
madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE);
|
||||||
perror("madvise");
|
|
||||||
|
|
||||||
__openlog(log_name, 0, LOG_DAEMON);
|
__openlog(log_name, 0, LOG_DAEMON);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user