make port a command
This commit is contained in:
parent
4387e37f4e
commit
09d5c23aad
2 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
||||||
// only used on netpfga for dummy packet reply
|
// only used on netpfga for dummy packet reply
|
||||||
|
|
||||||
table_cam_add_entry dummy_table_for_netpfga send_to_port1 0x082222222208 => 0x00000001
|
table_cam_add_entry dummy_table_for_netpfga send_to_port1 0x082222222208 => 0x1
|
||||||
|
|
|
@ -5,8 +5,8 @@ action do_nothing() {
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
action send_to_port1() {
|
action send_to_port1(port_t port) {
|
||||||
sume_metadata.dst_port = 1;
|
sume_metadata.dst_port = port;
|
||||||
}
|
}
|
||||||
|
|
||||||
table dummy_table_for_netpfga {
|
table dummy_table_for_netpfga {
|
||||||
|
|
Loading…
Reference in a new issue