diff options
author | Lucas Manning <lucasmanning@google.com> | 2021-11-08 13:26:02 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-11-08 13:28:38 -0800 |
commit | 84b38f4c6e065d3f9314a8abbb3f5857ed4fa44e (patch) | |
tree | 53eb76fa6d0612696f93ec6919185ea5a37ff3f9 /pkg/tcpip/stack/BUILD | |
parent | 49d23beb283d0306c9ccf5300e73517153ddd3c2 (diff) |
Add reference counting to packet buffers.
PiperOrigin-RevId: 408426639
Diffstat (limited to 'pkg/tcpip/stack/BUILD')
-rw-r--r-- | pkg/tcpip/stack/BUILD | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/BUILD b/pkg/tcpip/stack/BUILD index 5d76adac1..81eed5b11 100644 --- a/pkg/tcpip/stack/BUILD +++ b/pkg/tcpip/stack/BUILD @@ -39,6 +39,17 @@ go_template_instance( }, ) +go_template_instance( + name = "packet_buffer_refs", + out = "packet_buffer_refs.go", + package = "stack", + prefix = "packetBuffer", + template = "//pkg/refsvfs2:refs_template", + types = { + "T": "PacketBuffer", + }, +) + go_library( name = "stack", srcs = [ @@ -59,6 +70,7 @@ go_library( "nud.go", "packet_buffer.go", "packet_buffer_list.go", + "packet_buffer_refs.go", "packet_buffer_unsafe.go", "pending_packets.go", "rand.go", @@ -78,6 +90,7 @@ go_library( "//pkg/ilist", "//pkg/log", "//pkg/rand", + "//pkg/refsvfs2", "//pkg/sleep", "//pkg/sync", "//pkg/tcpip", |