summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/netstack
diff options
context:
space:
mode:
authorToshi Kikuchi <toshik@google.com>2020-12-12 15:29:15 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-12 15:32:03 -0800
commit08d36b6c630846c4d9d812c25966639513ecd211 (patch)
tree808d9c9bf14337a6d4ab9755e2c6c81012d654b2 /pkg/sentry/socket/netstack
parent4aef908c92c8530222fe547c154e2ee45a130b1b (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/sentry/socket/netstack')
0 files changed, 0 insertions, 0 deletions