Re: [PATCH][net-next] vxlan: reduce dirty cache line in vxlan_find_mac

2018-08-29 Thread David Miller
From: Li RongQing Date: Wed, 29 Aug 2018 11:52:10 +0800 > vxlan_find_mac() unconditionally set f->used for every packet, > this causes a cache miss for every packet, since remote, hlist > and used of vxlan_fdb share the same cache line, which are > accessed when send every packets. > > so f->use

[PATCH][net-next] vxlan: reduce dirty cache line in vxlan_find_mac

2018-08-28 Thread Li RongQing
vxlan_find_mac() unconditionally set f->used for every packet, this causes a cache miss for every packet, since remote, hlist and used of vxlan_fdb share the same cache line, which are accessed when send every packets. so f->used is set only if not equal to jiffies, to reduce dirty cache line time

Re: [PATCH][net-next] vxlan: reduce dirty cache line in vxlan_find_mac

2018-08-19 Thread David Miller
From: Li RongQing Date: Sun, 19 Aug 2018 11:36:08 +0800 > vxlan_find_mac() unconditionally set f->used for every packet, > this cause a cache miss for every packet, since remote, hlist > and used of vxlan_fdb share the same cacheline. > > With this change f->used is set only if not equal to jiff

[PATCH][net-next] vxlan: reduce dirty cache line in vxlan_find_mac

2018-08-18 Thread Li RongQing
vxlan_find_mac() unconditionally set f->used for every packet, this cause a cache miss for every packet, since remote, hlist and used of vxlan_fdb share the same cacheline. With this change f->used is set only if not equal to jiffies This gives up to 5% speed-up with small packets. Signed-off-by: