Fix NF Tag memory allocation#103
Conversation
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Failedexamples/aes_decrypt/aes.h:176: #endif line should be "#endif // AES_H" [build/header_guard] [5] |
|
@kevindweb you have used this for webstuff so give it a review |
kevindweb
left a comment
There was a problem hiding this comment.
Works perfectly, I have been using it for visualization in the web stats app.
|
Just in case @onvm |
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Failedexamples/aes_decrypt/aes.h:176: #endif line should be "#endif // AES_H" [build/header_guard] [5] |
Fix NF Tag to properly display it in stats later
Summary:
Before we were passing a
const char *for the nf tag and the pointer was local NF stack memory, which was clearly not accessible by the onvm_mgr. This pr fixes this issue by placing nf_tag on the heap and defining a max length of the provided nf tag.This has no breaking changes as its all internal logic.
With this PR we have everything to rework stdout stats with both a tag and the core info(lets discuss formatting details in the meeting). Also, @kevindweb you gotta handle webstats, every NF can now be properly labeled (Speed Tester 1) instead of (NF 1) 😉
Usage:
Tested by printing
%swith tag from the onvm_mgr stats output.Merging notes:
TODO before merging :
Test Plan:
Test functionality, makes sure onvm no break
Review:
TBA