]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Use existing netif_is_bond_master function
authorParav Pandit <parav@mellanox.com>
Sun, 28 Jan 2018 09:25:32 +0000 (11:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 28 Jan 2018 21:07:16 +0000 (14:07 -0700)
commit198f1571d709aa0d3091bdffe18a86ed1c41be13
treedaf00795b7ced85c88a198edd3fce388fe80f309
parent7074a5eb316f4796c0bbaf836b0d9db30e8127df
RDMA/cma: Use existing netif_is_bond_master function

When checking whatever the current netdev is the bond master interface,
use kernel API netif_is_bond_master() instead of hardcoding the check.
No functionality is changed.

Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c