bnx2x: allow user to change ring size in ISCSI SD mode
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 23 Jan 2012 07:31:54 +0000 (07:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2012 18:58:18 +0000 (13:58 -0500)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

index 2b731b2..03f3935 100644 (file)
@@ -3117,7 +3117,7 @@ static int bnx2x_alloc_fp_mem_at(struct bnx2x *bp, int index)
        int rx_ring_size = 0;
 
 #ifdef BCM_CNIC
-       if (IS_MF_ISCSI_SD(bp)) {
+       if (!bp->rx_ring_size && IS_MF_ISCSI_SD(bp)) {
                rx_ring_size = MIN_RX_SIZE_NONTPA;
                bp->rx_ring_size = rx_ring_size;
        } else