2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ofp-actions: Move function for struct ofpact_nest near struct definition.

This seems like a logical place for it.

Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Ben Pfaff
2016-12-15 09:25:04 -08:00
parent aad28f47b8
commit 4b1a2aef1a

View File

@@ -543,6 +543,12 @@ BUILD_ASSERT_DECL(offsetof(struct ofpact_nest, actions) % OFPACT_ALIGNTO == 0);
BUILD_ASSERT_DECL(offsetof(struct ofpact_nest, actions)
== sizeof(struct ofpact_nest));
static inline size_t
ofpact_nest_get_action_len(const struct ofpact_nest *on)
{
return on->ofpact.len - offsetof(struct ofpact_nest, actions);
}
/* Bits for 'flags' in struct nx_action_conntrack.
*
* If NX_CT_F_COMMIT is set, then the connection entry is moved from the
@@ -584,12 +590,6 @@ ofpact_ct_get_action_len(const struct ofpact_conntrack *oc)
return oc->ofpact.len - offsetof(struct ofpact_conntrack, actions);
}
static inline size_t
ofpact_nest_get_action_len(const struct ofpact_nest *on)
{
return on->ofpact.len - offsetof(struct ofpact_nest, actions);
}
void ofpacts_execute_action_set(struct ofpbuf *action_list,
const struct ofpbuf *action_set);