aboutgitcodebugslistschat
path: root/udp.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2022-11-08 21:43:35 +0100
committerLaurent Vivier <lvivier@redhat.com>2024-03-12 11:54:26 +0100
commitbb3877dde3d1403806092d121d64616c332a950c (patch)
treebbc97552c88beca7358f14e9c53d52cceaa5b0f6 /udp.c
parent27a713947cc63e3f204415c95522664f2ca3b7c0 (diff)
downloadpasst-bb3877dde3d1403806092d121d64616c332a950c.tar
passt-bb3877dde3d1403806092d121d64616c332a950c.tar.gz
passt-bb3877dde3d1403806092d121d64616c332a950c.tar.bz2
passt-bb3877dde3d1403806092d121d64616c332a950c.tar.lz
passt-bb3877dde3d1403806092d121d64616c332a950c.tar.xz
passt-bb3877dde3d1403806092d121d64616c332a950c.tar.zst
passt-bb3877dde3d1403806092d121d64616c332a950c.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>
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udp.c b/udp.c
index a215120..de5313d 100644
--- a/udp.c
+++ b/udp.c
@@ -763,7 +763,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;