mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ofproto: Centralize action checking, doing it at decode time.
Jarno pointed out that modify_flows__() didn't really need to check every instance of the flow separately. After some further investigation I decided that this was even more of an improvement. CC: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
@@ -587,8 +587,9 @@ enum ofperr ofpacts_pull_openflow_instructions(struct ofpbuf *openflow,
|
||||
enum ofp_version version,
|
||||
struct ofpbuf *ofpacts);
|
||||
enum ofperr ofpacts_check(struct ofpact[], size_t ofpacts_len,
|
||||
struct flow *, ofp_port_t max_ports,
|
||||
uint8_t table_id, bool enforce_consistency);
|
||||
struct flow *, bool enforce_consistency,
|
||||
ofp_port_t max_ports,
|
||||
uint8_t table_id, uint8_t n_tables);
|
||||
enum ofperr ofpacts_verify(const struct ofpact ofpacts[], size_t ofpacts_len);
|
||||
enum ofperr ofpact_check_output_port(ofp_port_t port, ofp_port_t max_ports);
|
||||
|
||||
|
Reference in New Issue
Block a user