Reorder P4 struct key initializers and blocks
authorBrenden Blanco <bblanco@plumgrid.com>
Wed, 3 Feb 2016 00:07:56 +0000 (16:07 -0800)
committerBrenden Blanco <bblanco@plumgrid.com>
Thu, 4 Feb 2016 16:39:40 +0000 (08:39 -0800)
commit597b0e36942e9c926a1c3ea6fd0da2e2c6acdbc1
tree364d969e903ede78572cd262acf92f907844d733
parent0637fb0e9c931fe3f12096b9a444f913f3e08c89
Reorder P4 struct key initializers and blocks

The basic_routing.p4 program was failing verification due to missed map
key initializers in some paths. Put the goto label at the head of the
block and add a " = {}" for each key declaration inside the block.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/cc/frontends/p4/compiler/ebpfTable.py