m/n/c/devmgr: increase buffer size
The default kernel buffer size for the kobject connection results in
frequent overruns while enumerating devices causing devmgr to restart
and reenumerate. This causes log noise and slower boots, so fix this by
adding an upstream patch to allow setting the buffer size and doing so.
Change-Id: Iddf63f2b71ec600e8a0160cc5ede85af84a76aeb
Reviewed-on: https://review.monogon.dev/c/monogon/+/4494
Tested-by: Jenkins CI
Reviewed-by: Jan Schär <jan@monogon.tech>
diff --git a/build/bazel/go.MODULE.bazel b/build/bazel/go.MODULE.bazel
index 471c8b9..f464c75 100644
--- a/build/bazel/go.MODULE.bazel
+++ b/build/bazel/go.MODULE.bazel
@@ -157,6 +157,11 @@
"gazelle:proto disable",
],
},
+ "github.com/mdlayher/kobject": {
+ "pre_patches": [
+ "//third_party/com_github_mdlayher_kobject:add_read_buffer_size.patch",
+ ],
+ },
"github.com/Microsoft/hcsshim": {
"directives": [
"gazelle:proto disable",