From 8db334265b51fab4f946d4fb9ffcd900a7cf59fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= <66256922+daniel-weisse@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:21:16 +0200 Subject: [PATCH] deps: upgrade golang.org/x/sys to v0.21.0 (#1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- WORKSPACE | 15 +++++++++++---- go.mod | 2 +- go.sum | 2 ++ pkg/xdp/xdp.go | 6 +++--- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index f0c0466c72..51025f3298 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -113,8 +113,8 @@ go_repository( go_repository( name = "org_golang_x_sys", importpath = "golang.org/x/sys", - sum = "h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=", - version = "v0.16.0", + sum = "h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=", + version = "v0.21.0", ) go_repository( @@ -155,8 +155,8 @@ go_repository( go_repository( name = "com_github_prometheus_client_model", importpath = "github.com/prometheus/client_model", - sum = "h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4=", - version = "v0.3.0", + sum = "h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=", + version = "v0.0.0-20190812154241-14fe0d1b01d4", ) go_repository( @@ -1423,6 +1423,13 @@ go_repository( version = "v0.6.2", ) +go_repository( + name = "org_golang_google_grpc_cmd_protoc_gen_go_grpc", + importpath = "google.golang.org/grpc/cmd/protoc-gen-go-grpc", + sum = "h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA=", + version = "v1.3.0", +) + rules_proto_dependencies() rules_proto_toolchains() diff --git a/go.mod b/go.mod index d58cfccb11..14585f10de 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( github.com/vishvananda/netlink v1.1.1-0.20211118161826-650dca95af54 golang.org/x/mod v0.14.0 golang.org/x/sync v0.6.0 - golang.org/x/sys v0.16.0 + golang.org/x/sys v0.21.0 golang.org/x/time v0.5.0 golang.org/x/tools v0.16.1 google.golang.org/protobuf v1.32.0 diff --git a/go.sum b/go.sum index 154307be86..0765e6d8e0 100644 --- a/go.sum +++ b/go.sum @@ -352,6 +352,8 @@ golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= diff --git a/pkg/xdp/xdp.go b/pkg/xdp/xdp.go index 5863d4221f..ae5f30d13b 100644 --- a/pkg/xdp/xdp.go +++ b/pkg/xdp/xdp.go @@ -153,9 +153,9 @@ func NewFromSocket(sockfd int, ifaceIdx, queueID uint32, opts Opts) (*ControlBlo } reg := unix.XDPUmemReg{ - Addr: uint64(sliceBackingPointer(umemMemory)), - Len: uint64(len(umemMemory)), - Size: opts.FrameSize, + Addr: uint64(sliceBackingPointer(umemMemory)), + Len: uint64(len(umemMemory)), + Chunk_size: opts.FrameSize, // Not useful in the RX path. Headroom: 0, // TODO(b/240191988): Investigate use of SHARED flag.