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:
@@ -294,7 +294,9 @@ struct ofputil_flow_mod {
|
||||
enum ofperr ofputil_decode_flow_mod(struct ofputil_flow_mod *,
|
||||
const struct ofp_header *,
|
||||
enum ofputil_protocol,
|
||||
struct ofpbuf *ofpacts);
|
||||
struct ofpbuf *ofpacts,
|
||||
ofp_port_t max_port,
|
||||
uint8_t max_table);
|
||||
struct ofpbuf *ofputil_encode_flow_mod(const struct ofputil_flow_mod *,
|
||||
enum ofputil_protocol);
|
||||
|
||||
|
Reference in New Issue
Block a user