diff options
author | Toshi Kikuchi <toshik@google.com> | 2020-12-12 15:29:15 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-12 15:32:03 -0800 |
commit | 08d36b6c630846c4d9d812c25966639513ecd211 (patch) | |
tree | 808d9c9bf14337a6d4ab9755e2c6c81012d654b2 /pkg/tcpip/network/fragmentation/BUILD | |
parent | 4aef908c92c8530222fe547c154e2ee45a130b1b (diff) |
Reduce the memory overhead in IP fragment management
- Deep-copy pkt.Data and hold it instead of shallow-copy (vv.Clone).
This allows the pkt's backing array, which includes the header portion,
to be freed.
- Remove fragHeap. The fragments are now held in holes struct instead.
- Stop reserving the initial capacity of holes slice.
PiperOrigin-RevId: 347198744
Diffstat (limited to 'pkg/tcpip/network/fragmentation/BUILD')
-rw-r--r-- | pkg/tcpip/network/fragmentation/BUILD | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/tcpip/network/fragmentation/BUILD b/pkg/tcpip/network/fragmentation/BUILD index d8e4a3b54..429af69ee 100644 --- a/pkg/tcpip/network/fragmentation/BUILD +++ b/pkg/tcpip/network/fragmentation/BUILD @@ -18,7 +18,6 @@ go_template_instance( go_library( name = "fragmentation", srcs = [ - "frag_heap.go", "fragmentation.go", "reassembler.go", "reassembler_list.go", @@ -38,7 +37,6 @@ go_test( name = "fragmentation_test", size = "small", srcs = [ - "frag_heap_test.go", "fragmentation_test.go", "reassembler_test.go", ], |