[PATCH v4 0/8] TAP initialization refactoring

Vladimir Sementsov-Ogievskiy posted 8 patches 2 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250911165101.1637608-1-vsementsov@yandex-team.ru
Maintainers: Jason Wang <jasowang@redhat.com>
There is a newer version of this series
net/tap-bsd.c     |   3 +-
net/tap-linux.c   |  19 ++----
net/tap-solaris.c |   3 +-
net/tap-stub.c    |   3 +-
net/tap.c         | 146 +++++++++++++++++++++-------------------------
net/tap_int.h     |   4 +-
6 files changed, 80 insertions(+), 98 deletions(-)
[PATCH v4 0/8] TAP initialization refactoring
Posted by Vladimir Sementsov-Ogievskiy 2 weeks, 2 days ago
Hi all!

Here is the simple and independent part of v3. The long tail
of the series I'll rework and send in separate.

v4: - finally, use bool reaturn value to add to errp functions
    - rework tap_set_sndbuf

Vladimir Sementsov-Ogievskiy (8):
  net/tap: net_init_tap_one(): add return value
  net/tap: rework tap_set_sndbuf()
  net/tap: net_init_tap_one(): drop extra error propagation
  net/tap: launch_script(): add return value
  net/tap: net_init_tap_one(): move parameter checking earlier
  net/tap: net_init_tap(): refactor parameter checking
  net/tap: net_init_tap(): drop extra variable vhostfdname
  net/tap: move local variables related to the latter case to else
    branch

 net/tap-bsd.c     |   3 +-
 net/tap-linux.c   |  19 ++----
 net/tap-solaris.c |   3 +-
 net/tap-stub.c    |   3 +-
 net/tap.c         | 146 +++++++++++++++++++++-------------------------
 net/tap_int.h     |   4 +-
 6 files changed, 80 insertions(+), 98 deletions(-)

-- 
2.48.1
Re: [PATCH v4 0/8] TAP initialization refactoring
Posted by Lei Yang 1 week, 6 days ago
Tested this series of patches with virtio-net regression tests,
everything works fine.

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

On Fri, Sep 12, 2025 at 12:51 AM Vladimir Sementsov-Ogievskiy
<vsementsov@yandex-team.ru> wrote:
>
> Hi all!
>
> Here is the simple and independent part of v3. The long tail
> of the series I'll rework and send in separate.
>
> v4: - finally, use bool reaturn value to add to errp functions
>     - rework tap_set_sndbuf
>
> Vladimir Sementsov-Ogievskiy (8):
>   net/tap: net_init_tap_one(): add return value
>   net/tap: rework tap_set_sndbuf()
>   net/tap: net_init_tap_one(): drop extra error propagation
>   net/tap: launch_script(): add return value
>   net/tap: net_init_tap_one(): move parameter checking earlier
>   net/tap: net_init_tap(): refactor parameter checking
>   net/tap: net_init_tap(): drop extra variable vhostfdname
>   net/tap: move local variables related to the latter case to else
>     branch
>
>  net/tap-bsd.c     |   3 +-
>  net/tap-linux.c   |  19 ++----
>  net/tap-solaris.c |   3 +-
>  net/tap-stub.c    |   3 +-
>  net/tap.c         | 146 +++++++++++++++++++++-------------------------
>  net/tap_int.h     |   4 +-
>  6 files changed, 80 insertions(+), 98 deletions(-)
>
> --
> 2.48.1
>