Repository navigation
CHANGELOG: v0.8.0 - #48
Conversation
v2.13.2 fails with Go 1.27.2, which setup-go now resolves "1.27" to.
mdlayher
left a comment
There was a problem hiding this comment.
wfm, though you can always go get x@HEAD too.
|
By the way, curious where you're using this? I have a local experiment with the out-of-tree homa kernel module that needed it, I think! |
|
Thanks for tagging the release !
I've been experimenting with it already, just wanted to start opening some PRs to get your opinion.
I wanted to use recvmmsg but x/sys does not wrap it yet. It also felt a bit wrong to wrap it in this package instead. I have a local change for netlink where I do something like this err := r.c.ReadFunc(ctx, "recvmmsg", func(fd int) error {
rn, _, errno := unix.Syscall6(
unix.SYS_RECVMMSG,
uintptr(fd),
uintptr(unsafe.Pointer(&r.hdrs[0])),
uintptr(len(r.hdrs)),
unix.MSG_WAITFORONE,
0,
0,
)
if errno != 0 {
return errno
}
n = int(rn)
return nil
})The intention is to expose a
Sounds interesting! I am guessing you needed it because the existing wrappers are not compatible with homa? Edit: |
I would like to give
Conn.ReadFunca go downstream on mdlayher/netlink. It could help us wrap recvmmsg in a custom implementation. I want to validate a theory that this would improve throughput on some netlink families.