The HAL of1x cmm interface is the interface that the driver can consume to produce OpenFlow related notifications to the CMM.
More...
|
HAL_BEGIN_DECLS hal_result_t | hal_cmm_process_of1x_packet_in (uint64_t dpid, uint8_t table_id, uint8_t reason, uint32_t in_port, uint32_t buffer_id, uint64_t cookie, uint8_t *pkt_buffer, uint32_t buf_len, uint16_t total_len, packet_matches_t *matches) |
| Instructs the CMM to process a PACKET_IN event comming from the DP. More...
|
|
hal_result_t | hal_cmm_process_of1x_flow_removed (uint64_t dpid, uint8_t reason, of1x_flow_entry_t *removed_flow_entry) |
| Instructs the CMM to process a FLOW_REMOVED event comming from the DP. More...
|
|
The HAL of1x cmm interface is the interface that the driver can consume to produce OpenFlow related notifications to the CMM.
hal_result_t hal_cmm_process_of1x_flow_removed |
( |
uint64_t |
dpid, |
|
|
uint8_t |
reason, |
|
|
of1x_flow_entry_t * |
removed_flow_entry |
|
) |
| |
Instructs the CMM to process a FLOW_REMOVED event comming from the DP.
- Parameters
-
dpid | OpenFlow switch DPID |
removed_flow_entry | The entry shall ONLY be used for reading, and shall NEVER be removed (of1x_remove_flow_entry). This is done by the fwd_module itself. |
HAL_BEGIN_DECLS hal_result_t hal_cmm_process_of1x_packet_in |
( |
uint64_t |
dpid, |
|
|
uint8_t |
table_id, |
|
|
uint8_t |
reason, |
|
|
uint32_t |
in_port, |
|
|
uint32_t |
buffer_id, |
|
|
uint64_t |
cookie, |
|
|
uint8_t * |
pkt_buffer, |
|
|
uint32_t |
buf_len, |
|
|
uint16_t |
total_len, |
|
|
packet_matches_t * |
matches |
|
) |
| |
Instructs the CMM to process a PACKET_IN event comming from the DP.
- Parameters
-
dpid | OpenFlow switch DPID |
table_id | ID of the table that produced PACKET_IN |
reason | one of the OFPR_ ... constants |
in_port | Incomming packet port |
buffer_id | Buffer ID. Must be different from 0 or OF1XP_NO_BUFFER |
pkt_buffer | Buffer containing the packet. Shall only be used for reading. |
buf_len | Buffer length (may be shorter than the packet stored in buffer) |
total_len | total length of buffer |
matches | Packet matches |