diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2012-09-11 04:34:13 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-13 20:37:52 (GMT) |
commit | 2ace95103df2bcb574c9da5df96807e9b46f9b38 (patch) | |
tree | d559b5cf69b21afb8d5aa295714646519b042d98 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | |
parent | 5cd75f0c0fd2b068dbd0ce3cb9460c3aafc0aae7 (diff) | |
download | linux-fsl-qoriq-2ace95103df2bcb574c9da5df96807e9b46f9b38.tar.xz |
bnx2x: fix registers dumped
Under traffic, there are several registers that when read (e.g., via
'ethtool -d') may cause the chip to stall.
This patch corrects the registers read in such flows.
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c index bbf4cf0..ebf40cd 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c @@ -775,7 +775,7 @@ static void bnx2x_get_regs(struct net_device *dev, struct bnx2x *bp = netdev_priv(dev); struct dump_hdr dump_hdr = {0}; - regs->version = 0; + regs->version = 1; memset(p, 0, regs->len); if (!netif_running(bp->dev)) |