diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-03-26 14:44:03 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-03-26 21:34:26 +0100 |
| commit | d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478 (patch) | |
| tree | 7dd2831731c67f3e76d3f72b4e8259d1db68b328 /contrib/qemu | |
| parent | 5a977c2f4ee8926673554b2b456e7791962b2ce2 (diff) | |
| download | passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.tar passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.tar.gz passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.tar.bz2 passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.tar.lz passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.tar.xz passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.tar.zst passt-d924b7dfc40cfaf9ebc64fe052efd8b0c45c6478.zip | |
udp_vu: Factor things out of udp_vu_reply_sock_data() loop
At the start of every cycle of the loop in udp_vu_reply_sock_data() we:
- ASSERT that uflow is not NULL
- Check if the target pif is PIF_TAP
- Initialize the v6 boolean
However, all of these depend only on the flow, which doesn't change across
the loop. This is probably a duplication from udp_vu_listen_sock_data(),
where the flow can be different for each packet. For the reply socket
case, however, factor that logic out of the loop.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu')
0 files changed, 0 insertions, 0 deletions
