]> 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)
commit8b35766c968f44c192aeb387763dd33cd608ca82
tree569ae047d67febb61d0a10735313512863a00412
parentea5fc43f8caf32b000b1b5530afdf8a18cee9f06
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