git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge: Drop LACP configuration members from struct iface and struct port.
[sliver-openvswitch.git]
/
lib
/
lacp.h
diff --git
a/lib/lacp.h
b/lib/lacp.h
index
60abadd
..
c5f3c2f
100644
(file)
--- a/
lib/lacp.h
+++ b/
lib/lacp.h
@@
-19,11
+19,7
@@
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
-
-struct ds;
-struct lacp;
-struct lacp_pdu;
-struct ofpbuf;
+#include "packets.h"
/* Function called when a LACP PDU is ready to be sent out the given slave */
typedef void lacp_send_pdu(void *slave, const struct lacp_pdu *);
/* Function called when a LACP PDU is ready to be sent out the given slave */
typedef void lacp_send_pdu(void *slave, const struct lacp_pdu *);
@@
-31,8
+27,12
@@
typedef void lacp_send_pdu(void *slave, const struct lacp_pdu *);
void lacp_init(void);
struct lacp *lacp_create(void);
void lacp_destroy(struct lacp *);
void lacp_init(void);
struct lacp *lacp_create(void);
void lacp_destroy(struct lacp *);
-void lacp_configure(struct lacp *, const char *name, uint8_t sys_id[8],
+
+void lacp_configure(struct lacp *, const char *name,
+ const uint8_t sys_id[ETH_ADDR_LEN],
uint16_t sys_priority, bool active, bool fast);
uint16_t sys_priority, bool active, bool fast);
+bool lacp_is_active(const struct lacp *);
+
void lacp_process_pdu(struct lacp *, const void *slave,
const struct lacp_pdu *);
bool lacp_negotiated(const struct lacp *);
void lacp_process_pdu(struct lacp *, const void *slave,
const struct lacp_pdu *);
bool lacp_negotiated(const struct lacp *);