summaryrefslogtreecommitdiffstats
path: root/drivers/net/e100.c
diff options
context:
space:
mode:
authorMalli Chilakala <mallikarjuna.chilakala@intel.com>2005-08-25 13:06:08 -0700
committerJeff Garzik <jgarzik@pobox.com>2005-08-25 16:18:32 -0400
commit996ec3533ae15424e339089a8045ca1c998f8a87 (patch)
treee61cce4f8f1d96461e2fbd76307b88061bc4f5ec /drivers/net/e100.c
parenta074fb860846937a4a46dbbf439cbbb2e2ba960c (diff)
downloadop-kernel-dev-996ec3533ae15424e339089a8045ca1c998f8a87.zip
op-kernel-dev-996ec3533ae15424e339089a8045ca1c998f8a87.tar.gz
[PATCH] e100: fixed endian bug in xmit_prepare routine
Fixed endian bug associated with cb_i bit in xmit_prepare Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com> Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com> Signed-off-by: John Ronciak <john.ronciak@intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r--drivers/net/e100.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index b723f4d..e0fcac8 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -1307,7 +1307,8 @@ static inline void e100_xmit_prepare(struct nic *nic, struct cb *cb,
{
cb->command = nic->tx_command;
/* interrupt every 16 packets regardless of delay */
- if((nic->cbs_avail & ~15) == nic->cbs_avail) cb->command |= cb_i;
+ if((nic->cbs_avail & ~15) == nic->cbs_avail)
+ cb->command |= cpu_to_le16(cb_i);
cb->u.tcb.tbd_array = cb->dma_addr + offsetof(struct cb, u.tcb.tbd);
cb->u.tcb.tcb_byte_count = 0;
cb->u.tcb.threshold = nic->tx_threshold;
OpenPOWER on IntegriCloud