From 9f2cbf6d028aed1bc471b27b61c928c82b36ac9a Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Wed, 1 Jun 2016 17:00:14 +0300 Subject: fix latency profile to be able to run on all interfaces --- scripts/stl/flow_stats_latency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/stl/flow_stats_latency.py') diff --git a/scripts/stl/flow_stats_latency.py b/scripts/stl/flow_stats_latency.py index 334406e5..e1541272 100644 --- a/scripts/stl/flow_stats_latency.py +++ b/scripts/stl/flow_stats_latency.py @@ -9,11 +9,11 @@ class STLS1(object): def get_streams (self, direction = 0, **kwargs): return [STLStream(packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_64B_no_crc.pcap")), # path relative to pwd mode = STLTXCont(pps=1000), - flow_stats = STLFlowLatencyStats(pg_id = 7)), + flow_stats = STLFlowLatencyStats(pg_id = 1 + kwargs['port_id'])), STLStream(packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_594B_no_crc.pcap")), # path relative to pwd mode = STLTXCont(pps=5000), - flow_stats = STLFlowLatencyStats(pg_id = 12)) + flow_stats = STLFlowLatencyStats(pg_id = 50 + kwargs['port_id'])) ] -- cgit