be2net: swap only first 2 fields of mcc_wrb
authorSathya Perla <sathyap@serverengines.com>
Thu, 21 Jan 2010 22:51:36 +0000 (22:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jan 2010 09:08:51 +0000 (01:08 -0800)
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>
drivers/net/benet/be_cmds.c

index 102ade13416526066e3639519beaf4f497bc8830..fee6eee7ae5ba583bf345a79a4be188fbdd2345d 100644 (file)
@@ -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 */