From: Thomas Huth <thuth@redhat.com>
To: dave@treblig.org, dmitry.fleytman@gmail.com,
akihiko.odaki@daynix.com, jasowang@redhat.com,
qemu-devel@nongnu.org, QEMU Trivial <qemu-trivial@nongnu.org>
Subject: Re: [PATCH] hw/net/net_rx_pkt: Remove deadcode
Date: Wed, 2 Oct 2024 12:30:25 +0200 [thread overview]
Message-ID: <c03863be-2e55-423c-b541-73831b3ffa88@redhat.com> (raw)
In-Reply-To: <20240918225128.455043-1-dave@treblig.org>
On 19/09/2024 00.51, dave@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <dave@treblig.org>
>
> net_rx_pkt_get_l3_hdr_offset and net_rx_pkt_get_iovec_len haven't
> been used since they were added.
>
> Remove them.
>
> Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
> hw/net/net_rx_pkt.c | 13 -------------
> hw/net/net_rx_pkt.h | 9 ---------
> 2 files changed, 22 deletions(-)
>
> diff --git a/hw/net/net_rx_pkt.c b/hw/net/net_rx_pkt.c
> index 32e5f3f9cf..cec1d0523d 100644
> --- a/hw/net/net_rx_pkt.c
> +++ b/hw/net/net_rx_pkt.c
> @@ -209,12 +209,6 @@ void net_rx_pkt_get_protocols(struct NetRxPkt *pkt,
> *l4hdr_proto = pkt->l4hdr_info.proto;
> }
>
> -size_t net_rx_pkt_get_l3_hdr_offset(struct NetRxPkt *pkt)
> -{
> - assert(pkt);
> - return pkt->l3hdr_off;
> -}
> -
> size_t net_rx_pkt_get_l4_hdr_offset(struct NetRxPkt *pkt)
> {
> assert(pkt);
> @@ -427,13 +421,6 @@ struct iovec *net_rx_pkt_get_iovec(struct NetRxPkt *pkt)
> return pkt->vec;
> }
>
> -uint16_t net_rx_pkt_get_iovec_len(struct NetRxPkt *pkt)
> -{
> - assert(pkt);
> -
> - return pkt->vec_len;
> -}
> -
> void net_rx_pkt_set_vhdr(struct NetRxPkt *pkt,
> struct virtio_net_hdr *vhdr)
> {
> diff --git a/hw/net/net_rx_pkt.h b/hw/net/net_rx_pkt.h
> index 55ec67a1a7..e8df9cfd52 100644
> --- a/hw/net/net_rx_pkt.h
> +++ b/hw/net/net_rx_pkt.h
> @@ -267,15 +267,6 @@ net_rx_pkt_attach_data(struct NetRxPkt *pkt, const void *data,
> */
> struct iovec *net_rx_pkt_get_iovec(struct NetRxPkt *pkt);
>
> -/**
> -* returns io vector length that holds the attached data
> -*
> -* @pkt: packet
> -* @ret: IOVec length
> -*
> -*/
> -uint16_t net_rx_pkt_get_iovec_len(struct NetRxPkt *pkt);
> -
> /**
> * prints rx packet data if debug is enabled
> *
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2024-10-02 10:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 22:51 [PATCH] hw/net/net_rx_pkt: Remove deadcode dave
2024-10-02 10:30 ` Thomas Huth [this message]
2024-10-03 4:53 ` Akihiko Odaki
2024-10-03 8:27 ` Michael Tokarev
2024-10-03 10:54 ` Dr. David Alan Gilbert
2024-10-09 8:32 ` Jason Wang
2024-10-09 9:05 ` Michael Tokarev
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=c03863be-2e55-423c-b541-73831b3ffa88@redhat.com \
--to=thuth@redhat.com \
--cc=akihiko.odaki@daynix.com \
--cc=dave@treblig.org \
--cc=dmitry.fleytman@gmail.com \
--cc=jasowang@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/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).