X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flacp.h;h=89b0e0ae7561000a7322a543ca4f8a0505cd4b0c;hb=fd76a6f94338b668175336434b156827458b5e7d;hp=5e1982601f4a8774497da9c6697eab05acf13fb8;hpb=b20a8f7c11fbff647cc65cc3db22a22e5d5cad0b;p=sliver-openvswitch.git diff --git a/lib/lacp.h b/lib/lacp.h index 5e1982601..89b0e0ae7 100644 --- a/lib/lacp.h +++ b/lib/lacp.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Nicira Networks. + * Copyright (c) 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,7 +39,8 @@ struct lacp_settings { void lacp_init(void); struct lacp *lacp_create(void); -void lacp_destroy(struct lacp *); +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 *); @@ -60,7 +61,6 @@ void lacp_slave_register(struct lacp *, void *slave_, void lacp_slave_unregister(struct lacp *, const void *slave); void lacp_slave_carrier_changed(const struct lacp *, const void *slave); bool lacp_slave_may_enable(const struct lacp *, const void *slave); -uint16_t lacp_slave_get_port_id(const struct lacp *, const void *slave); bool lacp_slave_is_current(const struct lacp *, const void *slave_); /* Callback function for lacp_run() for sending a LACP PDU. */