commit | 29e97d214509ef4977838e073d30f6b16f75c6d5 | [log] [tgz] |
---|---|---|
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | Sat Nov 21 15:57:31 2015 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 23 15:06:39 2015 -0500 |
tree | 2065e7be564902d1e81233e7b45f46824823fbb5 | |
parent | af623236a9f3a20aa2f15f03cf9fe7bfd13b8889 [diff] |
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>