zynq: gem: Setting up WRAP bit for one TX bd
authorMichal Simek <michal.simek@xilinx.com>
Tue, 26 May 2015 10:01:12 +0000 (12:01 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Jul 2015 09:56:18 +0000 (11:56 +0200)
Setting up WRAP bit to indicate that this is the last TX BD in the
chain.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c

index f4c2252d0c14a2f9dc1c4f67ab185d4ac10366e2..438e4a82e9084d37ae8273cc5271371504a0cacc 100644 (file)
@@ -403,7 +403,8 @@ static int zynq_gem_send(struct eth_device *dev, void *ptr, int len)
 
        priv->tx_bd->addr = (u32)ptr;
        priv->tx_bd->status = (len & ZYNQ_GEM_TXBUF_FRMLEN_MASK) |
-                               ZYNQ_GEM_TXBUF_LAST_MASK;
+                              ZYNQ_GEM_TXBUF_LAST_MASK |
+                              ZYNQ_GEM_TXBUF_WRAP_MASK;
 
        addr = (u32) ptr;
        addr &= ~(ARCH_DMA_MINALIGN - 1);