diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-05-08 20:32:52 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-05-08 20:32:52 +0300 |
commit | 8b4df27252f317b33e11a626997748971625a47c (patch) | |
tree | 9f46d76051e69cf20959199fca83126ef82944cf /scripts/stl | |
parent | c2912dfc5ad81e2edcf77b7ee992f92216ed0bad (diff) |
add cache to CP
Diffstat (limited to 'scripts/stl')
-rw-r--r-- | scripts/stl/udp_1pkt_src_ip_split.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/stl/udp_1pkt_src_ip_split.py b/scripts/stl/udp_1pkt_src_ip_split.py index d83da06e..778ccf54 100644 --- a/scripts/stl/udp_1pkt_src_ip_split.py +++ b/scripts/stl/udp_1pkt_src_ip_split.py @@ -18,10 +18,11 @@ class STLS1(object): vm = STLScVmRaw( [ STLVmFlowVar ( "ip_src", min_value="10.0.0.1", max_value="10.0.0.255", size=4, step=1,op="inc"), - STLVmWrFlowVar (fv_name="ip_src", pkt_offset= "IP.src" ) # write ip to packet IP.src - #STLVmFixIpv4(offset = "IP"), # fix checksum + STLVmWrFlowVar (fv_name="ip_src", pkt_offset= "IP.src" ), # write ip to packet IP.src + STLVmFixIpv4(offset = "IP") # fix checksum ] ,split_by_field = "ip_src" # split to cores base on the tuple generator + ,cache_size =255 # the cache size ); pkt = STLPktBuilder(pkt = base_pkt/pad, |