projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
708ea05
)
RDMA/cma: Use existing netif_is_bond_master function
author
Parav Pandit
<
[email protected]
>
Sun, 28 Jan 2018 09:25:32 +0000
(11:25 +0200)
committer
Jason Gunthorpe
<
[email protected]
>
Sun, 28 Jan 2018 21:07:16 +0000
(14:07 -0700)
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 <
[email protected]
>
Signed-off-by: Parav Pandit <
[email protected]
>
Signed-off-by: Leon Romanovsky <
[email protected]
>
Reviewed-by: Yuval Shaia <
[email protected]
>
Signed-off-by: Jason Gunthorpe <
[email protected]
>
drivers/infiniband/core/cma.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/cma.c
b/drivers/infiniband/core/cma.c
index 84812b9dea9b938343c117104b4f526da1d6c439..e66963ca58bddaf02813c4e080f48ad4cf18be00 100644
(file)
--- a/
drivers/infiniband/core/cma.c
+++ b/
drivers/infiniband/core/cma.c
@@
-4294,7
+4294,7
@@
static int cma_netdev_callback(struct notifier_block *self, unsigned long event,
if (event != NETDEV_BONDING_FAILOVER)
return NOTIFY_DONE;
- if (!
(ndev->flags & IFF_MASTER) || !(ndev->priv_flags & IFF_BONDING
))
+ if (!
netif_is_bond_master(ndev
))
return NOTIFY_DONE;
mutex_lock(&lock);