]> git.baikalelectronics.ru Git - kernel.git/commit
bonding, net: Move last_rx update into bonding recv logic
authorJay Vosburgh <fubar@us.ibm.com>
Tue, 4 Nov 2008 02:16:50 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 02:16:50 +0000 (18:16 -0800)
commit6192d8054d2e3f44d8f290724ba746dba55b4326
treea4e173960afe6712c112b3ddea1f229a695b7089
parent582b69f18f3beed66860746438473cf0ec393380
bonding, net: Move last_rx update into bonding recv logic

The only user of the net_device->last_rx field is bonding.
This patch adds a conditional update of last_rx to the bonding special
logic in skb_bond_should_drop, causing last_rx to only be updated when
the ARP monitor is running.

This frees network device drivers from the necessity of
updating last_rx, which can have cache line thrash issues.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
include/linux/if.h
include/linux/netdevice.h