]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitdbd6dc752c8a6de428eacad47d4fd37e52f98183
tree569ae047d67febb61d0a10735313512863a00412
parentd66e4348969de33cccdd2bc3920b49fb0114b306
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