From d6b732e953673e4e1f4b36868c206a08213b6708 Mon Sep 17 00:00:00 2001 From: Zhang Chen Date: Tue, 4 Jul 2017 14:53:45 +0800 Subject: net: Add vnet_hdr_len arguments in NetClientState Add vnet_hdr_len arguments in NetClientState that make other module get real vnet_hdr_len easily. Signed-off-by: Zhang Chen Signed-off-by: Jason Wang --- net/net.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net') diff --git a/net/net.c b/net/net.c index 6235aabed8..b62ce105a2 100644 --- a/net/net.c +++ b/net/net.c @@ -492,6 +492,7 @@ void qemu_set_vnet_hdr_len(NetClientState *nc, int len) return; } + nc->vnet_hdr_len = len; nc->info->set_vnet_hdr_len(nc, len); } -- cgit v1.2.3-55-g7522