[P4-dev] Don't care for exact match key

Kentaro Ebisawa ebiken.g at gmail.com
Sun Feb 17 02:10:12 EST 2019


Hi,

Are there a way to set "don't care" for exact match key?
Or do I have to use lpm or ternary to ignore some of the match keys in 
the table.

For example, I want to have a table which has 2 exact match keys and set 
below kind of entries.
* Exact match IPv4 dst address and don't care IPv6 dst address
* Exact match IPv6 dst address and don't care IPv4 dst address

table test_table {
     key = {
         hdr.ipv4.dstAddr: exact;
         hdr.ipv6.dstAddr: exact;
     }
...

--
Kentaro Ebisawa <ebiken.g at gmail.com>




More information about the P4-dev mailing list