++doc ++egress port

This commit is contained in:
Nico Schottelius 2019-07-10 08:55:07 +02:00
parent 44749cc359
commit 476b04c97c
2 changed files with 6 additions and 1 deletions

View file

@ -4974,7 +4974,7 @@ else:
*** 2019-07-10:
To be finished today:
- delta on bmv2
- general compile on netpfga
- general compile on netpfga [no license server]
** References / Follow up
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791

View file

@ -144,6 +144,11 @@ control MyIngress(inout headers hdr,
standard_metadata.egress_spec = out_port;
}
action set_egress_port_and_mac (port_t out_port, mac_addr_t mac_addr) {
hdr.ethernet.dst_addr = mac_addr;
standard_metadata.egress_spec = out_port;
}
action controller_reply(task_t task) {
meta.task = task;
meta.ingress_port = standard_metadata.ingress_port;