On Tue, Sep 29, 2020 at 9:31 AM <hem...@mnkcg.com> wrote:

> Hi Jon,
>
>
>
> I see, thanks.  I have to go back to the drawing board.
>
>
>
> I am developing a P4 to VPP compiler.  If VPP has any API to create a
> table and lookup the table, it would ease compiler development.  I am
> chasing lookup because the lookup result drives subsequent processing in
> the data plane.  For example, a table has two entries (entry1 and entry2).
> On table lookup, if entry1 is hit, the result of lookup includes action1
> which is invoked.  An action is a C function.  If entry2 is hit, action2 is
> invoked.
>

Maybe we need to clarify some terms here.  What does "lookup" mean to you?
What is the lookup key,
and what is the result of the lookup?  Are you are talking about matching a
packet (mask and value match)?
If so, a Classifier session is used for that purpose.  Within the session
entry, actions are specified.  You can
have a node-handoff to an existing graph node, or opaque handoff, or
handoff to your own node for processing.

An alternative I am thinking is to change VPP code to support P4 better –
> support explicit table lookup and running user-supplied actions.   VPP does
> run actions but they are pre-defined.
>

I don't know what you mean by "user supplied actions", so you're on your
own there.

HTH,
jdl
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17589): https://lists.fd.io/g/vpp-dev/message/17589
Mute This Topic: https://lists.fd.io/mt/77180264/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