[netpfga] naming change
This commit is contained in:
parent
a6490faca4
commit
23a64da1f4
1 changed files with 5 additions and 5 deletions
|
@ -75,9 +75,9 @@ control TopPipe(inout headers hdr,
|
||||||
inout sume_metadata_t sume_metadata) {
|
inout sume_metadata_t sume_metadata) {
|
||||||
|
|
||||||
action swap_eth_addresses() {
|
action swap_eth_addresses() {
|
||||||
EthAddr_t temp = hdr.ethernet.dstAddr;
|
EthAddr_t temp = hdr.ethernet.dst_addr;
|
||||||
hdr.ethernet.dstAddr = hdr.ethernet.srcAddr;
|
hdr.ethernet.dst_addr = hdr.ethernet.src_addr;
|
||||||
hdr.ethernet.srcAddr = temp;
|
hdr.ethernet.src_addr = temp;
|
||||||
|
|
||||||
/* set egress port */
|
/* set egress port */
|
||||||
sume_metadata.dst_port = sume_metadata.src_port;
|
sume_metadata.dst_port = sume_metadata.src_port;
|
||||||
|
@ -100,12 +100,12 @@ control TopPipe(inout headers hdr,
|
||||||
}
|
}
|
||||||
|
|
||||||
action do_nothing() {
|
action do_nothing() {
|
||||||
EthAddr_t temp = hdr.ethernet.dstAddr;
|
EthAddr_t temp = hdr.ethernet.dst_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
table lookup_table {
|
table lookup_table {
|
||||||
key = {
|
key = {
|
||||||
hdr.ethernet.dstAddr: exact;
|
hdr.ethernet.dst_addr: exact;
|
||||||
}
|
}
|
||||||
|
|
||||||
actions = {
|
actions = {
|
||||||
|
|
Loading…
Reference in a new issue