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
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
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
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: