aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ppp_mppe.h
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-05-19 03:26:39 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-02 04:16:24 -0700
commit097811bb48c7837db94d7fe5d94f0f4b5e19e78c (patch)
tree61701eb46c49d0a2db449be87ae1d114e03ac9f7 /drivers/net/ppp_mppe.h
parentbonding: remove unused original_flags struct slave member (diff)
downloadlinux-dev-097811bb48c7837db94d7fe5d94f0f4b5e19e78c.tar.xz
linux-dev-097811bb48c7837db94d7fe5d94f0f4b5e19e78c.zip
bonding: optimize tlb_get_least_loaded_slave
In the worst case, when the first loop breaks an the end of the slave list, the slave list is iterated through twice. This patch reduces this function only to one loop. Also makes it simpler. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp_mppe.h')
0 files changed, 0 insertions, 0 deletions