If user use -device virtio-net-pci, virtio-net driver will add a header
to raw net packet that colo-proxy can't handle it. COLO-proxy just
focus on the packet payload, so we skip the virtio-net header to compare
the sent packet that primary guest's to secondary guest's.
Zhang Chen (10):
net: Add vnet_hdr_len related callback in NetClientInfo
net/tap.c: Add tap_get_vnet_hdr_len and tap_get_using_vnet_hdr
function
net/netmap.c: Add netmap_get_vnet_hdr_len function
net/filter-mirror.c: Add filter-mirror and filter-redirector vnet
support.
net/net.c: Add vnet header length to SocketReadState
tests/e1000e-test.c : change e1000e test case send data format
tests/virtio-net-test.c : change virtio-net test case iov send data
format
net/colo-compare.c: Make colo-compare support vnet_hdr_len
net/colo.c: Add vnet packet parse feature in colo-proxy
net/colo-compare.c: Add vnet packet's tcp/udp/icmp compare
include/net/net.h | 10 +++++++++-
net/colo-compare.c | 48 +++++++++++++++++++++++++++++++++++++++---------
net/colo.c | 9 +++++----
net/colo.h | 4 +++-
net/filter-mirror.c | 28 +++++++++++++++++++++++-----
net/filter-rewriter.c | 2 +-
net/net.c | 42 ++++++++++++++++++++++++++++++++++++++++--
net/netmap.c | 8 ++++++++
net/tap-win32.c | 12 ++++++++++++
net/tap.c | 20 ++++++++++++++++++++
tests/e1000e-test.c | 10 ++++++++--
tests/virtio-net-test.c | 18 ++++++++++++++----
12 files changed, 182 insertions(+), 29 deletions(-)
--
2.7.4