diff options
| author | Zhang Chen | 2017-07-04 08:53:48 +0200 |
|---|---|---|
| committer | Jason Wang | 2017-07-17 14:13:45 +0200 |
| commit | e2521f0e038e912bc8d3747813c3e6dffd9a2eaf (patch) | |
| tree | e0ed3de1edf0cfad4031a843be3f94980e778d88 /linux-headers/linux | |
| parent | net/filter-mirror.c: Introduce parameter for filter_send() (diff) | |
| download | qemu-e2521f0e038e912bc8d3747813c3e6dffd9a2eaf.tar.gz qemu-e2521f0e038e912bc8d3747813c3e6dffd9a2eaf.tar.xz qemu-e2521f0e038e912bc8d3747813c3e6dffd9a2eaf.zip | |
net/filter-mirror.c: Make filter mirror support vnet support.
We add the vnet_hdr_support option for filter-mirror, default is disabled.
If you use virtio-net-pci or other driver needs vnet_hdr, please enable it.
You can use it for example:
-object filter-mirror,id=m0,netdev=hn0,queue=tx,outdev=mirror0,vnet_hdr_support
If it has vnet_hdr_support flag, we will change the sending packet format from
struct {int size; const uint8_t buf[];} to {int size; int vnet_hdr_len; const uint8_t buf[];}.
make other module(like colo-compare) know how to parse net packet correctly.
Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
