summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorAndrew <andrew@daynix.com>2020-07-16 06:53:24 +0300
committerJason Wang <jasowang@redhat.com>2020-07-21 21:30:39 +0800
commite219d30910d8584868dd5c11df10ba2a1336034c (patch)
tree374e0bf6159413760dd2e5679fffbdf7bee01ac8 /include
parent90218a9a393c7925f330e7dcc08658e2a01d3bd4 (diff)
downloadfocaccia-qemu-e219d30910d8584868dd5c11df10ba2a1336034c.tar.gz
focaccia-qemu-e219d30910d8584868dd5c11df10ba2a1336034c.zip
hw/net: Added plen fix for IPv6
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1708065
With network backend with 'virtual header' - there was an issue
in 'plen' field. Overall, during TSO, 'plen' would be changed,
but with 'vheader' this field should be set to the size of the
payload itself instead of '0'.

Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/eth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/eth.h b/include/net/eth.h
index 7f45c678e7..0671be6916 100644
--- a/include/net/eth.h
+++ b/include/net/eth.h
@@ -186,6 +186,7 @@ struct tcp_hdr {
 
 #define ip6_nxt      ip6_ctlun.ip6_un1.ip6_un1_nxt
 #define ip6_ecn_acc  ip6_ctlun.ip6_un3.ip6_un3_ecn
+#define ip6_plen     ip6_ctlun.ip6_un1.ip6_un1_plen
 
 #define PKT_GET_ETH_HDR(p)        \
     ((struct eth_header *)(p))