Skip to content

Commit

Permalink
r6040: change the default waiting time
Browse files Browse the repository at this point in the history
This patch changes the default waiting time of a packet, which
along with our previous r6040_rx path, was causing huge delays
with another host (160 to 230 ms).

Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Florian Fainelli authored and Jeff Garzik committed Jul 22, 2008
1 parent 32f565d commit 31718de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ static void r6040_init_mac_regs(struct net_device *dev)
iowrite16(lp->rx_ring_dma >> 16, ioaddr + MRD_SA1);

/* Set interrupt waiting time and packet numbers */
iowrite16(0x0F06, ioaddr + MT_ICR);
iowrite16(0x0F06, ioaddr + MR_ICR);
iowrite16(0, ioaddr + MT_ICR);
iowrite16(0, ioaddr + MR_ICR);

/* Enable interrupts */
iowrite16(INT_MASK, ioaddr + MIER);
Expand Down

0 comments on commit 31718de

Please sign in to comment.