[ovs-dev] [PATCH 12/14] datapath: Don't set dev->last_rx on kernels >= 2.6.29.

Ben Pfaff blp at nicira.com
Thu Dec 2 23:59:11 UTC 2010


On Thu, Dec 02, 2010 at 12:37:01PM -0800, Jesse Gross wrote:
> 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 at nicira.com>

Good spotting.

I verified that the last_rx assignment suppression happened in 2.6.29.

Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list