mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
net: ipmr: rearrange and cleanup setsockopt
Take rtnl in the beginning unconditionally as most options already need it (one exception - MRT_DONE, see the comment inside), make the lock/unlock places central and move out the switch() local variables. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
af623236a9
commit
29e97d2145
1 changed files with 107 additions and 84 deletions
195
net/ipv4/ipmr.c
195
net/ipv4/ipmr.c
Loading…
Add table
Add a link
Reference in a new issue