summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/unix/transport/BUILD
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-10-17 16:30:11 -0700
committerShentubot <shentubot@google.com>2018-10-17 16:31:15 -0700
commitf7419fec26d1fd0d12936cc44f2c3481bbade033 (patch)
tree8582991c841f6b0cfebc24f39571d89645d5a4ca /pkg/sentry/socket/unix/transport/BUILD
parente0bb94201f1edb6ce649192fe4a62e1781940b50 (diff)
Use generic ilist in Unix transport queue
This should improve performance. PiperOrigin-RevId: 217610560 Change-Id: I370f196ea2396f1715a460b168ecbee197f94d6c
Diffstat (limited to 'pkg/sentry/socket/unix/transport/BUILD')
-rw-r--r--pkg/sentry/socket/unix/transport/BUILD14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/sentry/socket/unix/transport/BUILD b/pkg/sentry/socket/unix/transport/BUILD
index 75b5a2eb6..28038ce7f 100644
--- a/pkg/sentry/socket/unix/transport/BUILD
+++ b/pkg/sentry/socket/unix/transport/BUILD
@@ -1,6 +1,19 @@
package(licenses = ["notice"]) # Apache 2.0
load("//tools/go_stateify:defs.bzl", "go_library")
+load("//tools/go_generics:defs.bzl", "go_template_instance")
+
+go_template_instance(
+ name = "transport_message_list",
+ out = "transport_message_list.go",
+ package = "transport",
+ prefix = "message",
+ template = "//pkg/ilist:generic_list",
+ types = {
+ "Element": "*message",
+ "Linker": "*message",
+ },
+)
go_library(
name = "transport",
@@ -9,6 +22,7 @@ go_library(
"connectioned_state.go",
"connectionless.go",
"queue.go",
+ "transport_message_list.go",
"unix.go",
],
importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/socket/unix/transport",