[P4-dev] Maintaining the state of a flow.
mbudiu at vmware.com
Mon Oct 15 12:13:59 EDT 2018
If you are using v1model.p4 (or P4-14) it looks like you can use registers to maintain this kind of state.
From: P4-dev <p4-dev-bounces at lists.p4.org> On Behalf Of Kamal Bhatt
Sent: Monday, October 15, 2018 8:18 AM
To: p4-dev at lists.p4.org
Subject: [P4-dev] Maintaining the state of a flow.
I have a use-case where I want to listen for a specific header field in packets and when this field is set in further incoming packets need to take some action,
For Example :
Match criteria : in_port=1
Action: If field X==11 in a packet, then send all packets coming afterwards to port 2 for this match (no need to check for X==11 anymore).
Here I need to maintain some state for a match criteria. For example here, for packets at in_port=1,condition X==11 is satisfied.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev