[PATCH v9 0/7] net/tap: simple refactoring

Vladimir Sementsov-Ogievskiy posted 7 patches 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251030164023.710048-1-vsementsov@yandex-team.ru
Maintainers: Jason Wang <jasowang@redhat.com>
net/tap-bsd.c     |  3 +-
net/tap-linux.c   | 19 +++-------
net/tap-solaris.c |  3 +-
net/tap-stub.c    |  3 +-
net/tap.c         | 94 +++++++++++++++++++++++++----------------------
net/tap_int.h     |  3 +-
6 files changed, 62 insertions(+), 63 deletions(-)
[PATCH v9 0/7] net/tap: simple refactoring
Posted by Vladimir Sementsov-Ogievskiy 2 weeks ago
Hi all!

These are some refactoring patches, extracted from

[PATCH v8 00/19] virtio-net: live-TAP local migration

These patches are good in general, even not considered as
preparation to the feature. I hope, they may be queued
in advance, to simplify further work on the rest of
the series.

The (reworked) rest of the series is coming soon and will
be based on this one.

v9: Mostly unchanged, so keep r-bs. Still, drop t-bs, as there
were still some conflicts due to commits reordering.

Vladimir Sementsov-Ogievskiy (7):
  net/tap: net_init_tap_one(): drop extra error propagation
  net/tap: net_init_tap_one(): move parameter checking earlier
  net/tap: pass NULL to net_init_tap_one() in cases when scripts are
    NULL
  net/tap: rework scripts handling
  net/tap: setup exit notifier only when needed
  net/tap: tap_set_sndbuf(): add return value
  net/tap: rework tap_set_sndbuf()

 net/tap-bsd.c     |  3 +-
 net/tap-linux.c   | 19 +++-------
 net/tap-solaris.c |  3 +-
 net/tap-stub.c    |  3 +-
 net/tap.c         | 94 +++++++++++++++++++++++++----------------------
 net/tap_int.h     |  3 +-
 6 files changed, 62 insertions(+), 63 deletions(-)

-- 
2.48.1
Re: [PATCH v9 0/7] net/tap: simple refactoring
Posted by Lei Yang 1 week, 2 days ago
Tested this series of patches with virtio-net regression tests,
everything works fine.

Tested-by: Lei Yang <leiyang@redhat.com>

On Fri, Oct 31, 2025 at 12:40 AM Vladimir Sementsov-Ogievskiy
<vsementsov@yandex-team.ru> wrote:
>
> Hi all!
>
> These are some refactoring patches, extracted from
>
> [PATCH v8 00/19] virtio-net: live-TAP local migration
>
> These patches are good in general, even not considered as
> preparation to the feature. I hope, they may be queued
> in advance, to simplify further work on the rest of
> the series.
>
> The (reworked) rest of the series is coming soon and will
> be based on this one.
>
> v9: Mostly unchanged, so keep r-bs. Still, drop t-bs, as there
> were still some conflicts due to commits reordering.
>
> Vladimir Sementsov-Ogievskiy (7):
>   net/tap: net_init_tap_one(): drop extra error propagation
>   net/tap: net_init_tap_one(): move parameter checking earlier
>   net/tap: pass NULL to net_init_tap_one() in cases when scripts are
>     NULL
>   net/tap: rework scripts handling
>   net/tap: setup exit notifier only when needed
>   net/tap: tap_set_sndbuf(): add return value
>   net/tap: rework tap_set_sndbuf()
>
>  net/tap-bsd.c     |  3 +-
>  net/tap-linux.c   | 19 +++-------
>  net/tap-solaris.c |  3 +-
>  net/tap-stub.c    |  3 +-
>  net/tap.c         | 94 +++++++++++++++++++++++++----------------------
>  net/tap_int.h     |  3 +-
>  6 files changed, 62 insertions(+), 63 deletions(-)
>
> --
> 2.48.1
>