datapath: Don't set dev->last_rx on kernels >= 2.6.29.
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 00:46:47 +0000 (16:46 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:16 +0000 (17:10 -0800)
commita5b7d883a873fce2f838d59185e70013afc6987d
tree7e1b2c75868ad87a8924fd662978edc5b6213ef5
parent15d90bb6c970eb1c96f8ffada260780a03660a8a
datapath: Don't set dev->last_rx on kernels >= 2.6.29.

dev->last_rx is used for rebalancing in Linux bonding.  However,
on a SMP machine it quickly becomes a very hot cacheline.  On
kernels 2.6.29 and later the networking core will update last_rx
only if bonding is in use, so drivers do not need to set it at all.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c