]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: Extract br_vlan_add_existing()
authorPetr Machata <petrm@mellanox.com>
Wed, 30 May 2018 00:56:55 +0000 (02:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 May 2018 18:13:43 +0000 (14:13 -0400)
commit3394761f34c256c174cff81dd808e332bcb966b0
tree569ae047d67febb61d0a10735313512863a00412
parent34449461ec3aad90f7876f1e4b5f862bd1987262
net: bridge: Extract br_vlan_add_existing()

Extract the code that deals with adding a preexisting VLAN to bridge CPU
port to a separate function. A follow-up patch introduces a need to roll
back operations in this block due to an error, and this split will make
the error-handling code clearer.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c