~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/bundle.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2011, 2012 Nicira, Inc.
 
1
/* Copyright (c) 2011, 2012, 2013 Nicira, Inc.
2
2
 *
3
3
 * Licensed under the Apache License, Version 2.0 (the "License");
4
4
 * you may not use this file except in compliance with the License.
21
21
#include <stddef.h>
22
22
#include <stdint.h>
23
23
 
 
24
#include "compiler.h"
24
25
#include "ofp-errors.h"
25
26
#include "openflow/nicira-ext.h"
26
27
#include "openvswitch/types.h"
27
28
 
28
29
struct ds;
29
30
struct flow;
 
31
struct flow_wildcards;
30
32
struct ofpact_bundle;
31
33
struct ofpbuf;
32
34
 
34
36
 *
35
37
 * See include/openflow/nicira-ext.h for NXAST_BUNDLE specification. */
36
38
 
37
 
uint16_t bundle_execute(const struct ofpact_bundle *, const struct flow *,
38
 
                        bool (*slave_enabled)(uint16_t ofp_port, void *aux),
 
39
ofp_port_t bundle_execute(const struct ofpact_bundle *, const struct flow *,
 
40
                        struct flow_wildcards *wc,
 
41
                        bool (*slave_enabled)(ofp_port_t ofp_port, void *aux),
39
42
                        void *aux);
40
43
enum ofperr bundle_from_openflow(const struct nx_action_bundle *,
41
44
                                 struct ofpbuf *ofpact);
42
 
enum ofperr bundle_check(const struct ofpact_bundle *, int max_ports,
 
45
enum ofperr bundle_check(const struct ofpact_bundle *, ofp_port_t max_ports,
43
46
                         const struct flow *);
44
47
void bundle_to_nxast(const struct ofpact_bundle *, struct ofpbuf *of10);
45
 
void bundle_parse(const char *, struct ofpbuf *ofpacts);
46
 
void bundle_parse_load(const char *, struct ofpbuf *ofpacts);
 
48
char *bundle_parse(const char *, struct ofpbuf *ofpacts) WARN_UNUSED_RESULT;
 
49
char *bundle_parse_load(const char *, struct ofpbuf *ofpacts)
 
50
    WARN_UNUSED_RESULT;
47
51
void bundle_format(const struct ofpact_bundle *, struct ds *);
48
52
 
49
53
#endif /* bundle.h */