[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1375494636-7947-1-git-send-email-vfalico@redhat.com>
Date: Sat, 3 Aug 2013 03:50:34 +0200
From: Veaceslav Falico <vfalico@...hat.com>
To: netdev@...r.kernel.org
Cc: Jay Vosburgh <fubar@...ibm.com>,
Andy Gospodarek <andy@...yhouse.net>,
Veaceslav Falico <vfalico@...hat.com>
Subject: [PATCH net-next 0/2] bonding: cleanup arp_interval related time math
Current implementation uses heavily time_in_range() with similar, lengthy,
params. By moving it to a separate function we can simplify the code a lot.
First patch saves a possibly heavy slave_last_rx() function to a variable
and uses the variable in the calculation.
Second patch introduces helper function bond_time_in_interval() to make the
arp_interval math and uses it instead of lengthy time_in_range() calls.
Both of them don't change anything logically and in terms of speed and are
purely cleanup patches.
CC: Jay Vosburgh <fubar@...ibm.com>
CC: Andy Gospodarek <andy@...yhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@...hat.com>
drivers/net/bonding/bond_main.c | 88 +++++++++++++++------------------------
1 files changed, 34 insertions(+), 54 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists