diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-03-08 17:53:22 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-14 16:57:28 +0100 |
commit | 2d0e0084b60851f3d032d9b91454fcbebfb67061 (patch) | |
tree | 30438a9820b2810e1a245c3048de0cb083eade0d /udp.c | |
parent | f67238aa864d92e0c73af660c7f166f53ab688bc (diff) | |
download | passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.tar passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.tar.gz passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.tar.bz2 passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.tar.lz passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.tar.xz passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.tar.zst passt-2d0e0084b60851f3d032d9b91454fcbebfb67061.zip |
tap: Extend tap_send_frames() to allow multi-buffer frames
tap_send_frames() takes a vector of buffers and requires exactly one frame
per buffer. We have future plans where we want to have multiple buffers
per frame in some circumstances, so extend tap_send_frames() to take the
number of buffers per frame as a parameter.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[sbrivio: Improve comment to rembufs calculation]
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
@@ -712,7 +712,7 @@ static void udp_tap_send(const struct ctx *c, tap_iov[i].iov_len = buf_len; } - tap_send_frames(c, tap_iov + start, n); + tap_send_frames(c, tap_iov + start, 1, n); } /** |