diff options
author | Andrew | 2020-07-16 05:53:24 +0200 |
---|---|---|
committer | Jason Wang | 2020-07-21 15:30:39 +0200 |
commit | e219d30910d8584868dd5c11df10ba2a1336034c (patch) | |
tree | 374e0bf6159413760dd2e5679fffbdf7bee01ac8 /include/net | |
parent | Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-07-2... (diff) | |
download | qemu-e219d30910d8584868dd5c11df10ba2a1336034c.tar.gz qemu-e219d30910d8584868dd5c11df10ba2a1336034c.tar.xz 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/net')
-rw-r--r-- | include/net/eth.h | 1 |
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)) |