aboutsummaryrefslogtreecommitdiffstats
path: root/resources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py')
-rwxr-xr-xresources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py b/resources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py
index cf97364da6..cd1a0a690c 100755
--- a/resources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py
+++ b/resources/traffic_profiles/trex/trex-sl-ethip4vxlan-ip4src1udpsrcrnd.py
@@ -182,8 +182,10 @@ class TrafficStreams(TrafficStreamsBaseClass):
fv_name=u"in_mac",
pkt_offset=60
),
- STLVmFixIpv4(
- offset=u"IP"
+ STLVmFixChecksumHw(
+ l3_offset="IP:{}".format(0),
+ l4_offset="UDP:{}".format(0),
+ l4_type=CTRexVmInsFixHwCs.L4_TYPE_UDP
)
]
)
@@ -237,8 +239,10 @@ class TrafficStreams(TrafficStreamsBaseClass):
fv_name=u"in_mac",
pkt_offset=60
),
- STLVmFixIpv4(
- offset=u"IP"
+ STLVmFixChecksumHw(
+ l3_offset="IP:{}".format(0),
+ l4_offset="UDP:{}".format(0),
+ l4_type=CTRexVmInsFixHwCs.L4_TYPE_UDP
)
]
)