mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 06:45:17 +00:00
ofp-bundle: Minor style fixes for header.
Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
This commit is contained in:
@@ -26,17 +26,12 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Abstract OFPT_BUNDLE_CONTROL message. */
|
||||||
struct ofputil_bundle_ctrl_msg {
|
struct ofputil_bundle_ctrl_msg {
|
||||||
uint32_t bundle_id;
|
uint32_t bundle_id;
|
||||||
uint16_t type;
|
uint16_t type;
|
||||||
uint16_t flags;
|
uint16_t flags;
|
||||||
};
|
|
||||||
|
|
||||||
struct ofputil_bundle_add_msg {
|
|
||||||
uint32_t bundle_id;
|
|
||||||
uint16_t flags;
|
|
||||||
const struct ofp_header *msg;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ofperr ofputil_decode_bundle_ctrl(const struct ofp_header *,
|
enum ofperr ofputil_decode_bundle_ctrl(const struct ofp_header *,
|
||||||
@@ -46,6 +41,13 @@ struct ofpbuf *ofputil_encode_bundle_ctrl_request(
|
|||||||
enum ofp_version, struct ofputil_bundle_ctrl_msg *);
|
enum ofp_version, struct ofputil_bundle_ctrl_msg *);
|
||||||
struct ofpbuf *ofputil_encode_bundle_ctrl_reply(
|
struct ofpbuf *ofputil_encode_bundle_ctrl_reply(
|
||||||
const struct ofp_header *, struct ofputil_bundle_ctrl_msg *);
|
const struct ofp_header *, struct ofputil_bundle_ctrl_msg *);
|
||||||
|
|
||||||
|
/* Abstract OFPT_BUNDLE_ADD_MESSAGE message. */
|
||||||
|
struct ofputil_bundle_add_msg {
|
||||||
|
uint32_t bundle_id;
|
||||||
|
uint16_t flags;
|
||||||
|
const struct ofp_header *msg;
|
||||||
|
};
|
||||||
|
|
||||||
struct ofpbuf *ofputil_encode_bundle_add(enum ofp_version,
|
struct ofpbuf *ofputil_encode_bundle_add(enum ofp_version,
|
||||||
struct ofputil_bundle_add_msg *);
|
struct ofputil_bundle_add_msg *);
|
||||||
@@ -53,7 +55,7 @@ struct ofpbuf *ofputil_encode_bundle_add(enum ofp_version,
|
|||||||
enum ofperr ofputil_decode_bundle_add(const struct ofp_header *,
|
enum ofperr ofputil_decode_bundle_add(const struct ofp_header *,
|
||||||
struct ofputil_bundle_add_msg *,
|
struct ofputil_bundle_add_msg *,
|
||||||
enum ofptype *);
|
enum ofptype *);
|
||||||
|
|
||||||
/* Bundle message as produced by ofp-parse. */
|
/* Bundle message as produced by ofp-parse. */
|
||||||
struct ofputil_bundle_msg {
|
struct ofputil_bundle_msg {
|
||||||
enum ofptype type;
|
enum ofptype type;
|
||||||
|
Reference in New Issue
Block a user