aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes.c3
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index 3b4ec3238ceb..3d7f3664b67b 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -153,7 +153,8 @@ static int nes_inetaddr_event(struct notifier_block *notifier,
153 nesdev, nesdev->netdev[0]->name); 153 nesdev, nesdev->netdev[0]->name);
154 netdev = nesdev->netdev[0]; 154 netdev = nesdev->netdev[0];
155 nesvnic = netdev_priv(netdev); 155 nesvnic = netdev_priv(netdev);
156 is_bonded = (netdev->master == event_netdev); 156 is_bonded = netif_is_bond_slave(netdev) &&
157 (netdev->master == event_netdev);
157 if ((netdev == event_netdev) || is_bonded) { 158 if ((netdev == event_netdev) || is_bonded) {
158 if (nesvnic->rdma_enabled == 0) { 159 if (nesvnic->rdma_enabled == 0) {
159 nes_debug(NES_DBG_NETDEV, "Returning without processing event for %s since" 160 nes_debug(NES_DBG_NETDEV, "Returning without processing event for %s since"
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 009ec814d517..ec3aa11c36cb 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -1118,7 +1118,7 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
1118 return rc; 1118 return rc;
1119 } 1119 }
1120 1120
1121 if (nesvnic->netdev->master) 1121 if (netif_is_bond_slave(netdev))
1122 netdev = nesvnic->netdev->master; 1122 netdev = nesvnic->netdev->master;
1123 else 1123 else
1124 netdev = nesvnic->netdev; 1124 netdev = nesvnic->netdev;