On 11/30/21 16:00, 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. This solution is slower than net/pcap DPDK, so lower the number of expected packets so that it runs in OVS_CTL_TIMEOUT seconds. 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]> --- Changes since v2: - updated documentation, - cleaned tests/automake.mk, - fixed shebang in python script, - added missing check for scapy availability, Changes since v1: - renamed generator script, - decreased packet count for fuzzy test, - simplified wait expression for packet count, --- Documentation/topics/dpdk/bridge.rst | 7 ++-- tests/automake.mk | 7 +--- tests/genpkts.py | 56 +++++++++++++++++++++++++++ tests/mfex_fuzzy.py | 32 --------------- tests/pcap/mfex_test.pcap | Bin 416 -> 0 bytes tests/system-dpdk-macros.at | 4 +- tests/system-dpdk.at | 33 +++++++++++++--- 7 files changed, 89 insertions(+), 50 deletions(-) create mode 100755 tests/genpkts.py delete mode 100755 tests/mfex_fuzzy.py delete mode 100644 tests/pcap/mfex_test.pcap
Reviewed-by: Maxime Coquelin <[email protected]> Thanks, Maxime _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
