summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-02-15 19:42:08 +0000
committerDavid S. Miller <davem@davemloft.net>2010-02-16 15:19:02 -0800
commite9f26c49ce790de0064474f97d6402ce1fefac2a (patch)
tree5f8fdcbf3b9b08b3b0f3c3aa77402a889aaed5bf /drivers
parentefde73a35c2fc88db26a1583b19e0ab0fdfcd4f8 (diff)
downloadlinux-3.10-e9f26c49ce790de0064474f97d6402ce1fefac2a.tar.gz
linux-3.10-e9f26c49ce790de0064474f97d6402ce1fefac2a.tar.bz2
linux-3.10-e9f26c49ce790de0064474f97d6402ce1fefac2a.zip
bnx2: Need to call cnic_setup_cnic_irq_info() after MTU change.
New status blocks are allocated during MTU change so we need to update this information for the cnic driver. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 48bc5780385..063f28394e3 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -7141,6 +7141,13 @@ bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx)
dev_close(bp->dev);
return rc;
}
+#ifdef BCM_CNIC
+ mutex_lock(&bp->cnic_lock);
+ /* Let cnic know about the new status block. */
+ if (bp->cnic_eth_dev.drv_state & CNIC_DRV_STATE_REGD)
+ bnx2_setup_cnic_irq_info(bp);
+ mutex_unlock(&bp->cnic_lock);
+#endif
bnx2_netif_start(bp);
}
return 0;