[netpfga] naming change

This commit is contained in:
Nico Schottelius 2019-07-23 12:35:00 +02:00
parent a6490faca4
commit 23a64da1f4

View file

@ -75,9 +75,9 @@ control TopPipe(inout headers hdr,
inout sume_metadata_t sume_metadata) {
action swap_eth_addresses() {
EthAddr_t temp = hdr.ethernet.dstAddr;
hdr.ethernet.dstAddr = hdr.ethernet.srcAddr;
hdr.ethernet.srcAddr = temp;
EthAddr_t temp = hdr.ethernet.dst_addr;
hdr.ethernet.dst_addr = hdr.ethernet.src_addr;
hdr.ethernet.src_addr = temp;
/* set egress port */
sume_metadata.dst_port = sume_metadata.src_port;
@ -100,12 +100,12 @@ control TopPipe(inout headers hdr,
}
action do_nothing() {
EthAddr_t temp = hdr.ethernet.dstAddr;
EthAddr_t temp = hdr.ethernet.dst_addr;
}
table lookup_table {
key = {
hdr.ethernet.dstAddr: exact;
hdr.ethernet.dst_addr: exact;
}
actions = {