diff options
| author | 2026-10-04 23:17:38 +0530 | |
|---|---|---|
| committer | 2026-10-06 17:48:49 -0700 | |
| commit | 60b5268444a1e684785ee4dec8226338a1b54919 (patch) | |
| tree | e999bca663d94a2c149b89826eb264a9991d1d91 /scripts/Makefile.thinlto | |
| parent | net/packet: ignore timestamp bits when testing tx frame status (diff) | |
tap: report IFF_DETACH_QUEUE in TUNGETIFF
tun sets IFF_DETACH_QUEUE in the flags returned by TUNGETIFF when the
queue is detached, since commit 3d407a80b62f ("tun: Report whether the
queue is attached or not"). tap does not, so userspace cannot tell a
detached macvtap or ipvtap queue from an attached one.
Cloud Hypervisor ran into this when checking queue state on macvtap.
Report the flag from q->enabled, as tun does. Unlike tun, tap accepts
TUNSETIFF on a bound fd, so ignore IFF_DETACH_QUEUE there to keep
writing the TUNGETIFF flags back working.
Signed-off-by: Umang Pokhriyal <umangpokhriyall@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20261004174739.36179-1-umangpokhriyall@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
