summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/BUILD
diff options
context:
space:
mode:
authorLucas Manning <lucasmanning@google.com>2021-11-08 13:26:02 -0800
committergVisor bot <gvisor-bot@google.com>2021-11-08 13:28:38 -0800
commit84b38f4c6e065d3f9314a8abbb3f5857ed4fa44e (patch)
tree53eb76fa6d0612696f93ec6919185ea5a37ff3f9 /pkg/tcpip/stack/BUILD
parent49d23beb283d0306c9ccf5300e73517153ddd3c2 (diff)
Add reference counting to packet buffers.
PiperOrigin-RevId: 408426639
Diffstat (limited to 'pkg/tcpip/stack/BUILD')
-rw-r--r--pkg/tcpip/stack/BUILD13
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",