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>
Showing
- drivers/net/bonding/bond_main.c 2 additions, 0 deletionsdrivers/net/bonding/bond_main.c
- drivers/net/bonding/bond_sysfs.c 3 additions, 0 deletionsdrivers/net/bonding/bond_sysfs.c
- include/linux/if.h 1 addition, 0 deletionsinclude/linux/if.h
- include/linux/netdevice.h 18 additions, 14 deletionsinclude/linux/netdevice.h
Loading
Please register or sign in to comment