Hi VPP-Experts,

We need to classify the packets in our custom plugins in synchronous to some 
other functionality.
To achieve this: we are planning to use following approach. Can you let us 
know, if this approach works fine without any unforeseen road blocks at some 
point.

1. Use the existing vnet classify infrastructure for maintaining the classify 
sessions and tables.
But , do not apply these tables to any interfaces as acls.
Store the classify table and session indexes in the custom plugin.

2. In our custom plugin, use the above classify tables to match the packet 
using following functions of acl plugin
acl_fill_5tuple
acl_plugin_match_5tuple_inline

3. Get the results from the above function to check if any table/session 
matched for this packet, and take action in the custom plugin.

The main reason for this approach is that we want the classification to applied 
after our custom plugin and also in a syncrhronous way within our graph node. 
We can not afford to send the packet for classification to another node like 
ip4_classify.

If the approach has any issues, are there any set of apis available, to achieve 
classification from any custom plugin.

Please let us know.

--
Thanks & Regards,
Murthy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13079): https://lists.fd.io/g/vpp-dev/message/13079
Mute This Topic: https://lists.fd.io/mt/31652287/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to