gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/link/sharedmem/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "sharedmem", 10 srcs = [ 11 "queuepair.go", 12 "rx.go", 13 "server_rx.go", 14 "server_tx.go", 15 "sharedmem.go", 16 "sharedmem_server.go", 17 "sharedmem_unsafe.go", 18 "tx.go", 19 ], 20 visibility = [ 21 "//visibility:public", 22 ], 23 deps = [ 24 "//pkg/atomicbitops", 25 "//pkg/buffer", 26 "//pkg/cleanup", 27 "//pkg/eventfd", 28 "//pkg/log", 29 "//pkg/memutil", 30 "//pkg/sync", 31 "//pkg/tcpip", 32 "//pkg/tcpip/header", 33 "//pkg/tcpip/link/rawfile", 34 "//pkg/tcpip/link/sharedmem/pipe", 35 "//pkg/tcpip/link/sharedmem/queue", 36 "//pkg/tcpip/stack", 37 "@org_golang_x_sys//unix:go_default_library", 38 ], 39 ) 40 41 go_test( 42 name = "sharedmem_test", 43 srcs = ["sharedmem_test.go"], 44 library = ":sharedmem", 45 deps = [ 46 "//pkg/buffer", 47 "//pkg/refs", 48 "//pkg/sync", 49 "//pkg/tcpip", 50 "//pkg/tcpip/header", 51 "//pkg/tcpip/link/sharedmem/pipe", 52 "//pkg/tcpip/link/sharedmem/queue", 53 "//pkg/tcpip/stack", 54 "@org_golang_x_sys//unix:go_default_library", 55 ], 56 ) 57 58 go_test( 59 name = "sharedmem_server_test", 60 size = "large", 61 srcs = ["sharedmem_server_test.go"], 62 deps = [ 63 ":sharedmem", 64 "//pkg/log", 65 "//pkg/refs", 66 "//pkg/tcpip", 67 "//pkg/tcpip/adapters/gonet", 68 "//pkg/tcpip/header", 69 "//pkg/tcpip/link/qdisc/fifo", 70 "//pkg/tcpip/link/sniffer", 71 "//pkg/tcpip/network/ipv4", 72 "//pkg/tcpip/network/ipv6", 73 "//pkg/tcpip/stack", 74 "//pkg/tcpip/transport/tcp", 75 "//pkg/tcpip/transport/udp", 76 "@org_golang_x_sync//errgroup:go_default_library", 77 "@org_golang_x_sys//unix:go_default_library", 78 ], 79 )