diff options
author | mklyus <mklyus@cisco.com> | 2020-02-28 00:05:07 +0300 |
---|---|---|
committer | Yichen Wang <yicwang@cisco.com> | 2020-02-27 13:34:06 -0800 |
commit | bbae2bc9d7df0108609eed07fe31d1e02856b8de (patch) | |
tree | 5c9755c1f5721fe4d8f2e51e85b890ee1419f841 | |
parent | 260a2ad0d1edcba289e019ac8a13706663ed6592 (diff) |
[NFVBENCH-137] Fix L4 checksums for VxLAN (again)4.2.2
Change-Id: I65a9c81a2f7dcc84c3a1c11bff9cc16185d2664e
Signed-off-by: Yichen Wang <yicwang@cisco.com>
-rw-r--r-- | nfvbench/traffic_gen/trex_gen.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nfvbench/traffic_gen/trex_gen.py b/nfvbench/traffic_gen/trex_gen.py index 189c3e5..0ecad1e 100644 --- a/nfvbench/traffic_gen/trex_gen.py +++ b/nfvbench/traffic_gen/trex_gen.py @@ -470,10 +470,11 @@ class TRex(AbstractTrafficGenerator): STLVmWrFlowVar(fv_name="ip_dst", pkt_offset="IP:{}.dst".format(encap_level)), dst_fv_port, STLVmWrFlowVar(fv_name="p_dst", pkt_offset="UDP:{}.dport".format(encap_level)), - STLVmFixChecksumHw(l3_offset="IP:{}".format(encap_level), - l4_offset="UDP:{}".format(encap_level), - l4_type=CTRexVmInsFixHwCs.L4_TYPE_UDP) ] + for encap in range(int(encap_level), -1, -1): + vm_param.append(STLVmFixChecksumHw(l3_offset="IP:{}".format(encap), + l4_offset="UDP:{}".format(encap), + l4_type=CTRexVmInsFixHwCs.L4_TYPE_UDP)) pad = max(0, frame_size - len(pkt_base)) * 'x' return STLPktBuilder(pkt=pkt_base / pad, |