net: gem: Remove WRAP bit from TX buffer description
authorMichal Simek <monstr@monstr.eu>
Wed, 17 Oct 2012 09:03:40 +0000 (11:03 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Apr 2013 09:39:14 +0000 (11:39 +0200)
Removing this bit causes that frame is sent only once.
(With wrap big one packet has been sent several times
which dramatically decrease throughput)

TRM: (Table 16-3: Tx Buffer Descriptor Entry)

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/net/zynq_gem.c

index 3596065694902a63455c2f8d80f9030d4d878347..7188b9ee0e69a05e867e7da3411e47705d467e49 100644 (file)
@@ -310,8 +310,7 @@ static int zynq_gem_send(struct eth_device *dev, void *ptr, int len)
        memset((void *) &(priv->tx_bd), 0, sizeof(struct emac_bd));
 
        priv->tx_bd.addr = (u32)ptr;
-       priv->tx_bd.status = len | ZYNQ_GEM_TXBUF_LAST_MASK |
-                                               ZYNQ_GEM_TXBUF_WRAP_MASK;
+       priv->tx_bd.status = len | ZYNQ_GEM_TXBUF_LAST_MASK;
 
        /* Start transmit */
        setbits_le32(&regs->nwctrl, ZYNQ_GEM_NWCTRL_STARTTX_MASK);