aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorSathya Perla <sathyap@serverengines.com>2010-01-21 22:51:36 +0000
committerDavid S. Miller <davem@davemloft.net>2010-01-23 01:08:51 -0800
commitfa4281bbbcb44d1f8bdac894ad0696535272cc43 (patch)
treefe7ec8395ecd2177bb777481377e9a43af26d2ed /drivers/net/benet
parent60abe78279568a7109db2bcbc71131766a91c2e5 (diff)
downloadkernel_samsung_smdk4412-fa4281bbbcb44d1f8bdac894ad0696535272cc43.zip
kernel_samsung_smdk4412-fa4281bbbcb44d1f8bdac894ad0696535272cc43.tar.gz
kernel_samsung_smdk4412-fa4281bbbcb44d1f8bdac894ad0696535272cc43.tar.bz2
be2net: swap only first 2 fields of mcc_wrb
Only the first two fields of mcc wrb - embedded, payload_len need to be cpu_to_le32() swapped while issuing a cmd to the hw. The fields tag0, tag1 are opaque and returned back to cpu as is... 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 102ade1..fee6eee 100644
--- a/drivers/net/benet/be_cmds.c
+++ b/drivers/net/benet/be_cmds.c
@@ -286,7 +286,7 @@ static void be_wrb_hdr_prepare(struct be_mcc_wrb *wrb, int payload_len,
MCC_WRB_SGE_CNT_SHIFT;
wrb->payload_length = payload_len;
wrb->tag0 = opcode;
- be_dws_cpu_to_le(wrb, 20);
+ be_dws_cpu_to_le(wrb, 8);
}
/* Don't touch the hdr after it's prepared */