• Jiri Benc's avatar
    route: move lwtunnel state to a single place · 0868e253
    Jiri Benc authored
    Commit 751a587a ("route: fix breakage after moving lwtunnel state")
    moved lwtstate to the end of dst_entry for 32bit archs. This makes it share
    the cacheline with __refcnt which had an unkown effect on performance. For
    this reason, the pointer was kept in place for 64bit archs.
    However, later performance measurements showed this is of no concern. It
    turns out that every performance sensitive path that accesses lwtstate
    accesses also struct rtable or struct rt6_info which share the same cache
    Thus, to get rid of a few #ifdefs, move the field to the end of the struct
    also for 64bit.
    Signed-off-by: 's avatarJiri Benc <jbenc@redhat.com>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
dst.h 13.5 KB