]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Consolidate checking of the proposed child interface
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 29 Jul 2018 08:35:00 +0000 (11:35 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Aug 2018 02:27:44 +0000 (20:27 -0600)
commit2a9ae3823aa75a425f6d0c369a43bba993083264
treee77d4cf0db3cdcacbbc85f872c0256148714829a
parent468c8c05cc34a3f65b6e0d227e6f396c44ecfb06
IB/ipoib: Consolidate checking of the proposed child interface

Move all the checking for pkey and other validity to the __ipoib_vlan_add
function. This removes the last difference from the control flow
of the __ipoib_vlan_add to make the overall design simpler to
understand.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_netlink.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c