projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce45ee9
)
be2net: allow register dump only for PFs
author
Ajit Khaparde
<ajit.khaparde@emulex.com>
Tue, 19 Apr 2011 12:10:43 +0000
(12:10 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 20 Apr 2011 03:13:09 +0000
(20:13 -0700)
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/benet/be_ethtool.c
b/drivers/net/benet/be_ethtool.c
index
28716a6
..
22523b9
100644
(file)
--- a/
drivers/net/benet/be_ethtool.c
+++ b/
drivers/net/benet/be_ethtool.c
@@
-161,7
+161,9
@@
be_get_reg_len(struct net_device *netdev)
struct be_adapter *adapter = netdev_priv(netdev);
u32 log_size = 0;
- be_cmd_get_reg_len(adapter, &log_size);
+ if (be_physfn(adapter))
+ be_cmd_get_reg_len(adapter, &log_size);
+
return log_size;
}
@@
-170,8
+172,10
@@
be_get_regs(struct net_device *netdev, struct ethtool_regs *regs, void *buf)
{
struct be_adapter *adapter = netdev_priv(netdev);
- memset(buf, 0, regs->len);
- be_cmd_get_regs(adapter, regs->len, buf);
+ if (be_physfn(adapter)) {
+ memset(buf, 0, regs->len);
+ be_cmd_get_regs(adapter, regs->len, buf);
+ }
}
static int