diff options
author | Dr. David Alan Gilbert <dave@treblig.org> | 2024-09-18 23:51:28 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-10-03 17:26:05 +0300 |
commit | 54fac860dfb8d549923ceddaebb274bdfb49e674 (patch) | |
tree | a724cce761e86440dfbb1ce3959fd81988b71772 | |
parent | e093934ee184f2a00eacd510ece0c66898991d00 (diff) | |
download | qemu-54fac860dfb8d549923ceddaebb274bdfb49e674.zip qemu-54fac860dfb8d549923ceddaebb274bdfb49e674.tar.gz qemu-54fac860dfb8d549923ceddaebb274bdfb49e674.tar.bz2 |
hw/net/net_rx_pkt: Remove deadcode
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>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: also removed net_rx_pkt_get_l3_hdr_offset prototype from hw/net/net_rx_pkt.h as suggested by Akihiko Odaki)
-rw-r--r-- | hw/net/net_rx_pkt.c | 13 | ||||
-rw-r--r-- | hw/net/net_rx_pkt.h | 17 |
2 files changed, 0 insertions, 30 deletions
diff --git a/hw/net/net_rx_pkt.c b/hw/net/net_rx_pkt.c index 0ea8734..f87b6f0 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); @@ -426,13 +420,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 55ec67a..ea077f5 100644 --- a/hw/net/net_rx_pkt.h +++ b/hw/net/net_rx_pkt.h @@ -78,14 +78,6 @@ void net_rx_pkt_get_protocols(struct NetRxPkt *pkt, EthL4HdrProto *l4hdr_proto); /** -* fetches L3 header offset -* -* @pkt: packet -* -*/ -size_t net_rx_pkt_get_l3_hdr_offset(struct NetRxPkt *pkt); - -/** * fetches L4 header offset * * @pkt: packet @@ -268,15 +260,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 * * @pkt: packet |