On Mon, Mar 20, 2017 at 10:08:57AM +0100, Fulvio Risso via iovisor-dev wrote: > Dear all, > > perhaps a naive question. > > Instead of attaching an Iomodule to a NIC and perform statistics/whatever, > can we attach the Iomodule to a pcap file? > > The classical BPF (with libpcap) has this feature, which enables to run > multiple tests on the same data and see what happens (e.g., to compare the > performance of different programs). > We're unable to find a similar feature when playing with eBPF and more > complex programs that go beyond packet filtering.
that's a great idea. To simulate something like this it's possible to attach cls_bpf to veth or tap device and tcpreplay pcap into it. For xdp that would need some kernel work, since spinning a VM with virtio and sending pcap into tap is too cumbersome. _______________________________________________ iovisor-dev mailing list iovisor-dev@lists.iovisor.org https://lists.iovisor.org/mailman/listinfo/iovisor-dev