Skip to content

Commit

Permalink
Deinternalize kernel package (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 authored Jun 18, 2024
1 parent bebb61a commit f6658ca
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dataplane/cpusink/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go_library(
"//dataplane/dplaneopts",
"//dataplane/forwarding/attributes",
"//dataplane/forwarding/fwdconfig",
"//dataplane/internal/kernel",
"//dataplane/kernel",
"//proto/forwarding",
"@com_github_golang_glog//:glog",
"@com_github_vishvananda_netlink//:netlink",
Expand Down
2 changes: 1 addition & 1 deletion dataplane/cpusink/cpusink.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/openconfig/lemming/dataplane/dplaneopts"
"github.com/openconfig/lemming/dataplane/forwarding/attributes"
"github.com/openconfig/lemming/dataplane/forwarding/fwdconfig"
"github.com/openconfig/lemming/dataplane/internal/kernel"
"github.com/openconfig/lemming/dataplane/kernel"

log "github.com/golang/glog"

Expand Down
4 changes: 2 additions & 2 deletions dataplane/dplanerc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go_library(
"@org_golang_google_protobuf//proto",
] + select({
"@io_bazel_rules_go//go/platform:android": [
"//dataplane/internal/kernel",
"//dataplane/kernel",
"//gnmi/gnmiclient",
"//gnmi/oc",
"//gnmi/oc/ocpath",
Expand All @@ -32,7 +32,7 @@ go_library(
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:linux": [
"//dataplane/internal/kernel",
"//dataplane/kernel",
"//gnmi/gnmiclient",
"//gnmi/oc",
"//gnmi/oc/ocpath",
Expand Down
2 changes: 1 addition & 1 deletion dataplane/dplanerc/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"

"github.com/openconfig/lemming/dataplane/internal/kernel"
"github.com/openconfig/lemming/dataplane/kernel"
"github.com/openconfig/lemming/gnmi/gnmiclient"
"github.com/openconfig/lemming/gnmi/oc"
"github.com/openconfig/lemming/gnmi/oc/ocpath"
Expand Down
4 changes: 2 additions & 2 deletions dataplane/forwarding/fwdport/ports/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ go_library(
"@com_github_google_gopacket//pcapgo",
] + select({
"@io_bazel_rules_go//go/platform:android": [
"//dataplane/internal/kernel",
"//dataplane/kernel",
"@com_github_google_gopacket//afpacket",
"@com_github_vishvananda_netlink//:netlink",
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:linux": [
"//dataplane/internal/kernel",
"//dataplane/kernel",
"@com_github_google_gopacket//afpacket",
"@com_github_vishvananda_netlink//:netlink",
"@org_golang_x_sys//unix",
Expand Down
2 changes: 1 addition & 1 deletion dataplane/forwarding/fwdport/ports/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/openconfig/lemming/dataplane/forwarding/infra/fwdcontext"
"github.com/openconfig/lemming/dataplane/forwarding/infra/fwdobject"
"github.com/openconfig/lemming/dataplane/forwarding/infra/fwdpacket"
"github.com/openconfig/lemming/dataplane/internal/kernel"
"github.com/openconfig/lemming/dataplane/kernel"
"github.com/openconfig/lemming/internal/debug"

log "github.com/golang/glog"
Expand Down
2 changes: 1 addition & 1 deletion dataplane/forwarding/fwdport/ports/tap.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/openconfig/lemming/dataplane/forwarding/infra/fwdcontext"
"github.com/openconfig/lemming/dataplane/forwarding/infra/fwdobject"
"github.com/openconfig/lemming/dataplane/forwarding/infra/fwdpacket"
"github.com/openconfig/lemming/dataplane/internal/kernel"
"github.com/openconfig/lemming/dataplane/kernel"
"github.com/openconfig/lemming/internal/debug"

log "github.com/golang/glog"
Expand Down
2 changes: 1 addition & 1 deletion dataplane/internal/kernel/BUILD → dataplane/kernel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go_library(
"kernel.go",
"tap.go",
],
importpath = "github.com/openconfig/lemming/dataplane/internal/kernel",
importpath = "github.com/openconfig/lemming/dataplane/kernel",
visibility = ["//dataplane:__subpackages__"],
deps = [
"@com_github_vishvananda_netlink//:netlink",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "kerneltest",
srcs = ["kernel.go"],
importpath = "github.com/openconfig/lemming/dataplane/internal/kernel/kerneltest",
importpath = "github.com/openconfig/lemming/dataplane/kernel/kerneltest",
visibility = ["//dataplane:__subpackages__"],
deps = select({
"@io_bazel_rules_go//go/platform:android": [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions dataplane/standalone/pkthandler/pktiohandler/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//dataplane/forwarding/util/queue",
"//dataplane/internal/kernel",
"//dataplane/kernel",
"//dataplane/proto/packetio",
"@com_github_golang_glog//:glog",
"@org_golang_google_genproto_googleapis_rpc//status",
Expand All @@ -21,7 +21,7 @@ go_test(
srcs = ["pktiohandler_test.go"],
embed = [":pktiohandler"],
deps = [
"//dataplane/internal/kernel",
"//dataplane/kernel",
"//dataplane/proto/packetio",
"@com_github_google_go_cmp//cmp",
"@org_golang_google_grpc//codes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"google.golang.org/protobuf/encoding/protojson"

"github.com/openconfig/lemming/dataplane/forwarding/util/queue"
"github.com/openconfig/lemming/dataplane/internal/kernel"
"github.com/openconfig/lemming/dataplane/kernel"

log "github.com/golang/glog"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/protobuf/testing/protocmp"

"github.com/openconfig/lemming/dataplane/internal/kernel"
"github.com/openconfig/lemming/dataplane/kernel"
pktiopb "github.com/openconfig/lemming/dataplane/proto/packetio"
)

Expand Down

0 comments on commit f6658ca

Please sign in to comment.