lkml.org 
[lkml]   [2017]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net-next 0/6] net: bridge: factorize MDB new and del functions
Date
The br_mdb.c file implements both br_mdb_add and br_mdb_del functions, to
handle respectively the RTM_NEWMDB and RTM_DELMDB message types.

But these two functions are really similar. This patch series factorizes
them into a single br_mdb_do rtnl_doit_func function to reduce
boilerplate and simplify the MDB handling code.

Vivien Didelot (6):
net: bridge: pass net_bridge_port to __br_mdb_add
net: bridge: check multicast bridge only once
net: bridge: break if __br_mdb_del fails
net: bridge: add __br_mdb_do
net: bridge: get msgtype from nlmsghdr in mdb ops
net: bridge: add br_mdb_do

net/bridge/br_mdb.c | 107 +++++++++++++++-------------------------------------
1 file changed, 31 insertions(+), 76 deletions(-)

--
2.13.0

\
 
 \ /
  Last update: 2017-05-17 23:32    [W:0.114 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site