From: David Gibson <david@gibson.dropbear.id.au>
To: Ammar Yasser <aerosound161@gmail.com>
Cc: passt-dev@passt.top, eperezma@redhat.com
Subject: Re: [RFC v3 1/8] tap: Move the tap_hdr file to a separate file
Date: Fri, 7 Aug 2026 15:40:02 +1000 [thread overview]
Message-ID: <anVvrexbGJ5Ib-q8@zatzit> (raw)
In-Reply-To: <20260802132155.870796-2-aerosound161@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1934 bytes --]
On Sun, Aug 02, 2026 at 01:21:48PM +0000, Ammar Yasser wrote:
> It was defined in tap.h, put it on its own so that future callers won't
> need to depend on all definitions in tap.h
>
> Signed-off-by: Ammar Yasser <aerosound161@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> tap.h | 9 +--------
> tap_hdr.h | 19 +++++++++++++++++++
> 2 files changed, 20 insertions(+), 8 deletions(-)
> create mode 100644 tap_hdr.h
>
> diff --git a/tap.h b/tap.h
> index b335933..1625975 100644
> --- a/tap.h
> +++ b/tap.h
> @@ -10,6 +10,7 @@
> #include <stdint.h>
>
> #include "passt.h"
> +#include "tap_hdr.h"
>
> /** L2_MAX_LEN_PASTA - Maximum frame length for pasta mode (with L2 header)
> *
> @@ -38,14 +39,6 @@
>
> struct udphdr;
>
> -/**
> - * struct tap_hdr - tap backend specific headers
> - * @vnet_len: Frame length (for qemu socket transport)
> - */
> -struct tap_hdr {
> - uint32_t vnet_len;
> -} __attribute__((packed));
> -
> /**
> * tap_hdr_iov() - struct iovec for a tap header
> * @c: Execution context
> diff --git a/tap_hdr.h b/tap_hdr.h
> new file mode 100644
> index 0000000..15bdb5b
> --- /dev/null
> +++ b/tap_hdr.h
> @@ -0,0 +1,19 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later
> + * Copyright (c) 2021 Red Hat GmbH
> + * Author: Stefano Brivio <sbrivio@redhat.com>
> + */
> +
> +#ifndef TAP_HDR_H
> +#define TAP_HDR_H
> +
> +#include <stdint.h>
> +
> +/**
> + * struct tap_hdr - tap backend specific headers
> + * @vnet_len: Frame length (for qemu socket transport)
> + */
> +struct tap_hdr {
> + uint32_t vnet_len;
> +} __attribute__((packed));
> +
> +#endif /* TAP_HDR_H */
> --
> 2.34.1
>
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-08-07 10:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 13:21 [RFC v3 0/8] Add vhost-net kernel support to pasta Ammar Yasser
2026-08-02 13:21 ` [RFC v3 1/8] tap: Move the tap_hdr file to a separate file Ammar Yasser
2026-08-07 5:40 ` David Gibson [this message]
2026-08-02 13:21 ` [RFC v3 2/8] udp,tcp: Make protocol specific buffers public Ammar Yasser
2026-08-07 5:56 ` David Gibson
2026-08-02 13:21 ` [RFC v3 3/8] conf: Add context fields, epoll types and the --vhost flag to pasta Ammar Yasser
2026-08-02 13:21 ` [RFC v3 4/8] virtio: Define the pasta vhost interface Ammar Yasser
2026-08-02 13:21 ` [RFC v3 5/8] virtio: Implement the pasta vhost functions Ammar Yasser
2026-08-02 13:21 ` [RFC v3 6/8] virtio: Implement pasta vhost acceleration guest->pasta path Ammar Yasser
2026-08-02 13:21 ` [RFC v3 7/8] pasta: Implement pasta vhost TX (pasta->guest) prerequisites Ammar Yasser
2026-08-02 13:21 ` [RFC v3 8/8] tap: Implement pasta vhost TX Ammar Yasser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=anVvrexbGJ5Ib-q8@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=aerosound161@gmail.com \
--cc=eperezma@redhat.com \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).