diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-22 21:42:28 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:58 -0400 |
commit | 05d2fec9f5e5fd1d7169435631b9d55ae4c566d1 (patch) | |
tree | 29912a35f1975ae07892cd43ef5d6594f9ea0cec /drivers/net/amd8111e.c | |
parent | ee41a82fa362449e608c4dab7df261058ffd52c0 (diff) |
amd8111e big-endian fix
amd8111e_calc_coalesce() ends up with insane values of tx_data_rate since
->tx_bytes increments missing conversion from little- to host-endian
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/amd8111e.c')
-rw-r--r-- | drivers/net/amd8111e.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c index babe0de2ce44..1cc74ec88a58 100644 --- a/drivers/net/amd8111e.c +++ b/drivers/net/amd8111e.c | |||
@@ -709,7 +709,8 @@ static int amd8111e_tx(struct net_device *dev) | |||
709 | lp->tx_complete_idx++; | 709 | lp->tx_complete_idx++; |
710 | /*COAL update tx coalescing parameters */ | 710 | /*COAL update tx coalescing parameters */ |
711 | lp->coal_conf.tx_packets++; | 711 | lp->coal_conf.tx_packets++; |
712 | lp->coal_conf.tx_bytes += lp->tx_ring[tx_index].buff_count; | 712 | lp->coal_conf.tx_bytes += |
713 | le16_to_cpu(lp->tx_ring[tx_index].buff_count); | ||
713 | 714 | ||
714 | if (netif_queue_stopped(dev) && | 715 | if (netif_queue_stopped(dev) && |
715 | lp->tx_complete_idx > lp->tx_idx - NUM_TX_BUFFERS +2){ | 716 | lp->tx_complete_idx > lp->tx_idx - NUM_TX_BUFFERS +2){ |