[P4-dev] filling tables

Haoyu song haoyu.song at huawei.com
Mon Jul 20 14:04:37 EDT 2015


I agree such active data-path features are very useful and should be considered to add in P4 specification.

Haoyu

From: P4-dev [mailto:p4-dev-bounces at p4.org] On Behalf Of Salvatore Signorello
Sent: Monday, July 20, 2015 7:05 AM
To: p4-dev at p4.org
Subject: [P4-dev] filling tables

Hi all,

I wonder if there is  a "data-plane"-driven  way to fill/update tables. For example, it could be possible for a match (and so for a packet) to generate a table insertion/update in this way:

table xyz{
    reads{
        protocol1.fieldA : exact;
        protocol2.fieldB : exact;
    }
    actions{
        addEntry; // for example, called the first time the pair {protocol1.fieldA,protocol2.fieldB} has been seen
        modifyEntry; // from the 2nd packet on, to keep trace of some other information
   }
}


I would need this to implement a stateful forwarding behavior. Is there any way to express such behavior through the current language specification?

Remark: I don't want to use registers, cause I would rather have an associative facility (key, value) such as a table.

Thank you in advance for any hint,
best,
Salvatore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20150720/8655d80e/attachment-0001.html>


More information about the P4-dev mailing list