IB/core: Avoid confusing del_netdev_default_ips
authorParav Pandit <parav@mellanox.com>
Tue, 14 Aug 2018 07:36:16 +0000 (10:36 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Aug 2018 22:43:55 +0000 (16:43 -0600)
commitb9f09866e0e964ab04968d44602fa3d9de5076f3
treedb30d84923bdcf343dd702fee2e9eac278b617c4
parent666e7099a41afbbc1fb3ee785cad808d2925e12a
IB/core: Avoid confusing del_netdev_default_ips

Currently bond_delete_netdev_default_gids() is called by two callers.
(a) del_netdev_default_ips_join()
(b) del_netdev_default_ips()

Both above functions changes the argument order while calling
bond_delete_netdev_default_gids().  This required silly
del_netdev_default_ips() wrapper.

Additionally, del_netdev_default_ips() deletes default GIDs not IP based
GIDs.  del_netdev_default_ips() having _ips suffix is confusing.

Therefore, get rid of confusing del_netdev_default_ips() and simplify
bond_delete_netdev_default_gids() to follow same argument order as its
caller.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/roce_gid_mgmt.c