]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: make vxlan_sock_add and vxlan_sock_release complementary
authorJiri Benc <jbenc@redhat.com>
Thu, 24 Sep 2015 11:50:01 +0000 (13:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2015 05:40:55 +0000 (22:40 -0700)
commit3eea31ec6d174257e94e1a654597bc8ba4cd45dd
tree8446b00352c0008eddb86d8c80e876ee749c7263
parent6a0da32f11dece4d58da96049b4d85edc4193166
vxlan: make vxlan_sock_add and vxlan_sock_release complementary

Make vxlan_sock_add both alloc the socket and attach it to vxlan_dev. Let
vxlan_sock_release accept vxlan_dev as its parameter instead of vxlan_sock.

This makes vxlan_sock_add and vxlan_sock release complementary. It reduces
code duplication in the next patch.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c