summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorSathya Perla <sathyap@serverengines.com>2010-06-01 00:19:33 -0700
committerDavid S. Miller <davem@davemloft.net>2010-06-01 00:19:33 -0700
commit3ffd05159815d477f971a3259fc758f0c3c7e640 (patch)
tree044b6d0adc60e665206417d1008c025685422f67 /drivers/net/benet
parent6bd17eb96ffc9c3b52927913d59da9ced5109c6a (diff)
downloadblackbird-op-linux-3ffd05159815d477f971a3259fc758f0c3c7e640.tar.gz
blackbird-op-linux-3ffd05159815d477f971a3259fc758f0c3c7e640.zip
be2net: convert hdr.timeout in be_cmd_loopback_test() to le32
The current code fails on ppc as hdr.timeout is not being converted to le32. Signed-off-by: Sathya Perla <sathyap@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c
index 9e305d7fb4bd..b9ad799c719f 100644
--- a/drivers/net/benet/be_cmds.c
+++ b/drivers/net/benet/be_cmds.c
@@ -1593,7 +1593,7 @@ int be_cmd_loopback_test(struct be_adapter *adapter, u32 port_num,
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_LOWLEVEL,
OPCODE_LOWLEVEL_LOOPBACK_TEST, sizeof(*req));
- req->hdr.timeout = 4;
+ req->hdr.timeout = cpu_to_le32(4);
req->pattern = cpu_to_le64(pattern);
req->src_port = cpu_to_le32(port_num);
OpenPOWER on IntegriCloud