Skip to content

Commit

Permalink
bnx2: Need to call cnic_setup_cnic_irq_info() after MTU change.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Chan authored and David S. Miller committed Feb 16, 2010
1 parent efde73a commit e9f26c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9f26c4

Please sign in to comment.