mbox series

[net-next,0/3] net: bridge: minor followup optimizations

Message ID 20191101123844.17518-1-nikolay@cumulusnetworks.com
Headers show
Series net: bridge: minor followup optimizations | expand

Message

Nikolay Aleksandrov Nov. 1, 2019, 12:38 p.m. UTC
Hi,
After the converted flags to bitops we can take advantage of the flags
assignment and remove one test and three atomic bitops from the learning
paths (patch 01 and patch 02), patch 03 restores the unlikely() when taking
over HW learned entries.

Thanks,
 Nik


Nikolay Aleksandrov (3):
  net: bridge: fdb: br_fdb_update can take flags directly
  net: bridge: fdb: avoid two atomic bitops in
    br_fdb_external_learn_add()
  net: bridge: fdb: restore unlikely() when taking over externally added
    entries

 include/trace/events/bridge.h | 12 ++++++------
 net/bridge/br_fdb.c           | 30 +++++++++++++++---------------
 net/bridge/br_input.c         |  4 ++--
 net/bridge/br_private.h       |  2 +-
 4 files changed, 24 insertions(+), 24 deletions(-)

Comments

Nikolay Aleksandrov Nov. 1, 2019, 12:40 p.m. UTC | #1
On 01/11/2019 14:38, Nikolay Aleksandrov wrote:
> Hi,
> After the converted flags to bitops we can take advantage of the flags
> assignment and remove one test and three atomic bitops from the learning
> paths (patch 01 and patch 02), patch 03 restores the unlikely() when taking
> over HW learned entries.
> 
> Thanks,
>  Nik
> 
> 
> Nikolay Aleksandrov (3):
>   net: bridge: fdb: br_fdb_update can take flags directly
>   net: bridge: fdb: avoid two atomic bitops in
>     br_fdb_external_learn_add()
>   net: bridge: fdb: restore unlikely() when taking over externally added
>     entries
> 
>  include/trace/events/bridge.h | 12 ++++++------
>  net/bridge/br_fdb.c           | 30 +++++++++++++++---------------
>  net/bridge/br_input.c         |  4 ++--
>  net/bridge/br_private.h       |  2 +-
>  4 files changed, 24 insertions(+), 24 deletions(-)
> 


Aaargh.. apologies for the noise, the script caught an older set export.
Will re-post a proper v2 in a minute.