aboutsummaryrefslogtreecommitdiff
path: root/include/net/eth.h
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-02-23 19:20:09 +0900
committerJason Wang <jasowang@redhat.com>2023-03-10 15:35:38 +0800
commit02ef5fdc092bd495d6afd3c0212ff2e45931886d (patch)
tree0f0869f8222e0708164fb2694447825e0a420a4b /include/net/eth.h
parentffbd2dbd8e647b68406179697c06d2668438b789 (diff)
downloadqemu-02ef5fdc092bd495d6afd3c0212ff2e45931886d.zip
qemu-02ef5fdc092bd495d6afd3c0212ff2e45931886d.tar.gz
qemu-02ef5fdc092bd495d6afd3c0212ff2e45931886d.tar.bz2
hw/net/net_tx_pkt: Implement TCP segmentation
There was no proper implementation of TCP segmentation before this change, and net_tx_pkt relied solely on IPv4 fragmentation. Not only this is not aligned with the specification, but it also resulted in corrupted IPv6 packets. This is particularly problematic for the igb, a new proposed device implementation; igb provides loopback feature for VMDq and the feature relies on software segmentation. Implement proper TCP segmentation in net_tx_pkt to fix such a scenario. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net/eth.h')
-rw-r--r--include/net/eth.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/eth.h b/include/net/eth.h
index 6e699b0..2b4374f 100644
--- a/include/net/eth.h
+++ b/include/net/eth.h
@@ -400,11 +400,6 @@ void eth_get_protocols(const struct iovec *iov, int iovcnt,
eth_ip4_hdr_info *ip4hdr_info,
eth_l4_hdr_info *l4hdr_info);
-void eth_setup_ip4_fragmentation(const void *l2hdr, size_t l2hdr_len,
- void *l3hdr, size_t l3hdr_len,
- size_t l3payload_len,
- size_t frag_offset, bool more_frags);
-
void
eth_fix_ip4_checksum(void *l3hdr, size_t l3hdr_len);