aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHariprasad Shenai <hariprasad@chelsio.com>2014-09-01 10:24:59 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-02 02:00:42 -0400
commit3d9103f80d7b1e8f0be85d87d102ba8dc1084f2d (patch)
tree9bac0f082202a558ac3a4fad713c0db6b865e45e
parent31d55c2d6672430f3ef0bfd4de72c5a4f6a8bab9 (diff)
cxgb4: Avoid dumping Write-only registers in register dump
Avoid dumping MPS_RPLC_MAP_CTL for reg dumps; this is a Write-Only register. Reading this register may cause MPS TCAM corruption. Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index cf387ae8d7f8..1b5020a847c7 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -1763,7 +1763,8 @@ static void get_regs(struct net_device *dev, struct ethtool_regs *regs,
1763 0xd004, 0xd03c, 1763 0xd004, 0xd03c,
1764 0xdfc0, 0xdfe0, 1764 0xdfc0, 0xdfe0,
1765 0xe000, 0xea7c, 1765 0xe000, 0xea7c,
1766 0xf000, 0x11190, 1766 0xf000, 0x11110,
1767 0x11118, 0x11190,
1767 0x19040, 0x1906c, 1768 0x19040, 0x1906c,
1768 0x19078, 0x19080, 1769 0x19078, 0x19080,
1769 0x1908c, 0x19124, 1770 0x1908c, 0x19124,
@@ -1970,7 +1971,8 @@ static void get_regs(struct net_device *dev, struct ethtool_regs *regs,
1970 0xd004, 0xd03c, 1971 0xd004, 0xd03c,
1971 0xdfc0, 0xdfe0, 1972 0xdfc0, 0xdfe0,
1972 0xe000, 0x11088, 1973 0xe000, 0x11088,
1973 0x1109c, 0x1117c, 1974 0x1109c, 0x11110,
1975 0x11118, 0x1117c,
1974 0x11190, 0x11204, 1976 0x11190, 0x11204,
1975 0x19040, 0x1906c, 1977 0x19040, 0x1906c,
1976 0x19078, 0x19080, 1978 0x19078, 0x19080,