Similar to the port mirroring function on the switch or router, this patch set implements such function on the Vhost lib. When data is sent to a front-end, it will also send the data to its mirror front-end. When data is received from a front-end, it will also send the data to its mirror front-end.
Cheng Jiang (2): vhost: add ingress API for port mirroring datapath vhost: add egress API for port mirroring datapath lib/vhost/rte_vhost_async.h | 17 + lib/vhost/version.map | 3 + lib/vhost/virtio_net.c | 1266 +++++++++++++++++++++++++++++++++++ 3 files changed, 1286 insertions(+) -- 2.35.1