Add controller_reply
This commit is contained in:
		
					parent
					
						
							
								d32543cf1b
							
						
					
				
			
			
				commit
				
					
						df73b417c6
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -144,6 +144,13 @@ control MyIngress(inout headers hdr,
 | 
			
		|||
        standard_metadata.egress_spec = out_port;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    action controller_reply(task_t task) {
 | 
			
		||||
        meta.task = task;
 | 
			
		||||
        meta.ingress_port = standard_metadata.ingress_port;
 | 
			
		||||
        clone3(CloneType.I2E, 100, meta);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    action controller_debug_table_id(table_t table_id) {
 | 
			
		||||
        meta.table_id = table_id;
 | 
			
		||||
        controller_reply(TASK_DEBUG);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue