Please see in line below against “<hs>”.

 

From: Jon Loeliger <j...@netgate.com> 
Sent: Tuesday, September 29, 2020 12:36 PM
To: hem...@mnkcg.com
Cc: vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] table lookup api?

 

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

 

Maybe we need to clarify some terms here.  What does "lookup" mean to you?  

 

<hs> Table lookup. 

 

What is the lookup key,

 

<hs> The key is any data struct, for example, a 6-tuple.  See the key starting 
at this line: https://github.com/hesingh/misc/blob/master/p4-vpp/foo.h#L1

 

 

and what is the result of the lookup?  

 

The format of the result example is this data struct: 
https://github.com/hesingh/misc/blob/master/p4-vpp/foo.h#L14

 

The result says, “run one of drop4, permit4, or add_eth4 actions.  The drop4 
action has no args, while the args to the permit4, or add_eth4 actions are the 
data structs with the same name.

 

Are you are talking about matching a packet (mask and value match)?

 

<hs>It’s a compiler which accepts any table key format as a struct and any 
result format as a struct and enum of actions.  A key with (value, mask) is 
supported.

 

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.

 

<hs> I poked around vpp/src/plugin/ and see .n_next_nodes support a 
user-defined action.  I don’t have to change VPP.  

 

Thanks,

 

Hemant

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17592): https://lists.fd.io/g/vpp-dev/message/17592
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