From: "Cédric Le Goater" <clg@redhat.com>
To: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: "Jason Wang" <jasowang@redhat.com>,
"Dmitry Fleytman" <dmitry.fleytman@gmail.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Thomas Huth" <thuth@redhat.com>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Beraldo Leal" <bleal@redhat.com>,
"Cleber Rosa" <crosa@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Alexander Bulekov" <alxndr@bu.edu>,
"Bandan Das" <bsd@redhat.com>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Darren Kenny" <darren.kenny@oracle.com>,
"Qiuhao Li" <Qiuhao.Li@outlook.com>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org, devel@daynix.com,
"Yan Vugenfirer" <yvugenfi@redhat.com>,
"Yuri Benditovich" <yuri.benditovich@daynix.com>,
"Sriram Yagnaraman" <sriram.yagnaraman@est.tech>,
"Gal Hammer" <gal.hammer@sap.com>
Subject: Re: [PATCH v7 1/9] hw/net/net_tx_pkt: Introduce net_tx_pkt_get_eth_hdr
Date: Fri, 3 Feb 2023 11:28:59 +0100 [thread overview]
Message-ID: <d07245ed-5df9-f477-9f71-fc71cde368bd@redhat.com> (raw)
In-Reply-To: <20230201042615.34706-2-akihiko.odaki@daynix.com>
On 2/1/23 05:26, Akihiko Odaki wrote:
> Expose the ethernet header so that igb can utilize it to perform the
> internal routing among its SR-IOV functions.
>
> Signed-off-by: Gal Hammer <gal.hammer@sap.com>
> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
I don't see where it is used ? Am I missing something ?
Thanks,
C.
> ---
> hw/net/net_tx_pkt.c | 6 ++++++
> hw/net/net_tx_pkt.h | 8 ++++++++
> 2 files changed, 14 insertions(+)
>
> diff --git a/hw/net/net_tx_pkt.c b/hw/net/net_tx_pkt.c
> index 986a3adfe9..be5b65f0e9 100644
> --- a/hw/net/net_tx_pkt.c
> +++ b/hw/net/net_tx_pkt.c
> @@ -273,6 +273,12 @@ bool net_tx_pkt_parse(struct NetTxPkt *pkt)
> }
> }
>
> +struct eth_header *net_tx_pkt_get_eth_hdr(struct NetTxPkt *pkt)
> +{
> + assert(pkt);
> + return (struct eth_header *)&pkt->l2_hdr;
> +}
> +
> struct virtio_net_hdr *net_tx_pkt_get_vhdr(struct NetTxPkt *pkt)
> {
> assert(pkt);
> diff --git a/hw/net/net_tx_pkt.h b/hw/net/net_tx_pkt.h
> index f57b4e034b..2e51b73b6c 100644
> --- a/hw/net/net_tx_pkt.h
> +++ b/hw/net/net_tx_pkt.h
> @@ -45,6 +45,14 @@ void net_tx_pkt_init(struct NetTxPkt **pkt, PCIDevice *pci_dev,
> */
> void net_tx_pkt_uninit(struct NetTxPkt *pkt);
>
> +/**
> + * get ethernet header
> + *
> + * @pkt: packet
> + * @ret: ethernet header
> + */
> +struct eth_header *net_tx_pkt_get_eth_hdr(struct NetTxPkt *pkt);
> +
> /**
> * get virtio header
> *
next prev parent reply other threads:[~2023-02-03 10:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 4:26 [PATCH v7 0/9] Introduce igb Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 1/9] hw/net/net_tx_pkt: Introduce net_tx_pkt_get_eth_hdr Akihiko Odaki
2023-02-03 10:28 ` Cédric Le Goater [this message]
2023-02-01 4:26 ` [PATCH v7 2/9] pcie: Introduce pcie_sriov_num_vfs Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 3/9] e1000: Split header files Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 4/9] Intrdocue igb device emulation Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 5/9] tests/qtest/e1000e-test: Fabricate ethernet header Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 6/9] tests/qtest/libqos/e1000e: Export macreg functions Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 7/9] igb: Introduce qtest for igb device Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 8/9] tests/avocado: Add igb test Akihiko Odaki
2023-02-01 4:26 ` [PATCH v7 9/9] docs/system/devices/igb: Add igb documentation Akihiko Odaki
2023-02-03 10:21 ` Cédric Le Goater
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=d07245ed-5df9-f477-9f71-fc71cde368bd@redhat.com \
--to=clg@redhat.com \
--cc=Qiuhao.Li@outlook.com \
--cc=akihiko.odaki@daynix.com \
--cc=alex.bennee@linaro.org \
--cc=alxndr@bu.edu \
--cc=bleal@redhat.com \
--cc=bsd@redhat.com \
--cc=crosa@redhat.com \
--cc=darren.kenny@oracle.com \
--cc=devel@daynix.com \
--cc=dmitry.fleytman@gmail.com \
--cc=gal.hammer@sap.com \
--cc=jasowang@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=sriram.yagnaraman@est.tech \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
--cc=wainersm@redhat.com \
--cc=yuri.benditovich@daynix.com \
--cc=yvugenfi@redhat.com \
/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.
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 NNTP newsgroup(s).