Skip to content

Commit

Permalink
ovn-controller: Remove "_p" from pointer arguments in lflow.c.
Browse files Browse the repository at this point in the history
This more closely follows our coding standards.

Signed-off-by: Justin Pettit <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
justinpettit committed Jan 5, 2017
1 parent d49a357 commit 8923168
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ovn/controller/lflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ static void consider_logical_flow(const struct lport_index *lports,
const struct hmap *local_datapaths,
struct group_table *group_table,
const struct simap *ct_zones,
struct hmap *dhcp_opts_p,
struct hmap *dhcpv6_opts_p,
uint32_t *conj_id_ofs_p,
struct hmap *dhcp_opts,
struct hmap *dhcpv6_opts,
uint32_t *conj_id_ofs,
const struct shash *addr_sets,
struct hmap *flow_table);

Expand Down Expand Up @@ -137,9 +137,9 @@ consider_logical_flow(const struct lport_index *lports,
const struct hmap *local_datapaths,
struct group_table *group_table,
const struct simap *ct_zones,
struct hmap *dhcp_opts_p,
struct hmap *dhcpv6_opts_p,
uint32_t *conj_id_ofs_p,
struct hmap *dhcp_opts,
struct hmap *dhcpv6_opts,
uint32_t *conj_id_ofs,
const struct shash *addr_sets,
struct hmap *flow_table)
{
Expand Down Expand Up @@ -170,8 +170,8 @@ consider_logical_flow(const struct lport_index *lports,
struct ofpbuf ovnacts = OFPBUF_STUB_INITIALIZER(ovnacts_stub);
struct ovnact_parse_params pp = {
.symtab = &symtab,
.dhcp_opts = dhcp_opts_p,
.dhcpv6_opts = dhcpv6_opts_p,
.dhcp_opts = dhcp_opts,
.dhcpv6_opts = dhcpv6_opts,

.n_tables = LOG_PIPELINE_LEN,
.cur_ltable = lflow->table_id,
Expand Down Expand Up @@ -247,7 +247,7 @@ consider_logical_flow(const struct lport_index *lports,
match_set_metadata(&m->match,
htonll(lflow->logical_datapath->tunnel_key));
if (m->match.wc.masks.conj_id) {
m->match.flow.conj_id += *conj_id_ofs_p;
m->match.flow.conj_id += *conj_id_ofs;
}
if (!m->n) {
ofctrl_add_flow(flow_table, ptable, lflow->priority,
Expand All @@ -262,7 +262,7 @@ consider_logical_flow(const struct lport_index *lports,
struct ofpact_conjunction *dst;

dst = ofpact_put_CONJUNCTION(&conj);
dst->id = src->id + *conj_id_ofs_p;
dst->id = src->id + *conj_id_ofs;
dst->clause = src->clause;
dst->n_clauses = src->n_clauses;
}
Expand All @@ -275,7 +275,7 @@ consider_logical_flow(const struct lport_index *lports,
/* Clean up. */
expr_matches_destroy(&matches);
ofpbuf_uninit(&ofpacts);
*conj_id_ofs_p += n_conjs;
*conj_id_ofs += n_conjs;
}

static void
Expand Down

0 comments on commit 8923168

Please sign in to comment.