Allow carp configuration information to be supplied and retrieved via
netlink.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential D39048
carp: add netlink interface kp on Mar 13 2023, 1:47 PM. Authored by Tags None Referenced Files
Subscribers
Details
Allow carp configuration information to be supplied and retrieved via Sponsored by: Rubicon Communications, LLC ("Netgate")
Diff Detail
Event Timeline
Comment Actions Thank you for coming up with the netlink version! That was fast :-)
Comment Actions Use attributes (i.e. TLV) for everything. I've gone with a single type enum for both get and set requests, because they
Comment Actions I've raised D39092 with some snl(3) improvements that'll simplify the code.
Comment Actions Generally Netlink part LGTM. Q: any concerns over not adding find-by-name handler? It seems cheap codeline-wise on the kernel side and will simplify client side (avoid if_getunit call).
Comment Actions I think I'd prefer to handle that in a separate commit. It's certainly a reasonable idea, but it's also something we can easily add afterwards.
Comment Actions Ack, no concerns here.
Comment Actions Nit: it'll break the build w/o NETLINK. I'll come up with a diff similar to D39148 in a day or two. Comment Actions That's going to be an annoying once once the unicast support lands. You'll have to make bits of that conditional on NETLINK then, because there's no interface to configure it without it. Comment Actions Currently I'm trying the following approach:
From the netlink user standpoint it should be transparent. Maybe it will be enough to address the space/other concerns. Comment Actions Hi all, Here is the full call stack that was dumped: curthread () at /root/freebsd-src/sys/amd64/include/pcpu_aux.h:59 I don't have much experience with CARP, and I was wondering if anything obvious jumps out from this call stack with regard to this commit? Thanks! Comment Actions I've write to you and CC @melifaro and @kp . The FreeBSD Phabricator is for code review / collaboration. Comment Actions Thank you for the report!
Comment Actions Thanks @melifaro
|