++doc ++egress port
This commit is contained in:
parent
44749cc359
commit
476b04c97c
2 changed files with 6 additions and 1 deletions
|
@ -4974,7 +4974,7 @@ else:
|
||||||
*** 2019-07-10:
|
*** 2019-07-10:
|
||||||
To be finished today:
|
To be finished today:
|
||||||
- delta on bmv2
|
- delta on bmv2
|
||||||
- general compile on netpfga
|
- general compile on netpfga [no license server]
|
||||||
|
|
||||||
** References / Follow up
|
** References / Follow up
|
||||||
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791
|
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791
|
||||||
|
|
|
@ -144,6 +144,11 @@ control MyIngress(inout headers hdr,
|
||||||
standard_metadata.egress_spec = out_port;
|
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) {
|
action controller_reply(task_t task) {
|
||||||
meta.task = task;
|
meta.task = task;
|
||||||
meta.ingress_port = standard_metadata.ingress_port;
|
meta.ingress_port = standard_metadata.ingress_port;
|
||||||
|
|
Loading…
Reference in a new issue