diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-06-13 14:36:53 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-06-13 15:45:38 +0200 |
commit | 0c335d751a21d6b46bd78dd1118860e84021984b (patch) | |
tree | 9ab3b46d9d9351fee3cd05fdcf6e155123681e10 /udp.c | |
parent | 377b666dc960d4e7faff3f2d17f7e83f2d8f7f10 (diff) | |
download | passt-0c335d751a21d6b46bd78dd1118860e84021984b.tar passt-0c335d751a21d6b46bd78dd1118860e84021984b.tar.gz passt-0c335d751a21d6b46bd78dd1118860e84021984b.tar.bz2 passt-0c335d751a21d6b46bd78dd1118860e84021984b.tar.lz passt-0c335d751a21d6b46bd78dd1118860e84021984b.tar.xz passt-0c335d751a21d6b46bd78dd1118860e84021984b.tar.zst passt-0c335d751a21d6b46bd78dd1118860e84021984b.zip |
vhost-user: compare mode MODE_PASTA and not MODE_PASST
As we are going to introduce the MODE_VU that will act like
the mode MODE_PASST, compare to MODE_PASTA rather than to add
a comparison to MODE_VU when we check for MODE_PASST.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.c')
-rw-r--r-- | udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -747,7 +747,7 @@ void udp_buf_sock_handler(const struct ctx *c, union epoll_ref ref, uint32_t eve * whether we'll use tap or splice, always go one at a time * for pasta mode. */ - ssize_t n = (c->mode == MODE_PASST ? UDP_MAX_FRAMES : 1); + ssize_t n = (c->mode == MODE_PASTA ? 1 : UDP_MAX_FRAMES); in_port_t dstport = ref.udp.port; bool v6 = ref.udp.v6; struct mmsghdr *mmh_recv; |