[PATCH] e100: fixed endian bug in xmit_prepare routine
authorMalli Chilakala <mallikarjuna.chilakala@intel.com>
Thu, 25 Aug 2005 20:06:08 +0000 (13:06 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 25 Aug 2005 20:18:32 +0000 (16:18 -0400)
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>
drivers/net/e100.c

index b723f4dca11e0da5c14fe8ab95534f37d989e57d..e0fcac889a5a32cdd849b5b6b038d1ff7abb17bd 100644 (file)
@@ -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;