Seems like your code is OK, see also vnet_interface_features_show(...) in
.../src/vnet/feature/feature.c.
We could add per-interface, per-feature arc "feature X is enabled" bitmaps to
speed up this sort of processing, but there has to be a compelling reason to do
so.
What problem are you try
Hi Raj,
There's no good way to do it, there's also no notification should the feature
be disabled or enabled.
Instead I'd suggest you 'listen' to the entity enabling/disabling the feature.
Or maybe you can configure your feature to run before this one, then it's not
important whether it's enabl