u-bmc icon indicating copy to clipboard operation
u-bmc copied to clipboard

Split NCSI netlink functionality into own package

Open mdlayher opened this issue 7 years ago • 5 comments

Hello again!

I had previously suggested that we split the NCSI netlink interaction code into its own package to enable further reuse in the Go ecosystem. I'd be happy to do the work and also write some tests (with genltest package) to lock in its behavior.

For now this could live under "u-bmc/pkg/ncsinl" or similar. I suggest the "nl" suffix because, if I understand, NCSI functionality can be manipulated with specially crafted Ethernet frames as well. I don't know how this all ties together.

Let me know if you'd like me to work on this! Thanks again.

mdlayher avatar Oct 04 '18 18:10 mdlayher

I agree 100% :-).

Please do what you think is right. I'll be happy to review whatever you propose.

bluecmd avatar Oct 04 '18 19:10 bluecmd

Oh! There is some activity on merging some OEM stuff regarding NC-SI. @shenki knows more. I'm kind of waiting on that for implementing more NC-SI stuff like reading MAC addresses, and reading sensors from the nic.

bluecmd avatar Oct 04 '18 19:10 bluecmd

Awesome. Looking forward to checking it out! I'll probably have a PR ready for review tomorrow.

mdlayher avatar Oct 04 '18 19:10 mdlayher

@mdlayher There is absolutely no rush on this, but for transparency I'm removing this from the v1.0 project to prune the milestone a bit. NC-SI in userspace is right now monitoring only so even if we do a v1.0 before this completes there should be no problem changing the code structure to whatever you have in mind.

bluecmd avatar Nov 03 '18 23:11 bluecmd

Sounds good, apologies for the radio silence. Going through a job transition and taking some time off. Hope to pick this back up in a couple of weeks.

mdlayher avatar Nov 04 '18 17:11 mdlayher