[Bridge] [PATCH net-next] bridge: fdb: rearrange net_bridge_fdb_entry

David Miller davem at davemloft.net
Thu Aug 27 23:39:09 UTC 2015


From: Nikolay Aleksandrov <razor at blackwall.org>
Date: Thu, 27 Aug 2015 14:19:20 -0700

> From: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>
> 
> While looking into fixing the local entries scalability issue I noticed
> that the structure is badly arranged because vlan_id would fall in a
> second cache line while keeping rcu which is used only when deleting
> in the first, so re-arrange the structure and push rcu to the end so we
> can get 16 bytes which can be used for other fields (by pushing rcu
> fully in the second 64 byte chunk). With this change all the core
> necessary information when doing fdb lookups will be available in a
> single cache line.
 ...
> Signed-off-by: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>

This looks fine, applied, thanks.


More information about the Bridge mailing list