From: Ethan Jackson Date: Mon, 24 Jun 2013 22:46:42 +0000 (-0700) Subject: lacp: Remove unused lacp_slave_get_port_id(). X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~59 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=b4af6ceeea7bc757de1e8294036b522e81e3a3fa lacp: Remove unused lacp_slave_get_port_id(). Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff --- diff --git a/lib/lacp.c b/lib/lacp.c index 8fd9d899b..8bc115dd6 100644 --- a/lib/lacp.c +++ b/lib/lacp.c @@ -382,14 +382,6 @@ lacp_slave_may_enable(const struct lacp *lacp, const void *slave_) } } -/* Returns the port ID used for 'slave_' in LACP communications. */ -uint16_t -lacp_slave_get_port_id(const struct lacp *lacp, const void *slave_) -{ - struct slave *slave = slave_lookup(lacp, slave_); - return slave->port_id; -} - /* Returns true if partner information on 'slave_' is up to date. 'slave_' * not being current, generally indicates a connectivity problem, or a * misconfigured (or broken) partner. */ diff --git a/lib/lacp.h b/lib/lacp.h index 624e3682d..399b39e30 100644 --- a/lib/lacp.h +++ b/lib/lacp.h @@ -60,7 +60,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. */