dpdk: build sw cryptodev support with make verify
[vpp.git] / test / test_flowperpkt.py
index 16fe2a3..b13d0c6 100644 (file)
@@ -43,7 +43,7 @@ class TestFlowperpkt(VppTestCase):
         for size in packet_sizes:
             info = self.create_packet_info(src_if, dst_if)
             payload = self.info_to_payload(info)
-            p = (Ether(src=src_if.local_mac, dst=dst_if.remote_mac) /
+            p = (Ether(src=src_if.remote_mac, dst=src_if.local_mac) /
                  IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4) /
                  UDP(sport=1234, dport=4321) /
                  Raw(payload))
@@ -57,8 +57,8 @@ class TestFlowperpkt(VppTestCase):
         if len(payload) * 2 != len(masked_expected_data):
             return False
 
-        # iterate over pairs: raw byte from payload and ASCII code for that byte
-        # from masked payload (or XX if masked)
+        # iterate over pairs: raw byte from payload and ASCII code for that
+        # byte from masked payload (or XX if masked)
         for i in range(len(payload)):
             p = payload[i]
             m = masked_expected_data[2 * i:2 * i + 2]
@@ -164,7 +164,7 @@ class TestFlowperpkt(VppTestCase):
 
         # Flush the ipfix collector, so we don't need any
         # asinine time.sleep(5) action
-        self.vapi.cli("ipfix flush")  # FIXME this should be an API call
+        self.vapi.cli("ipfix flush")
 
         # Make sure the 4 pkts we expect actually showed up
         self.verify_ipfix(self.pg2)