commit | d6b732e953673e4e1f4b36868c206a08213b6708 | [log] [tgz] |
---|---|---|
author | Zhang Chen <zhangchen.fnst@cn.fujitsu.com> | Tue Jul 04 14:53:45 2017 +0800 |
committer | Jason Wang <jasowang@redhat.com> | Mon Jul 17 20:02:09 2017 +0800 |
tree | 939a4e03d76b3101514ff6ec84bc6484a68706d6 | |
parent | 6632f6ff96f0537fc34cdc00c760656fc62e23c5 [diff] [blame] |
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 <zhangchen.fnst@cn.fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
diff --git a/net/net.c b/net/net.c index 6235aab..b62ce10 100644 --- a/net/net.c +++ b/net/net.c
@@ -492,6 +492,7 @@ return; } + nc->vnet_hdr_len = len; nc->info->set_vnet_hdr_len(nc, len); }