-void lacp_destroy(struct lacp *);
-void lacp_configure(struct lacp *, const char *name,
- const uint8_t sys_id[ETH_ADDR_LEN],
- uint16_t sys_priority, bool active, bool fast);
-void lacp_process_pdu(struct lacp *, const void *slave,
- const struct lacp_pdu *);
-bool lacp_negotiated(const struct lacp *);
-
-void lacp_slave_register(struct lacp *, void *slave_, const char *name,
- uint16_t port_id, uint16_t port_priority);
+void lacp_unref(struct lacp *);
+struct lacp *lacp_ref(const struct lacp *);
+
+void lacp_configure(struct lacp *, const struct lacp_settings *);
+bool lacp_is_active(const struct lacp *);
+
+void lacp_process_packet(struct lacp *, const void *slave,
+ const struct ofpbuf *packet);
+enum lacp_status lacp_status(const struct lacp *);
+
+struct lacp_slave_settings {
+ char *name; /* Name (for debugging). */
+ uint16_t id; /* Port ID. */
+ uint16_t priority; /* Port priority. */
+ uint16_t key; /* Aggregation key. */
+};
+
+void lacp_slave_register(struct lacp *, void *slave_,
+ const struct lacp_slave_settings *);