]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/tap: rework scripts handling
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Thu, 30 Oct 2025 16:40:20 +0000 (19:40 +0300)
committerJason Wang <jasowang@redhat.com>
Fri, 23 Jan 2026 06:41:26 +0000 (14:41 +0800)
commitfcc56cd23eb23fa5b66e52fded2fe33152c07794
tree0518a0e388bb32ae503eb8656041592585c5f113
parentdd6709b851d7bd2119963e256fad53fdcda2ebde
net/tap: rework scripts handling

Simplify handling scripts: parse all these "no" and '\0' once, and
then keep simpler logic for net_tap_open() and net_init_tap_one(): NULL
means no script to run, otherwise run script.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Maksim Davydov <davydov-max@yandex-team.ru>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/tap.c