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 /shim | |
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 'shim')
0 files changed, 0 insertions, 0 deletions