Hi David,
On 9/27/21 15:57, David Marchand wrote:
net_pcap is not always available in DPDK (like, in a dev
environment when you forgot to install the libpcap-devel).
On the other hand, OVS already has its own way to inject packets into a
bridge. Let's make use of it.
While at it, convert "known" packets from pcap to scapy so that the
injected packets can be updated without having to read/write a pcap file.
Note: this change also (avoids) fixes a python exception in PcapWriter
with scapy 2.4.3 that comes from EPEL.
Suggested-by: Ilya Maximets <[email protected]>
Signed-off-by: David Marchand <[email protected]>
---
tests/automake.mk | 5 ++--
tests/mfex_fuzzy.py | 32 ---------------------
tests/mfex_pkts.py | 56 ++++++++++++++++++++++++++++++++++++
tests/pcap/mfex_test.pcap | Bin 416 -> 0 bytes
tests/system-dpdk-macros.at | 4 +--
tests/system-dpdk.at | 26 ++++++++++++++---
6 files changed, 82 insertions(+), 41 deletions(-)
delete mode 100755 tests/mfex_fuzzy.py
create mode 100755 tests/mfex_pkts.py
delete mode 100644 tests/pcap/mfex_test.pcap
Thanks for the patch, I overall agree with it.
I plan to reuse the fuzz feature of tests/mfex_pkts.py script for a new
test. As discussed off-list, we may want to rename it with a more
generic name.
What about gen_pkts.py?
Maxime
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev