Skip to content

Commit

Permalink
updating 'standard_metadata.packet_length' when recirculating packet (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninbas authored Jul 13, 2016
1 parent 178e074 commit 0df1461
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions targets/simple_switch/simple_switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ SimpleSwitch::egress_thread(size_t worker_id) {
}
phv_copy->get_field("standard_metadata.instance_type")
.set(PKT_INSTANCE_TYPE_RECIRC);
phv_copy->get_field("standard_metadata.packet_length")
.set(packet_copy->get_data_size());
input_buffer.push_front(std::move(packet_copy));
continue;
}
Expand Down

0 comments on commit 0df1461

Please sign in to comment.