gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/stack/gro/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 load("//tools/go_generics:defs.bzl", "go_template_instance") 3 4 package( 5 default_applicable_licenses = ["//:license"], 6 licenses = ["notice"], 7 ) 8 9 go_template_instance( 10 name = "gro_packet_list", 11 out = "gro_packet_list.go", 12 package = "gro", 13 prefix = "groPacket", 14 template = "//pkg/ilist:generic_list", 15 types = { 16 "Element": "*groPacket", 17 "Linker": "*groPacket", 18 }, 19 ) 20 21 go_library( 22 name = "gro", 23 srcs = [ 24 "gro.go", 25 "gro_packet_list.go", 26 ], 27 visibility = ["//visibility:public"], 28 deps = [ 29 "//pkg/ilist", 30 "//pkg/tcpip", 31 "//pkg/tcpip/header", 32 "//pkg/tcpip/stack", 33 ], 34 ) 35 36 go_test( 37 name = "gro_test", 38 size = "small", 39 srcs = [ 40 "gro_test.go", 41 ], 42 library = ":gro", 43 )