[P4] T4P4S-16

Sándor Laki lakis at elte.hu
Thu Feb 22 12:59:08 CET 2018


Sziasztok,

1. A furcsaság a hardware_indep/controlplane.c.py 86. soránál:

     if table.match_type == "LPM":
         #[ uint8_t prefix_length = 0;
         for k in table.key.keyElements:
             if table.match_type == "EXACT":
                 #[ prefix_length += ${get_key_byte_width(k)};
             if table.match_type == "LPM":
                 #[ prefix_length += 
field_instance_${k.header.name}_${k.field_name}_prefix_length;

2. packet drop nem érvényesül pl. l3fwd.p4

3. Exact tábla esetén ha a kulcs az ingress_port, akkor táblába rossz 
kulcs kerül be. Két bájtos a kulcs, és a második bájt mintha memória 
szemét lenne.

Üdv.

Sanyi


-- 
Sándor Laki, PhD
Assistant professor
Department of Information Systems
Eötvös Loránd University
Pázmány Péter stny. 1/C
H-1117, Budapest, Hungary
Room 2.506
Web: http://lakis.web.elte.hu
Phone: +36 1 372 2869 / 8477
Cell: +36 70 374 2646

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3978 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20180222/ad9ed608/attachment.bin>


More information about the P4 mailing list