]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: consolidate the VIFF_TUNNEL handling in ipmr_new_tunnel
authorChristoph Hellwig <hch@lst.de>
Tue, 19 May 2020 13:03:12 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2020 22:45:11 +0000 (15:45 -0700)
commit146e32f8d87c2eb4b635fe8ac21a455ef72b6a29
tree013c6fd83c907892138ada1883e5bfa2f63ff515
parent36daff89355c0bfbc6325fc6ab2c2c9715a82037
ipv4: consolidate the VIFF_TUNNEL handling in ipmr_new_tunnel

Also move the dev_set_allmulti call and the error handling into the
ioctl helper.  This allows reusing already looked up tunnel_dev pointer
and the set up argument structure for the deletion in the error handler.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c