google / gvisor

Application Kernel for Containers

Home Page:https://gvisor.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support PacketBuffer cloning for forwarding

nhurley3 opened this issue · comments

Description

Currently, a deep copy of the packet is made when forwarding [1]. For multicast, this means that a deep copy will be made for each output interface. To make this more efficient, the packet could instead just be cloned. When cloning, the reserved header bytes needs to be able to be specified though.

[1] 

newPkt := pkt.DeepCopyForForwarding(int(r.MaxHeaderLength()))

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

No response

A friendly reminder that this issue had no activity for 120 days.