aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_init.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:37:19 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:42 -0500
commit8d5726c404fd41fedb7a49e1fbef62c60754021a (patch)
tree2e0228391607ab5f9b8fd0c6a8772c5d54009e7a /drivers/net/bnx2x_init.h
parent052a38e096dece43e38a19a896ae7ad019415bc1 (diff)
bnx2x: Manual setting for MRRS
Allows better debug capabilities if the user wants to force an MRRS value Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_init.h')
-rw-r--r--drivers/net/bnx2x_init.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_init.h b/drivers/net/bnx2x_init.h
index a6c0b3abba29..961db4916f25 100644
--- a/drivers/net/bnx2x_init.h
+++ b/drivers/net/bnx2x_init.h
@@ -572,7 +572,12 @@ static void bnx2x_init_pxp(struct bnx2x *bp)
572 bp->pcie_cap + PCI_EXP_DEVCTL, &devctl); 572 bp->pcie_cap + PCI_EXP_DEVCTL, &devctl);
573 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); 573 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl);
574 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); 574 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5);
575 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12); 575 if (bp->mrrs == -1)
576 r_order = ((devctl & PCI_EXP_DEVCTL_READRQ) >> 12);
577 else {
578 DP(NETIF_MSG_HW, "force read order to %d\n", bp->mrrs);
579 r_order = bp->mrrs;
580 }
576 581
577 if (r_order > MAX_RD_ORD) { 582 if (r_order > MAX_RD_ORD) {
578 DP(NETIF_MSG_HW, "read order of %d order adjusted to %d\n", 583 DP(NETIF_MSG_HW, "read order of %d order adjusted to %d\n",