2
* Copyright (c) 2010, 2011, 2012 Nicira, Inc.
2
* Copyright (c) 2010, 2011, 2012, 2013 Nicira, Inc.
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
51
54
int oxm_put_match(struct ofpbuf *, const struct match *);
53
56
char *nx_match_to_string(const uint8_t *, unsigned int match_len);
54
char *oxm_match_to_string(const uint8_t *, unsigned int match_len);
57
char *oxm_match_to_string(const struct ofpbuf *, unsigned int match_len);
55
58
int nx_match_from_string(const char *, struct ofpbuf *);
56
59
int oxm_match_from_string(const char *, struct ofpbuf *);
58
void nxm_parse_reg_move(struct ofpact_reg_move *, const char *);
59
void nxm_parse_reg_load(struct ofpact_reg_load *, const char *);
61
char *nxm_parse_reg_move(struct ofpact_reg_move *, const char *)
63
char *nxm_parse_reg_load(struct ofpact_reg_load *, const char *)
61
66
void nxm_format_reg_move(const struct ofpact_reg_move *, struct ds *);
62
67
void nxm_format_reg_load(const struct ofpact_reg_load *, struct ds *);
78
83
void nxm_reg_load_to_nxast(const struct ofpact_reg_load *,
79
84
struct ofpbuf *openflow);
81
void nxm_execute_reg_move(const struct ofpact_reg_move *, struct flow *);
86
void nxm_execute_reg_move(const struct ofpact_reg_move *, struct flow *,
87
struct flow_wildcards *);
82
88
void nxm_execute_reg_load(const struct ofpact_reg_load *, struct flow *);
83
89
void nxm_reg_load(const struct mf_subfield *, uint64_t src_data,
90
struct flow *, struct flow_wildcards *);
92
char *nxm_parse_stack_action(struct ofpact_stack *, const char *)
95
void nxm_format_stack_push(const struct ofpact_stack *, struct ds *);
96
void nxm_format_stack_pop(const struct ofpact_stack *, struct ds *);
98
enum ofperr nxm_stack_push_from_openflow(const struct nx_action_stack *,
99
struct ofpbuf *ofpacts);
100
enum ofperr nxm_stack_pop_from_openflow(const struct nx_action_stack *,
101
struct ofpbuf *ofpacts);
102
enum ofperr nxm_stack_push_check(const struct ofpact_stack *,
103
const struct flow *);
104
enum ofperr nxm_stack_pop_check(const struct ofpact_stack *,
105
const struct flow *);
107
void nxm_stack_push_to_nxast(const struct ofpact_stack *,
108
struct ofpbuf *openflow);
109
void nxm_stack_pop_to_nxast(const struct ofpact_stack *,
110
struct ofpbuf *openflow);
112
void nxm_execute_stack_push(const struct ofpact_stack *,
113
const struct flow *, struct flow_wildcards *,
115
void nxm_execute_stack_pop(const struct ofpact_stack *,
116
struct flow *, struct flow_wildcards *,
86
119
int nxm_field_bytes(uint32_t header);
87
120
int nxm_field_bits(uint32_t header);