diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-02-26 23:37:05 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-02-26 23:37:05 +0100 |
commit | a095fbc45738d3992d5211e2991ebf9d2a8fb0c0 (patch) | |
tree | 86464036e062f6a3a55c8496568af9b4dc76e9f1 /passt.c | |
parent | 6dc1ec3c7ac1ee91984ba97f7fabac9eb2411863 (diff) | |
download | passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.tar passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.tar.gz passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.tar.bz2 passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.tar.lz passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.tar.xz passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.tar.zst passt-a095fbc45738d3992d5211e2991ebf9d2a8fb0c0.zip |
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>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -339,8 +339,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE)) - perror("madvise"); + madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE); __openlog(log_name, 0, LOG_DAEMON); |